/* M3b — foundlocal.dev marketing page.
 *
 * Theme: Amplemarket — Subtle dynamism on a crisp canvas.
 * Predominantly neutral palette punctuated by dynamic, soft-edged gradients.
 * Strong, clean typography balanced with subtle, layered surface treatments.
 *
 * Mobile-first, prefers-reduced-motion respected, no third-party trackers.
 */

:root {
  /* — Colors — */
  --ink:          #111111;   /* primary text + filled CTA + heavy borders */
  --ink-soft:     #6d6c6b;   /* muted ash — secondary text */
  --ink-mute:     #8d8c8b;   /* tertiary text */
  --canvas:       #ffffff;   /* primary background */
  --whisper:      #f4f3ef;   /* subtle panel backgrounds */
  --taupe:        #ecebea;   /* ghost button bg, subtle borders */
  --charcoal:     #272625;   /* dark surface, info badge bg */
  --indigo:       #10054d;   /* primary text on light filled buttons */

  /* — Accent gradients (the signature Amplemarket move) — */
  --phoenix:    radial-gradient(386.06% 162.79% at -13.1926% -17.1008%,
                  rgb(232, 64, 13) 0%,
                  rgb(255, 238, 216) 26.1559%,
                  rgb(208, 178, 255) 84.1533%);
  --cyan-glow:  radial-gradient(80.17% 109.2% at 52.1169% 62.5363%,
                  rgb(208, 178, 255) 0%,
                  rgb(198, 236, 233) 35.282%,
                  rgb(153, 255, 249) 96.5565%);

  /* — Soft accent cards — */
  --petal-pink:  #ffd7f0;
  --mint:        #b7efb2;
  --canary:      #ffef99;
  --lavender:    #e2ddfd;
  --orange-flag: #e8400d;   /* phoenix-orange flat — used for tiny dots/strokes */

  /* — Typography — */
  --font-sans: "Labil Grotesk", "Labil Grotesk Variable", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* — Type scale (Amplemarket-aligned) — */
  --text-caption:    10px;
  --text-micro:      12px;
  --text-body:       16px;
  --text-body-lg:    18px;
  --text-subheading: 20px;
  --text-heading-sm: 24px;
  --text-heading:    28px;
  --text-heading-lg: 44px;
  --text-display:    56px;
  --text-display-xl: 72px;

  /* — Spacing — */
  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 20px;
  --gap-6: 24px;
  --gap-7: 28px;
  --gap-8: 36px;
  --gap-9: 44px;
  --gap-10: 56px;
  --gap-11: 84px;
  --gap-12: 100px;
  --gap-13: 144px;

  /* — Radii — */
  --r-button:  8px;
  --r-card:   12px;
  --r-input:  12px;
  --r-image:  12px;
  --r-pill:  999px;

  /* — Shadows (very subtle — diluted ink) — */
  --shadow-card:
    rgba(17, 17, 17, 0.04) 0px 1px 2px 0px,
    rgba(17, 17, 17, 0.04) 0px 4px 8px 0px,
    rgba(17, 17, 17, 0.04) 0px 0px 1px 0px;
  --shadow-lift:
    rgba(17, 17, 17, 0.05) 0px 0px 1px 0px,
    rgba(17, 17, 17, 0.04) 1px 1px 1px 0px,
    rgba(17, 17, 17, 0.03) 2px 3px 2px 0px,
    rgba(17, 17, 17, 0.01) 4px 4px 2px 0px;
  --shadow-xl:
    rgba(17, 17, 17, 0.12) 0px 26px 60px -6px,
    rgba(17, 17, 17, 0.02) 0px 28px 28px -14px,
    rgba(17, 17, 17, 0.04) 0px 6px 6px -3px;
  --shadow-inset:
    rgba(17, 17, 17, 0.05) 0px 0px 0px 1px inset;

  /* — Layout — */
  --container-max: 1180px;
  --section-y: clamp(64px, 8vw, 112px);
}

/* — Resets — */
* { box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--canvas); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss02", "ss01";
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-button);
}

/* When JS shifts focus to a section heading after smooth-scroll (for screen-reader
   continuity), browsers paint a default outline that mouse users find jarring.
   Suppress focus rings on programmatic-focus targets unless the user is actually
   keyboard-navigating. */
