/* Mayfield Growth Gap Audit — shared brand tokens and primitives.
 *
 * Shared deliberately: the risk-screen app duplicates its :root block across
 * every HTML file, and the copies have already drifted. One stylesheet here.
 *
 * ── Why this looks the way it does (rebuilt 2026-09-14) ──────────────────────
 * The first build followed the written brief literally — "dark navy foundation,
 * white content cards" — and landed on a navy gradient with a floating white
 * card, which is the house style of every generated landing page on the
 * internet. It did not look like Mayfield.
 *
 * This version is measured off mayfieldconsulting.com instead: white field,
 * navy #131F48 for ALL text (the site never uses grey body copy), gold #E0AD00
 * reserved for pill buttons and emphasis, and EB Garamond set large for
 * everything. Navy is still the foundation — it is the ink and the footer band
 * rather than the backdrop.
 *
 * EB Garamond is self-hosted below. The audit is opened by scanning a QR code
 * off a projected slide on conference wifi, so a third-party font request is a
 * latency cost and a failure mode. Serving it from our own origin keeps the
 * page a single-origin load while still being the real brand face.
 */

/* ── EB Garamond (self-hosted, variable weight 400–800) ───────────────────── */

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/ebgaramond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/ebgaramond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/ebgaramond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/ebgaramond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Foundation — navy sampled from mayfieldconsulting.com body text. */
  --navy-900: #0a1233;
  --navy-800: #131f48;   /* the brand navy */
  --navy-700: #1f2d5e;
  --navy-600: #33427a;

  /* Accents */
  --burgundy: #7d2340;
  --burgundy-bright: #a12f53;
  --gold: #e0ad00;       /* the brand gold, sampled from the site's CTA pill */
  --gold-deep: #c19400;  /* hover */
  --gold-soft: #f0dba6;
  /* Gold is 2.2:1 on white, so it can fill but never carry small text.
     This is the darkened gold used anywhere gold has to BE the text. */
  --gold-text: #876800;

  /* Surface */
  --card: #ffffff;
  --ink: #131f48;        /* body copy is navy, not grey — matches the site */
  --ink-soft: #46527d;
  --ink-faint: #737c9e;
  --rule: #dfe1ea;
  --wash: #f8f7f3;       /* warm paper, never a cool grey */

  /* Classification */
  --strong: #1f6b3a;
  --strong-bg: #eaf3ed;
  --attention: #8a6100;
  --attention-bg: #faf2de;
  --gap: #7d2340;
  --gap-bg: #f8eaee;

  --serif: 'EB Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

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

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  /* EB Garamond has a small x-height; the site sets body copy near 24px and it
     needs the size to read as generous rather than cramped. */
  font-size: clamp(19px, .55vw + 17px, 22px);
  line-height: 1.5;
  color: var(--ink);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 2.5rem 1.35rem 4rem;
  flex: 1 0 auto;
}

/* Site-style header: the real wordmark, left, over a full-bleed hairline. */
.masthead {
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.5rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.masthead img {
  display: block;
  height: 2.5rem;
  width: auto;
}
.masthead .wordmark {
  font-size: .95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-left: auto;
}

/* Content sits on the page, not in a floating box. Only genuinely separable
   blocks (the contact form) get a bordered panel. */
.card { background: none; }

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
@media (max-width: 30rem) {
  .panel { padding: 1.35rem 1.1rem; }
}

.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ── Typography ─────────────────────────────────────────────────────────── */

h1, h2, .display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.008em;
  line-height: 1.1;
  margin: 0 0 .85rem;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 8vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 5.6vw, 2.15rem); line-height: 1.16; }

p { margin: 0 0 1.1rem; }
.lede { font-size: 1.05em; }
.fine { font-size: .82em; line-height: 1.45; color: var(--ink-soft); }

/* An editorial standfirst, not an uppercase tracked-out label. The letterspaced
   all-caps eyebrow is the single loudest tell of a generated page and the real
   site never uses one. */
.eyebrow {
  font-size: .92em;
  font-style: italic;
  color: var(--gold-text);
  margin-bottom: .4rem;
}

/* A quiet, indented note — used for the book connection. */
.aside {
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ── Progress ───────────────────────────────────────────────────────────── */

.progress { margin-bottom: 2rem; }

.progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
  font-size: .85em;
  font-style: italic;
  color: var(--ink-soft);
}

.progress-count { font-variant-numeric: tabular-nums; }
.progress-count b { font-weight: 600; font-style: normal; color: var(--ink); }
.progress-area { color: var(--gold-text); }

