/* SnapScope site v3. Paper-white surface, teal accent, Geist, double-bezel cards. Light-locked. */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #F7F8FA;
  --ink: #0B1220;
  --dim: #5A6478;
  --faint: #8892A6;
  --hairline: rgba(15, 23, 42, 0.10);
  --hairline-strong: rgba(15, 23, 42, 0.18);
  --shell: rgba(15, 23, 42, 0.035);
  --core: #FFFFFF;
  --core-2: #EEF2F5;
  --accent: #2dd4bf;
  --accent-deep: #0d9488;
  --accent-ink: #031614;
  --shadow-tint: 15, 23, 42;
  --r-shell: 1.75rem;
  --r-core: calc(1.75rem - 0.4rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* spacing scale — one value per role, used everywhere that role recurs */
  --nav-clear: 168px;
  --gap-card: 22px;
  --pad-card: 34px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Skip link — hidden until focused, first thing keyboard users hit */
.skip-link {
  position: absolute;
  top: -60px;
  left: 14px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: top 300ms var(--ease);
}
.skip-link:focus { top: 14px; }

/* Ambient teal orbs + grain, fixed and inert */
.atmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 82% -6%, rgba(13, 148, 136, 0.10), transparent 68%),
    radial-gradient(640px 520px at -8% 42%, rgba(45, 212, 191, 0.08), transparent 70%),
    radial-gradient(500px 420px at 60% 110%, rgba(13, 148, 136, 0.06), transparent 70%);
}
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }

/* ---------- Floating pill nav ---------- */
.nav-shell {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 9px 10px 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 32px rgba(var(--shadow-tint), 0.10);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--dim);
  transition: color 400ms var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--ink); font-weight: 600; }

.logo-mark {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-deep) 100%);
  position: relative;
  flex: none;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 5.5px;
  border-radius: 3px;
  border: 2.5px solid var(--accent-ink);
  border-bottom: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 500ms var(--ease), background 500ms var(--ease), border-color 500ms var(--ease), box-shadow 500ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  padding-right: 8px;
}
.btn-primary:hover { box-shadow: 0 0 0 5px rgba(11, 18, 32, 0.08); }
.btn-primary .cap {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform 500ms var(--ease);
}
.btn-primary:hover .cap { transform: translate(2px, -1px) scale(1.05); }

.btn-ghost { border-color: var(--hairline-strong); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(11, 18, 32, 0.3); background: rgba(11, 18, 32, 0.03); }

.btn-accent {
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  padding-right: 8px;
}
.btn-accent:hover { box-shadow: 0 0 28px rgba(45, 212, 191, 0.45); }
.btn-accent .cap {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform 500ms var(--ease);
}
.btn-accent:hover .cap { transform: translate(2px, -1px) scale(1.05); }

/* text-link variant — for secondary hero CTAs that don't need button weight */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hairline-strong);
  font-size: 15px;
  font-weight: 550;
  transition: color 400ms var(--ease), text-decoration-color 400ms var(--ease);
}
.btn-text:hover { color: var(--ink); text-decoration-color: var(--accent-deep); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.05; font-weight: 600; text-wrap: balance; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin-bottom: 26px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 10fr 11fr;
  gap: 64px;
  align-items: center;
  padding-top: var(--nav-clear);
  padding-bottom: 120px;
  min-height: min(92dvh, 900px);
}
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  max-width: 12ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-deep) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  font-size: 1.13rem;
  color: var(--dim);
  margin: 28px 0 40px;
  max-width: 44ch;
}
.hero-ctas { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }

/* ---------- Home hero (umbrella page) ---------- */
.home-hero { padding-top: var(--nav-clear); min-height: 70dvh; }
.home-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 16ch; }
.home-hero .lede { color: var(--dim); font-size: 1.1rem; max-width: 50ch; margin: 26px 0 56px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-card);
  max-width: 900px;
}
.product-grid .core {
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  height: 100%;
}
.product-grid h3 { font-size: 1.2rem; }
.product-grid p { margin: 0; color: var(--dim); }
.product-grid .btn { margin-top: auto; }

