/* =====================================================================
   Alvin marketing design system (loaded after each page's inline styles)

   One file carries the tokens, type scale, header, footer, buttons, cards
   and frames for every marketing page: the homepage, trade pages, pricing,
   about, security, privacy, terms, pilot, 404 and the articles. Page CSS
   inline in each source keeps layout specifics; this file wins on look.

   Type: Inter 4 (self-hosted, SIL OFL, fonts/OFL.txt). It carries an
   optical-size axis, so headings set at display sizes get the Inter Display
   cut automatically.
   ===================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.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;
}

:root {
  --bg: #ffffff;
  --bg-2: #f8f9fa;
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --surface-3: #eeeff1;
  --frame: #f3f4f6;
  --line: #e7e8eb;
  --line-strong: #d6d8dd;
  --rail: rgba(17, 19, 24, 0.07);
  --ink: #111216;
  --ink-2: #4a4e57;
  --ink-3: #6c7079;
  --accent: #2f4fd6;
  --accent-strong: #2440b5;
  --accent-ink: #ffffff;
  --accent-soft: rgba(47, 79, 214, 0.07);
  --accent-line: rgba(47, 79, 214, 0.28);
  --primary: #111216;
  --primary-hover: #2a2c33;
  --primary-ink: #ffffff;
  --raised: #ffffff;
  --capsule-bg: rgba(255, 255, 255, 0.84);
  --capsule-line: #eef0f2;
  --capsule-ink: #111216;
  --capsule-ink-2: #4a4e57;
  --capsule-cta: #111216;
  --capsule-cta-ink: #ffffff;
  --capsule-focus: #2f4fd6;
  --deep-bg: #111216;
  --wash-1: rgba(122, 146, 255, 0.16);
  --wash-2: rgba(170, 196, 255, 0.18);
  --shadow-card: 0 1px 2px rgba(17, 18, 22, 0.04);
  --shadow-float: 0 0 0 1px rgba(17, 18, 22, 0.04), 0 2px 4px rgba(17, 18, 22, 0.04), 0 12px 28px -8px rgba(17, 18, 22, 0.14);
  --shadow-frame: 0 0 0 1px rgba(17, 18, 22, 0.05), 0 1px 2px rgba(17, 18, 22, 0.04), 0 10px 24px -12px rgba(17, 18, 22, 0.10), 0 40px 80px -32px rgba(30, 40, 90, 0.18);
  --shadow-chip: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 18, 22, 0.04);
  --focus: #2f4fd6;
  --selection: rgba(47, 79, 214, 0.14);
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-sm: 8px;
  --r: 10px;
  --r-card: 14px;
  --r-frame: 16px;
  --nav-h: 64px;
  --wrap: 1200px;
}
/* Light only: every marketing page is served with data-theme="light", so the
   older dark rules still inline in the page sources never apply. */
:root { color-scheme: light; }

/* ---------- Base ---------- */
html { scrollbar-color: var(--line-strong) transparent; }
body {
  font-family: var(--body); font-size: 16px; line-height: 1.55; font-weight: 450;
  letter-spacing: -0.011em; color: var(--ink); background: var(--bg);
  font-feature-settings: "cv11", "ss03"; font-optical-sizing: auto;
}
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--body); font-variant-numeric: tabular-nums; letter-spacing: -0.005em; }
table, .stat-n, .ap-amt, .mt-n, .price, .e-time, .f-time { font-variant-numeric: tabular-nums; }

/* Page rails: hairlines on the content edges, like a ruled sheet. Wide screens only. */
main { position: relative; }
@media (min-width: 1280px) {
  main::after {
    content: ""; position: absolute; inset: 0 auto 0 50%; width: var(--wrap); transform: translateX(-50%);
    border-inline: 1px solid var(--rail); pointer-events: none; z-index: 0;
  }
}

/* ---------- Type scale ---------- */
.wrap { max-width: var(--wrap); padding-inline: clamp(20px, 4vw, 48px); }
.section { padding-block: clamp(80px, 9vw, 128px); }
main > section + section, main > .section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--bg-2); box-shadow: none; }
.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.h2, .sec-head h2 {
  font-family: var(--display); font-weight: 550; font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.1; letter-spacing: -0.022em; max-width: 27ch;
}
.feat-text .h2 { font-size: clamp(28px, 2.9vw, 38px); }
h1 em, h2 em, h3 em, .h2 em, .h3 em, .page-hero h1 em { color: var(--ink-3); font-style: normal; }
.h3 { font-weight: 550; letter-spacing: -0.02em; }
.lead { font-size: clamp(16.5px, 1.3vw, 18px); line-height: 1.55; color: var(--ink-2); letter-spacing: -0.012em; max-width: 58ch; }
.sec-head .h2 + .lead { margin-top: 16px; }
.eyebrow.pill { box-shadow: var(--shadow-chip); font-size: 13.5px; font-weight: 500; padding: 4px 12px 4px 5px; }
.eyebrow.pill b { font-family: var(--body); font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.micro, .ui-label, .stat-l, .side-label { font-family: var(--body); letter-spacing: 0.02em; }
.tag-example { font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 1px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-3); border-color: var(--line); }