[tabindex="-1"]:focus { outline: none; }
*:focus:not(:focus-visible) { outline: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* — Skip link — */
.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--canvas);
  padding: 8px 14px;
  border-radius: var(--r-button);
  z-index: 100;
  font-size: var(--text-micro);
  font-weight: 500;
}
.skip-link:focus-visible { top: 12px; outline: none; }

/* ── Nav ────────────────────────────────────────────── */
header.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
header.nav.scrolled {
  border-bottom-color: rgba(17, 17, 17, 0.06);
}
header.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark .dot { color: var(--orange-flag); }
.nav-links {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a {
  color: inherit;
  padding: 8px 14px;
  border-radius: var(--r-button);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover { background: var(--whisper); text-decoration: none; }
.nav-links a.cta {
  background: var(--ink);
  color: var(--canvas);
  margin-left: 8px;
}
.nav-links a.cta:hover { background: #000; color: var(--canvas); }
@media (min-width: 720px) {
  .nav-links { display: flex; }
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-button);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-body);
  letter-spacing: -0.005em;
  background: var(--ink);
  color: var(--canvas);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, transform .12s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-card);
}
.btn:hover { background: #000; box-shadow: var(--shadow-lift); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.lg { padding: 16px 28px; font-size: var(--text-body-lg); }
.btn.light {
  background: var(--canvas);
  color: var(--indigo);
  box-shadow: var(--shadow-inset);
}
.btn.light:hover { background: var(--whisper); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding: 12px 18px;
}
.btn.ghost:hover { background: var(--whisper); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(72px, 9vw, 132px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
/* Phoenix gradient blob, top-left */
.hero::before {
  content: "";
  position: absolute;
  top: -25%;
  left: -20%;
  width: 75%;
  height: 90%;
  background: var(--phoenix);
  filter: blur(80px) saturate(85%);
  opacity: 0.45;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
/* Cyan glow blob, bottom-right */
.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 60%;
  height: 80%;
  background: var(--cyan-glow);
  filter: blur(90px) saturate(85%);
  opacity: 0.30;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-inset);
  margin-bottom: 32px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--orange-flag);
  border-radius: 50%;
}

.hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 7.2vw, var(--text-display-xl));
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 17ch;
}
.hero h1 em {
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--ink-soft);
  display: block;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  animation: rise .55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero h1 .word:nth-child(1) { animation-delay: .10s; }
.hero h1 .word:nth-child(2) { animation-delay: .16s; }
.hero h1 .word:nth-child(3) { animation-delay: .22s; }
.hero h1 .word:nth-child(4) { animation-delay: .28s; }
.hero h1 .word:nth-child(5) { animation-delay: .34s; }
.hero h1 .word:nth-child(6) { animation-delay: .40s; }
.hero h1 .word:nth-child(7) { animation-delay: .46s; }
.hero h1 .word:nth-child(8) { animation-delay: .52s; }

.hero .sub {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 40px;
  letter-spacing: -0.005em;
  opacity: 0;
  animation: rise .55s ease .65s forwards;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  animation: rise .55s ease .78s forwards;
}
.hero-ctas .ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--ink);
}
.hero-ctas .ghost-link::after { content: "→"; transition: transform .18s ease; }
.hero-ctas .ghost-link:hover { text-decoration: none; }
.hero-ctas .ghost-link:hover::after { transform: translateX(3px); }

.hero .proof {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise .55s ease .9s forwards;
}
.hero .proof .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-micro);
  color: var(--ink-soft);
  font-weight: 500;
}
.hero .proof .badge::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--ink);
  border-radius: 4px;
  flex-shrink: 0;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8 l3 3 l7 -7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8 l3 3 l7 -7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat;
}

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

/* ── Hero illustration: 3D-tilted phone + floating spec cards ──────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
.hero-text { min-width: 0; }

.hero-illust {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.05;
  position: relative;
  opacity: 0;
  animation: rise .7s ease .85s forwards;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
/* Mobile: drop the floating spec cards so the phone fills the frame cleanly.
   Container is sized so the 9/19.5 phone fits with breathing room — no overflow
   into the proof-badge row above or the section below. */
@media (max-width: 879px) {
  .hero-illust {
    max-width: 280px;
    aspect-ratio: 9 / 14;
    margin-top: 12px;
  }
  .hero-illust .hi-card,
  .hero-illust .hi-spark { display: none !important; }
  .hero-illust .hi-phone { width: 66%; }
}
.hi-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: stage-pan 14s ease-in-out infinite;
}