/* ---------- Double-bezel shells ---------- */
.shell {
  background: var(--shell);
  border: 1px solid var(--hairline);
  border-radius: var(--r-shell);
  padding: 7px;
  box-shadow: 0 20px 60px rgba(var(--shadow-tint), 0.09);
}
.core {
  background: var(--core);
  border-radius: var(--r-core);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

/* ---------- Hero demo (real mini result-page UI) ---------- */
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.demo-chrome .dots { display: flex; gap: 6px; }
.demo-chrome .dots i {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
}
.demo-chrome .addr {
  flex: 1;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--faint);
  background: rgba(15, 23, 42, 0.04);
  border-radius: 999px;
  padding: 5px 14px;
}
.demo-body { display: grid; grid-template-columns: 5fr 7fr; min-height: 340px; }
.demo-preview {
  border-right: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.10) 0%, transparent 30%),
    var(--core-2);
  position: relative;
  overflow: hidden;
}
.demo-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.demo-preview .cap-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 12.5px;
}
.demo-side { display: flex; flex-direction: column; }
.demo-tabs { display: flex; gap: 6px; padding: 12px 14px 0; }
.demo-tabs button {
  font: 550 12.5px 'Geist', sans-serif;
  color: var(--dim);
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: all 400ms var(--ease);
}
.demo-tabs button:hover { color: var(--ink); border-color: var(--hairline-strong); }
.demo-tabs button.on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.demo-out {
  flex: 1;
  margin: 12px 14px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.025);
  border: 1px solid var(--hairline);
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dim);
  overflow: auto;
}
.demo-out[data-view] > div { display: none; }
.demo-out[data-view="ocr"] .v-ocr,
.demo-out[data-view="sum"] .v-sum,
.demo-out[data-view="csv"] .v-csv { display: block; }
.demo-out h4 { margin: 0 0 6px; font-size: 12px; color: var(--ink); letter-spacing: 0; }
.demo-out ul { margin: 6px 0 0; padding-left: 16px; }
.demo-out table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
}
.demo-out th, .demo-out td {
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid var(--hairline);
}
.demo-out th { color: var(--ink); font-weight: 600; }
.demo-note {
  padding: 0 16px 12px;
  font-size: 11px;
  color: var(--faint);
}

/* ---------- Sections ---------- */
/* optical vertical rhythm: bottom slightly deeper than top */
section { padding: 122px 0 140px; }
.sec-head { max-width: 640px; margin-bottom: 68px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.sec-head p { color: var(--dim); margin: 18px 0 0; font-size: 1.05rem; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap-card); }
.bento .shell { padding: 6px; border-radius: 1.5rem; box-shadow: none; border-color: var(--hairline); }
.bento .core { padding: var(--pad-card); height: 100%; border-radius: calc(1.5rem - 0.35rem); }
.b-7 { grid-column: span 7; }
.b-5 { grid-column: span 5; }
.bento h3 { font-size: 1.15rem; margin-bottom: 14px; letter-spacing: -0.02em; }
.bento p { margin: 0; color: var(--dim); font-size: 15px; }
.chipline { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.chip {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 5px 12px;
}
kbd {
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  background: rgba(15, 23, 42, 0.045);
  border: 1px solid var(--hairline-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  padding: 4px 9px;
}
.tall-visual {
  margin-top: 24px;
  height: 130px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(180deg, rgba(13, 148, 136, 0.14) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, rgba(45, 212, 191, 0.10), transparent 80%);
  border: 1px solid var(--hairline);
}

/* ---------- AI trio ---------- */
/* staggered offsets break the 3-equal-column symmetry */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 1px solid var(--hairline); padding-top: 52px; }
.trio > div:nth-child(2) { margin-top: 34px; }
.trio > div:nth-child(3) { margin-top: 12px; }
.trio h3 { font-size: 1.08rem; margin-bottom: 14px; letter-spacing: -0.015em; }
.trio h3 span { color: var(--accent-deep); font-family: 'Geist Mono', monospace; font-size: 0.85em; margin-right: 10px; }
.trio p { margin: 0; color: var(--dim); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-card); }
.steps .core { padding: var(--pad-card); }
.steps h3 { font-size: 1.05rem; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-card); max-width: 800px; }
.plan-shell.featured { border-color: transparent; margin-top: -10px; box-shadow: 0 24px 50px rgba(13, 148, 136, 0.14); }
.plan-shell.featured .core { border-color: rgba(45, 212, 191, 0.35); }
.plan { padding: var(--pad-card); display: flex; flex-direction: column; gap: 24px; height: 100%; }
.plan h3 { font-size: 0.95rem; color: var(--dim); font-weight: 550; letter-spacing: 0; }
.price { font-size: 2.4rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.price small { font-size: 0.9rem; font-weight: 450; color: var(--dim); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--dim); }
.plan li::before { content: "✓"; color: var(--accent-deep); font-weight: 700; margin-right: 10px; }
.plan .btn { justify-content: center; margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  font-weight: 550;
  font-size: 1.02rem;
  list-style: none;
  padding: 26px 36px 26px 0;
  position: relative;
  transition: color 400ms var(--ease);
}
.faq summary:hover { color: var(--accent-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform 500ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--dim); margin: 0 0 28px; font-size: 15px; max-width: 60ch; }

