/* ============================================================
   EachWay.ai — promotional microsite
   Palette: turf green / champagne gold / silk cream
   Type: Fraunces (display) + Inter (text)
   ============================================================ */

:root {
  --green-950: #04150f;
  --green-900: #07251c;
  --green-800: #0a3328;
  --green-700: #0f4534;
  --green-600: #176349;
  --green-line: rgba(212, 175, 55, 0.18);
  --gold: #d4af37;
  --gold-bright: #eccd6f;
  --gold-dim: #9a7e2a;
  --cream: #f7f3e8;
  --cream-dim: #cfc8b4;
  --ink-soft: rgba(247, 243, 232, 0.72);
  --ink-faint: rgba(247, 243, 232, 0.50);
  --red-silk: #c0392b;
  --radius: 14px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--green-950);
  color: var(--cream);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 21, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--green-line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem; font-weight: 700; color: var(--cream);
  display: flex; align-items: center; gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gold), #7a5f15 55%, var(--gold-bright));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green-950); font-size: 0.85rem; font-weight: 700;
}
.brand em { font-style: normal; color: var(--gold); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
}
.nav-links a:hover { color: var(--cream); text-decoration: none; }
.nav-links a.active { color: var(--gold-bright); }
.nav-cta {
  background: var(--gold); color: var(--green-950) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-bright); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; transition: transform .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost {
  border: 1px solid var(--green-line); color: var(--cream);
  background: rgba(247, 243, 232, 0.04);
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(212,175,55,0.13), transparent 60%),
    radial-gradient(900px 500px at 8% 110%, rgba(23,99,73,0.35), transparent 60%),
    var(--green-950);
  border-bottom: 1px solid var(--green-line);
}
.hero .kicker {
  color: var(--gold); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); max-width: 880px; }
.hero h1 .gold { color: var(--gold-bright); font-style: italic; }
.hero .lede {
  margin: 26px 0 36px; max-width: 720px;
  font-size: 1.2rem; color: var(--ink-soft);
}
.hero-note { margin-top: 18px; color: var(--ink-faint); font-size: 0.88rem; }

/* ---------- Stat band ---------- */

.stat-band {
  border-bottom: 1px solid var(--green-line);
  background: var(--green-900);
}
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.stat {
  padding: 30px 18px; text-align: center;
  border-left: 1px solid var(--green-line);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem; font-weight: 700; color: var(--gold-bright);
}
.stat .lbl { font-size: 0.85rem; color: var(--ink-faint); margin-top: 4px; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section.alt { background: var(--green-900); border-top: 1px solid var(--green-line); border-bottom: 1px solid var(--green-line); }
.section .kicker {
  color: var(--gold); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 760px; }
.section .sub { margin-top: 18px; max-width: 700px; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Cards ---------- */

.cards { display: grid; gap: 22px; margin-top: 48px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(247,243,232,0.045), rgba(247,243,232,0.015));
  border: 1px solid var(--green-line);
  border-radius: var(--radius); padding: 30px 28px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--gold-bright); }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--green-line);
  border-radius: 999px; padding: 3px 11px; margin-bottom: 14px;
}
.card ul { margin: 12px 0 0 18px; color: var(--ink-soft); font-size: 0.95rem; }
.card li { margin-bottom: 7px; }

/* ---------- Layer ribbon (six layers) ---------- */

