/* ============================================================
   Giselle Iakubova — Shared Styles
   Warm cream / beige luxury wellness palette, fully light-mode
   ============================================================ */

:root {
  --bg: #f4edd9;
  --bg-warm: #ece2c5;
  --surface: #e8ddc1;
  --surface-2: #e0d3b0;
  --accent: #b5895a;
  --accent-deep: #8a6238;
  --accent-soft: #d9b98a;
  --text: #1a1410;
  --muted: #7a6a58;
  --border: #d2c3a3;
  --gold-glow: rgba(181, 137, 90, 0.28);
  --shadow-sm: 0 1px 2px rgba(26, 20, 16, 0.04), 0 4px 12px rgba(26, 20, 16, 0.04);
  --shadow-md: 0 6px 20px rgba(26, 20, 16, 0.08), 0 2px 6px rgba(26, 20, 16, 0.04);
  --shadow-lg: 0 18px 48px rgba(26, 20, 16, 0.12);

  --container: 1200px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 600ms;

  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Base ---------- */
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 80% -10%, rgba(181, 137, 90, 0.06), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(181, 137, 90, 0.05), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.32  0 0 0 0 0.22  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-attachment: fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text); }
.muted { color: var(--muted); }

::selection { background: var(--accent-soft); color: var(--text); }

/* Inline highlight — used to call out a few key phrases inside longer body
   text. Switches font to Cormorant italic in the warm-brown accent so the
   phrase reads as a pull-quote inside flowing Inter prose. */
.hl {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.12em;
  color: var(--accent-deep);
  letter-spacing: 0.005em;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -100px;
  background: var(--text); color: var(--bg);
  padding: 10px 14px; border-radius: var(--radius-sm); z-index: 200;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff8ec;
  box-shadow: 0 4px 18px rgba(138, 98, 56, 0.18);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(138, 98, 56, 0.26); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--accent-deep);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff8ec; transform: translateY(-2px); }

.btn-ghost {
  color: var(--text);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--accent-deep); }

