/* =========================================================================
   At Open Thread — Power Voice funnel
   Design system. Signature motif: a single continuous gold "thread" that
   runs through the experience (hero, section spines, quiz progress).
   Mobile-first. Two typefaces: Fraunces (display), Hanken Grotesk (body/UI).
   ========================================================================= */

:root {
  /* Palette */
  --ink:        #221A2B;  /* deep aubergine-black — primary text + dark sections */
  --plum:       #463655;  /* secondary depth */
  --thread:     #C8922F;  /* the signature gold thread / primary accent */
  --thread-lt:  #E6C079;  /* lighter thread for glows + fills */
  --blush:      #E3A892;  /* warm secondary accent */
  --paper:      #F6F2EB;  /* warm section band (used sparingly, not as default) */
  --shell:      #FFFFFF;  /* default surface */
  --line:       #E4DDD2;  /* hairlines on light */
  --line-dk:    #43354F;  /* hairlines on dark */
  --muted:      #6E6479;  /* secondary text on light */
  --muted-dk:   #B8A9C6;  /* secondary text on dark */

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4:  clamp(2.6rem, 2rem + 3.2vw, 4.6rem);

  --maxw: 64rem;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -28px rgba(34, 26, 43, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--shell);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--display); font-weight: 460; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.4em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 560; }
p { margin: 0 0 1.1em; }
a { color: inherit; }

.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--thread);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--thread); display: inline-block; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.narrow { max-width: 40rem; }
section { padding: clamp(3rem, 8vw, 6rem) 0; position: relative; }
.band { background: var(--paper); }
.dark { background: var(--ink); color: var(--shell); }
.dark h1, .dark h2, .dark h3 { color: var(--shell); }
.dark .muted { color: var(--muted-dk); }
.muted { color: var(--muted); }

/* ---------- The thread (signature) ---------- */
.thread-spine {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(var(--thread-lt), var(--thread), transparent);
  opacity: 0.5; pointer-events: none;
}
.thread-node {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--thread); display: inline-block;
  box-shadow: 0 0 0 5px rgba(200,146,47,0.16);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: var(--step-0);
  padding: 0.9rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--thread); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(200,146,47,0.8); }
.btn-primary:hover { background: var(--thread-lt); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(34,26,43,0.05); }
.dark .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blush); outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 90% at 80% -10%, #2E2339 0%, var(--ink) 55%); color: var(--shell); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 18ch; }
.hero .lede { font-size: var(--step-1); color: var(--muted-dk); max-width: 46ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hero-thread { position: absolute; right: -8%; top: -10%; width: 60%; height: 130%; opacity: 0.5; z-index: 1; pointer-events: none; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3,1fr); } }
.card { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card-num { font-family: var(--display); font-size: var(--step-2); color: var(--thread); display: block; margin-bottom: 0.3rem; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: 0.4rem; letter-spacing: 0.01em; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: var(--step-0); color: var(--ink);
  padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--shell);
}
.field input:focus, .field textarea:focus { border-color: var(--thread); outline: none; }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-error { color: #b3403a; font-size: var(--step--1); min-height: 1.2em; margin-top: 0.4rem; }

/* ---------- Quiz ---------- */
.quiz-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.quiz-progress { height: 3px; background: var(--line); position: relative; }
.quiz-progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, var(--thread-lt), var(--thread)); transition: width .4s ease; }
.quiz-stage { flex: 1; display: flex; align-items: center; }
.quiz-step { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-q { font-family: var(--display); font-size: var(--step-3); margin-bottom: 1.5rem; max-width: 20ch; }
.quiz-count { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--thread); margin-bottom: 0.8rem; }
.options { display: grid; gap: 0.7rem; max-width: 34rem; }
.option {
  text-align: left; background: var(--shell); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.option:hover { border-color: var(--thread); }
.option.sel { border-color: var(--thread); background: #FBF6EC; box-shadow: inset 0 0 0 1px var(--thread); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; gap: 1rem; }

/* ---------- Offer / pricing ---------- */
.price { font-family: var(--display); font-size: var(--step-4); color: var(--ink); line-height: 1; }
.price small { font-family: var(--body); font-size: var(--step-0); color: var(--muted); font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; }
.checklist li { padding-left: 1.8rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--thread); }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: var(--step--1); color: var(--muted); }
.site-foot a { color: var(--muted); text-decoration: none; margin-right: 1.2rem; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.pill { display: inline-block; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--thread); border: 1px solid var(--thread); border-radius: 999px; padding: 0.3rem 0.8rem; }
.spacer { height: 1.5rem; }
.legal { max-width: 44rem; }
.legal h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.legal h3 { margin-top: 1.6rem; }
.is-hidden { display: none !important; }