/* ---------- Buttons ---------- */
.btn {
  min-height: 44px; padding: 10px 18px; border-radius: 10px; font-size: 15px; font-weight: 550; letter-spacing: -0.01em;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 2px rgba(17, 18, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.10); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(17, 18, 22, 0.04); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 14px; border-radius: 9px; }
.btn .ic-sm { width: 14px; height: 14px; }
.pill-btn { border-radius: 10px; min-height: 38px; padding: 7px 12px 7px 14px; font-weight: 550; font-size: 14.5px; box-shadow: var(--shadow-chip); }
.pill-btn:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong), 0 1px 2px rgba(17, 18, 22, 0.06); }
.ab { border-radius: 8px; font-weight: 550; }
.ab-go { background: var(--primary); color: var(--primary-ink); }
.ab-go:hover { background: var(--primary-hover); }
.task-ap .ab-go, .ap-row .ab-go { box-shadow: 0 1px 2px rgba(17, 18, 22, 0.2); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.announce a { min-height: 40px; padding: 8px 16px; color: var(--ink-2); }
.announce .new { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.announce .go { color: var(--ink); }
.nav { height: 0; }
.capsule {
  top: 0; width: 100%; min-height: var(--nav-h); gap: 8px; border-radius: 0; border: 0;
  padding: 0 max(20px, calc((100% - var(--wrap)) / 2 + 48px));
  background: var(--capsule-bg); color: var(--capsule-ink); box-shadow: inset 0 -1px 0 var(--line);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.brand { font-size: 18px; font-weight: 650; letter-spacing: -0.03em; gap: 8px; }
.brand .logo-mark { width: 22px; height: 22px; color: var(--accent); }
.nav-links { margin-left: 28px; gap: 0; font-size: 14px; font-weight: 500; }
.nav-links > a, .dd > summary { min-height: 34px; padding: 6px 11px; border-radius: 8px; color: var(--capsule-ink-2); }
.nav-links > a:hover, .dd > summary:hover, .dd[open] > summary, .nav-links > a[aria-current="page"] { color: var(--capsule-ink); background: var(--capsule-line); }
.dd-panel { top: calc(100% + 16px); left: 0; transform: none; border-radius: 14px; padding: 6px; box-shadow: var(--shadow-float); border-color: var(--line); }
.dd-item { border-radius: 10px; padding: 9px 10px; }
.dd-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.dd-item b { font-size: 14px; font-weight: 550; }
.dd-item[aria-current="page"] b { color: var(--ink); }
.dd-foot a { color: var(--ink); }
.nav-actions { margin-left: auto; gap: 8px; }
.nav-cta { min-height: 36px; padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 550; background: var(--capsule-cta); color: var(--capsule-cta-ink); box-shadow: 0 1px 2px rgba(17, 18, 22, 0.16); }
.nav-cta:hover { box-shadow: 0 1px 2px rgba(17, 18, 22, 0.16); background: var(--primary-hover); }
.mnav > summary { width: 36px; height: 36px; border-radius: 9px; border-color: var(--line); color: var(--ink); }
.mnav-sheet { left: 12px; right: 12px; top: calc(100% + 8px); border-radius: 16px; }
.mn-trades a[aria-current="page"], .mn-row a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
@media (max-width: 400px) { .capsule { padding-inline: 16px; } }

/* ---------- Cards, chips, frames ---------- */
.card { border-radius: var(--r-card); border-color: var(--line); background: var(--surface); }
.ui { border-radius: var(--r-card); border-color: var(--line); box-shadow: var(--shadow-card); }
.chip { box-shadow: var(--shadow-chip); font-weight: 500; border-radius: 8px; padding: 4px 10px; }
.chip .ic { color: var(--ink-2); }
.icon-tile { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); border-radius: 11px; }
.icon-tile.v { background: var(--surface-2); color: var(--verdi); }
.delta { font-family: var(--body); font-weight: 550; font-size: 12px; border-radius: 6px; }
.f-state { font-family: var(--body); border-radius: 6px; }
.av { font-weight: 600; }

/* Demo captures: a quiet browser window, app inset inside it */
.app-shot { border-radius: var(--r-frame); border: 0; padding: 0 6px 6px; background: var(--frame); box-shadow: var(--shadow-frame); overflow: visible; }
.app-shot-bar { background: transparent; border: 0; padding: 11px 8px 10px; gap: 14px; }
.app-shot-bar .dots { gap: 7px; }
.app-shot-bar .dots i { width: 11px; height: 11px; background: #fe5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.app-shot-bar .dots i:nth-child(2) { background: #febc2e; }
.app-shot-bar .dots i:nth-child(3) { background: #28c840; }
.app-shot-bar .url { flex: none; max-width: none; margin: 0; padding: 0; background: none; border-radius: 0; font-family: var(--body); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.app-shot-bar .shot-co { font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.app-shot-try { font-family: var(--body); font-size: 12px; font-weight: 550; color: var(--ink-2); }
.app-shot-try:hover { color: var(--ink); text-decoration: none; }
.shot-sets { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.shot-tabs { gap: 4px; padding: 4px; margin: 20px auto 0; width: fit-content; max-width: 100%; border-radius: 11px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.shot-tab { min-height: 32px; padding: 5px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-3); font: 500 13.5px/1 var(--body); }
.shot-tab:hover { color: var(--ink); }
.shot-tab[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 18, 22, 0.06); }
@media (max-width: 640px) { .shot-tabs { width: auto; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .shot-tab { flex: none; } }

/* Floating cards that sit on a frame's edges */
.fl { border-radius: 12px; border-color: var(--line); background: var(--raised); box-shadow: var(--shadow-float); font-size: 13.5px; font-weight: 500; }
.fl small { font-family: var(--body); font-size: 12px; font-weight: 450; }
.fl-pill { border-radius: 10px; }

/* Tables */
.table-scroll { border-radius: 12px; }
thead th { font-family: var(--body); font-size: 12px; font-weight: 550; letter-spacing: 0; text-transform: none; color: var(--ink-3); background: var(--surface-2); }

/* FAQ */
.faq summary { font-weight: 550; letter-spacing: -0.012em; }

/* Final CTA panels */
.cta-panel {
  border-radius: 20px; box-shadow: none; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 120%, var(--wash-1), transparent 70%), var(--bg-2);
}
.cta-band h2, .page-hero h1, .hero h1 { font-weight: 600; letter-spacing: -0.028em; }
.cta-band h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; }
.cta-band h2 em { color: var(--ink-3); }

/* Page heroes (subpages + trade pages): soft cool wash, no blob */
.hero::before {
  background:
    radial-gradient(50% 60% at 50% 100%, var(--wash-1), transparent 72%),
    radial-gradient(40% 50% at 82% 70%, var(--wash-2), transparent 70%);
  top: auto; bottom: 0; height: 640px;
}
.page-hero::before {
  background:
    radial-gradient(38% 62% at 78% 18%, var(--wash-1), transparent 72%),
    radial-gradient(30% 50% at 60% 0%, var(--wash-2), transparent 70%);
  top: 0; height: 100%;
}
main > .page-hero + .section, main > .section.flush-top { border-top: 0; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.hero h1 { line-height: 1.0; }
.page-meta { font-family: var(--body); font-weight: 500; }
.trade-tabs { gap: 4px; padding: 4px; width: fit-content; max-width: 100%; border-radius: 11px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.trade-tabs a { min-height: 32px; padding: 5px 12px; border-radius: 8px; border: 0; font-size: 13.5px; color: var(--ink-3); }
.trade-tabs a:hover { color: var(--ink); }
.trade-tabs a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 18, 22, 0.06); }
.trade-tabs .tt-home { border-style: none; }
@media (max-width: 640px) { .trade-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } .trade-tabs a { flex: none; } }

/* Composer (homepage + trade pages) */
.composer { border-radius: 16px; box-shadow: var(--shadow-frame); }
.c-who small, .c-live { font-family: var(--body); }
.c-send { background: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 2px rgba(17, 18, 22, 0.2); }
.c-send:hover { background: var(--primary-hover); }
.c-text::after { background: var(--accent); }
.sug { border-radius: 9px; min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-color: var(--line); }
.sug[aria-pressed="true"] { border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(17, 18, 22, 0.06); }

/* Story window + mockups pick up the calmer radii */
.win { border-radius: var(--r-frame); }
.win-sub, .msg .meta, .worklog li small, .receipt-chip, .brief-list small, .brief-clock small, .mail-q .mono, .ex-cap, .co small, .online, .live-dot, .f-time, .mt-s, .ap-what small, .side-label, .stat-l, .latest .lbl, .cleared, .ph-online, .c-live, .c-who small {
  font-family: var(--body);
}
.steps .mono { font-weight: 600; }
.msg .meta, .b-live { font-size: 11.5px; }
.mail-h dt { font-family: var(--body); font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }

/* Security band: icons sit in flow beside nothing, no tile behind them */
.sec-grid .sg-ic { width: auto; height: auto; background: none; box-shadow: none; border: 0; border-radius: 0; display: block; color: var(--deep-ink); opacity: 0.8; }

/* ---------- Product hero (homepage + trade pages): copy, then the app in a browser window ---------- */
.hero { padding-block: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) clamp(64px, 8vw, 112px); }
.hero::before {
  top: auto; bottom: 0; height: 78%; width: 100%;
  background:
    radial-gradient(55% 45% at 50% 38%, var(--wash-1), transparent 72%),
    radial-gradient(30% 30% at 78% 52%, var(--wash-2), transparent 70%),
    linear-gradient(to bottom, transparent, var(--bg-2));
}
.hero .lead { margin-top: 22px; max-width: 54ch; font-size: clamp(16.5px, 1.4vw, 19px); }
.hero .cta-row { margin-top: 30px; gap: 10px; }
.hero-shot { max-width: 1120px; margin: clamp(48px, 6vw, 72px) auto 0; text-align: left; }
.hero-shot .app-shot { box-shadow: 0 0 0 1px rgba(17, 18, 22, 0.05), 0 2px 4px rgba(17, 18, 22, 0.04), 0 24px 48px -24px rgba(17, 18, 22, 0.16), 0 72px 120px -48px rgba(17, 18, 22, 0.22); }
.hero-shot .fl-apps { top: -18px; right: 160px; }
.hero-shot .fl-fwd { top: 46%; left: -36px; }
.hero-shot .fl-approved { bottom: 50px; right: 12%; }
.hero-shot .shot-tabs { margin-top: 28px; }
@media (max-width: 1240px) { .hero-shot .fl-fwd { left: -12px; } }
@media (max-width: 1000px) { .hero-shot .fl-apps { right: 24px; } }
@media (max-width: 759px) {
  .hero-shot .floaters { justify-content: center; }
  .hero-shot .fl-fwd { display: none; }
}
.hero-shot { position: relative; }
.hero-shot .app-shot { position: relative; z-index: 1; }
.floaters { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fl { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); pointer-events: auto; white-space: nowrap; }
.fl b { font-weight: 600; }
.fl small { display: block; color: var(--ink-3); }
.fl-pill { padding: 7px 14px 7px 8px; }
.fl .icon-tile { width: 30px; height: 30px; border-radius: 9px; }
.fl .icon-tile .ic { width: 16px; height: 16px; }
.ok-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--verdi); color: var(--surface); }
.ok-dot .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.hero-ask { max-width: 820px; margin: clamp(56px, 7vw, 88px) auto 0; text-align: left; }
.hero-ask .composer { margin-top: 0; }
@media (max-width: 759px) {
  .floaters { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .fl { position: static; padding: 6px 12px 6px 6px; border-radius: 999px; box-shadow: var(--shadow-chip); border: 0; font-size: 12.5px; white-space: normal; }
  .fl small { display: none; }
  .fl .icon-tile, .fl .ok-dot { width: 22px; height: 22px; border-radius: 50%; }
  .fl .stack .bdg { width: 22px; height: 22px; border-radius: 50%; font-size: 8px; }
}

/* ---------- Footer ---------- */
.foot { background: var(--bg); border-top: 1px solid var(--line); font-size: 14px; padding-block: clamp(56px, 7vw, 88px) calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot .wrap { position: relative; }
.foot-top { gap: 36px 28px; }
.foot-brand .logo-mark { color: var(--accent); }
.foot-brand p { color: var(--ink-3); font-size: 14px; }
.foot-col h2 { font: 500 13px var(--body); letter-spacing: 0; color: var(--ink-3); }
.foot-col ul { gap: 10px; margin-top: 14px; }
.foot-col a { color: var(--ink); font-weight: 450; }
.foot-col a:hover { color: var(--accent); }
.foot-base { border-top-color: var(--line); color: var(--ink-3); font-size: 13px; }

/* ---------- Articles ---------- */
.prose h1 { font-weight: 600; letter-spacing: -0.028em; font-size: clamp(34px, 4.6vw, 50px); }
.prose h2 { font-weight: 550; letter-spacing: -0.02em; }
.prose .kicker { display: inline-block; font-family: var(--body); font-size: 12.5px; font-weight: 550; letter-spacing: 0; text-transform: none; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 6px; }
.prose .def strong, .prose th, .prose .related h2 { font-family: var(--body); letter-spacing: 0; text-transform: none; font-weight: 550; }
.prose ol.steps li::before { font-family: var(--body); font-weight: 600; }
.prose .cta { border-radius: 16px; }
.prose .cta .btn { border-radius: 10px; background: #fff; color: #111216; }
.prose .cta .btn:hover { background: #eceef1; color: #111216; }
.prose .related a, .articles-index a.card { border-radius: 12px; }

@media (max-width: 560px) {
  .announce a { flex-wrap: nowrap; justify-content: flex-start; text-align: left; font-size: 13px; line-height: 1.35; }
  .announce .go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .shot-tab, .nav-cta { transition: none; }
}