.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(221, 208, 188, 0.6);
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand:hover { color: var(--accent-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.94rem;
  color: var(--text);
  border-radius: 6px;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-links a[aria-current="page"] {
  color: var(--accent-deep);
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  position: relative;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform var(--t-med) var(--ease), top var(--t-fast);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* Push body content below sticky nav */
main { padding-top: var(--nav-h); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 0;
}
.hero--full   { min-height: calc(100vh - var(--nav-h)); }
.hero--medium { min-height: 50vh; }
.hero--short  { min-height: 40vh; }
.hero::before {
  content: "";
  position: absolute; inset: -10%;
  background:
    radial-gradient(50% 45% at 50% 35%, rgba(181, 137, 90, 0.32), transparent 70%),
    radial-gradient(70% 55% at 50% 70%, rgba(217, 185, 138, 0.18), transparent 75%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 880px; }
.hero h1 {
  margin-bottom: 22px;
  font-weight: 400;
}
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Decorative ornament under hero h1 */
.ornament {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  margin: 6px auto 18px;
  color: var(--accent);
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; width: 40px; background: var(--accent);
  opacity: 0.6;
}

/* ---------- About strip ---------- */
.about-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.about-copy h2 { margin-bottom: 22px; }
.about-copy p { font-size: 1.06rem; color: var(--text); }

/* ---------- Credentials bar ---------- */
.credentials {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}
.credential {
  padding: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.credential .icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
}
.credential .icon svg { width: 28px; height: 28px; }
.credential strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.credential span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Section heading helper ---------- */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ---------- Cards (offerings) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.card .icon-wrap {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 22px; flex-grow: 1; }
.card .link {
  align-self: flex-start;
  color: var(--accent-deep);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.card .link:hover { gap: 14px; color: var(--accent); }
.card .link::after { content: "→"; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.testimonial:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stars { display: inline-flex; gap: 4px; color: var(--accent); margin-bottom: 16px; }
.testimonial blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 18px;
}
.testimonial cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.testimonial cite::before { content: "— "; }

/* ---------- Final CTA band ---------- */
.cta-band {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 248, 236, 0.4), transparent 70%),
    linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff8ec;
  text-align: center;
  padding: clamp(80px, 11vw, 140px) 0;
  position: relative;
}
.cta-band h2 { color: #fff8ec; margin-bottom: 16px; }
.cta-band p { color: rgba(255, 248, 236, 0.86); max-width: 560px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-band .btn-primary {
  background: #fff8ec; color: var(--accent-deep);
}
.cta-band .btn-primary:hover { background: var(--bg); color: var(--text); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.is-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--gold-glow), var(--shadow-md);
  transform: translateY(-6px);
  background: linear-gradient(180deg, #f6efe1 0%, var(--surface) 100%);
}
.price-card.is-featured:hover { transform: translateY(-9px); }

.popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff8ec;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(138, 98, 56, 0.28);
}

.price-card h3 { margin-bottom: 6px; }
.price-card .price-row {
  display: flex; align-items: baseline; gap: 10px;
  margin: 12px 0 22px;
}
.price-card .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text);
}
.price-card .price-was {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1.1rem;
}
.price-card .save-pill {
  display: inline-block;
  background: rgba(181, 137, 90, 0.15);
  color: var(--accent-deep);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-left: auto;
}
.price-card ul {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px;
  flex-grow: 1;
}
.price-card li {
  position: relative; padding-left: 28px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.5;
}
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.price-card .best-for {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 22px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border-left: 2px solid var(--accent-soft);
}
.price-card .btn { width: 100%; }

/* Trust strip */
.trust-strip {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.trust-item .icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.trust-item span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

/* ---------- Group page: what to expect ---------- */
.expect-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}
.expect-copy h2 { margin-bottom: 20px; }
.expect-copy p { font-size: 1.06rem; }
.expect-visual {
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(closest-side at 60% 40%, rgba(181, 137, 90, 0.45), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(217, 185, 138, 0.3), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.expect-visual svg { width: 60%; height: 60%; color: var(--accent); opacity: 0.55; }
.expect-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Topics */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.topic {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.topic .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin: 0 auto 18px;
}
.topic h3 { margin-bottom: 10px; font-size: 1.5rem; }
.topic p { color: var(--muted); }

/* ---------- Forms ---------- */
.form {
  display: flex; flex-direction: column; gap: 18px;
}
.form .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a6a58' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Group signup form */
.signup-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.signup-card h3 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.85rem;
}
.signup-card .small-note {
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 18px;
}
.signup-card .form-success {
  text-align: center;
  padding: 12px 0;
}
.signup-card .form-success h3 {
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.signup-card .form-success p { color: var(--muted); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal.is-open { display: flex; animation: fade var(--t-med) var(--ease); }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 20, 16, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: rise var(--t-med) var(--ease);
}
.modal h3 { margin-bottom: 6px; font-size: 1.85rem; }
.modal p.lede { color: var(--muted); margin-bottom: 22px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.modal-close:hover { background: var(--surface); color: var(--text); }
.modal-success {
  text-align: center;
  padding: 24px 0 8px;
}
.modal-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff8ec;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 0 0 8px var(--gold-glow);
}
.modal-success h3 { margin-bottom: 12px; }
.modal-success p { color: var(--muted); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

body.modal-open { overflow: hidden; }

/* ---------- Library ---------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.book-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  color: var(--text);
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.book-cover {
  aspect-ratio: 3 / 4;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow:
    inset -2px 0 0 rgba(26, 20, 16, 0.05),
    var(--shadow-sm);
  transition: transform var(--t-med) var(--ease);
}
.book-cover img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.book-card:hover .book-cover { transform: scale(1.02); }
.book-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  line-height: 1.2;
}
.book-card .desc {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 22px;
  line-height: 1.5;
}
.book-card .btn { width: 100%; }

.library-closing {
  text-align: center;
  margin-top: 80px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-style: italic;
  color: var(--muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Definition / Approach blocks ---------- */
.defs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.def {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.def:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.def h3 {
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: var(--accent-deep);
}
.def p { color: var(--text); line-height: 1.65; margin: 0; }

/* Collapsible body — preview by default, expands on click */
.def-body {
  position: relative;
  max-height: 170px;
  overflow: hidden;
  transition: max-height 480ms var(--ease);
}
.def-body.is-expanded {
  max-height: 1200px; /* large enough for the longest card */
}
.def-body::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(232, 221, 193, 0), var(--surface) 90%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 280ms var(--ease);
}
.def-body.is-expanded::after { opacity: 0; }

.def-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent-deep);
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.def-toggle:hover { gap: 14px; color: var(--accent); }
.def-toggle-chevron {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--t-med) var(--ease);
  display: inline-block;
}
.def-toggle.is-expanded .def-toggle-chevron {
  transform: translateY(2px) rotate(-135deg);
}

/* ---------- How-to steps ---------- */
.how-to-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.how-to {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.how-to h3 {
  font-size: 1.65rem;
  margin-bottom: 12px;
}
.how-to > p { margin-bottom: 22px; }
.how-to .steps {
  display: flex; flex-direction: column;
  counter-reset: step;
  gap: 16px;
}
.how-to .steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  line-height: 1.6;
}
.how-to .steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff8ec;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
}
.how-to .steps li span[itemprop="name"] {
  display: block; margin-bottom: 4px; color: var(--text);
}
.how-to .steps li span[itemprop="text"] {
  display: block; color: var(--muted);
}
.how-to-outcome {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text);
  line-height: 1.65;
}

/* ---------- Session process timeline (sessions.html) ---------- */
.session-process {
  position: relative;
  list-style: none;
  padding-left: 64px;
  max-width: 820px;
  margin: 56px auto 0;
  counter-reset: phase;
}
.session-process::before {
  content: "";
  position: absolute;
  left: 18px; top: 8px; bottom: 12px;
  width: 1px;
  background: var(--border);
}
.phase {
  position: relative;
  padding-bottom: 48px;
}
.phase:last-child { padding-bottom: 0; }
.phase::before {
  counter-increment: phase;
  content: counter(phase);
  position: absolute;
  left: -64px;
  top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff8ec;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 0 0 4px var(--surface);
}
.phase-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.phase-title {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-bottom: 14px;
  line-height: 1.2;
}
.phase p {
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}
.sub-layers {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex; flex-direction: column;
  gap: 12px;
}
.sub-layers li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
  color: var(--muted);
}
.sub-layers li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.sub-layers li strong { color: var(--text); font-weight: 600; }

