/* ───────────────────────────────────────────────────────────
   Crumb — marketing site · "Core Sample" design system
   Warm lab-paper · surgical ink · one rationed amber (= reclaimable)
   No glow, no decorative gradients, hairline borders, generous whitespace.
   ─────────────────────────────────────────────────────────── */

:root {
  /* surfaces */
  --bg:        #F4F1EA;   /* warm lab paper */
  --bg-card:   #FBFAF6;   /* layered paper */
  --bg-sunk:   #EFEBE1;   /* recessed groove */
  /* ink — the brand "color" */
  --ink:       #1A1916;
  --ink-72:    rgba(26,25,22,.72);
  --ink-50:    rgba(26,25,22,.50);
  --ink-32:    rgba(26,25,22,.32);
  --hair:      rgba(26,25,22,.10);
  --hair-2:    rgba(26,25,22,.06);
  /* rationed chroma */
  --amber:     #C2410C;   /* reclaimable / CTA ONLY */
  --amber-12:  rgba(194,65,12,.12);
  --amber-22:  rgba(194,65,12,.22);
  --sage:      #3F7A4B;   /* healthy / freed / safe */
  --sage-12:   rgba(63,122,75,.12);
  --clay:      #B23A2E;   /* destructive verb only */
  /* type */
  --disp: "Bricolage Grotesque", -apple-system, "Avenir Next", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Menlo", monospace;
  /* metrics */
  --radius: 14px;
  --maxw: 1120px;
  /* motion */
  --e-out: cubic-bezier(.16,1,.3,1);
}

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

html { scroll-behavior:smooth; }
html, body { overflow-x:hidden; }

body {
  font-family:var(--sans);
  color:var(--ink);
  background:
    radial-gradient(140% 90% at 50% -8%, rgba(255,255,255,.55), transparent 58%),
    radial-gradient(120% 120% at 50% 120%, rgba(26,25,22,.03), transparent 55%),
    var(--bg);
  background-attachment:fixed;
  font-size:17px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img { max-width:100%; display:block; }

a { color:inherit; text-decoration:none; }

.mono { font-family:var(--mono); font-variant-numeric:tabular-nums; }

/* focus visibility — accessible */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline:2px solid var(--amber);
  outline-offset:3px;
  border-radius:6px;
}
/* remove default focus ring only where we draw our own */
summary:focus { outline:none; }
summary:focus-visible { outline:2px solid var(--amber); }

/* ── layout helpers ── */
.wrap { width:100%; max-width:var(--maxw); margin:0 auto; padding:0 28px; }

.eyebrow {
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ink-72);
  margin-bottom:18px;
}

section { padding:96px 0; }
.section-hd { max-width:680px; margin-bottom:48px; }
.section-hd h2 {
  font-family:var(--disp);
  font-weight:800;
  font-size:clamp(28px, 4vw, 42px);
  line-height:1.08;
  letter-spacing:-.02em;
}
.section-hd p {
  margin-top:16px;
  font-size:18px;
  color:var(--ink-72);
  max-width:60ch;
}

/* ═══════════════ NAV ═══════════════ */
.nav {
  position:sticky; top:0; z-index:50;
  background:rgba(244,241,234,.82);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--hair);
}
.nav-inner {
  display:flex; align-items:center; justify-content:space-between;
  height:66px;
}
.brand { display:flex; align-items:center; gap:11px; }
.brand img { width:30px; height:30px; border-radius:8px; }
.brand .word {
  font-family:var(--disp); font-weight:800; font-size:21px;
  letter-spacing:-.02em;
}
.nav-links { display:flex; align-items:center; gap:6px; }
.nav-links a.link {
  padding:8px 14px; border-radius:9px;
  font-size:15px; font-weight:600; color:var(--ink-72);
  transition:color .18s, background .18s;
}
.nav-links a.link:hover { color:var(--ink); background:var(--hair-2); }

.nav-toggle { display:none; }

