/* ============================================================
   advisors.chat — a board of advisors for every big decision
   Aesthetic: warm editorial light theme. Fraunces display +
   Hanken Grotesk body + JetBrains Mono accents. Evergreen brand,
   amber accent. Practical, refined, unmistakably human.
   ============================================================ */

:root {
  /* palette */
  --bg:        #F5F1E8;   /* warm paper */
  --bg-2:      #EFEADC;   /* deeper paper for alternating bands */
  --surface:   #FCFAF4;   /* card cream */
  --ink:       #1F1B14;   /* warm near-black */
  --ink-soft:  #5C5446;   /* muted body */
  --ink-faint: #8C8270;   /* captions */
  --line:      #E2DACA;   /* hairline */
  --line-2:    #D6CCB6;

  --green:     #1F4D38;   /* evergreen brand */
  --green-2:   #2E6B4E;
  --green-ink: #15382A;
  --amber:     #C0852E;   /* warm accent */
  --amber-2:   #E6B860;
  --clay:      #A8492F;   /* the "no" / dissent tone */

  /* vote semantics */
  --v-yes:  var(--green-2);
  --v-cond: var(--amber);
  --v-no:   var(--clay);

  /* type */
  --display: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* shape */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(31,27,20,.05), 0 2px 8px rgba(31,27,20,.04);
  --shadow:    0 2px 4px rgba(31,27,20,.05), 0 14px 40px -16px rgba(31,27,20,.18);
  --shadow-lg: 0 4px 8px rgba(31,27,20,.06), 0 30px 70px -28px rgba(31,27,20,.28);

  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--green); color: var(--bg); }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.section {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 132px) clamp(22px, 5vw, 48px);
}
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 68px); }
.kicker {
  font-family: var(--mono);
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 26px; height: 1.5px; background: var(--amber);
}
.section__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0;
}
.section__lede {
  margin: 22px 0 0; max-width: 60ch;
  color: var(--ink-soft); font-size: 1.08rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(22px, 5vw, 48px);
  background: rgba(245,241,232,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); }
.brand__mark { display: inline-flex; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(45deg); }
.brand__word {
  font-family: var(--display); font-weight: 600; font-size: 1.18rem;
  letter-spacing: -.01em; color: var(--ink);
}
.brand__dot { color: var(--amber); }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__links a { font-size: .94rem; color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a:not(.nav__cta) { display: none; }
.nav__cta {
  padding: 9px 17px; border-radius: 100px;
  background: var(--green); color: var(--bg) !important;
  font-weight: 600 !important;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), background .2s !important;
}
.nav__cta:hover { background: var(--green-ink); transform: translateY(-1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(22px, 5vw, 48px) clamp(56px, 8vw, 104px);
}
/* hero background flourish */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  top: -10%; right: -8%; width: 620px; height: 620px;
  background: radial-gradient(circle at center, rgba(46,107,78,.10), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000, transparent 70%);
  opacity: .5; pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.eyebrow {
  font-family: var(--mono);
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin: 0 0 26px;
  padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 100px;
  display: inline-block; background: var(--surface);
}
.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.4vw, 4.7rem);
  line-height: 1.02; letter-spacing: -.035em;
  margin: 0; color: var(--ink);
}
.hero__title span { display: block; }
.hero__title em { color: var(--green); font-style: italic; }
.hero__lede {
  margin: 28px 0 0; max-width: 50ch;
  font-size: 1.14rem; color: var(--ink-soft);
}
.hero__lede em { color: var(--ink); font-style: italic; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note {
  margin: 18px 0 0; font-size: .9rem; color: var(--ink-faint);
  font-family: var(--mono); letter-spacing: .01em;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 100px;
  cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s, background .22s, color .22s;
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: var(--bg); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line-2); background: transparent; }
.btn--ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn--lg { padding: 18px 38px; font-size: 1.08rem; }

