/* ============================================================
   Рівна спина — landing page styles
   Warm wellness system: cream → clay → espresso
   ============================================================ */

:root {
  /* warm / terracotta (default) palette — #663D2A · #F7F4EF · #F88A4E */
  --cream:      #F7F4EF;
  --paper:      #FFFDFA;
  --cream-deep: #EFE9E1;
  --sand:       #F8D9C4;
  --sand-soft:  #FBE7DA;
  --clay:       #FBA876;
  --clay-deep:  #F88A4E;
  --espresso:   #663D2A;
  --ink:        #4A2C1C;
  --muted:      #9B7E6E;
  --line:       rgba(102, 61, 42, 0.14);
  --line-soft:  rgba(102, 61, 42, 0.07);
  --accent:     #F88A4E;
  --accent-ink: #4A2C1C;
  --shadow:     0 24px 60px -28px rgba(80, 55, 38, 0.40);
  --shadow-sm:  0 8px 24px -14px rgba(80, 55, 38, 0.35);

  --font-head: 'Spectral', 'Spectral-fallback', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', 'Manrope-fallback', system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
}

/* alternate palettes (Tweak) */
/* cherry + sky — #F5E6DB · #9F2549 · #A9D4F7 */
[data-palette="sage"] {
  --cream:      #F5E6DB;
  --paper:      #FCF4EE;
  --cream-deep: #EFDACB;
  --sand:       #A9D4F7;
  --sand-soft:  #DCEBFB;
  --clay:       #BE3A5C;
  --clay-deep:  #9F2549;
  --espresso:   #58182E;
  --ink:        #3E1422;
  --muted:      #6B4E52;
  --line:       rgba(88, 24, 46, 0.14);
  --line-soft:  rgba(88, 24, 46, 0.07);
  --accent:     #9F2549;
  --accent-ink: #FFFFFF;
}
/* lagoon + amber — #EDF1EC · #2E7D74 · #F2A65A */
[data-palette="blush"] {
  --cream:      #EDF1EC;
  --paper:      #F8FBF6;
  --cream-deep: #DFE8DE;
  --sand:       #F2A65A;
  --sand-soft:  #FBE7CC;
  --clay:       #4FA39A;
  --clay-deep:  #2E7D74;
  --espresso:   #234E49;
  --ink:        #1B3A36;
  --muted:      #6E8480;
  --line:       rgba(35, 78, 73, 0.14);
  --line-soft:  rgba(35, 78, 73, 0.07);
  --accent:     #2E7D74;
  --accent-ink: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }

p { margin: 0; text-wrap: pretty; }

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

img { max-width: 100%; display: block; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.bg-paper { background: var(--paper); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-espresso { background: var(--espresso); color: var(--paper); }
.bg-sand { background: var(--sand-soft); }

.bg-espresso h1, .bg-espresso h2, .bg-espresso h3, .bg-espresso h4 { color: var(--paper); }

/* ---------- eyebrow / kicker ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--clay);
  display: inline-block;
}
.bg-espresso .eyebrow { color: var(--sand); }
.bg-espresso .eyebrow::before { background: var(--sand); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--espresso);
  max-width: 56ch;
}
.bg-espresso .lead { color: rgba(252, 250, 246, 0.82); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }
.center .eyebrow::before { display: none; }
.center .eyebrow { gap: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 17px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .18s ease;
  text-align: center;
}
.btn-primary {
  background: var(--clay-deep);
  color: var(--accent-ink);
  box-shadow: 0 14px 30px -12px rgba(160, 106, 71, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(160, 106, 71, 0.78); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--clay); color: var(--clay-deep); }
.btn-block { width: 100%; }
.btn-lg { padding: 20px 40px; font-size: 1.1rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-size: 1.32rem; font-weight: 600; color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--clay-deep);
  display: grid; place-items: center;
  color: var(--accent-ink); font-family: var(--font-body); font-weight: 800; font-size: 0.95rem;
}
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.96rem; font-weight: 600; color: var(--espresso); }
.nav-links a:hover { color: var(--clay-deep); }
.nav .btn { padding: 11px 22px; font-size: 0.92rem; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 6vw, 84px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }

.price-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.price-now { font-family: var(--font-head); font-size: 3.1rem; font-weight: 600; color: var(--ink); line-height: 1; }
.price-old { font-size: 1.4rem; color: var(--muted); text-decoration: line-through; }
.price-badge {
  background: var(--clay-deep); color: var(--accent-ink);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 7px 13px; border-radius: 999px;
}
.hero-cta { display: flex; align-items: center; gap: 18px; }
.hero-cta .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; justify-content: center; }
.hero-cta .btn-primary { flex: 1.15 1 0; }
.hero-meta { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; color: var(--espresso); font-size: 0.95rem; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); display: inline-block; }

/* ---------- placeholders ---------- */
.ph {
  background-color: var(--sand-soft);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 11px, var(--line-soft) 11px, var(--line-soft) 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--espresso);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 18px;
  min-height: 120px;
}
.ph-portrait { aspect-ratio: 4 / 5; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-wide { aspect-ratio: 16 / 10; }
.hero-media { position: relative; }
.hero-media .ph { box-shadow: var(--shadow); }
.hero-float {
  position: absolute; left: -26px; bottom: 28px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 12px;
}
.hero-float .num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; color: var(--clay-deep); line-height: 1; }
.hero-float .lbl { font-size: 0.82rem; color: var(--muted); font-weight: 600; max-width: 12ch; line-height: 1.3; }

/* ---------- generic cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.card-soft { background: color-mix(in srgb, var(--paper) 60%, var(--cream)); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--espresso); font-size: 1rem; }

/* icon chip */
.chip {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--sand-soft);
  display: grid; place-items: center;
  color: var(--clay-deep);
  margin-bottom: 18px;
}
.chip svg { width: 24px; height: 24px; }