/* ── buttons ── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--sans); font-weight:700; font-size:15px;
  padding:12px 22px; border-radius:11px; border:1px solid transparent;
  cursor:pointer; transition:transform .14s var(--e-out), background .18s, box-shadow .18s;
  white-space:nowrap;
}
.btn svg { width:16px; height:16px; }
.btn-primary {
  background:var(--amber); color:#FBFAF6;
  box-shadow:0 1px 0 rgba(0,0,0,.04);
}
.btn-primary:hover { background:#A93709; transform:translateY(-1px); }
.btn-ghost {
  background:transparent; color:var(--ink); border-color:var(--hair);
}
.btn-ghost:hover { background:var(--bg-card); transform:translateY(-1px); }
.btn-ink {
  background:var(--ink); color:var(--bg-card);
}
.btn-ink:hover { background:#000; transform:translateY(-1px); }
.btn-lg { padding:15px 28px; font-size:16px; }
.btn-block { width:100%; }

.nav .btn-primary { padding:10px 18px; font-size:14px; }

/* ═══════════════ HERO ═══════════════ */
.hero { padding:84px 0 72px; }
.hero-grid {
  display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center;
}
.hero h1 {
  font-family:var(--disp); font-weight:800;
  font-size:clamp(38px, 5.4vw, 64px);
  line-height:1.02; letter-spacing:-.03em;
}
.hero h1 .accent { color:var(--amber); }
.hero .subhead {
  margin-top:22px; font-size:20px; line-height:1.5; color:var(--ink-72);
  max-width:52ch;
}
.hero-cta { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:34px; }
.hero-cta .seepricing {
  font-weight:700; font-size:15px; color:var(--ink-72);
  display:inline-flex; align-items:center; gap:6px;
  border-bottom:1px solid transparent; padding:4px 2px;
  transition:color .18s, border-color .18s;
}
.hero-cta .seepricing:hover { color:var(--ink); border-color:var(--ink-32); }

.trust-strip {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px;
  margin-top:30px; font-size:13.5px; color:var(--ink-72);
  font-family:var(--mono); letter-spacing:.01em;
}
.trust-strip .dot { width:4px; height:4px; border-radius:50%; background:var(--ink-32); }
.trust-strip svg { width:15px; height:15px; color:var(--sage); }
.trust-strip span { display:inline-flex; align-items:center; gap:7px; }

/* ── product screenshot frame (shared) ── */
/* A real app shot floating on paper: app's own ~14px corners,
   thin hairline border, soft NEUTRAL ink shadow (no amber, no glow). */
.shot {
  position:relative;
  border-radius:14px;
  border:1px solid var(--hair);
  background:var(--bg-card);
  overflow:hidden;
  box-shadow:0 26px 52px -34px rgba(26,25,22,.30);
}
.shot img {
  width:100%; height:auto; display:block;
  border-radius:inherit;
}
/* The app window scrolls, so each capture ends on a half-visible row. Fade that hard cut
   gracefully into the frame so the shot reads as "more below," not "broken/clipped". */
.shot::after {
  content:""; position:absolute; left:0; right:0; bottom:0; height:72px;
  background:linear-gradient(to bottom, rgba(251,250,246,0) 0%, var(--bg-card) 92%);
  border-bottom-left-radius:inherit; border-bottom-right-radius:inherit;
  pointer-events:none;
}
/* the gallery thumbs are already object-fit:cover cropped to a clean top — no fade needed */
.gallery-strip .shot-thumb::after { display:none; }

/* hero visual — the headline product shot */
.hero-visual { position:relative; }
.shot-hero {
  max-width:520px; margin:0 auto;
  transform:scale(1.02);
  box-shadow:0 40px 70px -38px rgba(26,25,22,.34);
}

/* ═══════════════ PROBLEM ═══════════════ */
.problem { background:var(--bg-sunk); border-top:1px solid var(--hair); border-bottom:1px solid var(--hair); }
.hog-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:8px;
}
.hog {
  background:var(--bg-card); border:1px solid var(--hair); border-radius:var(--radius);
  padding:24px;
}
.hog .bar {
  height:8px; border-radius:5px; background:var(--bg-sunk); overflow:hidden; margin-bottom:18px;
}
.hog .bar > i { display:block; height:100%; border-radius:5px; background:var(--ink-32); }
.hog.amber .bar > i { background:var(--amber); }
.hog h3 { font-family:var(--disp); font-weight:700; font-size:19px; letter-spacing:-.01em; }
.hog .size { font-family:var(--mono); font-size:13px; color:var(--ink-72); margin:2px 0 10px; }
.hog p { font-size:15px; color:var(--ink-72); line-height:1.5; }