.layers { margin-top: 48px; display: grid; gap: 12px; }
.layer {
  display: grid; grid-template-columns: 72px 220px 1fr;
  gap: 20px; align-items: baseline;
  background: rgba(247,243,232,0.03);
  border: 1px solid var(--green-line);
  border-radius: 12px; padding: 20px 26px;
}
.layer .n {
  font-family: "Fraunces", Georgia, serif; font-size: 1.5rem;
  color: var(--gold); font-weight: 700;
}
.layer .t { font-weight: 600; color: var(--cream); }
.layer .d { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Quote / pull ---------- */

.pull {
  margin: 60px auto 0; max-width: 860px; text-align: center;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-style: italic;
  color: var(--gold-bright); line-height: 1.4;
}
.pull .by { display: block; margin-top: 18px; font-family: "Inter", sans-serif; font-style: normal; font-size: 0.85rem; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Tables ---------- */

.tbl-scroll { overflow-x: auto; margin-top: 44px; border: 1px solid var(--green-line); border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 760px; }
.tbl th, .tbl td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--green-line); vertical-align: top; }
.tbl thead th {
  background: var(--green-800); color: var(--gold-bright);
  font-family: "Fraunces", Georgia, serif; font-size: 1rem; font-weight: 600;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td.yes { color: var(--gold-bright); font-weight: 600; }
.tbl td.no { color: var(--ink-faint); }
.tbl td:first-child { color: var(--cream); font-weight: 500; }
.tbl .col-us { background: rgba(212,175,55,0.07); }

/* ---------- Pricing ---------- */

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.price-grid.three { grid-template-columns: repeat(3, 1fr); }
.price-card {
  background: linear-gradient(180deg, rgba(247,243,232,0.05), rgba(247,243,232,0.015));
  border: 1px solid var(--green-line); border-radius: var(--radius);
  padding: 34px 28px; display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,175,55,0.12), rgba(212,175,55,0.03));
  position: relative;
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--green-950);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; color: var(--cream); }
.price-card .who { color: var(--ink-faint); font-size: 0.85rem; margin-top: 4px; min-height: 2.4em; }
.price-card .amount { margin: 22px 0 4px; font-family: "Fraunces", Georgia, serif; font-size: 2.4rem; font-weight: 700; color: var(--gold-bright); }
.price-card .amount span { font-size: 1rem; color: var(--ink-faint); font-family: "Inter", sans-serif; font-weight: 400; }
.price-card ul { list-style: none; margin: 22px 0 28px; flex: 1; }
.price-card li {
  padding: 7px 0 7px 26px; position: relative;
  color: var(--ink-soft); font-size: 0.92rem;
  border-bottom: 1px dashed rgba(212,175,55,0.10);
}
.price-card li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold); font-size: 0.8rem; }
.price-card li.head { color: var(--gold-bright); font-weight: 600; }
.price-card li.head::before { content: "▸"; }
.price-card .btn { text-align: center; }

/* ---------- Persona chips ---------- */

.personas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.persona {
  border: 1px solid var(--green-line); border-radius: 12px; padding: 22px;
  background: rgba(247,243,232,0.03);
}
.persona .silk { font-size: 1.5rem; }
.persona h4 { font-family: "Fraunces", Georgia, serif; margin: 10px 0 6px; color: var(--gold-bright); font-size: 1.05rem; }
.persona p { font-size: 0.87rem; color: var(--ink-soft); }

/* ---------- Steps ---------- */

.steps { counter-reset: step; margin-top: 48px; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--green-line);
}
.step:last-child { border-bottom: none; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Fraunces", Georgia, serif; font-size: 1.8rem;
  color: var(--gold); font-weight: 700;
}
.step h4 { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; max-width: 760px; }

/* ---------- Honesty / integrity strip ---------- */

.integrity {
  margin-top: 48px; border: 1px solid var(--gold-dim); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(212,175,55,0.08), transparent);
  padding: 36px 38px;
}
.integrity h3 { color: var(--gold-bright); font-size: 1.4rem; margin-bottom: 14px; }
.integrity p { color: var(--ink-soft); max-width: 860px; }
.integrity p + p { margin-top: 12px; }

/* ---------- FAQ ---------- */

.faq { margin-top: 44px; display: grid; gap: 14px; }
.faq details {
  border: 1px solid var(--green-line); border-radius: 12px;
  background: rgba(247,243,232,0.03); padding: 0 24px;
}
.faq summary {
  cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1rem;
  list-style: none; position: relative; padding-right: 36px;
}
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--gold); font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- CTA banner ---------- */

.cta-banner {
  text-align: center; padding: 96px 24px;
  background:
    radial-gradient(800px 360px at 50% -20%, rgba(212,175,55,0.16), transparent 65%),
    var(--green-900);
  border-top: 1px solid var(--green-line);
}
.cta-banner h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.cta-banner p { margin: 20px auto 36px; max-width: 620px; color: var(--ink-soft); font-size: 1.1rem; }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--green-line);
  background: var(--green-950);
  padding: 56px 0 40px;
  color: var(--ink-faint); font-size: 0.85rem;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h5 { color: var(--cream); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid a { display: block; color: var(--ink-faint); margin-bottom: 9px; font-size: 0.88rem; }
.foot-grid a:hover { color: var(--gold-bright); text-decoration: none; }
.legal {
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--green-line);
  font-size: 0.78rem; line-height: 1.7; color: rgba(247,243,232,0.38);
}
.legal strong { color: rgba(247,243,232,0.55); }