/* Soft warm glow behind the phone */
.hi-glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 78%;
  height: 70%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(60% 70% at 35% 35%, rgba(232, 64, 13, 0.22) 0%, transparent 70%),
    radial-gradient(60% 60% at 75% 65%, rgba(180, 220, 235, 0.5) 0%, transparent 75%);
  filter: blur(40px) saturate(110%);
  border-radius: 50%;
  pointer-events: none;
}

/* Phone — tilted with perspective, screen is the real sample screenshot */
.hi-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56%;
  aspect-ratio: 9 / 19.5;
  transform: translate(-50%, -50%) rotateY(-14deg) rotateX(5deg);
  transform-style: preserve-3d;
  animation: phone-float 7s ease-in-out infinite;
  will-change: transform;
}
.hi-phone-shadow {
  position: absolute;
  left: 5%; right: 5%; bottom: -16px;
  height: 36px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(17,17,17,0.30), transparent 70%);
  filter: blur(14px);
  transform: translateZ(-40px);
  border-radius: 50%;
}
.hi-phone-frame {
  position: absolute;
  inset: 0;
  background: #0f0f0f;
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(17,17,17,0.12),
    0 30px 60px -20px rgba(17,17,17,0.35),
    inset 0 0 0 2px #1f1f1f,
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.hi-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #050505;
  border-radius: 9999px;
  z-index: 3;
}
.hi-screen {
  position: absolute;
  inset: 8px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--canvas);
}
.hi-screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Floating cards */
.hi-card {
  position: absolute;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: var(--r-card);
  box-shadow: 0 12px 28px -10px rgba(17,17,17,0.18), 0 0 0 1px rgba(255,255,255,0.4) inset;
  padding: 12px 14px;
  font-family: var(--font-sans);
  z-index: 2;
  will-change: transform;
}
.hi-card--palette {
  left: 4%;
  top: 28%;
  display: flex;
  gap: 8px;
  align-items: center;
  transform: rotateY(8deg) rotateX(-4deg) translateZ(40px);
  animation: card-bob-a 6s ease-in-out infinite;
}
.hi-card--palette .hi-dot {
  width: 16px; height: 16px; border-radius: 50%;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.12);
}
.hi-card--type {
  right: 2%;
  top: 12%;
  display: flex; align-items: center; gap: 10px;
  transform: rotateY(-10deg) rotateX(-2deg) translateZ(50px);
  animation: card-bob-b 6.5s ease-in-out infinite;
}
.hi-card--type .hi-type-glyph {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hi-card--type .hi-type-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.hi-card--spec {
  right: 4%;
  bottom: 18%;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-flag);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transform: rotateY(-8deg) rotateX(4deg) translateZ(35px);
  animation: card-bob-c 7s ease-in-out infinite;
}
.hi-card--spec svg { color: var(--orange-flag); }

/* Sparkles */
.hi-spark {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 3;
}
.hi-spark svg { width: 100%; height: 100%; }
.hi-spark--a {
  left: 6%;
  top: 8%;
  animation: spark-twinkle 3.4s ease-in-out infinite;
}
.hi-spark--b {
  right: 24%;
  bottom: 6%;
  width: 16px;
  height: 16px;
  animation: spark-twinkle 4.1s ease-in-out infinite .9s;
}