/* ═══════════════ FEATURES (alternating image ↔ text rows) ═══════════════ */
.feat-rows { display:flex; flex-direction:column; gap:88px; }
.feat-row {
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
}
.feat-row.reverse .feat-shot { order:2; }
.feat-row .feat-shot { min-width:0; }
.feat-text .ic {
  width:46px; height:46px; border-radius:12px;
  display:grid; place-items:center;
  background:var(--bg-sunk); border:1px solid var(--hair);
  color:var(--ink); margin-bottom:20px;
}
.feat-text .ic svg { width:24px; height:24px; }
.feat-text h3 {
  font-family:var(--disp); font-weight:700;
  font-size:clamp(22px, 2.6vw, 28px); line-height:1.1; letter-spacing:-.02em;
}
.feat-text p { margin-top:12px; font-size:16.5px; color:var(--ink-72); line-height:1.6; max-width:50ch; }
.feat-text .tagrow { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.tag {
  font-family:var(--mono); font-size:12px; color:var(--ink-72);
  background:var(--bg-sunk); border:1px solid var(--hair);
  padding:5px 10px; border-radius:8px;
}

/* ═══════════════ HOW IT WORKS ═══════════════ */
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; counter-reset:step; }
.step {
  background:var(--bg-card); border:1px solid var(--hair); border-radius:var(--radius);
  padding:30px 28px; position:relative;
}
.step .num {
  font-family:var(--mono); font-weight:600; font-size:14px; color:var(--ink-72);
  letter-spacing:.06em;
}
.step h3 { font-family:var(--disp); font-weight:700; font-size:21px; margin-top:14px; letter-spacing:-.01em; }
.step p { margin-top:10px; font-size:15px; color:var(--ink-72); line-height:1.55; }

/* ═══════════════ PRICING ═══════════════ */
.pricing { background:var(--bg-sunk); border-top:1px solid var(--hair); border-bottom:1px solid var(--hair); }
.price-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; align-items:stretch; }
.plan {
  background:var(--bg-card); border:1px solid var(--hair); border-radius:18px;
  padding:32px 28px; display:flex; flex-direction:column;
}
.plan.featured {
  border:1.5px solid var(--amber);
  box-shadow:0 30px 60px -42px rgba(26,25,22,.32);
  position:relative;
}
.plan .badge {
  position:absolute; top:-13px; left:28px;
  background:var(--amber); color:#FBFAF6;
  font-family:var(--mono); font-size:11px; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase;
  padding:5px 12px; border-radius:8px;
}
.plan .pname { font-family:var(--disp); font-weight:700; font-size:20px; }
.plan .price { margin:14px 0 4px; display:flex; align-items:baseline; gap:6px; }
.plan .price .amt { font-family:var(--mono); font-weight:600; font-size:42px; letter-spacing:-.03em; }
.plan.featured .price .amt { color:var(--amber); }
.plan .price .per { font-size:15px; color:var(--ink-72); }
.plan .blurb { font-size:14.5px; color:var(--ink-72); min-height:42px; }
.plan ul { list-style:none; margin:22px 0 26px; display:flex; flex-direction:column; gap:11px; }
.plan li { display:flex; gap:10px; font-size:15px; color:var(--ink-72); align-items:flex-start; }
.plan li svg { width:17px; height:17px; color:var(--sage); flex:0 0 auto; margin-top:3px; }
.plan .cta-wrap { margin-top:auto; }

/* ═══════════════ TRUST ═══════════════ */
.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.trust-card {
  background:var(--bg-card); border:1px solid var(--hair); border-radius:var(--radius);
  padding:26px;
}
.trust-card .ic { color:var(--sage); margin-bottom:16px; }
.trust-card .ic svg { width:26px; height:26px; }
.trust-card h3 { font-family:var(--disp); font-weight:700; font-size:17px; }
.trust-card p { margin-top:8px; font-size:14px; color:var(--ink-72); line-height:1.5; }

