/* ============================================================
   GENNY Spritz — shared brand system
   Design tokens, resets, and shared interactive components.
   Each variant adds its own style.css on top of this.
   Palette + type derived from the pitch deck & investor 1-pager.
   ============================================================ */

:root {
  /* --- core palette --- */
  --linen:       #EFE8DA;
  --linen-deep:  #E6DCC9;
  --cream:       #FBF8F2;
  --paper:       #FFFFFF;

  --taupe:       #8C857A;   /* the logo band */
  --taupe-light: #B6AFA4;

  --sage:        #D8E1D4;   /* soft highlight blocks */
  --sage-soft:   #E8EDE4;
  --sage-deep:   #A9BBA0;   /* mid sage accent */
  --sage-line:   #C4D2BE;

  --forest:      #2C4233;   /* the "genny =" mark */
  --forest-soft: #3E5A45;

  --coral:       #DB6A4F;   /* the raise + key numbers */
  --coral-deep:  #C9543B;

  /* flavor accents */
  --rhubarb:     #CE4438;
  --cucumber:    #7FA63F;
  --honeysuckle: #DDB73A;

  --ink:         #33322E;
  --muted:       #6E6A62;
  --line:        #E3DCCE;

  /* type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-label:   'Barlow Semi Condensed', 'Jost', 'Helvetica Neue', sans-serif;
  --font-body:    'Albert Sans', 'Helvetica Neue', Arial, sans-serif;

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

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* keep `hidden` winning over display classes */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.62;
  font-weight: 400;   /* Albert Sans Regular — Light read too thin vs the PDF */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5 { margin: 0; line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1em; }

/* --- shared utilities --- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.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;
}
.wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }

/* Real genny wordmark — rendered as a recolorable CSS mask so it inherits
   currentColor in every context (dark on linen headers, cream on the forest
   footer, etc.). Only the standalone brand lockups are swapped; mid-sentence
   .wordmark text (pull-quotes) keeps the display font. Logo ratio 3.374:1. */
.brand.wordmark, .hero-word.wordmark, .foot-word.wordmark,
.ad-brand.wordmark, .inv-brand.wordmark, .inv-footer .wordmark {
  display: inline-block;
  height: .82em;
  width: 2.77em;                 /* 3.374 × .82 */
  vertical-align: middle;
  line-height: 1;
  letter-spacing: 0;
  background-color: currentColor;
  -webkit-mask: url(genny-logo.svg) no-repeat left center / contain;
          mask: url(genny-logo.svg) no-repeat left center / contain;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}
.hero-word.wordmark { display: block; height: .8em; width: 2.7em; margin: 0; }  /* block = no baseline slack under the logo */
.eyebrow {
  font-family: var(--font-label); text-transform: uppercase;
  letter-spacing: .34em; font-size: .72rem; font-weight: 500; color: var(--muted);
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Shared: investor-deck request modal (gated content)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(34,40,34,.5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--cream); color: var(--ink); border-radius: 6px;
  width: 100%; max-width: 480px; padding: 38px 38px 32px;
  box-shadow: 0 30px 80px rgba(40,46,40,.35);
  transform: translateY(16px) scale(.98); transition: transform .35s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: none; }
.modal h3 { font-family: var(--font-head); font-size: 1.7rem; margin-bottom: .25rem; }
.modal .modal-sub { color: var(--muted); font-size: .94rem; margin-bottom: 1.4rem; }
.modal-close {
  position: absolute; top: 18px; right: 22px; background: none; border: 0;
  font-size: 1.6rem; line-height: 1; color: var(--muted);
}
.modal label { display: block; font-family: var(--font-label); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 5px; }
.modal input, .modal textarea {
  width: 100%; padding: 11px 13px; margin-bottom: 15px; font-family: var(--font-body);
  font-size: .95rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px;
}
.modal input:focus, .modal textarea:focus { outline: 2px solid var(--sage-deep); outline-offset: 1px; }
.modal .confidential-note {
  font-size: .76rem; color: var(--muted); margin-top: 4px; line-height: 1.5;
  display: flex; gap: 7px; align-items: flex-start;
}

/* shared button baseline (variants restyle) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-label); font-weight: 500; letter-spacing: .04em;
  text-decoration: none; border: 0; border-radius: 4px;
  padding: 14px 26px; font-size: .86rem; transition: all .25s var(--ease);
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-soft); transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-full { width: 100%; }

/* form success state (shared) */
.form-success {
  display: none; align-items: center; gap: 10px;
  background: var(--sage-soft); border: 1px solid var(--sage-line);
  color: var(--forest); padding: 14px 16px; border-radius: 5px;
  font-size: .92rem; line-height: 1.45;
}
.js-form.ok .form-success { display: flex; }
.js-form.ok .form-fields { display: none; }

/* ============================================================
   Shared: floating "back to all 3 directions" button
   ============================================================ */
.back-directions {
  position: fixed; left: 22px; bottom: 22px; z-index: 150;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--font-label); padding: 10px 18px; border-radius: 12px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.back-directions:hover { transform: translateY(-2px); background: var(--forest); color: #fff; }
.back-directions .bd-label {
  font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .6;
}
.back-directions .bd-action {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
}
.back-directions .bd-action svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 600px) {
  .back-directions { left: 12px; bottom: 12px; padding: 9px 14px; }
  .back-directions .bd-action { font-size: .76rem; }
}
body.nav-open .back-directions { display: none; }
@media print { .back-directions { display: none; } }

/* ============================================================
   Mobile expanded menu (full section jump-list).
   Hidden on desktop; each variant reveals it inside the open
   panel at its mobile breakpoint and hides the desktop links.
   ============================================================ */
/* backdrop scrim — tap outside the panel to close (mobile only) */
.nav-scrim { position: fixed; inset: 0; z-index: 190; background: rgba(26,32,26,.42);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; }
body.nav-open .nav-scrim { opacity: 1; visibility: visible; }
@media (min-width: 961px) { .nav-scrim { display: none; } }

.nav-m { display: none; }
.nav-m .nav-toplink { display: block; padding: 12px 0; font-family: var(--font-label);
  font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none;
  border-top: 1px solid var(--line); margin-top: 8px; transition: color .2s; }
.nav-m .nav-toplink:first-child { border-top: 0; margin-top: 0; padding-top: 2px; }
.nav-m .nav-toplink:hover { color: var(--forest); }
.nav-m .nav-cat { display: block; font-family: var(--font-label); text-transform: uppercase;
  letter-spacing: .14em; font-size: .68rem; font-weight: 600; color: var(--muted); margin: 19px 0 4px; }
.nav-m .nav-sub { display: block; padding: 8px 0 8px 16px; font-family: var(--font-label);
  font-size: 1rem; color: var(--ink); text-decoration: none; border-left: 2px solid var(--line);
  transition: color .2s, border-color .2s; }
.nav-m .nav-sub:hover, .nav-m .nav-sub:active { color: var(--forest); border-left-color: var(--sage-deep); }
.nav-m .nav-m-cta { display: block; text-align: center; margin: 24px 0 4px; padding: 13px 16px;
  background: var(--forest); color: #fff; border-radius: 6px; font-family: var(--font-label);
  font-weight: 600; font-size: .92rem; letter-spacing: .03em; text-decoration: none; }
.nav-m .nav-m-cta:hover { background: var(--forest-soft); color: #fff; }

/* ============================================================
   Shared: gated financials (locked → unlock on deck request)
   Works on both light and dark variant sections.
   ============================================================ */
.financials { margin-top: 30px; }
.fin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 16px; }
.fin-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.fin-illustrative { font-style: italic; font-size: .8rem; opacity: .8; }
.fin-locked-wrap { position: relative; border-radius: 12px; overflow: hidden; }
.fin-content { transition: filter .45s var(--ease); }
.financials:not(.unlocked) .fin-content { filter: blur(9px); pointer-events: none; user-select: none; }
.fin-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(34,40,34,.30); transition: opacity .45s ease, visibility .45s ease; }
.financials.unlocked .fin-lock { opacity: 0; visibility: hidden; }
.fin-lock-card { background: var(--cream); color: var(--ink); border-radius: 12px;
  padding: 30px 34px; text-align: center; max-width: 400px;
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.55); }
.fin-lock-card .lock-ico { display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; background: var(--sage-soft); margin-bottom: 6px; }
.fin-lock-card .lock-ico svg { width: 24px; height: 24px; color: var(--forest); }
.fin-lock-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: .4em 0 .35em; }
.fin-lock-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.2em; line-height: 1.5; }
.fin-lock-card .fin-have-code { font-size: .84rem; margin: 14px 0 0; }
.fin-lock-card .fin-have-code a { color: var(--forest); font-weight: 700; }