@keyframes phone-float {
  0%, 100% { transform: translate(-50%, -50%) rotateY(-14deg) rotateX(5deg) translateY(0); }
  50%      { transform: translate(-50%, -50%) rotateY(-12deg) rotateX(4deg) translateY(-10px); }
}
@keyframes card-bob-a {
  0%, 100% { transform: rotateY(8deg) rotateX(-4deg) translate3d(0, 0, 40px); }
  50%      { transform: rotateY(7deg) rotateX(-3deg) translate3d(0, -6px, 45px); }
}
@keyframes card-bob-b {
  0%, 100% { transform: rotateY(-10deg) rotateX(-2deg) translate3d(0, 0, 50px); }
  50%      { transform: rotateY(-9deg) rotateX(-1deg) translate3d(0, -8px, 55px); }
}
@keyframes card-bob-c {
  0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translate3d(0, 0, 35px); }
  50%      { transform: rotateY(-7deg) rotateX(5deg) translate3d(0, -5px, 40px); }
}
@keyframes spark-twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.9) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.15) rotate(25deg); }
}
@keyframes stage-pan {
  0%, 100% { transform: rotateY(0deg); }
  50%      { transform: rotateY(2.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow,
  .hero h1 .word,
  .hero .sub,
  .hero-ctas,
  .hero .proof,
  .hero-illust { opacity: 1; animation: none; }
  .hero-illust *, .hi-stage, .hi-phone, .hi-card, .hi-spark { animation: none !important; }
}

/* ── Reveal-on-scroll utility ───────────────────────── */
.reveal { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
.js-reveal .reveal { opacity: 0; transform: translateY(16px); }
.js-reveal .reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Section frame ──────────────────────────────────── */
section { padding: var(--section-y) 0; }
section.alt { background: var(--whisper); }
section h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, var(--text-heading-lg));
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 22ch;
  color: var(--ink);
}
section .lede {
  font-size: var(--text-body-lg);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 56px;
  letter-spacing: -0.005em;
}

/* ── How it works — 3 step cards ────────────────────── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.step {
  background: var(--canvas);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow-inset);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.step .num {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-subheading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
}
.step p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* ── What you get — checklist ───────────────────────── */
.checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 760px) {
  .checklist { grid-template-columns: 1fr 1fr; gap: 0 56px; }
}
.check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 24px 0;
  align-items: start;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}
.check:last-child { border-bottom: 0; }
.check .mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--canvas);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.check h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-body-lg);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}
.check p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* ── Sample gallery — mobile-frame mockups ──────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.sample {
  background: var(--canvas);
  border-radius: var(--r-card);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-inset);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow .3s ease;
  cursor: pointer;
}
.sample:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}
.sample:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.sample .phone {
  aspect-ratio: 9 / 19.5;
  background: var(--ink);
  border-radius: 32px;
  padding: 6px;
  position: relative;
  margin: 0 auto 16px;
  max-width: 220px;
  box-shadow:
    0 0 0 1px rgba(17,17,17,0.08),
    0 8px 24px -10px rgba(17,17,17,0.18),
    inset 0 0 0 2px #2a2a2a;
}
.sample .phone .screen {
  position: absolute;
  inset: 6px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--canvas);
  display: flex;
}
.sample .phone .screen img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.sample .phone .island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 18px;
  background: var(--ink);
  border-radius: 9999px;
  z-index: 3;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.06);
}
.sample .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sample h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  margin: 0 0 2px;
  color: var(--ink);
}
.sample p {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
  letter-spacing: 0.01em;
}
.sample .arrow {
  width: 28px; height: 28px;
  border-radius: 9999px;
  background: var(--whisper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
  flex-shrink: 0;
}
.sample:hover .arrow {
  background: var(--ink);
  color: var(--canvas);
  transform: translate(2px, -2px);
}
.gallery-caveat {
  margin-top: 36px;
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ── About ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 760px) { .about-grid { grid-template-columns: 1.2fr 0.8fr; gap: 64px; } }
.about-text p {
  font-size: var(--text-body-lg);
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.about-text .sig {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: var(--text-body-lg);
  color: var(--ink);
  margin-top: 16px;
  font-weight: 500;
}
.about-art {
  background: var(--whisper);
  border-radius: var(--r-card);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.about-art svg { width: 78%; height: 78%; }

/* ── Trust tiles ────────────────────────────────────── */
.trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: var(--canvas);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-inset);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tile .mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--canvas);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.tile.accent-pink   { background: var(--petal-pink); }
.tile.accent-mint   { background: var(--mint); }
.tile.accent-canary { background: var(--canary); }
.tile.accent-lav    { background: var(--lavender); }
.tile.accent-pink   .mark,
.tile.accent-mint   .mark,
.tile.accent-canary .mark,
.tile.accent-lav    .mark { background: rgba(17, 17, 17, 0.85); }
.tile h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-body-lg);
  margin: 0;
  letter-spacing: -0.015em;
}
.tile p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}
.tile.accent-pink p,
.tile.accent-mint p,
.tile.accent-canary p,
.tile.accent-lav p { color: rgba(17, 17, 17, 0.78); }

