/* Snagfly marketing - shared design system (every page).
   Matches the app (snagfly-web-ui): zinc neutrals, ink primary actions,
   teal only for money / positive signals. Geist, self-hosted. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/geist-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: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/geist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #fafafa;          /* alternate sections */
  --well: #f4f4f5;          /* insets, chips */
  --card: #ffffff;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --fg: #09090b;
  --fg-2: #52525b;          /* body copy on light */
  --fg-3: #71717a;          /* captions */
  --ink: #09090b;           /* primary button */
  --on-ink: #ffffff;
  --money: #0d8074;         /* readable teal text */
  --money-fill: #0da896;
  --money-wash: rgba(13, 168, 150, .1);
  --warn: #b45309;
  --warn-wash: rgba(217, 119, 6, .1);
  --danger: #dc2626;
  --material: rgba(255, 255, 255, .72);
  --shadow-card: 0 1px 2px rgba(9, 9, 11, .04), 0 1px 3px rgba(9, 9, 11, .04);
  --shadow-pop: 0 24px 48px -16px rgba(9, 9, 11, .18), 0 2px 6px rgba(9, 9, 11, .05);
  --radius: 14px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  /* spring (bounce ~.15) as a linear() curve; falls back to ease-out where unsupported */
  --ease-spring: cubic-bezier(.23, 1, .32, 1);
  --ink-deep: #06100e;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --bg-2: #0d0d10;
    --well: #18181b;
    --card: #141417;
    --line: #27272a;
    --line-2: #3f3f46;
    --fg: #fafafa;
    --fg-2: #a1a1aa;
    --fg-3: #8b8b94;
    --ink: #fafafa;
    --on-ink: #09090b;
    --money: #2dd4bf;
    --money-fill: #14b8a6;
    --money-wash: rgba(20, 184, 166, .14);
    --warn: #fbbf24;
    --warn-wash: rgba(251, 191, 36, .12);
    --danger: #f87171;
    --material: rgba(9, 9, 11, .7);
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, .02);
    --shadow-pop: 0 24px 48px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  }
}

@supports (transition-timing-function: linear(0, 1)) {
  :root { --ease-spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.100, 1.078 30.1%, 1.049 32.6%, .999 38.1%, .988 41%, .981 44.5%, .981 50.6%, .998 63.6%, 1.002 72.8%, 1); }
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1rem/1.6 var(--font); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" off; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--fg); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--money-wash); }
.num { font-variant-numeric: tabular-nums; }
.money { color: var(--money); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; font-size: .875rem; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Type scale (size-specific tracking + leading) ────────────────────── */
.display { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.h2, .sec-head h2 { font-size: clamp(1.875rem, 1.4rem + 2.2vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
.h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.018em; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.5; letter-spacing: -.012em; color: var(--fg-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; line-height: 1.4; font-weight: 500; letter-spacing: 0; color: var(--fg-3); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--money-fill); }
.small { font-size: .8125rem; line-height: 1.45; letter-spacing: .002em; color: var(--fg-3); }

.sec-head { max-width: 680px; margin: 0 0 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 14px; }
.sec-head .lead { margin-top: 16px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(.97); transition-duration: 80ms; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-secondary, .btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 1rem; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: .875rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--bg)); }
  .btn-secondary:hover, .btn-ghost:hover { background: var(--well); border-color: var(--line-2); }
}

/* ── Nav (translucent material) ───────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.025em; text-decoration: none; color: var(--fg); flex: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a, .nav-login { padding: 8px 10px; border-radius: 8px; font-size: .875rem; font-weight: 450; color: var(--fg-2); text-decoration: none; transition: color 120ms ease; }
.nav-links a[aria-current="page"] { color: var(--fg); }
@media (hover: hover) { .nav-links a:hover, .nav-login:hover { color: var(--fg); } }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--fg); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg { width: 20px; height: 20px; }
.nav-menu .i-close { display: none; }
.nav-menu[open] .i-open { display: none; }
.nav-menu[open] .i-close { display: block; }
.nav-sheet {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 32px));
  padding: 8px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-pop); border: 1px solid var(--line);
  transform-origin: top right; animation: sheet-in 180ms var(--ease-out);
}
.nav-sheet a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--fg); }
.nav-sheet a:active { background: var(--well); }
.nav-sheet hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
@keyframes sheet-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
@media (max-width: 860px) {
  .nav-links, .nav-login { display: none; }
  .nav-menu { display: block; }
}

/* Nav over a dark full-bleed hero (home): clear until the page scrolls */
.nav-over { transition: background-color 300ms ease, box-shadow 300ms ease; }
.nav-over:not(.scrolled) { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-over:not(.scrolled) .brand, .nav-over:not(.scrolled) .nav-menu summary { color: #fff; }
.nav-over:not(.scrolled) .nav-links a, .nav-over:not(.scrolled) .nav-login { color: rgba(255, 255, 255, .78); }
.nav-over:not(.scrolled) .btn-primary { background: #fff; color: #09090b; }
@media (hover: hover) { .nav-over:not(.scrolled) .nav-links a:hover, .nav-over:not(.scrolled) .nav-login:hover { color: #fff; } }

/* ── Scroll reveal: CSS scroll-driven where supported, IntersectionObserver fallback (site.js) ── */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rv { animation: rv-in linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
  html.rv-io .rv:not(.in) { opacity: 0; translate: 0 28px; }
  html.rv-io .rv { transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-spring); }
}
@keyframes rv-in { from { opacity: 0; translate: 0 28px; } }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section.alt { background: var(--bg-2); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.014em; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.5px solid var(--fg-3); border-bottom: 1.5px solid var(--fg-3);
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq .a { padding: 0 40px 22px 0; color: var(--fg-2); font-size: 1rem; line-height: 1.6; }
.faq .a a { color: var(--fg); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 40px; font-size: .875rem; background: var(--ink-deep); color: #fff;
  --fg: #fafafa; --fg-3: rgba(255, 255, 255, .58); --line: rgba(255, 255, 255, .1); --well: rgba(255, 255, 255, .08); }
.site-footer::before { content: ""; position: absolute; left: 50%; bottom: -380px; width: 1100px; height: 600px; transform: translateX(-50%); z-index: -1; background: radial-gradient(closest-side, rgba(20, 184, 166, .22), transparent); pointer-events: none; }
.site-footer .brand { color: #fff; }
.ft-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px 32px; }
.ft-brand p { margin-top: 14px; max-width: 30ch; color: var(--fg-3); line-height: 1.55; }
.ft-apps { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.ft-apps img { height: 36px; width: auto; }
.ft-h { font-size: .8125rem; font-weight: 500; color: var(--fg); margin-bottom: 12px; }
.ft-col a { display: block; padding: 5px 0; color: var(--fg-3); text-decoration: none; transition: color 120ms ease; }
@media (hover: hover) { .ft-col a:hover { color: var(--fg); } }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: .8125rem; }
.ft-social { display: flex; gap: 4px; }
.ft-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--fg-3); }
.ft-social svg { width: 16px; height: 16px; }
@media (hover: hover) { .ft-social a:hover { color: var(--fg); background: var(--well); } }
@media (max-width: 760px) {
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}

/* ── Accessibility preferences ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
  .nav-sheet { animation: fade-in 150ms ease; }
  *, *::before, *::after { animation-iteration-count: 1 !important; }
}
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .nav { background: var(--bg); backdrop-filter: none; box-shadow: inset 0 -1px 0 var(--fg-3); } :root { --line: var(--line-2); --fg-3: var(--fg-2); } }
