/* ═══════════════════════════════════════════════════════════════
   Innerbloom Wellness — Design System
   Color palette: Dusty Rose × Champagne Gold × Soft Plum
   Research-backed for women's holistic wellness / naturopathy

   ▸ Dusty rose / mauve    → feminine, healing, trust, compassion
   ▸ Champagne / warm gold → premium, clinical expertise, warmth
   ▸ Deep plum / berry     → intuition, vitality, cycle health
   ▸ Blush cream           → softness, purity, calm clarity
   ▸ Warm charcoal text    → readable, grounded, professional
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

:root {
  /* ── Brand Palette ─────────────────────────────── */
  --rose: #c17c8c;
  /* dusty rose primary */
  --rose-deep: #9b4f68;
  /* deep rose — CTAs, headings */
  --rose-dark: #6d2d43;
  /* richest rose — hover, strong */
  --rose-soft: #f5e6ea;
  /* blush surface */
  --rose-mist: #fdf0f3;
  /* near-white blush bg */

  --gold: #c4964a;
  /* champagne gold accent */
  --gold-soft: #fdf4e7;
  /* warm cream surface */
  --gold-muted: #e8d5b0;
  /* muted gold for borders */

  --plum: #7b4f7a;
  /* deep plum — secondary accent */
  --plum-soft: #f3eaf3;
  /* plum blush */

  /* ── Backgrounds ───────────────────────────────── */
  --bg: #fdf6f8;
  /* warm blush page bg */
  --surface: #ffffff;
  --surface-rose: #fdf0f3;
  --surface-cream: #fdf8f2;

  /* ── Typography ────────────────────────────────── */
  --text: #2c1a22;
  /* warm charcoal */
  --muted: #7a5560;
  /* muted rose-brown */
  --subtle: #b08490;
  /* very muted, captions */

  /* ── Borders & Dividers ─────────────────────────── */
  --line: #edd8de;
  --line-gold: #e8d5b0;

  /* ── Shadows ────────────────────────────────────── */
  --shadow-lg: 0 24px 48px rgba(155, 79, 104, 0.12);
  --shadow-md: 0 10px 24px rgba(155, 79, 104, 0.08);
  --shadow-btn: 0 10px 24px rgba(155, 79, 104, 0.30);
  --shadow-gold: 0 10px 24px rgba(196, 150, 74, 0.25);

  /* ── Radii ──────────────────────────────────────── */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* ── Layout ─────────────────────────────────────── */
  --public-max: 560px;
  --admin-max: 760px;
  --desktop-max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'DM Sans', 'Avenir Next', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 90% -5%, rgba(193, 124, 140, 0.18) 0%, transparent 40%),
    radial-gradient(ellipse at -5% 20%, rgba(196, 150, 74, 0.14) 0%, transparent 38%),
    radial-gradient(ellipse at 50% 100%, rgba(123, 79, 122, 0.09) 0%, transparent 40%),
    linear-gradient(170deg, #fef8f9 0%, #fdf3f6 40%, #fdf8f4 100%);
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* ═══ LAYOUT ═══════════════════════════════════════ */

.container {
  width: min(100%, var(--public-max));
  margin: 0 auto;
  padding: clamp(14px, 3vw, 20px) clamp(12px, 3vw, 16px) 120px;
}

/* ═══ PANEL & HERO ════════════════════════════════ */

.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(237, 216, 222, 0.8);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: fade-up 0.55s ease both;
  position: relative;
  overflow: hidden;
}

.hero {
  padding: 26px 22px;
}

/* Decorative bloom circles */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  background: radial-gradient(circle, rgba(193, 124, 140, 0.18) 0%, transparent 70%);
}

.hero::after {
  width: 160px;
  height: 160px;
  left: -60px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(196, 150, 74, 0.16) 0%, transparent 70%);
}

/* ═══ EYEBROW TAG ═════════════════════════════════ */

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-soft) 0%, rgba(253, 240, 243, 0.9) 100%);
  border: 1px solid var(--gold-muted);
  color: #8a6528;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ═══ TYPOGRAPHY ══════════════════════════════════ */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1,