/* ── Form section ───────────────────────────────────── */
#sample-form {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
#sample-form::before {
  content: "";
  position: absolute;
  inset: -10% -10% -50% 30%;
  background: var(--cyan-glow);
  filter: blur(90px) saturate(85%);
  opacity: 0.35;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.form-card {
  background: var(--canvas);
  border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-xl);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.form-card h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 36px);
}
.form-card .lede {
  margin-bottom: 32px;
  font-size: 16px;
}
.form-card label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin: 18px 0 6px;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.form-card label .req { color: var(--orange-flag); margin-left: 2px; }
.form-card label .opt {
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 12px;
  margin-left: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.form-card input, .form-card textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid rgba(17, 17, 17, 0.10);
  border-radius: var(--r-input);
  transition: border-color .15s ease, box-shadow .15s ease;
  letter-spacing: -0.003em;
}
.form-card input:focus, .form-card textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}
.form-card .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 600px) {
  .form-card .row { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.form-card .submit {
  margin-top: 28px;
  width: 100%;
}
.form-card .micro {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-mute);
}
.honey {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}
.form-error {
  background: rgba(232, 64, 13, 0.08);
  color: #b8350e;
  border-radius: var(--r-input);
  padding: 12px 14px;
  margin: 16px 0 0;
  font-size: 14px;
  display: none;
}
.form-error.show { display: block; }
.form-success {
  text-align: center;
  padding: 32px 0;
}
.form-success .mark {
  width: 56px; height: 56px;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--canvas);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
  animation: pop .5s cubic-bezier(0.2, 1.5, 0.4, 1);
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.form-success p {
  color: var(--ink-soft);
  margin: 0 0 24px;
  font-size: 16px;
}
.hidden { display: none !important; }

/* ── Footer ─────────────────────────────────────────── */
footer.site {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 32px;
}
footer.site a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
footer.site a:hover { color: var(--canvas); text-decoration: underline; }
footer.site .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 720px) {
  footer.site .row { grid-template-columns: 2fr 1fr 1fr; }
}
footer.site .wordmark { color: var(--canvas); font-size: 22px; }
footer.site .wordmark .dot { color: var(--orange-flag); }
footer.site .tagline { font-size: 14px; max-width: 36ch; margin: 14px 0 0; opacity: .8; line-height: 1.55; }
footer.site .col-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin: 0 0 14px;
}
footer.site ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 2; }
footer.site .legal {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}

/* ── Lightbox ───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox.show { display: flex; animation: fade-in .25s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure {
  background: var(--canvas);
  border-radius: var(--r-card);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  margin: 0;
  box-shadow: var(--shadow-xl);
}
.lightbox .close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--whisper);
  border: none;
  border-radius: var(--r-button);
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.lightbox .close:hover { background: var(--ink); color: var(--canvas); }
.lightbox figcaption {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}
.lightbox .phone {
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: var(--ink);
  border-radius: 38px;
  padding: 7px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(17,17,17,0.08),
    0 30px 60px -20px rgba(17,17,17,0.4),
    inset 0 0 0 2px #2a2a2a;
}
.lightbox .phone .screen {
  position: absolute;
  inset: 7px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--canvas);
  display: flex;
}
.lightbox .phone .screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.lightbox .phone .island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: var(--ink);
  border-radius: 9999px;
  z-index: 3;
}

/* ── Legal pages ────────────────────────────────────── */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 96px) 24px;
}
.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 24px;
  text-decoration: none;
  font-weight: 500;
}
.legal-page .back::before { content: "←"; }
.legal-page .back:hover { color: var(--ink); }
.legal-page h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  line-height: 1.05;
}
.legal-page .updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 40px;
  letter-spacing: 0.02em;
}
.legal-page h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-subheading);
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}
.legal-page h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  margin: 20px 0 8px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.legal-page p, .legal-page li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
.legal-page ul { padding-left: 24px; }
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: var(--ink); }
.legal-page p a, .legal-page li a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.legal-page p a:hover, .legal-page li a:hover { text-decoration-thickness: 2px; }
.legal-page hr { border: 0; border-top: 1px solid rgba(17, 17, 17, 0.08); margin: 32px 0; }

@media print {
  header.nav, footer.site { display: none; }
  .legal-page { padding: 24px; max-width: none; }
  body { background: var(--canvas); color: #000; }
}