/* verdict card */
.hero__visual { perspective: 1400px; }
.card-verdict {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 22px;
  transform: rotate(1.1deg);
  transition: transform .6s var(--ease);
  position: relative;
}
.card-verdict::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  pointer-events: none;
}
.hero__visual:hover .card-verdict { transform: rotate(0deg) translateY(-4px); }
.card-verdict__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.tag {
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
  color: var(--green); background: rgba(46,107,78,.10);
  padding: 4px 10px; border-radius: 7px; letter-spacing: .01em;
}
.card-verdict__meta { font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); }
.card-verdict__q {
  font-family: var(--display); font-weight: 500; font-size: 1.32rem;
  line-height: 1.25; margin: 0 0 20px; color: var(--ink); letter-spacing: -.01em;
}
.card-verdict__q .hash { color: var(--amber); font-family: var(--mono); font-size: 1rem; margin-right: 4px; }
.ballot { list-style: none; margin: 0 0 20px; padding: 0; }
.ballot__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.ballot__row:last-child { border-bottom: 0; }
.ballot__who { font-weight: 600; font-size: .98rem; }
.ballot__vote {
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.ballot__vote::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.ballot__row[data-vote="yes"] .ballot__vote { color: var(--v-yes); }
.ballot__row[data-vote="yes"] .ballot__vote::before { background: var(--v-yes); }
.ballot__row[data-vote="conditional"] .ballot__vote { color: var(--v-cond); }
.ballot__row[data-vote="conditional"] .ballot__vote::before { background: var(--v-cond); }
.ballot__row[data-vote="no"] .ballot__vote { color: var(--v-no); }
.ballot__row[data-vote="no"] .ballot__vote::before { background: var(--v-no); }
.card-verdict__foot { border-top: 2px solid var(--ink); padding-top: 16px; }
.verdict-pill {
  display: inline-block; font-family: var(--mono); font-weight: 600;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--bg); background: var(--green); padding: 6px 14px; border-radius: 100px;
}
.card-verdict__sub { display: block; margin-top: 12px; font-size: .95rem; color: var(--ink-soft); font-style: italic; }

/* ============================================================
   PROBLEM STRIP
   ============================================================ */
.strip {
  position: relative; z-index: 2;
  background: var(--green); color: var(--bg);
}
.strip__text {
  max-width: 940px; margin: 0 auto;
  padding: clamp(46px, 7vw, 78px) clamp(22px, 5vw, 48px);
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.32;
  letter-spacing: -.01em;
}
.strip__text strong { color: var(--amber-2); font-weight: 500; }

/* ============================================================
   STEPS (How it works)
   ============================================================ */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 34px);
  counter-reset: step;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px 32px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.step__num {
  font-family: var(--mono); font-size: .82rem; font-weight: 600;
  color: var(--amber); letter-spacing: .1em; margin-bottom: 18px;
}
.step__title { font-family: var(--display); font-weight: 600; font-size: 1.42rem; margin: 0 0 12px; letter-spacing: -.01em; }
.step__body { margin: 0 0 22px; color: var(--ink-soft); font-size: 1rem; flex: 1; }
.step__code {
  margin: 0; background: var(--green-ink); color: #E9E3D4;
  border-radius: var(--radius-sm); padding: 16px 18px;
  font-family: var(--mono); font-size: .82rem; line-height: 1.6;
  overflow-x: auto; white-space: pre-wrap;
}
.step__code .c-hash { color: var(--amber-2); }
.step__code .c-mut { color: #9DAE9F; }
.step__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: .82rem; font-weight: 500;
  padding: 7px 13px; border-radius: 100px;
  background: rgba(46,107,78,.08); color: var(--green); border: 1px solid var(--line);
}
.step__result { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dot { width: 13px; height: 13px; border-radius: 50%; }
.dot--yes { background: var(--v-yes); }
.dot--cond { background: var(--v-cond); }
.dot--no { background: var(--v-no); }
.step__result-label { font-family: var(--mono); font-size: .82rem; color: var(--ink-soft); margin-left: 6px; }

/* ============================================================
   ROUNDS
   ============================================================ */
.section--rounds { background: var(--bg-2); max-width: none; }
.section--rounds .section__head,
.section--rounds .rounds { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.rounds {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch; gap: 0;
}
.round {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.round__tag {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bg);
  background: var(--ink); padding: 5px 12px; border-radius: 100px;
  display: inline-block; margin-bottom: 18px;
}
.round__title { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin: 0 0 10px; letter-spacing: -.01em; }
.round__body { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.round__body em { color: var(--green); font-style: italic; }
.round__line { align-self: center; width: 38px; height: 2px; background: var(--line-2); position: relative; }
.round__line::after {
  content: "→"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  color: var(--amber); font-size: 1.1rem; background: var(--bg-2); padding: 0 4px;
}

/* ============================================================
   BOARD
   ============================================================ */
.board-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.advisor {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.advisor::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--green); transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.advisor:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.advisor:hover::after { transform: scaleY(1); }
.advisor__name { font-family: var(--display); font-weight: 600; font-size: 1.22rem; margin: 0 0 5px; letter-spacing: -.01em; }
.advisor__role { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); margin: 0 0 14px; }
.advisor__essence { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.55; }
.advisor--add {
  background: transparent; border: 1.5px dashed var(--line-2);
  display: flex; flex-direction: column;
}
.advisor--add:hover { border-color: var(--green); border-style: dashed; }
.advisor--add::after { display: none; }
.advisor__plus { font-family: var(--display); font-size: 1.8rem; color: var(--green); line-height: 1; margin-bottom: 10px; }
.advisor--add .advisor__name { color: var(--green); }

/* ============================================================
   DELIVERABLES
   ============================================================ */
.get-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.get {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px 34px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.get:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.get__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--green-ink); color: var(--amber-2);
}
.get__title { font-family: var(--display); font-weight: 600; font-size: 1.34rem; margin: 0 0 10px; letter-spacing: -.01em; }
.get__body { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ============================================================
   WHO IT'S FOR
   ============================================================ */
.section--for { }
.for__inner { max-width: 820px; }
.for__body { margin: 22px 0 0; font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }
.for__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; padding: 0; }
.for__tags li {
  font-family: var(--mono); font-size: .86rem; font-weight: 500;
  padding: 10px 16px; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--ink);
  background: var(--surface);
  transition: transform .2s var(--ease), border-color .2s, color .2s;
}
.for__tags li:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

