/* AlloScribe site, 2026 redesign.
   Light and open: no frames or drawn UI. Product imagery is always a real
   screenshot, shown large and unadorned. Motion is limited to state changes
   the visitor asks for and gentle reveals further down the page. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ink: #0a0f1a;
  --ink-2: #2b3445;
  --muted: #5e687a;
  --faint: #8a93a4;
  --line: #e6eaf0;
  --line-2: #d9dfe8;
  --brand: #2e7dc7;
  --brand-ink: #1d63a8;
  --brand-soft: #e3effa;
  --coral: #ec7f52;
  --dark: #0b111c;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --col: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shot-shadow: 0 1px 2px rgba(10, 15, 26, 0.05), 0 30px 70px -30px rgba(15, 40, 80, 0.32);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--col) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section.tight-top { padding-top: 0; }
.soft { background: var(--bg-soft); }

/* A real screenshot, shown as itself. */
.shot { border-radius: 16px; border: 1px solid var(--line-2); box-shadow: var(--shot-shadow); background: #fff; overflow: hidden; }
.shot img { width: 100%; height: auto; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1b2433; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--faint); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: background-color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg-soft); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .signin { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-cta .signin:hover { background: var(--bg-soft); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta .signin { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: block; }
  .mobile-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
  .nav.open .mobile-menu { grid-template-rows: 1fr; }
  .mobile-menu > div { overflow: hidden; }
  .mobile-menu nav { display: grid; padding: 4px var(--gutter) 16px; border-top: 1px solid var(--line); }
  .mobile-menu a { padding: 12px 2px; font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) { .logo img { height: 32px; } .nav-cta .btn { padding: 0 12px; } }

/* ── Type ─────────────────────────────────────────────────────────────── */
.h-display { font-size: clamp(42px, 7vw, 86px); letter-spacing: -0.045em; line-height: 1.0; }
.h-section { font-size: clamp(32px, 4.2vw, 50px); letter-spacing: -0.035em; line-height: 1.05; }
.h-card { font-size: clamp(19px, 1.8vw, 22px); letter-spacing: -0.02em; line-height: 1.25; }
.lede { font-size: clamp(17px, 1.45vw, 19px); color: var(--muted); line-height: 1.6; max-width: 62ch; }
.blue { color: var(--brand); }
.section-head { display: grid; gap: 16px; max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ── Hero: static, typographic, on a soft brand field ────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 9vw, 112px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 50% 0%, rgba(46, 125, 199, 0.20), transparent 70%),
    radial-gradient(30% 35% at 85% 30%, rgba(236, 127, 82, 0.14), transparent 70%),
    radial-gradient(35% 40% at 12% 40%, rgba(46, 125, 199, 0.10), transparent 70%),
    linear-gradient(to bottom, #f3f8fd, #ffffff 85%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29, 99, 168, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 99, 168, 0.06) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 20%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 20%, #000, transparent 75%);
}
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 24px; }
.hero-copy .lede { max-width: 640px; }
.hero h1 span { display: block; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-note { font-size: 13.5px; color: var(--faint); }

/* ── Showcase: the real app, large ───────────────────────────────────── */
.showcase { position: relative; max-width: 1160px; margin: 0 auto; padding-right: clamp(70px, 17vw, 220px); }
.showcase .desk { position: relative; aspect-ratio: 2200 / 1375; }
.showcase .desk img, .showcase .mob img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.showcase .mob { position: absolute; right: 0; bottom: -7%; width: clamp(120px, 25%, 270px); aspect-ratio: 780 / 1688; border-radius: 22px; }
@media (max-width: 640px) { .showcase { padding-right: 18%; } .showcase .mob { width: 34%; border-radius: 14px; bottom: -10%; } }

/* ── Fact strip ───────────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(80px, 10vw, 128px); }
.fact { display: grid; gap: 4px; }
.fact b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.fact span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 20px; } }

/* ── How it works: three compact steps ───────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); margin-top: clamp(40px, 5vw, 56px); }
.step { display: grid; gap: 12px; align-content: start; }
.step .crop { border-radius: 16px; border: 1px solid var(--line-2); overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3.4; margin-bottom: 8px; }
.step .crop img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s var(--ease); }
.step:hover .crop img { transform: scale(1.02); }
.step .num { font: 500 13px/1 var(--mono); color: var(--brand); }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 520px; } }

/* ── Split rows (text + real screenshot) ─────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: 16px; }
.ticks li svg { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.ticks b { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* ── Features: plain text, three columns ─────────────────────────────── */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: clamp(40px, 5vw, 56px); }
.feature { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.feature h3 { font-size: 17px; letter-spacing: -0.015em; }
.feature p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .feature-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; gap: 24px; } }