/* ---------- Whisper-map spotlight (graph explainer) ---------- */

.section.spotlight {
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(23,99,73,0.45), transparent 65%),
    var(--green-900);
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}
.whisper-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px;
  align-items: center; margin-top: 48px;
}
.whisper-steps { display: grid; gap: 0; }
.wstep {
  padding: 18px 0 18px 56px; position: relative;
  border-bottom: 1px dashed rgba(212,175,55,0.15);
}
.wstep:last-child { border-bottom: none; }
.wstep .wnum {
  position: absolute; left: 0; top: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold-dim); color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.05rem;
  background: rgba(212,175,55,0.08);
}
.wstep h4 { font-family: "Fraunces", Georgia, serif; font-size: 1.12rem; color: var(--gold-bright); margin-bottom: 5px; }
.wstep p { color: var(--ink-soft); font-size: 0.93rem; }
.graph-visual {
  border: 1px solid var(--green-line); border-radius: var(--radius);
  background: rgba(4, 21, 15, 0.55); padding: 18px 14px 8px;
}
.graph-visual svg { width: 100%; height: auto; display: block; }
.graph-visual .caption {
  text-align: center; font-size: 0.8rem; color: var(--ink-faint);
  padding: 10px 18px 12px;
}
.graph-visual .caption strong { color: var(--gold-bright); font-weight: 600; }

@media (max-width: 960px) {
  .whisper-grid { grid-template-columns: 1fr; }
}

/* ---------- Legal document (terms.html) ---------- */

.terms-wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.terms-meta { color: var(--ink-faint); font-size: 0.88rem; margin-top: 14px; }
.toc {
  border: 1px solid var(--green-line); border-radius: var(--radius);
  background: rgba(247,243,232,0.03); padding: 28px 32px; margin: 48px 0 8px;
}
.toc h3 { font-size: 1.05rem; color: var(--gold-bright); margin-bottom: 14px; }
.toc ol { margin-left: 20px; columns: 2; column-gap: 40px; }
.toc li { font-size: 0.88rem; padding: 3px 0; color: var(--ink-soft); break-inside: avoid; }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--gold-bright); }
.terms h2 {
  font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-top: 72px; padding-bottom: 12px;
  border-bottom: 1px solid var(--green-line);
}
.terms h3 { font-size: 1.3rem; margin: 44px 0 14px; color: var(--cream); }
.terms p, .terms li { color: var(--ink-soft); font-size: 0.96rem; }
.terms p + p { margin-top: 12px; }
.terms ul, .terms ol { margin: 12px 0 12px 24px; }
.terms li { margin-bottom: 8px; }
.terms .plain {
  border-left: 3px solid var(--gold); background: rgba(212,175,55,0.06);
  border-radius: 0 10px 10px 0; padding: 14px 20px; margin: 16px 0 20px;
  font-size: 0.9rem; color: var(--cream-dim);
}
.terms .plain strong { color: var(--gold-bright); }
.terms .notice {
  border: 1px solid var(--gold-dim); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(212,175,55,0.10), transparent);
  padding: 24px 28px; margin: 40px 0;
}
.terms .notice p { color: var(--cream); font-weight: 500; }

@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Misc ---------- */

.eyebrow-pill {
  display: inline-block; border: 1px solid var(--gold-dim); color: var(--gold-bright);
  border-radius: 999px; padding: 6px 16px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 26px; background: rgba(212,175,55,0.07);
}
.mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 0.85em; color: var(--gold-bright); }
.center { text-align: center; }
.mt-lg { margin-top: 56px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .cards.c3, .personas { grid-template-columns: repeat(2, 1fr); }
  .price-grid, .price-grid.three { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .layer { grid-template-columns: 48px 1fr; }
  .layer .d { grid-column: 2; }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .cards.c2, .cards.c3, .personas, .price-grid, .price-grid.three { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 60px 0; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
}