/* ---------- CTA band ---------- */
.cta-band .core {
  padding: 80px 52px;
  text-align: center;
  background:
    radial-gradient(480px 260px at 50% 120%, rgba(45, 212, 191, 0.14), transparent 70%),
    var(--core);
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 18px; }
.cta-band p { color: var(--dim); margin: 0 0 36px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--hairline); padding: 48px 0 64px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--dim); text-decoration: none; transition: color 400ms var(--ease); }
footer a:hover { color: var(--ink); }
footer nav { display: flex; gap: 22px; }

/* ---------- Articles (blog + privacy) ---------- */
.article { max-width: 700px; margin: 0 auto; padding: var(--nav-clear) 24px 110px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; }
.article h2 { font-size: 1.35rem; margin-top: 2.4em; letter-spacing: -0.02em; }
.article p, .article li { color: var(--dim); }
.article strong { color: var(--ink); }
.article a { color: var(--accent-deep); text-decoration-color: rgba(13, 148, 136, 0.4); }
.article .meta { color: var(--faint); font-size: 14px; font-family: 'Geist Mono', monospace; }
.article code {
  background: rgba(15, 23, 42, 0.045);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 2px 7px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.85em;
  color: var(--ink);
}
.article ol, .article ul { padding-left: 22px; }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(7px);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
  }
  .rv.in { opacity: 1; transform: none; filter: none; }
  .rv:nth-child(2) { transition-delay: 90ms; }
  .rv:nth-child(3) { transition-delay: 180ms; }
  .rv:nth-child(4) { transition-delay: 270ms; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav { gap: 14px; padding-left: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 130px; padding-bottom: 70px; min-height: 0; }
  .home-hero { padding-top: 130px; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-preview { min-height: 150px; border-right: none; border-bottom: 1px solid var(--hairline); }
  .bento { grid-template-columns: 1fr; }
  .b-7, .b-5 { grid-column: span 1; }
  .trio, .steps { grid-template-columns: 1fr; }
  .trio > div:nth-child(2), .trio > div:nth-child(3) { margin-top: 0; }
  .pricing { grid-template-columns: 1fr; }
  .plan-shell.featured { margin-top: 0; }
  section { padding: 76px 0; }
  .article { padding-top: 120px; }
}

/* ---------- v3: cinematic ambience + interaction polish ---------- */
@media (prefers-reduced-motion: no-preference) {
  .atmos { will-change: transform; }
  .atmos::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
      radial-gradient(420px 340px at 30% 30%, rgba(45, 212, 191, 0.05), transparent 70%),
      radial-gradient(520px 400px at 70% 65%, rgba(13, 148, 136, 0.045), transparent 70%);
    animation: drift 26s var(--ease) infinite alternate;
  }
  @keyframes drift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
  }
}

/* Focus visibility (keyboard nav) */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible, .demo-tabs button:focus-visible { outline-offset: 2px; }

/* Pointer + press affordances */
.btn, .demo-tabs button, .faq summary, a { cursor: pointer; }
.demo-tabs button:active { transform: scale(0.97); }

/* Tabular figures for data */
.demo-out table, .price { font-variant-numeric: tabular-nums; }

/* Link underlines in articles meet contrast on paper bg */
.article a { text-underline-offset: 3px; }
