/* Numeralens site. Tokens mirror the product's globals.css so the site and app feel like one thing. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-muted: #eef0f3;
  --fg: #14181f;
  --muted: #5b6472;
  --border: #dfe3e8;
  --primary: #2455c4;
  --primary-hover: #1d47a6;
  --primary-soft: #e8eefb;
  --accent: #0f766e;
  --positive: #1b8a5a;
  --negative: #c8412f;
  --ink: #0b1220;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(20 24 31 / 6%), 0 8px 24px rgb(20 24 31 / 6%);
  --shadow-lg: 0 2px 4px rgb(20 24 31 / 4%), 0 24px 64px -12px rgb(20 40 90 / 22%);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-muted); padding: .1em .35em; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / 88%); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #3b6fe0, var(--primary)); color: #fff; display: grid; place-items: center; font-size: 15px; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--fg); }
.header-cta { margin-left: auto; }
@media (min-width: 880px) { .nav { display: flex; } .header-cta { margin-left: 8px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .15s; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgb(20 40 90 / 20%), inset 0 1px 0 rgb(255 255 255 / 12%); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 6px 18px -6px rgb(36 85 196 / 60%); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-muted); color: var(--fg); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 13px 22px; font-size: 16px; }
.btn-block { width: 100%; }

/* Sections */
section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 96px 0; } }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { color: var(--primary); font-weight: 650; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 780; letter-spacing: -0.035em; }
h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 720; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 680px; margin: 16px 0 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: 17px; }
.more { margin: 20px 0 0; font-weight: 600; }
.more a { text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: 56px; padding-bottom: 72px;
  background:
    radial-gradient(60% 50% at 15% 0%, rgb(36 85 196 / 14%), transparent 70%),
    radial-gradient(45% 40% at 90% 10%, rgb(15 118 110 / 12%), transparent 70%),
    var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(20 24 31 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(20 24 31 / 4%) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000 0%, transparent 65%); }