/* ============================================================
   CLOSE / MANIFESTO
   ============================================================ */
.close {
  position: relative; z-index: 2;
  background: var(--green-ink); color: var(--bg);
  text-align: center;
  overflow: hidden;
}
.close::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(230,184,96,.16) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000, transparent 72%);
  opacity: .55;
}
.close__inner {
  position: relative; max-width: 760px; margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) clamp(22px, 5vw, 48px);
}
.close__big {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.04;
  letter-spacing: -.03em; margin: 0; color: var(--bg);
}
.close__big em { color: var(--amber-2); font-style: italic; }
.close__sub { margin: 26px auto 38px; max-width: 46ch; font-size: 1.12rem; color: rgba(245,241,232,.78); }
.close .btn--primary { background: var(--amber); color: var(--green-ink); }
.close .btn--primary:hover { background: var(--amber-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 32px clamp(22px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__brand { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.footer__tag { color: var(--ink-soft); font-size: .92rem; }
.footer__year { font-family: var(--mono); font-size: .82rem; color: var(--ink-faint); }

/* ============================================================
   ANIMATION
   ============================================================ */
/* Reveal animations only hide content when JS is present to reveal it.
   No-JS (or JS failure) falls through to fully-visible content. */
.js .reveal, .js .reveal-up { opacity: 0; }
.js .reveal { transform: translateY(14px); }
.js .reveal-up { transform: translateY(26px); }
.reveal.is-in, .reveal-up.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
/* hero stagger via data-d */
.reveal[data-d="0"].is-in { transition-delay: .05s; }
.reveal[data-d="1"].is-in { transition-delay: .12s; }
.reveal[data-d="2"].is-in { transition-delay: .19s; }
.reveal[data-d="3"].is-in { transition-delay: .26s; }
.reveal[data-d="4"].is-in { transition-delay: .34s; }
.reveal[data-d="5"].is-in { transition-delay: .42s; }
.reveal[data-d="6"].is-in { transition-delay: .5s; }
.reveal-up[data-delay="1"].is-in { transition-delay: .12s; }
.reveal-up[data-delay="2"].is-in { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .card-verdict { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 760px) { .nav__links a:not(.nav__cta) { display: inline; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; }
  .steps { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .get-grid { grid-template-columns: 1fr; }
  .rounds { grid-template-columns: 1fr; gap: 16px; }
  .round__line { display: none; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .board-grid { grid-template-columns: 1fr; }
  .nav__cta { padding: 8px 14px; font-size: .88rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}