/* ---------- pain list ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pain {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 22px;
}
.pain .x {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: color-mix(in srgb, var(--clay) 18%, transparent);
  color: var(--clay-deep);
  display: grid; place-items: center; font-weight: 800; font-size: 0.9rem;
  margin-top: 2px;
}
.pain p { font-size: 1rem; color: var(--espresso); font-weight: 500; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; }
.step .n {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 600;
  color: var(--clay); line-height: 1; margin-bottom: 14px;
  display: inline-block;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--espresso); font-size: 0.97rem; }

/* ---------- results list ---------- */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.check { display: flex; gap: 13px; align-items: flex-start; }
.check .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--clay-deep); color: var(--accent-ink);
  display: grid; place-items: center; margin-top: 2px;
}
.check .tick svg { width: 15px; height: 15px; }
.check p { font-size: 1.04rem; font-weight: 500; color: var(--ink); }

/* ---------- lessons ---------- */
.lessons { display: grid; gap: 16px; }
.lesson {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 30px;
  transition: transform .2s ease;
}
.lesson:hover { border-color: var(--clay); transform: translateX(4px); }
.lesson-num {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600;
  color: var(--clay-deep);
  width: 58px; height: 58px; border-radius: 14px;
  background: var(--sand-soft);
  display: grid; place-items: center;
}
.lesson h3 { font-size: 1.32rem; margin-bottom: 4px; }
.lesson p { color: var(--espresso); font-size: 0.98rem; }
.lesson-tag { font-size: 0.8rem; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

/* ---------- expert bio ---------- */
.bio-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.bio-creds { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.cred { display: flex; gap: 14px; align-items: flex-start; }
.cred .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sand-soft); color: var(--clay-deep); display: grid; place-items: center; margin-top: 2px; }
.cred .tick svg { width: 14px; height: 14px; }
.cred p { font-size: 1rem; color: var(--espresso); }
.cred strong { color: var(--ink); }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { border-radius: var(--radius); padding: 36px; }
.compare-col h3 { margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.compare-other { background: var(--paper); border: 1px solid var(--line); }
.compare-ours { background: var(--espresso); color: var(--paper); }
.compare-ours h3, .compare-ours strong { color: var(--paper); }
.compare ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.compare li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.compare-other li { color: var(--muted); }
.compare-ours li { color: rgba(252,250,246,0.9); }
.compare .mk { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; font-weight: 800; font-size: 0.8rem; }
.compare-other .mk { background: color-mix(in srgb, var(--muted) 22%, transparent); color: var(--muted); }
.compare-ours .mk { background: color-mix(in srgb, var(--paper) 20%, transparent); color: var(--paper); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.quote .stars { color: var(--clay-deep); letter-spacing: 2px; font-size: 0.95rem; }
.quote blockquote { margin: 0; font-size: 1.05rem; color: var(--ink); line-height: 1.6; font-family: var(--font-head); font-style: italic; }
.quote-by { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.quote-by .nm { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.quote-by .meta { font-size: 0.84rem; color: var(--muted); }

/* ---------- guarantee ---------- */
.guarantee {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  background: var(--sand-soft); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); padding: 48px;
}
.seal {
  width: 124px; height: 124px; border-radius: 50%;
  border: 2px dashed var(--clay);
  display: grid; place-items: center; text-align: center;
  color: var(--clay-deep); font-family: var(--font-head); font-weight: 600;
  line-height: 1.15; font-size: 0.95rem; flex: none;
  background: var(--paper);
}
.seal b { font-size: 1.9rem; display: block; }

/* ---------- bonus ---------- */
.bonus {
  display: grid; grid-template-columns: 1fr 0.8fr; gap: 48px; align-items: center;
}
.bonus-tag { display: inline-block; background: var(--clay-deep); color: var(--accent-ink); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }

/* ---------- final CTA + form ---------- */
.cta-final { background: var(--espresso); } #join-form { scroll-margin-top: 88px; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.urgency {
  display: inline-flex; align-items: center; gap: 9px;
  background: color-mix(in srgb, var(--sand) 22%, transparent);
  color: var(--sand);
  border: 1px solid color-mix(in srgb, var(--sand) 40%, transparent);
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.03em; margin-bottom: 24px;
}
.cta-price { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 6px; }
.cta-price .now { font-family: var(--font-head); font-size: 2.8rem; color: var(--paper); line-height: 1; }
.cta-price .old { color: rgba(252,250,246,0.55); text-decoration: line-through; font-size: 1.2rem; }

.form-card { background: var(--paper); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--espresso); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--cream);
  color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); background: #fff; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.buy-note {
  margin-top: 14px; font-size: 0.8rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-family: ui-monospace, monospace;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--clay-deep); transition: transform .25s ease; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--sand-soft); }