.hero .wrap { position: relative; }
@media (min-width: 768px) { .hero { padding-top: 64px; } }
.hero-copy { max-width: 1000px; margin: 0 auto; text-align: center; }
.hero-copy .lead { margin: 20px auto 28px; max-width: 720px; }
.hl { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--fg); font-size: 14px; font-weight: 500; text-decoration: none; }
.pill:hover { color: var(--fg); border-color: #c5cdd8; }
.pill-tag { white-space: nowrap; background: var(--primary); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 650; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-copy .hero-ctas { justify-content: center; }
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { font-size: 13px; font-weight: 550; color: #3a4250; background: rgb(255 255 255 / 70%); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

@media (max-width: 479px) {
  .pill { font-size: 13px; gap: 8px; }
  .hero-copy .hero-ctas { flex-direction: column; }
  .hero-copy .hero-ctas .btn { width: 100%; }
}
.nowrap { white-space: nowrap; }

/* Product tour */
.showcase { margin-top: 40px; }
.tabs { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 auto 16px; width: fit-content; max-width: 100%; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; font: inherit; font-size: 14px; font-weight: 550; color: var(--muted); background: transparent; border: 0; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgb(20 24 31 / 12%); }
.frame { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-muted); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d3d8df; }
.frame img { width: 100%; aspect-ratio: 1600 / 1050; object-fit: cover; object-position: top left; transition: opacity .2s; }
.frame img.loading { opacity: .4; }
.frame-caption { text-align: center; color: var(--muted); font-size: 14px; margin: 14px auto 0; max-width: 640px; min-height: 2.6em; }

/* Stats */
.stats-band { padding: 0 0 64px; background: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stats strong { display: block; font-size: 32px; font-weight: 780; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 14px; }

/* Cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #c9d2de; box-shadow: var(--shadow); }
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 20px; height: 20px; }

/* Split */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
@media (min-width: 900px) { .split-media { grid-template-columns: 5fr 6fr; } }
.media { margin: 0; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232455c4'%3E%3Cpath d='M8.1 13.4 4.7 10l-1.1 1.1 4.5 4.5 8.3-8.3-1.1-1.1z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Calculator */
.calc { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.calc-sub { color: var(--muted); margin: 4px 0 20px; font-size: 14px; }
.calc-row { display: block; margin-bottom: 20px; }
.calc-row span { display: flex; justify-content: space-between; font-size: 15px; font-weight: 550; margin-bottom: 8px; }
.calc-row output { font-variant-numeric: tabular-nums; color: var(--primary); font-weight: 700; }
.calc-row input { width: 100%; accent-color: var(--primary); }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.calc-result > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.calc-result span { display: block; font-size: 13px; color: var(--muted); font-weight: 550; }
.calc-result strong { display: block; font-size: clamp(24px, 3vw, 30px); font-weight: 780; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 4px 0; }
.calc-result small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }
.calc-result .calc-ours { border: 2px solid var(--primary); background: var(--primary-soft); }
.calc-ours strong { color: var(--primary); }

/* Dark section */
.section-dark { background: radial-gradient(70% 60% at 85% 20%, rgb(36 85 196 / 35%), transparent 70%), var(--ink); color: #e8ecf2; }
.section-dark .eyebrow { color: #8fb0ff; }
.section-dark .lead, .section-dark .checks li { color: #b7c0cd; }
.section-dark .checks li strong { color: #fff; }
.section-dark .checks li::before { background-color: rgb(143 176 255 / 18%); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238fb0ff'%3E%3Cpath d='M8.1 13.4 4.7 10l-1.1 1.1 4.5 4.5 8.3-8.3-1.1-1.1z'/%3E%3C/svg%3E"); }
.section-dark .media { border-color: rgb(255 255 255 / 12%); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 60%); }

/* Developers */
.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.steps-list li { counter-increment: step; position: relative; padding-left: 40px; color: var(--muted); }
.steps-list li strong { color: var(--fg); }
.steps-list li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.code { background: #0f1520; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); min-width: 0; }
.code-bar { padding: 10px 16px; background: #161e2b; border-bottom: 1px solid #222c3b; font-family: var(--mono); font-size: 12px; color: #8a96a8; }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: #d7deea; }
.code pre code { background: none; padding: 0; font-size: inherit; }
.code .k { color: #c792ea; }
.code .t { color: #82aaff; }
.code .c { color: #6c7a8f; font-style: italic; }

/* Looks */
.looks { display: grid; gap: 20px; align-items: end; }
@media (min-width: 768px) { .looks { grid-template-columns: 1fr 260px; } }
.looks .phone { max-width: 260px; margin: 0 auto; border-radius: 28px; border: 8px solid var(--ink); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
th.ours { color: var(--primary); }
td.ours { background: rgb(36 85 196 / 5%); }
.yes { color: var(--positive); font-weight: 600; }
.no { color: var(--muted); }

/* Founder */
.founder { display: flex; gap: 24px; align-items: flex-start; max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.founder p { margin: 0; font-size: 17px; }
.founder .founder-name { margin-top: 14px; font-size: 15px; color: var(--muted); }
@media (max-width: 560px) { .founder { flex-direction: column; } }

/* Pricing */
.pricing { display: grid; gap: 20px; max-width: 880px; margin: 0 auto; }
@media (min-width: 768px) { .pricing { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.section-alt .plan { background: var(--bg); }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); background: var(--surface); }
.plan-tag { position: absolute; top: -13px; left: 28px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.plan-for { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price strong { font-size: 48px; font-weight: 780; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-size: 20px; }
.price-note { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.plan .checks { margin: 0 0 26px; flex: 1; }
.assurances { list-style: none; padding: 0; margin: 28px auto 0; max-width: 880px; display: grid; gap: 12px; }
@media (min-width: 768px) { .assurances { grid-template-columns: repeat(3, 1fr); } }
.assurances li { font-size: 14px; color: var(--muted); padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.assurances strong { display: block; color: var(--fg); margin-bottom: 2px; }
.founding { margin: 16px auto 0; max-width: 880px; background: var(--primary-soft); border-radius: var(--radius); padding: 16px 20px; font-size: 15px; }
.fine { color: var(--muted); font-size: 14px; max-width: 880px; margin: 16px auto 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* CTA band */
.cta-band { background: radial-gradient(60% 80% at 50% 0%, rgb(36 85 196 / 45%), transparent 70%), var(--ink); color: #fff; border-radius: 24px; padding: 56px 24px; text-align: center; }
.cta-band p { color: #c3cbd8; max-width: 560px; margin: 14px auto 28px; }
.cta-band a:not(.btn) { color: #fff; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #4b5361; }
.cta-band .btn-secondary:hover { background: #1c2433; }

/* Mobile buy bar (home only) */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .home .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 94%); backdrop-filter: blur(10px); border-top: 1px solid var(--border); }
  .home .site-footer { padding-bottom: 96px; }
  .home .mobile-bar.is-hidden { transform: translateY(110%); }
  .home .mobile-bar { transition: transform .2s; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0; font-size: 14px; color: var(--muted); margin-top: 64px; }
.home .site-footer { margin-top: 0; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg); }

/* Prose pages (legal, docs) */
.prose-page { padding: 24px 0 0; }
@media (min-width: 768px) { .prose-page { padding-top: 40px; } }
.prose { max-width: 760px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 20px; }
@media (min-width: 768px) { .prose { padding: 44px 52px; } }
.prose h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { color: #2b313b; }
.prose table { min-width: 0; font-size: 14px; margin: 16px 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; }
.prose pre { background: #14181f; color: #e7eaef; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 8px 8px 0; }
.prose img { border: 1px solid var(--border); border-radius: 8px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

/* Docs layout */
.docs { display: grid; gap: 24px; }
.docs > * { min-width: 0; }
.docs-nav { order: 2; }
@media (min-width: 960px) { .docs { grid-template-columns: 240px 1fr; align-items: start; } .docs-nav { order: 0; } }
.docs-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-size: 14px; }
@media (min-width: 960px) { .docs-nav { position: sticky; top: 80px; } }
.docs-nav h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 6px; }
.docs-nav h2:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-nav a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--fg); text-decoration: none; }
.docs-nav a:hover { background: var(--surface-muted); }
.docs-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.docs .prose { max-width: none; }