.progress-track {
  height: 2px;
  background: var(--rule);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width .42s var(--ease);
}

/* ── Answer options ─────────────────────────────────────────────────────── */

.options { display: grid; gap: .55rem; margin: 1.75rem 0 0; }

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  /* Large targets: comfortably past the 48px minimum on every screen. */
  min-height: 3.6rem;
  padding: .8rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease), transform .12s var(--ease);
}

.option:hover { border-color: var(--navy-600); background: var(--wash); }
.option:active { transform: scale(.995); }

.option:focus-visible {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(19, 31, 72, .18);
}

.option .dot {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  border: 1.5px solid var(--ink-faint);
  border-radius: 50%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}

.option[aria-pressed="true"] {
  border-color: var(--navy-800);
  background: var(--wash);
}
.option[aria-pressed="true"] .dot {
  border-color: var(--gold-deep);
  box-shadow: inset 0 0 0 4px var(--gold);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

/* The site's CTA is a fully rounded gold pill. Ours carries navy text rather
   than the site's white: white on #e0ad00 is 1.9:1, and this one is a form
   control people have to read to finish the audit. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.1rem;
  padding: .75rem 2.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .12s var(--ease), opacity .16s var(--ease);
}

.btn-primary { background: var(--gold); color: var(--navy-800); }
.btn-primary:hover { background: var(--gold-deep); }

.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }

.btn-block { width: 100%; }
/* Long CTA labels ("Start the Growth Gap Audit") outgrow a pill on a narrow
   phone, which is exactly the device this is scanned on. */
@media (max-width: 26rem) {
  .btn { width: 100%; padding-left: 1rem; padding-right: 1rem; }
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-quiet {
  background: none;
  border: none;
  padding: .5rem .25rem;
  min-height: 2.75rem;
  font: inherit;
  font-size: .88em;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-quiet:hover { color: var(--ink); text-decoration: underline; }

/* Secondary CTA — outlined navy on the white field. */
.btn-ghost {
  background: none;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-ghost:hover { background: var(--navy-800); color: #fff; }

/* ── Form ───────────────────────────────────────────────────────────────── */

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: .82em;
  color: var(--ink-soft);
  margin-bottom: .3rem;
}
.field label .opt { color: var(--ink-faint); font-style: italic; }

.field input {
  width: 100%;
  min-height: 3rem;
  padding: .6rem .8rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--card);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(19, 31, 72, .15);
}
.field input[aria-invalid="true"] { border-color: var(--burgundy); }

.row { display: grid; gap: 0 .8rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 30rem) { .row { grid-template-columns: 1fr; } }

.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  background: var(--wash);
  border-radius: var(--radius);
  margin: 1.25rem 0;
  font-size: .88em;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .2rem;
  accent-color: var(--navy-800);
  cursor: pointer;
}

/* Honeypot. Off-screen rather than display:none — some bots skip hidden fields. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Result ─────────────────────────────────────────────────────────────── */

.gap-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.008em;
  color: var(--burgundy);
  margin: .1rem 0 1rem;
}

.action-box {
  background: var(--wash);
  border-left: 2px solid var(--gold);
  padding: 1.15rem 1.35rem;
  margin: 1.75rem 0 0;
}
.action-box .eyebrow { color: var(--ink-soft); margin-bottom: .25rem; }
.action-box p { margin: 0; }

.pill {
  display: inline-block;
  padding: .12rem .6rem;
  border-radius: 999px;
  font-size: .75em;
  font-weight: 600;
}
.pill-strong { background: var(--strong-bg); color: var(--strong); }
.pill-attention { background: var(--attention-bg); color: var(--attention); }
.pill-gap { background: var(--gap-bg); color: var(--gap); }

/* ── Motion ─────────────────────────────────────────────────────────────── */

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.rise { animation: rise .4s var(--ease) both; }
.rise-1 { animation-delay: .05s; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .19s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

/* The navy band the brief asks for, used where the site uses it: as the base of
   the page rather than as the backdrop behind the content. */
.sitefoot {
  flex: none;
  background: var(--navy-800);
  color: rgba(255, 255, 255, .72);
  font-size: .8rem;
  line-height: 1.5;
}
.sitefoot-inner {
  max-width: 38rem;
  margin: 0 auto;
  padding: 1.75rem 1.35rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1.25rem;
}
.sitefoot a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.sitefoot a:hover { border-bottom-color: var(--gold); }
.sitefoot .sep { margin-left: auto; }

.footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .8rem;
  color: var(--ink-faint);
}
.footer a { color: var(--ink-soft); }

.hidden { display: none !important; }