/* financial content primitives */
.fin-years { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin-bottom: 16px; }
.fin-year { background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 12px; text-align: center; }
.fin-year span { display: block; font-family: var(--font-label); text-transform: uppercase;
  letter-spacing: .08em; font-size: .64rem; color: var(--muted); margin-bottom: 4px; }
.fin-year strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--forest); line-height: 1.05; }
.fin-year em { font-style: normal; font-size: .68rem; color: var(--muted); }
.fin-grid3 { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 14px; }
.fin-mini { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.fin-mini h4 { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em;
  font-size: .7rem; color: var(--muted); margin-bottom: 16px; }
.wf { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.wf li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px; font-size: .84rem; color: var(--ink); }
.wf .wf-bar { height: 12px; border-radius: 6px; }
.wf b { font-family: var(--font-display); font-weight: 600; }
.fin-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fin-donut svg { width: 116px; height: 116px; flex: none; }
.fin-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fin-donut li { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--ink); }
.fin-donut .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.fin-donut b { margin-left: auto; font-family: var(--font-display); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.hbars li { font-size: .8rem; color: var(--ink); }
.hbars .hbars-top { display: flex; justify-content: space-between; margin-bottom: 5px; }
.hbars .track { background: var(--linen-deep); border-radius: 5px; height: 10px; overflow: hidden; }
.hbars .fill { height: 10px; border-radius: 5px; background: var(--sage-deep); }
.hbars li.hi .fill { background: var(--coral); }
.hbars li.hi b { color: var(--coral); }
/* financials v2 additions */
.fin-stats-wrap { position: relative; }
.fin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px;
  margin-bottom: 16px; }