/* ── Video ────────────────────────────────────────────────────────────── */
.video-shell { margin-top: clamp(36px, 5vw, 56px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shot-shadow); background: var(--bg-soft); }
.video-shell video { width: 100%; aspect-ratio: 16 / 9; }

/* ── Specialties ──────────────────────────────────────────────────────── */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: clamp(36px, 5vw, 56px); }
.spec { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.spec .tags { font: 400 13px/1.4 var(--mono); color: var(--faint); }
.spec p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; gap: 24px; } }

/* ── Data handling ────────────────────────────────────────────────────── */
.privacy { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.privacy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.privacy-list div { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.privacy-list h3 { font-size: 17px; letter-spacing: -0.015em; }
.privacy-list p { font-size: 15px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--brand-ink); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .privacy { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .privacy-list { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.faq-side .lede { font-size: 16.5px; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h3 { font: 500 12.5px/1 var(--mono); color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.qa { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; font-weight: 600; font-size: 16.5px; letter-spacing: -0.012em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { position: relative; width: 14px; height: 14px; flex: none; }
.qa summary .plus::before, .qa summary .plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--ink-2); transition: transform 0.3s var(--ease); }
.qa summary .plus::after { transform: rotate(90deg); }
.qa[open] summary .plus::after { transform: rotate(0); }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa .a { padding: 0 0 20px; color: var(--muted); font-size: 15.5px; max-width: 68ch; display: grid; gap: 10px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* ── Closing CTA ──────────────────────────────────────────────────────── */
.closing { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px); text-align: center; display: grid; justify-items: center; gap: 20px; }
.closing .hero-bg { border-radius: inherit; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: #aab4c4; margin-top: clamp(72px, 9vw, 120px); }
.footer a { color: #d8dfea; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 64px 48px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { font-size: 14.5px; max-width: 34ch; }
.footer h4, .footer .footer-h { font: 500 12.5px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: #77839a; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 32px; border-top: 1px solid #1f2837; font-size: 13.5px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── Gentle reveals below the fold (progressive; visible where unsupported) ── */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

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

/* ══ Inner pages ═════════════════════════════════════════════════════════ */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 16px; }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 60px); letter-spacing: -0.04em; line-height: 1.04; max-width: 18ch; }
.page-hero .lede { max-width: 640px; }
.page-meta { font: 400 13.5px/1.4 var(--mono); color: var(--faint); }

/* Long-form text (legal, security, about) with a sticky contents list. */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-block: clamp(48px, 7vw, 88px); }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; font-size: 14px; }
.toc b { font: 500 12.5px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.toc a { color: var(--muted); text-decoration: none; padding: 5px 0; border-left: 2px solid transparent; padding-left: 12px; margin-left: -14px; }
.toc a:hover { color: var(--ink); border-left-color: var(--line-2); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; display: none; } }

.prose { max-width: 72ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; color: var(--ink); margin-top: 48px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; letter-spacing: -0.015em; color: var(--ink); margin-top: 28px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--brand-ink); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; color: var(--ink); font-size: 13.5px; }
.prose tr:last-child td { border-bottom: 0; }
.callout { border: 1px solid var(--line-2); background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; font-size: 15.5px; }
.callout strong { display: block; margin-bottom: 4px; }
/* Details the business must supply before launch. Deliberately conspicuous. */
.todo { background: #fff4d6; color: #7a5200; border-radius: 4px; padding: 0 4px; font-weight: 500; }

/* Contact and link cards. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; background: #fff; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--ease); }
a.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { font-size: 17px; letter-spacing: -0.015em; }
.card p { font-size: 15px; color: var(--muted); }
.card .addr { font: 500 14.5px/1.4 var(--mono); color: var(--brand-ink); word-break: break-all; }

/* Contact page: space between a section heading and the cards that follow it. */
.section-head + .cards { margin-top: clamp(32px, 4vw, 48px); }

/* Inner pages: let wide tables scroll inside .table-wrap rather than widening the page on small screens. */
@media (max-width: 900px) { .doc, .privacy { grid-template-columns: minmax(0, 1fr); } }