h2 {
  font-family: 'Playfair Display', Georgia, serif;
}

h1 {
  font-size: clamp(1.9rem, 8vw, 2.7rem);
  margin-top: 14px;
  background: linear-gradient(135deg, var(--rose-dark) 0%, var(--plum) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  color: var(--rose-dark);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.copy {
  color: var(--muted);
  line-height: 1.75;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
  font-weight: 400;
}

.subcopy {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

/* ═══ BRAND ROW (avatar + name) ════════════════════ */

.brand-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.avatar-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--rose-mist) 0%, var(--rose-soft) 100%);
  border: 2px solid var(--rose);
  display: grid;
  place-items: center;
  color: var(--rose-deep);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(155, 79, 104, 0.18);
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.avatar-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.avatar-mark.has-image .avatar-photo {
  display: block;
}

.avatar-mark.has-image .avatar-initials {
  display: none;
}

/* ═══ META PILLS ══════════════════════════════════ */

.meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  padding: 7px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-mist) 0%, var(--plum-soft) 100%);
  border: 1px solid var(--line);
  color: var(--rose-dark);
  font-size: 0.8rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ═══ BUTTONS ═════════════════════════════════════ */

.button-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.btn,
.btn-secondary {
  min-height: 54px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  padding: 0 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  min-width: 0;
  cursor: pointer;
  border: none;
}

.btn {
  color: #fff;
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--rose-dark) 60%, var(--plum) 100%);
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.btn-secondary {
  color: var(--rose-deep);
  background: var(--surface);
  border: 1.5px solid var(--line);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(155, 79, 104, 0.38);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--rose);
  background: var(--rose-mist);
}

/* ═══ INLINE SUPPORT ══════════════════════════════ */

.inline-support {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.inline-support a {
  color: var(--rose-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(155, 79, 104, 0.35);
}

/* ═══ SECTIONS ════════════════════════════════════ */

.section {
  margin-top: 14px;
  padding: 22px 18px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: fade-up 0.62s ease both;
}

/* ═══ LINK CARDS ══════════════════════════════════ */

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.link-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--rose-mist) 0%, rgba(253, 248, 242, 0.9) 100%);
  border: 1px solid rgba(237, 216, 222, 0.8);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.link-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.link-card> :nth-child(2) {
  min-width: 0;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(253, 240, 243, 0.9) 0%, rgba(253, 244, 231, 0.9) 100%);
  border: 1.5px solid var(--gold-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rose-deep);
}

.link-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}

.link-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.arrow {
  font-size: 1.1rem;
  color: var(--rose);
  opacity: 0.7;
}

/* ═══ TOPIC PILLS ═════════════════════════════════ */

.topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.topic {
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--plum-soft) 0%, var(--rose-mist) 100%);
  border: 1px solid rgba(193, 124, 140, 0.3);
  color: var(--plum);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ═══ TRUST GRID ══════════════════════════════════ */

.trust-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.trust-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose-mist) 0%, var(--gold-soft) 100%);
  padding: 13px 14px;
  display: grid;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--rose) 0%, var(--gold) 100%);
  border-radius: 2px 0 0 2px;
}

.trust-item strong {
  color: var(--rose-dark);
  font-size: 0.9rem;
  padding-left: 4px;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  padding-left: 4px;
}

/* ═══ CHECKLIST ═══════════════════════════════════ */

.checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.checklist li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(253, 240, 243, 0.9) 0%, var(--rose-soft) 100%);
  border: 1.5px solid rgba(193, 124, 140, 0.4);
  color: var(--rose-deep);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ═══ NOTICE BOX ══════════════════════════════════ */

.notice {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-soft) 0%, rgba(253, 240, 243, 0.6) 100%);
  border: 1px solid var(--gold-muted);
  color: #7a5830;
  font-size: 0.87rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  position: relative;
  padding-left: 17px;
}

.notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  border-radius: 2px 0 0 2px;
}

/* ═══ FAQ ═════════════════════════════════════════ */

.faq {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--rose-dark);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: " ›";
  opacity: 0.5;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: " ‹";
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* ═══ HERO SPLIT (webinar page) ═══════════════════ */