/* ═══════════════ FAQ ═══════════════ */
.faq-list { max-width:840px; }
.faq {
  border-bottom:1px solid var(--hair);
}
.faq summary {
  list-style:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:24px 4px;
  font-family:var(--disp); font-weight:600; font-size:20px; letter-spacing:-.01em;
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary .chev {
  flex:0 0 auto; width:22px; height:22px; color:var(--ink-72);
  transition:transform .2s var(--e-out);
}
.faq[open] summary .chev { transform:rotate(45deg); }
.faq .ans { padding:0 4px 26px; font-size:16px; color:var(--ink-72); line-height:1.6; max-width:70ch; }
.faq .ans a { color:var(--amber); border-bottom:1px solid var(--amber-22); }
.faq .ans a:hover { border-color:var(--amber); }

/* ═══════════════ GALLERY ═══════════════ */
.gallery { background:var(--bg-sunk); border-top:1px solid var(--hair); border-bottom:1px solid var(--hair); }
.gallery-strip {
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px; align-items:start;
}
.gallery-strip .shot-thumb { margin:0; }
.gallery-strip .shot-thumb img { aspect-ratio:1202/1280; object-fit:cover; object-position:top center; }

/* ═══════════════ FINAL CTA ═══════════════ */
.final {
  text-align:center;
}
.final-card {
  background:var(--bg-card); border:1px solid var(--hair); border-radius:22px;
  padding:64px 40px;
  box-shadow:0 30px 60px -44px rgba(26,25,22,.3);
}
.final h2 { font-family:var(--disp); font-weight:800; font-size:clamp(28px,4vw,44px); letter-spacing:-.02em; line-height:1.05; }
.final p { margin:16px auto 0; font-size:18px; color:var(--ink-72); max-width:50ch; }
.final .meta { margin-top:18px; font-family:var(--mono); font-size:13px; color:var(--ink-72); }
.final .btn { margin-top:30px; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  border-top:1px solid var(--hair);
  padding:56px 0 40px;
}
.footer-top {
  display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:32px;
  padding-bottom:36px; border-bottom:1px solid var(--hair);
}
.footer .brand .word { font-size:19px; }
.footer-tagline { margin-top:12px; font-size:14px; color:var(--ink-72); max-width:34ch; }
.footer-nav { display:flex; flex-wrap:wrap; gap:40px; }
.footer-col h4 {
  font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.12em;
  color:var(--ink-72); margin-bottom:14px;
}
.footer-col a, .footer-col span {
  display:block; font-size:15px; color:var(--ink-72); padding:5px 0;
  transition:color .15s;
}
.footer-col a:hover { color:var(--ink); }
.footer-bottom {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px;
  padding-top:28px; font-size:13px; color:var(--ink-72);
}
.footer-bottom .small { max-width:60ch; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width:980px) {
  .trust-grid { grid-template-columns:repeat(2,1fr); }
  .hero-grid { gap:48px; }
  .feat-rows { gap:64px; }
  .feat-row { gap:40px; }
}

/* tablet: stack the hero before columns get too narrow (covers ~768px) */
@media (max-width:860px) {
  .hero-grid { grid-template-columns:1fr; gap:48px; }
  .hero-visual { max-width:460px; margin:0 auto; }
  .hero .subhead { max-width:60ch; }
  .shot-hero { transform:none; }

  /* stack feature rows; image always on top regardless of source order */
  .feat-row, .feat-row.reverse { grid-template-columns:1fr; gap:28px; }
  .feat-row .feat-shot, .feat-row.reverse .feat-shot { order:0; }
  .feat-shot .shot { max-width:520px; margin:0 auto; }
}

@media (max-width:720px) {
  body { font-size:16px; }
  section { padding:68px 0; }
  .wrap { padding:0 20px; }

  .nav-toggle {
    display:inline-flex; align-items:center; justify-content:center;
    width:42px; height:42px; border-radius:10px;
    background:transparent; border:1px solid var(--hair); cursor:pointer; color:var(--ink);
  }
  .nav-toggle svg { width:22px; height:22px; }
  .nav-links {
    position:absolute; top:66px; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:4px;
    background:var(--bg-card); border-bottom:1px solid var(--hair);
    padding:14px 20px 20px;
    box-shadow:0 24px 40px -30px rgba(26,25,22,.4);
    display:none;
  }
  .nav-links.open { display:flex; }
  .nav-links a.link { padding:12px 14px; font-size:16px; }
  .nav-links .btn-primary { margin-top:6px; }

  .hero-grid { grid-template-columns:1fr; gap:48px; }
  .hero-visual { max-width:100%; margin:0 auto; }
  .shot-hero { max-width:100%; }

  .hog-grid, .steps, .price-grid { grid-template-columns:1fr; }
  .trust-grid { grid-template-columns:1fr; }
  .feat-rows { gap:56px; }

  .gallery-strip { grid-template-columns:1fr; gap:18px; max-width:460px; margin:0 auto; }
  .gallery-strip .shot-thumb img { aspect-ratio:auto; object-fit:fill; }

  .plan.featured { order:-1; }

  .footer-top { flex-direction:column; }
  /* tap targets ≥ 40px on touch */
  .footer-col a { padding:10px 0; }
  .hero-cta .seepricing { padding:10px 2px; }
}

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none !important; animation:none !important; }
}