.faq details p { color: var(--espresso); font-size: 1.02rem; padding: 0 4px 24px; max-width: 70ch; }

/* ---------- footer ---------- */
.footer { background: var(--cream-deep); border-top: 1px solid var(--line-soft); }

.footer-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0 48px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 38ch;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-contact { margin-top: 10px; font-size: 0.9rem; }
.footer-contact a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
}
.footer-contact a:hover,
.footer-contact a:focus-visible { color: var(--clay-deep); text-decoration-color: var(--clay-deep); }

.footer-col-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin: 0 0 16px;
}

.footer-col nav ul { list-style: none; padding: 0; margin: 0; }
.footer-col nav li + li { margin-top: 2px; }
.footer-col nav a {
  display: block;
  padding: 9px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.4;
}
.footer-col nav a:hover { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-col nav a:focus-visible {
  color: var(--clay-deep);
  outline: 2px solid var(--clay-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bottom { border-top: 1px solid var(--line-soft); }
.footer-bottom-inner { display: flex; align-items: center; padding: 20px 0; }
.copyright { font-size: 0.82rem; color: var(--muted); }

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  body { font-size: 17px; }
  .hero-grid, .bio-grid, .bonus, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4, .steps, .quotes { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .pain-grid, .grid-2, .grid-3, .grid-4, .steps, .checks, .quotes { grid-template-columns: 1fr; }
  .lesson { grid-template-columns: auto 1fr; }
  .lesson-tag { display: none; }
  .guarantee { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 36px 26px; }
  .price-now { font-size: 2.5rem; }
  .hero-float { left: 12px; }
  /* hero CTA: compact side-by-side on small phones */
  .hero-cta { gap: 8px; }
  .hero-cta .btn {
    height: 50px;
    padding: 0 10px;
    font-size: clamp(13px, 3.9vw, 1rem);
  }
}

/* ---------- footer responsive ---------- */
/* Tablet: brand full width on top, nav + docs side by side */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-body { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Mobile: single column stack, generous spacing */
@media (max-width: 767px) {
  .footer-body { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-col nav a { padding: 11px 0; } /* 44 px touch target */
}

/* Font-metric fallbacks to reduce CLS during font-swap */
@font-face {
  font-family: 'Spectral-fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Manrope-fallback';
  src: local('Arial'), local('Helvetica Neue');
  size-adjust: 102%;
  ascent-override: 95%;
  descent-override: 18%;
  line-gap-override: 0%;
}

/* ============================================================
   Footer link-button (looks like a nav link)
   ============================================================ */
.footer-link-btn {
  display: block;
  padding: 9px 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.4;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.footer-link-btn:hover { color: var(--clay-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-link-btn:focus-visible {
  color: var(--clay-deep);
  outline: 2px solid var(--clay-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   Enrollment dialog / popup
   ============================================================ */
#enroll-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 520px;
  width: calc(100% - 2rem);
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
#enroll-dialog::backdrop {
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(3px);
}

.dialog-inner {
  padding: 40px 40px 36px;
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#enroll-dialog[open] .dialog-inner {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .dialog-inner { transition: none !important; }
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
}
.dialog-close:hover { background: var(--cream-deep); }
.dialog-close:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 2px; }

/* ---- Dialog offer header ---- */

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Wrapper: separator between header and form */
.dialog-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 20px;
}

/* 1. Section label — override default eyebrow margin + center it */
.dialog-header .eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

/* 2. Timer title */
.dialog-timer-title {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  font-weight: 600;
  color: var(--clay-deep);
  margin: 0 0 12px;
  line-height: 1.35;
}

/* 3. Big countdown */
.dialog-timer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 16px);
  margin-bottom: 14px;
}
.timer-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* fixed column width prevents horizontal jitter as digits change */
  width: clamp(80px, 10.5vw, 96px);
}
.timer-digits {
  font-family: var(--font-head);
  font-size: clamp(44px, 8vw, 64px);
  font-weight: 600;
  color: var(--espresso);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  display: block;
  width: 100%;
  text-align: center;
}
.timer-sep {
  font-family: var(--font-head);
  font-size: clamp(36px, 6.5vw, 52px);
  font-weight: 400;
  color: var(--clay);
  opacity: 0.5;
  line-height: 1;
  align-self: flex-start;
  padding-top: 3px;
  flex-shrink: 0;
}
.timer-unit {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: lowercase;
  line-height: 1;
}


/* 4. Price + badge row */
.dialog-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
}
.dialog-offer-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.dialog-price-new {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--clay-deep);
  line-height: 1;
}
.dialog-price-old {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}

/* Discount badge with decorative segmented ring */
.dialog-badge-wrap {
  position: relative;
  width: clamp(100px, 11vw, 122px);
  height: clamp(100px, 11vw, 122px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--clay);
  opacity: 0.38;
  animation: badge-ring-spin 22s linear infinite;
  transform-origin: center;
}
@keyframes badge-ring-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .badge-ring { animation: none; }
}
.dialog-badge {
  width: clamp(84px, 9.2vw, 104px);
  height: clamp(84px, 9.2vw, 104px);
  border-radius: 50%;
  background: var(--clay-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent-ink);
  position: relative;
  z-index: 1;
  gap: 2px;
}
.badge-label {
  font-family: var(--font-body);
  font-size: clamp(0.5rem, 0.65vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.88;
  line-height: 1;
}
.badge-value {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1;
}

/* No visible outline when dialog/inner gets programmatic focus */
#enroll-dialog:focus { outline: none; }
.dialog-inner:focus  { outline: none; }

/* ---- Mobile: compact centered card ---- */
@media (max-width: 767px) {
  #enroll-dialog {
    width: calc(100% - 32px);
    max-width: 420px;
    max-height: 92dvh;
    border-radius: var(--radius);
    margin: auto;
    overflow-y: auto;
  }
  .dialog-inner {
    padding: 18px 20px 20px;
  }
  /* Header */
  .dialog-header {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .dialog-header .eyebrow {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }
  .dialog-timer-title {
    font-size: 0.82rem;
    margin-bottom: 8px;
  }
  .dialog-timer {
    gap: clamp(4px, 1.8vw, 10px);
    margin-bottom: 8px;
  }
  .timer-group {
    width: clamp(50px, 14vw, 64px);
  }
  .timer-digits {
    font-size: clamp(44px, 12vw, 56px);
  }
  .timer-sep {
    font-size: clamp(34px, 9.5vw, 46px);
    padding-top: 2px;
  }
  .timer-unit {
    font-size: 10px;
    margin-top: 2px;
  }
.dialog-offer {
    gap: clamp(14px, 4vw, 26px);
  }
  .dialog-price-new {
    font-size: clamp(1.8rem, 8.5vw, 2.4rem);
  }
  .dialog-price-old {
    font-size: clamp(0.8rem, 3vw, 1rem);
  }
  .dialog-badge-wrap {
    width: clamp(80px, 22vw, 96px);
    height: clamp(80px, 22vw, 96px);
  }
  .dialog-badge {
    width: clamp(66px, 18.5vw, 80px);
    height: clamp(66px, 18.5vw, 80px);
  }
  .badge-label {
    font-size: clamp(0.44rem, 1.3vw, 0.54rem);
  }
  .badge-value {
    font-size: clamp(1.0rem, 4.8vw, 1.35rem);
  }
  /* Form */
  .dialog-inner .field {
    margin-bottom: 10px;
  }
  .dialog-inner .field label {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }
  .dialog-inner .field input {
    padding: 11px 12px;
    font-size: 0.92rem;
  }
  .dialog-inner .consent-field {
    margin-bottom: 10px !important;
  }
  .dialog-inner .consent-field label {
    font-size: 0.75rem !important;
  }
  .dialog-inner #pay-submit {
    padding: 13px 20px;
    font-size: clamp(0.88rem, 3.2vw, 1rem);
  }
  .dialog-inner .form-note {
    font-size: 0.68rem;
    margin-top: 6px;
  }
  .dialog-inner .pay-methods {
    margin-top: 10px !important;
    gap: 5px !important;
  }
  .dialog-inner .pay-methods > span {
    font-size: 0.65rem !important;
  }
  .dialog-close {
    top: 12px;
    right: 12px;
  }
}