.session-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 70px auto 0;
  padding: 22px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  max-width: 820px;
}
.session-meta strong { color: var(--text); font-weight: 600; }
.session-meta .sep { color: var(--accent); opacity: 0.6; }

.session-privacy {
  max-width: 720px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 720px) {
  .session-process {
    padding-left: 52px;
    margin-top: 36px;
  }
  .session-process::before { left: 15px; }
  .phase::before {
    left: -52px;
    width: 32px; height: 32px;
    font-size: 1.05rem;
  }
  .phase { padding-bottom: 36px; }
  .session-meta { font-size: 0.9rem; padding: 18px 20px; }
  .session-meta .sep { display: none; }
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 28px;
  transition: box-shadow var(--t-med) var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  position: relative;
  padding-right: 40px;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 12px; height: 12px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t-med) var(--ease);
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-item > p {
  padding: 0 0 22px 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1000px) {
  .defs { grid-template-columns: 1fr; }
  .how-to-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .how-to { padding: 28px 22px; }
  .how-to .steps li { padding-left: 48px; }
  .how-to .steps li::before { width: 32px; height: 32px; font-size: 1.05rem; }
  .faq-item { padding: 4px 22px; }
  .faq-item summary h3 { font-size: 1.05rem; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  text-align: center;
}
.footer .brand-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.footer .tagline {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
}
.footer-links {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-links a {
  font-size: 0.94rem;
  color: var(--text);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}
.footer-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--t-med) var(--ease);
}
.footer-links a:hover { color: var(--accent-deep); }
.footer-links a:hover::after { width: 100%; }
.footer-divider {
  width: 60px; height: 1px;
  background: var(--border);
  margin: 0 auto 24px;
}
.footer .copyright { color: var(--muted); font-size: 0.84rem; }

/* ---------- Reveal animation ---------- */
/* Only hide elements when JS has confirmed it can reveal them.
   Without `html.js-ready`, fade-in elements stay visible. */
html.js-ready .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  will-change: opacity, transform;
}
html.js-ready .fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 80ms; }
.fade-in.delay-2 { transition-delay: 160ms; }
.fade-in.delay-3 { transition-delay: 240ms; }
.fade-in.delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 480px; margin: 0 auto; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cards-3,
  .pricing-grid,
  .topics-grid,
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .expect-grid { grid-template-columns: 1fr; gap: 36px; }
  .expect-visual { max-width: 480px; margin: 0 auto; }
  .price-card.is-featured { transform: none; }
  .price-card.is-featured:hover { transform: translateY(-3px); }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .section-tight { padding-top: 32px; }
  body { font-size: 16px; }

  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 6.8vw, 2.3rem); }
  .expect-copy p + p { margin-top: 14px; }

  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  body.nav-open .nav-links {
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
  .nav-links a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    padding: 12px 16px;
  }
  .nav-links a[aria-current="page"]::after { left: 16px; right: 16px; bottom: 6px; }
  .nav-links .btn { margin-top: 8px; padding: 14px 26px; }

  .cards-3,
  .cards-2,
  .pricing-grid,
  .topics-grid,
  .credentials-grid,
  .books-grid,
  .trust-grid { grid-template-columns: 1fr; }

  .testimonial blockquote { font-size: 1.1rem; }
  .modal-card { padding: 28px 22px; }
  .signup-card { padding: 32px 22px; }
  .form .row { grid-template-columns: 1fr; }
}