.fin-stat { background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; }
.fin-stat.hi { background: var(--sage-soft); border-color: var(--sage-line); }
.fin-stat-label { display: block; font-family: var(--font-label); text-transform: uppercase;
  letter-spacing: .08em; font-size: .64rem; color: var(--muted); margin-bottom: 6px; }
.fin-stat strong { display: block; font-family: var(--font-head); font-size: 1.7rem;
  color: var(--forest); line-height: 1.05; }
.fin-stat.hi strong { color: var(--forest); }
.fin-stat em { display: block; font-style: normal; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.fin-year-rev, .fin-year-delta { display: block; font-style: normal; font-size: .66rem; color: var(--muted); }
.fin-year-delta { color: var(--coral); font-weight: 700; }
.fin-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.fin-wide { grid-column: 1 / -1; }
.fin-narrative { margin: 14px 0 16px; }
.fin-narrative p { color: #45433d; font-size: .95rem; margin: 0 0 10px; max-width: 78ch; }
.fin-narrative p:last-child { margin-bottom: 0; }
.fin-sub { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em;
  font-size: .66rem; color: var(--muted); margin: -8px 0 12px; }
.fin-note { font-size: .76rem; color: var(--muted); margin: 10px 0 0; }
.fin-chart { width: 100%; height: auto; display: block; }
.fin-axis { font-family: var(--font-label); font-size: 9px; fill: var(--muted); }
.fin-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; }
.fin-legend li { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--ink); }
.fin-legend .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.fin-assume ul { list-style: none; margin: 0; padding: 0; }
.fin-assume li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0;
  border-bottom: 1px dashed var(--line); font-size: .84rem; color: #45433d; }
