/* Vibe Shift Labs: site styles
   Palette "Sage Wash". Headlines: Besley. Text: Figtree. Both self-hosted in /assets/fonts.
   One light theme by design.

   Contents
     1. Fonts and tokens
     2. Base and utilities
     3. Header
     4. Hero
     5. Sections
     6. The problem and how we solve it
     7. Options and pricing
     8. FAQ
     9. Team
    10. Contact
    11. Footer
    12. Legal pages
    13. Hero animation ("Saturday rush")

   Contrast notes (WCAG 2.2 AA). Every text color below meets 4.5:1 on the grounds it sits on, except
   --amber, which is 3.2:1 on the hero and is only used at headline size (large text needs 3:1).
   Butter is an accent, never text on a light ground. */

/* 1. Fonts and tokens ------------------------------------------------------------------------- */

/* A replaced font needs a new filename: fonts are cached for a year (see vercel.json).
   Update the preload links in every page's <head> too. */
@font-face {
  font-family: "Besley";
  src: url("../fonts/besley-latin-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Grounds */
  --bg: #F4F5F0;          /* page */
  --surface: #FFFFFF;     /* cards, form */
  --band: #E9EDE6;        /* alternating sections */
  --hero: #E2EBE4;        /* hero ground */
  --tint: #E2EBE4;        /* chips, quote bubbles, picture frames */
  --line: #D3DDD5;        /* decorative rules and card edges */
  --field-line: #7D8C83;  /* form field edges: 3.5:1 on white, to meet 1.4.11 non-text contrast */

  /* Text */
  --ink: #0E1F18;         /* 15:1 on --bg */
  --muted: #4E5F56;       /* 5.6:1 or better on every light ground */
  --placeholder: #5E6E65; /* 5:1 on the field ground */
  --on-dark: #FFFFFF;

  /* Brand */
  --green: #184C3C;       /* forest: buttons, links, eyebrows. 8:1 or better on every light ground */
  --butter: #F2D16B;      /* accent: featured price, check marks, keys */
  --amber: #B27300;       /* "Own" in the headline only. Large text only (3.2:1 on the hero) */
  --ink-raised: #2A3631;  /* fact tiles on the dark FAQ panel */

  /* Status */
  --ok: #3F8A63;
  --ok-text: #2E6B4C;     /* 6.3:1 on white */
  --err-text: #9A3412;    /* 7.3:1 on white */

  --shadow: rgba(14, 31, 24, 0.10);
  --note-bg: #FFF4C9;
  --note-ink: #5A4A12;

  --font-display: "Besley", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --header-h: 76px;       /* sticky header height, so anchors and focused fields aren't hidden under it */

  /* Check mark on a butter disc, for the hero list */
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23F2D16B'/%3E%3Cpath d='M4.5 8.2l2.3 2.2 4.7-4.8' fill='none' stroke='%230E1F18' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 2. Base and utilities ----------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); font-weight: 600; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 550; }
p { margin: 0; }
a { color: var(--green); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }

/* Hidden on screen, still read by screen readers */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Holds <symbol>s for <use>; takes no space */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--green); color: var(--on-dark); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  border-radius: 999px; padding: 13px 22px; border: 1.5px solid var(--green);
  background: var(--green); color: var(--on-dark); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn.ghost { background: transparent; color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.btn.small { padding: 8px 16px; font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* 3. Header ----------------------------------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em;
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo small { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
/* Narrow screens: the call-to-action stays; the in-page links are all reachable by scrolling */
@media (max-width: 820px) { .nav { display: none; } .site-head .btn { margin-left: auto; } }
@media (max-width: 420px) {
  .site-head .wrap { gap: 12px; }
  .logo { font-size: 1.15rem; gap: 8px; }
  .logo-mark { width: 24px; height: 24px; }
  .site-head .btn.small { padding: 8px 13px; font-size: 0.86rem; }
}

/* 4. Hero ------------------------------------------------------------------------------------- */

.hero { background: var(--hero); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 32px; align-items: center;
  padding-block: 72px 88px;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero .shift { color: var(--amber); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.gets {
  list-style: none; margin: 0; padding: 0; max-width: 560px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; font-size: 1rem; font-weight: 500;
}
.gets li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.gets li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; background: var(--check) center / contain no-repeat; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 64px; gap: 40px; } }
@media (max-width: 520px) { .gets { grid-template-columns: 1fr; } }

/* 5. Sections --------------------------------------------------------------------------------- */

.section { padding-block: 96px; }
.section .wrap { display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.band { background: var(--band); border-block: 1px solid var(--line); }
@media (max-width: 640px) { .section { padding-block: 64px; } }

/* 6. The problem and how we solve it ----------------------------------------------------------- */

.familiar { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }

/* Quotes. Each is a button that opens a short answer, one at a time (quotes.js).
   On entry, the quotes rise one by one and pile against the "ceiling" line, which bends and springs back.
   States set by quotes.js: .pending (before entry), .arming (entry playing), .nudge (cue the first "+"). */
.quotes-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.quotes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.quotes li {
  --x: 0px; --r: 0deg;  /* each quote's resting offset and tilt, set per item below */
  margin-left: var(--x); max-width: calc(100% - var(--x)); rotate: var(--r);
  background: var(--tint); border-radius: 18px 18px 18px 4px; font-size: 0.98rem;
  transition: background .2s ease, color .2s ease, rotate .25s ease, translate .25s ease, box-shadow .25s ease;
}
.quotes li:nth-child(even) { border-radius: 18px 18px 4px 18px; }
.quotes li:nth-child(1) { --x: 0px; --r: -0.8deg; }
.quotes li:nth-child(2) { --x: 56px; --r: 0.9deg; }
.quotes li:nth-child(3) { --x: 20px; --r: -0.5deg; }
.quotes li:nth-child(4) { --x: 84px; --r: 0.7deg; }
.quotes li:nth-child(5) { --x: 8px; --r: -1deg; }
.quotes li:nth-child(6) { --x: 40px; --r: 0.6deg; }
.quotes li:nth-child(7) { --x: 64px; --r: -0.6deg; }
@media (max-width: 560px) {
  .quotes li:nth-child(2) { --x: 18px; } .quotes li:nth-child(3) { --x: 6px; } .quotes li:nth-child(4) { --x: 24px; }
  .quotes li:nth-child(5) { --x: 2px; } .quotes li:nth-child(6) { --x: 12px; } .quotes li:nth-child(7) { --x: 20px; }
}
.quotes .q {
  appearance: none; background: none; border: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; border-radius: inherit;
}
.quotes .q::after {
  content: "+"; content: "+" / ""; /* second form gives it empty alt text, so screen readers skip it */
  flex: none; font-weight: 600; font-size: 1.05rem; line-height: 1; color: var(--green);
  transition: opacity .5s ease, transform .2s ease;
}
.quotes li:not(.open):hover {
  background: color-mix(in srgb, var(--tint) 82%, var(--green));
  rotate: 0deg; translate: 0 -2px; box-shadow: 0 10px 20px -14px var(--shadow);
}
.quotes .ans { padding: 0 16px 14px; max-width: 60ch; }
.quotes li.open {
  align-self: stretch; margin-left: 0; max-width: none; rotate: 0deg;
  background: var(--green); color: var(--on-dark);
  animation: q-flip .38s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 0;
}
.quotes li.open .q { font-size: 0.88rem; opacity: 0.85; padding-bottom: 6px; }
.quotes li.open .q::after { color: currentColor; transform: rotate(45deg); }
.quotes li.open .q:focus-visible { outline-color: var(--butter); }
@keyframes q-flip { from { transform: perspective(700px) rotateX(-70deg); opacity: 0.4; } to { transform: none; opacity: 1; } }
.quotes-hint { font-size: 0.92rem; color: var(--muted); transition: opacity .5s ease; }

.ceiling { height: 16px; margin-bottom: -10px; }
.ceiling svg { display: block; width: 100%; height: 16px; overflow: visible; }
.ceiling path { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.quotes-col.pending .quotes li { opacity: 0; }
.quotes-col.pending .q::after, .quotes-col.pending .quotes-hint,
.quotes-col.arming .q::after, .quotes-col.arming .quotes-hint { opacity: 0; }
.quotes-col.nudge .quotes li:first-child .q::after { animation: q-nudge .9s ease 2; }
@keyframes q-nudge { 0%, 100% { transform: none; } 45% { transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) {
  .quotes li, .quotes .q::after { transition: none; }
  .quotes li.open { animation: none; }
}

/* How we solve it: three pictures of the same app */
.offer-head { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; margin-bottom: -12px; }
.proud { color: var(--ink); }
.trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.trio > li { display: flex; flex-direction: column; gap: 10px; }
.trio .frame { display: block; width: 100%; height: auto; background: var(--tint); border-radius: var(--radius); margin-bottom: 12px; font-family: var(--font-body); }
.trio .display { font-family: var(--font-display); }
.trio p { color: var(--muted); }
@media (max-width: 860px) {
  .familiar { grid-template-columns: 1fr; gap: 28px; }
  .trio { grid-template-columns: 1fr; gap: 40px; }
  .trio .frame { max-width: 440px; }
}
@media (max-width: 640px) { .offer-head { margin-top: 24px; } }

/* 7. Options and pricing ---------------------------------------------------------------------- */

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.price.main { background: var(--butter); border: 2px solid var(--butter); }
.price .tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.price .when { font-size: 0.82rem; font-weight: 600; color: var(--green); }
.price .range { font-size: 0.92rem; font-weight: 500; color: var(--green); margin-top: -6px; }
.price .plus { font-weight: 600; font-size: 0.97rem; margin-bottom: -6px; }
.price.main .tag, .price.main .when, .price.main .range, .price.main .amount small { color: var(--ink); }
.price ul, .support ul { margin: 0; padding-left: 18px; font-size: 0.97rem; }
.price li, .support li { margin: 4px 0; }
/* No tabular-nums with Besley: its same-width zero stays thin at every weight */
.amount { font-family: var(--font-display); font-weight: 500; font-size: 2.3rem; letter-spacing: -0.01em; line-height: 1; }
.amount small { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; color: var(--muted); letter-spacing: 0; }

.support {
  display: grid; grid-template-columns: 1fr auto; gap: 14px 28px; align-items: start;
  background: var(--surface); border: 1px dashed var(--muted); border-radius: var(--radius); padding: 24px 28px;
}
.support .stack { display: grid; gap: 10px; }
.support .fine { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 900px) { .options, .support { grid-template-columns: 1fr; } }

.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-weight: 500; }
.promises li { display: inline-flex; gap: 8px; align-items: center; }
.promises li::before { content: "✓"; content: "✓" / ""; color: var(--green); font-weight: 700; }

/* 8. FAQ -------------------------------------------------------------------------------------- */
/* Without faq.js: a plain list of questions and answers.
   With it (.live): the questions become tabs and one answer shows in the dark panel. Every answer sits in the
   same grid cell, so the panel is always as tall as the longest one and the page never moves. */

.faq { display: grid; gap: 32px; }
.faq > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.faq p { max-width: 60ch; text-wrap: pretty; }
.faq .faq-lead { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.faq-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.faq-facts.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-facts.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.faq-facts li { display: flex; min-width: 0; }
.fact {
  flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px;
  border: 1.5px solid transparent; border-radius: 10px; background: var(--tint); color: var(--ink); line-height: 1.3; text-decoration: none;
}
.fact span { font-size: 0.88rem; }
a.fact { background: none; border-color: currentColor; transition: background .2s ease, color .2s ease; }
a.fact b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1040px) { .faq-facts.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.faq.live { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0; }
.faq.live > .faq-list { grid-column: 1; grid-row: 1; display: grid; grid-auto-rows: 1fr; gap: 0; }
.faq-list button {
  appearance: none; background: none; border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 24px; cursor: pointer;
  display: flex; align-items: center; text-align: left; color: var(--ink); font: 550 1.08rem/1.25 var(--font-display);
  transition: background .2s ease, color .2s ease;
}
.faq-list button:first-child, .faq-list button[aria-selected="true"], .faq-list button[aria-selected="true"] + button { border-top-color: transparent; }
.faq-list button:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.faq-list button[aria-selected="true"] { background: var(--ink); color: var(--on-dark); border-radius: var(--radius) 0 0 var(--radius); text-decoration: none; }
.faq-list .short { display: none; }
.faq.live > [role="tabpanel"] {
  grid-column: 2; grid-row: 1; visibility: hidden; gap: 16px;
  background: var(--ink); color: var(--on-dark); border-radius: 0 var(--radius) var(--radius) 0; padding: clamp(28px, 3.6vw, 44px);
}
.faq.live > [role="tabpanel"].on { visibility: visible; }
.faq.live h3 { display: none; }
.faq.live .faq-lead { font-size: clamp(2rem, 4vw, 3rem); color: var(--butter); }
.faq.live .faq-facts { margin-top: auto; padding-top: 8px; }
.faq.live .fact { background: var(--ink-raised); color: var(--on-dark); }
.faq.live a.fact { background: none; }
.faq.live a.fact:hover { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.faq.live [role="tabpanel"]:focus-visible { outline-color: var(--butter); outline-offset: -6px; }
.faq.live a.fact:focus-visible { outline-color: var(--butter); }
.faq.live .on > * { animation: faq-in .35s cubic-bezier(.2, .8, .2, 1) backwards; }
.faq.live .on > .faq-lead ~ * { animation-delay: .07s; }
@keyframes faq-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 860px) {
  .faq.live { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .faq.live > .faq-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .faq-list button:nth-child(n),
  .faq-list button[aria-selected="true"]:nth-child(n),
  .faq-list button[aria-selected="true"] + button:nth-child(n) {
    border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 15px; min-height: 44px; font: 600 0.95rem/1.2 var(--font-body);
  }
  .faq-list .full { display: none; }
  .faq-list .short { display: inline; }
  .faq.live > [role="tabpanel"] { grid-column: 1; grid-row: 2; border-radius: var(--radius); padding: 24px; gap: 14px; }
  .faq.live h3 { display: block; font-size: 1.05rem; line-height: 1.3; }
}
@media (max-width: 520px) { .faq-facts, .faq-facts.n2 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .faq.live .on > * { animation: none; }
  .faq-list button, a.fact { transition: none; }
}

/* 9. Team ------------------------------------------------------------------------------------- */

.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.person { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.avatar {
  position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: linear-gradient(140deg, var(--tint), color-mix(in srgb, var(--green) 14%, var(--tint)));
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.avatar img.pos-dalton { object-position: 50% 15%; }
.avatar img.pos-vinny { object-position: 50% 30%; }
.name-row { display: flex; align-items: center; gap: 10px; }
.person .role { font-weight: 600; color: var(--green); font-size: 0.95rem; }
.person p:not(.role) { color: var(--muted); font-size: 0.97rem; }
.li { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.li:hover { color: var(--green); background: var(--tint); }
/* Photo credit: on a dark pill over the photo on wide screens (readable on any photo), under the bio on phones */
.credit {
  /* 22px tall. The -42px top margin lifts it onto the photo; with the 8px bottom margin and the column's two
     12px gaps it takes no net space, so Dalton's name lines up with the others. */
  align-self: flex-end; position: relative; z-index: 1; margin: -42px 10px 8px 0;
  font-size: 0.72rem; line-height: 12px; padding: 5px 8px; border-radius: 999px;
  color: var(--on-dark); background: rgba(14, 31, 24, 0.72);
}
/* One column: a round photo beside the name and role, bio full width underneath */
@media (max-width: 860px) {
  .team { grid-template-columns: 1fr; gap: 36px; }
  .person { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 18px; row-gap: 2px; }
  .person .avatar { grid-row: 1 / span 2; aspect-ratio: 1 / 1; border-radius: 50%; }
  .avatar img.pos-dalton { transform: scale(1.6); transform-origin: 46% 22%; } /* closer in, so his face reads in the small circle */
  .avatar img.pos-vinny { transform: scale(1.3); transform-origin: 52% 42%; }
  .person .name-row { grid-column: 2; align-self: end; }
  .person .role { grid-column: 2; align-self: start; }
  .person p:not(.role) { grid-column: 1 / -1; margin-top: 14px; }
  .credit { order: 1; grid-column: 1 / -1; align-self: start; margin: 8px 0 0; padding: 0; background: none; color: var(--muted); }
}
@media (max-width: 400px) { .person { grid-template-columns: 88px minmax(0, 1fr); } }

/* 10. Contact --------------------------------------------------------------------------------- */

.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.expect { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.expect li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.expect li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; color: var(--green); }
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.97rem; }
.email a { font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; text-decoration: none; }
.email a:hover { text-decoration: underline; }

form.ask {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 40px -28px var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full, form.ask .full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field label small { font-weight: 400; color: var(--muted); font-size: inherit; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 11px 12px;
  font: 1rem var(--font-body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--field-line); border-radius: 10px;
}
.field ::placeholder { color: var(--placeholder); opacity: 1; }
.field textarea { min-height: 110px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--err-text); box-shadow: inset 0 0 0 1px var(--err-text); }
/* Custom dropdown arrow: the native one sat against the edge and shifted the text in Safari */
.field select { -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer; }
.field:has(> select) { position: relative; }
.field:has(> select)::after {
  content: ""; position: absolute; right: 16px; bottom: 21px; width: 12px; height: 8px; pointer-events: none;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.ask .btn { grid-column: 1 / -1; justify-self: start; }
.form-msg { grid-column: 1 / -1; font-size: 0.93rem; font-weight: 500; color: var(--ok-text); }
.form-msg:empty { position: absolute; } /* empty: out of the layout, still in the accessibility tree so updates are announced */
.form-msg.err { color: var(--err-text); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { form.ask { grid-template-columns: 1fr; padding: 20px; } }

/* 11. Footer ---------------------------------------------------------------------------------- */

.site-foot { border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); background: var(--bg); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 40px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--green); }
.foot-links { display: flex; gap: 18px; }

/* 12. Legal pages (privacy, terms) and 404 ---------------------------------------------------- */

.legal { padding-block: 64px 96px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.1rem); margin-top: 10px; }
.legal h2 { font-size: 1.45rem; margin: 44px 0 4px; }
.legal p, .legal ul { margin-top: 12px; max-width: 68ch; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal-meta { font-size: 0.95rem; color: var(--muted); }
.legal-intro { font-size: 1.15rem; margin-top: 28px; }
.legal .btn { margin-top: 28px; }
@media (max-width: 640px) { .legal { padding-block: 44px 64px; } }

/* 13. Hero animation: "Saturday rush" ----------------------------------------------------------
   Before: an app that works but was built fast (default fonts, gray boxes, a stock indigo button, tape).
   After: the same app rebuilt and cared for (brand type, a shop mark, a live pulse, a sparkline, a pickup meter).
   The timeline lives in hero.js. With reduced motion or no script, the finished card shows.
   The colors here are part of the illustration (the "rough" card deliberately looks off-brand), so they're literal. */

.stage { position: relative; min-height: 440px; min-width: 0; max-width: 520px; width: 100%; justify-self: center; }
.rush { display: flex; align-items: center; justify-content: flex-end; position: absolute; inset: 0; }
.rush-card { position: relative; width: 100%; display: grid; cursor: default; transform-origin: 12px 2px; transition: opacity 0.35s ease; }
.rush-card > .rc { grid-area: 1 / 1; min-width: 0; }

/* Pause control (WCAG 2.2.2). Revealed by hero.js only when the animation runs. */
.rush-toggle {
  position: absolute; right: 0; bottom: 0; z-index: 6;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--green) 45%, transparent); border-radius: 50%;
  background: var(--surface); color: var(--green);
}
.rush-toggle:hover { background: var(--tint); }
.rush-toggle svg { fill: currentColor; }
.rush-toggle .i-play, .rush-toggle[aria-pressed="true"] .i-pause { display: none; }
.rush-toggle[aria-pressed="true"] .i-play { display: block; }
.stage.paused .rc-fine.on .live i::after { animation-play-state: paused; }

.rc-rough {
  align-self: start; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 15px;
  background: #FFFFFF; border: 1px solid #D4D4D4; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  font-family: Arial, Helvetica, sans-serif; color: #222;
}
.rc-rough .bar { display: flex; align-items: center; gap: 5px; font: 12px system-ui, -apple-system, "Segoe UI", sans-serif; color: #666; }
.rc-rough .bar i { width: 9px; height: 9px; border-radius: 50%; background: #D0D0D0; display: block; }
.rc-rough .bar span { margin-left: 8px; }
.rc-rough .head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; }
.rc-rough .badge { font-size: 11px; font-weight: 700; color: #4338CA; background: #EEF0FF; border-radius: 4px; padding: 2px 7px; }
.rc-rough .hello { font-family: "Times New Roman", Times, serif; font-size: 18px; color: #111; line-height: 1.2; }
.rc-rough .sub { font-size: 12px; color: #666; margin-top: -6px; }
.rc-rough .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-rough .tile { background: #F5F5F5; border: 1px solid #E0E0E0; border-radius: 4px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-rough .tile:nth-child(2) { transform: rotate(1.6deg) translateY(3px); }
.rc-rough .tile small { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #666; }
.rc-rough .tile b { font-size: 21px; font-weight: 700; color: #111; font-variant-numeric: tabular-nums; line-height: 1.15; }
.rc-rough .tile em { font-style: normal; font-size: 11px; color: #15803D; }
.rc-rough .tile em.warn { color: #9A3412; }
.rc-rough .row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #595959; }
.rc-rough .btn-d { background: #4F46E5; color: #FFFFFF; border-radius: 4px; padding: 5px 12px; font-size: 12px; font-weight: 700; }
.rc-rough .tape { position: absolute; top: -7px; left: -15px; width: 54px; height: 18px; background: rgba(242, 209, 107, 0.75); border-radius: 2px; transform: rotate(-32deg); opacity: 0; }
.rush-toast {
  position: absolute; left: 44%; bottom: -19px; z-index: 5; opacity: 0; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: Arial, Helvetica, sans-serif;
  font-size: 12.5px; background: #FFF4D6; color: #5A4500; border: 1px solid #EAD48A; border-radius: 999px; padding: 6px 13px;
  box-shadow: 0 10px 20px -8px rgba(14, 31, 24, 0.3);
}
.rush-toast i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; display: block; }

.rc-fine {
  position: relative; z-index: 2; visibility: hidden; align-self: stretch;
  display: flex; flex-direction: column; gap: 13px; padding: 16px 18px 18px;
  background: #FFFFFF; border: 1px solid rgba(14, 31, 24, 0.07); border-radius: 18px;
  font-family: var(--font-body); color: var(--ink);
  box-shadow: 0 1px 1px rgba(14, 31, 24, 0.04), 0 10px 20px -8px rgba(14, 31, 24, 0.12), 0 34px 64px -28px rgba(14, 31, 24, 0.32);
}
.rc-fine .bar { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); height: 22px; }
.rc-fine .bar i { width: 9px; height: 9px; border-radius: 50%; background: #E3E9E4; display: block; }
.rc-fine .url { margin-left: 8px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 999px; }
.rc-fine .url em { font-style: normal; }
.rc-fine .url.new { color: var(--ink); font-weight: 600; background: #EAF3EC; box-shadow: inset 0 0 0 1px rgba(63, 138, 99, 0.2); padding: 2px 10px 2px 8px; }
.rc-fine .lock { width: 11px; height: 11px; flex: none; display: none; }
.rc-fine .caret { display: inline-block; width: 1.5px; height: 1em; background: var(--ink); visibility: hidden; }
.rc-fine .shop { display: flex; align-items: center; gap: 11px; }
.rc-fine .mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, #1F5A47, #123A2C); color: var(--butter);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.rc-fine .who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.rc-fine .who b { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.rc-fine .who span { font-size: 12px; color: var(--muted); }
.rc-fine .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ok-text); background: #EAF3EC; border-radius: 999px; padding: 3px 10px 3px 9px; }
.rc-fine .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: block; position: relative; }
.rc-fine.on .live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: rush-pulse 1.8s ease-out infinite; }
@keyframes rush-pulse { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
.rc-fine .hello { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; line-height: 1.15; }
.rc-fine .tiles { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.rc-fine .tile { position: relative; background: linear-gradient(180deg, #FBFCFA, #F3F6F2); border: 1px solid #E3E9E4; border-radius: 13px; padding: 11px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow: hidden; }
.rc-fine .tile small { font-size: 11.5px; color: var(--muted); }
.rc-fine .tile b { font-family: var(--font-display); font-weight: 600; font-size: 27px; line-height: 1.05; letter-spacing: -0.01em; }
.rc-fine .tile em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ok-text); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rc-fine .spark { position: absolute; right: 10px; top: 14px; width: 46%; height: 34px; overflow: visible; }
.rc-fine .meter { height: 6px; border-radius: 999px; background: #E3EAE5; overflow: hidden; margin-block: 3px 1px; }
.rc-fine .meter i { display: block; height: 100%; width: 22%; border-radius: 999px; background: linear-gradient(90deg, var(--ok), var(--green)); }
.rc-fine .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rc-fine .status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ok-text); }
.rc-fine .status .okdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: block; flex: none; }
.rc-fine .st { position: relative; display: inline-block; }
.rc-fine .st em { font-style: normal; }
.rc-fine .st em + em { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; }
.rc-fine .restock {
  background: linear-gradient(180deg, #1F5A47, var(--green)); color: #FFFFFF; border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 10px -4px rgba(24, 76, 60, 0.5);
}
.rush-wipe {
  position: absolute; top: -14px; bottom: -14px; left: 0; width: 5px; margin-left: -2px; border-radius: 3px; z-index: 4; opacity: 0;
  background: var(--butter); box-shadow: 0 0 0 4px rgba(242, 209, 107, 0.35), 0 0 26px 6px rgba(242, 209, 107, 0.85); pointer-events: none;
}
.rush-note {
  position: absolute; top: -40px; right: 6px; width: 132px; z-index: 5; transform: rotate(5deg); opacity: 0;
  background: var(--note-bg); color: var(--note-ink); padding: 9px 11px; font-size: 0.82rem; line-height: 1.3; border-radius: 3px;
  box-shadow: 0 6px 14px rgba(14, 31, 24, 0.18);
}
@media (prefers-reduced-motion: reduce) { .rc-fine.on .live i::after { animation: none; } }