.hero-split {
  display: grid;
  gap: 14px;
}

.speaker-card {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-mist) 0%, var(--gold-soft) 100%);
  padding: 14px;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
}

.speaker-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.speaker-card strong {
  color: var(--rose-dark);
}

.speaker-avatar {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-soft) 0%, var(--plum-soft) 100%);
  overflow: hidden;
  border: 2px solid var(--rose);
  box-shadow: 0 4px 12px rgba(155, 79, 104, 0.18);
}

.speaker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.speaker-avatar img[src=""] {
  display: none;
}

/* ═══ STICKY FOOTER BAR (webinar page) ═══════════ */

.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(253, 246, 248, 0.95);
  border-top: 1px solid rgba(237, 216, 222, 0.8);
  backdrop-filter: blur(12px);
}

.sticky-row {
  width: min(100%, 860px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.price {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--rose-dark);
  overflow-wrap: anywhere;
}

.price small {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}

/* ═══ FOOTER NOTE ═════════════════════════════════ */

.footer-note {
  margin-top: 10px;
  color: var(--subtle);
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-note a {
  color: var(--rose-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══ ADMIN ═══════════════════════════════════════ */

.admin-container {
  width: min(100%, var(--admin-max));
}

.admin-form h2 {
  margin-top: 20px;
}

.admin-form h2:first-child {
  margin-top: 0;
}

.admin-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field>span:first-child {
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(193, 124, 140, 0.15);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a5560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
  cursor: pointer;
}

.field textarea {
  resize: vertical;
}

.field-full {
  grid-column: 1 / -1;
}

.field-hint {
  font-size: 0.76rem;
  color: var(--subtle);
  font-weight: 400;
  line-height: 1.5;
}

.field code {
  background: var(--rose-mist);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.82em;
  color: var(--rose-deep);
  font-family: 'Courier New', monospace;
}

.admin-actions {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* ═══ ANIMATIONS ══════════════════════════════════ */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══ RESPONSIVE ══════════════════════════════════ */

@media (hover: none) {

  .btn:hover,
  .btn-secondary:hover,
  .link-card:hover {
    transform: none;
  }
}

@media (min-width: 760px) {
  .container {
    padding-top: 28px;
  }

  .section {
    padding: 26px;
  }

  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .link-list,
  .page-webinar .link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-split {
    grid-template-columns: minmax(0, 1fr) 210px;
    align-items: start;
  }
}

@media (max-width: 759px) {

  .admin-grid,
  .admin-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: clamp(1.65rem, 8vw, 2rem);
  }

  h2 {
    font-size: clamp(1.2rem, 6vw, 1.5rem);
  }

  .hero {
    padding: 18px 15px;
  }

  .section {
    padding: 16px 13px;
  }

  .brand-row {
    grid-template-columns: 60px 1fr;
    gap: 11px;
  }

  .avatar-mark {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .link-card {
    grid-template-columns: 46px 1fr auto;
    gap: 10px;
    padding: 12px;
  }

  .icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 0.72rem;
  }

  .speaker-card {
    grid-template-columns: 50px 1fr;
    padding: 11px;
  }

  .speaker-avatar {
    width: 50px;
    height: 50px;
    border-radius: 13px;
  }

  .sticky-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 980px) {

  .page-home .container,
  .page-webinar .container {
    width: min(100%, var(--desktop-max));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    padding-bottom: 140px;
  }

  .page-home .panel.hero,
  .page-webinar .panel.hero {
    grid-column: 1 / -1;
  }

  .page-home .section,
  .page-webinar .section {
    margin-top: 0;
  }

  .page-thankyou .container {
    width: min(100%, 760px);
  }

  .page-admin .container {
    width: min(100%, 980px);
  }

  .page-admin .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-admin .admin-actions {
    grid-template-columns: repeat(3, minmax(0, 220px));
    justify-content: start;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .page-webinar .sticky {
    position: static;
    padding: 8px 0;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .page-webinar .container {
    padding-bottom: 20px;
  }
}