.fin-assume li:last-child { border-bottom: 0; }
.fin-assume b { font-family: var(--font-label); font-weight: 600; color: var(--forest);
  text-align: right; white-space: nowrap; }
.fin-grid3 + .fin-grid2 { margin-top: 14px; }
.fin-content > .fin-narrative, .fin-content > .fin-assume { margin-top: 14px; }

@media (max-width: 760px) {
  .fin-years { grid-template-columns: repeat(2,1fr); }
  .fin-grid3, .fin-grid2 { grid-template-columns: 1fr; }
  .fin-stats { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   Shared content modules (deck content added across variants).
   Live on light backgrounds; section headings use each variant's
   own header classes so fonts stay variant-consistent.
   ============================================================ */
.cm { padding: 86px 0; }
.cm-bg-linen { background: var(--linen); }
.cm-bg-cream { background: var(--cream); }
.cm-bg-sage  { background: var(--sage-soft); }

/* competitive landscape */
.cm-compare { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.cm-col { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; }
.cm-col-label { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em;
  font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.cm-col h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin-bottom: 16px; }
.cm-col ul { list-style: none; margin: 0; padding: 0; }
.cm-col li { position: relative; padding: 0 0 9px 22px; color: #45433d; font-size: .96rem; }
.cm-col li::before { content: "–"; position: absolute; left: 4px; color: var(--taupe); }
.cm-col.win { background: var(--forest); border-color: var(--forest); }
.cm-col.win .cm-col-label { color: var(--sage-deep); }
.cm-col.win h3 { color: #fff; }
.cm-col.win li { color: #d6dfd1; }
.cm-col.win li::before { content: "✓"; color: var(--sage-deep); font-weight: 700; }

/* meet the genny drinker */
.cm-drinker { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 18px; }
.cm-pt { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.cm-pt .cm-pt-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--sage-soft); color: var(--forest); margin-bottom: 14px; }
.cm-pt .cm-pt-ico svg { width: 22px; height: 22px; }
.cm-pt h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 5px; }
.cm-pt p { margin: 0; color: var(--muted); font-size: .92rem; }

/* lifestyle feature photos (target consumer) */
.cm-lifestyle { display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 1000px; margin: 0 auto 44px; }
.cm-lifestyle figure { margin: 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 22px 46px -28px rgba(40,40,30,.5); }
.cm-lifestyle img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 680px) { .cm-lifestyle { grid-template-columns: 1fr; max-width: 460px; } }

/* the intersection (flavor/format/function/finance) */
.cm-quad { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.cm-q { text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 30px 22px; }
.cm-q .cm-q-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 16px; background: var(--sage-soft); color: var(--forest); margin-bottom: 16px; }
.cm-q .cm-q-ico svg { width: 28px; height: 28px; }
.cm-q h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: .35em; }
.cm-q p { margin: 0; color: var(--muted); font-size: .94rem; }
.cm-quad-total { text-align: center; margin: 30px auto 0; font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; color: var(--forest); }
.cm-quad-total b { font-style: normal; }

/* aesthetic band */
.cm-aesthetic { max-width: 900px; margin: 0 auto; text-align: center; }
.cm-aesthetic blockquote { margin: 0; font-family: var(--font-head); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.36; color: var(--forest); }
.cm-aesthetic .cm-aes-src { margin-top: 1.3em; font-family: var(--font-label); text-transform: uppercase;
  letter-spacing: .2em; font-size: .72rem; color: var(--muted); }
.cm-aesthetic .cm-aes-split { display: inline-flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.cm-aesthetic .cm-aes-split span { background: var(--paper); border: 1px solid var(--line); border-radius: 40px;
  padding: 9px 20px; font-size: .9rem; color: #45433d; }
.cm-aesthetic .cm-aes-split b { color: var(--coral); }

@media (max-width: 880px) {
  .cm-compare { grid-template-columns: 1fr; }
  .cm-quad { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 520px) {
  .cm-quad { grid-template-columns: 1fr; }
}
