/* Stafio website. Layout: sticky product header, centred 1200px column, docs use a sidebar + reading column.
   Tokens follow the Stafio design system v2 (slate neutrals, harbor blue, IBM Plex). */
:root {
  --surface: #f5f7fa; --raised: #ffffff; --sunken: #eef1f5; --line: #e2e7ee; --line-control: #7a8496;
  --ink: #0f1729; --ink-muted: #526077; --harbor: #2350c2; --harbor-hover: #1a3e9b; --harbor-soft: #e6edfb; --on-harbor: #ffffff;
  --ok: #17683f; --ok-soft: #e3f3ea; --warn: #8a5300; --warn-soft: #fcf0d6; --risk: #ad2e1b; --risk-soft: #fbe6e1;
  --band: #0f243c; --band-ink: #f4f7fb; --band-muted: #d6e3f0; --band-line: #294363;
  --logo-tile: #2350c2; --logo-glyph: #ffffff;
  --shadow-xs: 0 1px 2px rgba(15, 23, 41, 0.06);
  --shadow-frame: 0 24px 64px rgba(15, 23, 41, 0.14), 0 2px 6px rgba(15, 23, 41, 0.06);
  --display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --marigold: #f6c54a; --marigold-soft: #fde9b0; --marigold-ink: #6b4a00; --paper: #fbf8f1; --hl-top: 58%;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-md: 8px; --r-lg: 12px; --col: 1200px; --read: 720px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --surface: #0b0f17; --raised: #121826; --sunken: #080b12; --line: #222b3b; --line-control: #626e84;
  --ink: #e8ecf3; --ink-muted: #9aa6ba; --harbor: #8eb0f5; --harbor-hover: #b4cbfa; --harbor-soft: #16233f; --on-harbor: #0a1430;
  --ok: #7dd3a4; --ok-soft: #10291e; --warn: #f2c063; --warn-soft: #2c210c; --risk: #f59a87; --risk-soft: #351610;
  --band: #121826; --band-ink: #e8ecf3; --band-muted: #9aa6ba; --band-line: #222b3b;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-frame: 0 24px 64px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
   --marigold: #e7b23a; --marigold-soft: #4a3a12; --marigold-ink: #f6d488; --paper: #121826; --hl-top: 86%;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --surface: #0b0f17; --raised: #121826; --sunken: #080b12; --line: #222b3b; --line-control: #626e84;
  --ink: #e8ecf3; --ink-muted: #9aa6ba; --harbor: #8eb0f5; --harbor-hover: #b4cbfa; --harbor-soft: #16233f; --on-harbor: #0a1430;
  --ok: #7dd3a4; --ok-soft: #10291e; --warn: #f2c063; --warn-soft: #2c210c; --risk: #f59a87; --risk-soft: #351610;
  --band: #121826; --band-ink: #e8ecf3; --band-muted: #9aa6ba; --band-line: #222b3b;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-frame: 0 24px 64px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
  --marigold: #e7b23a; --marigold-soft: #4a3a12; --marigold-ink: #f6d488; --paper: #121826; --hl-top: 86%;
  color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--raised); }
a { color: var(--harbor); text-underline-offset: 3px; }
a:hover { color: var(--harbor-hover); }
:where(a, button, input, select, summary):focus-visible { outline: 2px solid var(--harbor); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { padding: 1px 5px; background: var(--sunken); border: 1px solid var(--line); border-radius: 4px; }
.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; padding: 8px 12px; background: var(--raised); }

/* Header */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--raised) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.logo svg { flex: none; display: block; }
.logo__tile { fill: var(--logo-tile); }
.logo__glyph { stroke: var(--logo-glyph); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 6px 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: var(--r-md); }
.nav a:hover { background: var(--sunken); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--harbor); background: var(--harbor-soft); }
.hdr__cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; margin-left: auto; height: 40px; padding: 0 12px; font: inherit; font-weight: 600; color: var(--ink); background: none; border: 1px solid var(--line-control); border-radius: var(--r-md); }
@media (max-width: 1040px) {
  .nav, .hdr__cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hdr.is-open .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; margin: 0; padding: 12px max(16px, env(safe-area-inset-left, 0px)) 16px; background: var(--raised); border-bottom: 1px solid var(--line); }
  .hdr.is-open .nav a { padding: 10px 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer; transition: background-color 120ms ease; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--primary { background: var(--harbor); color: var(--on-harbor); box-shadow: var(--shadow-xs); }
.btn--primary:hover { background: var(--harbor-hover); color: var(--on-harbor); }
.btn--secondary { background: var(--raised); color: var(--ink); border-color: var(--line-control); }
.btn--secondary:hover { background: var(--sunken); color: var(--ink); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--sunken); color: var(--ink); }

/* Type helpers */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--harbor); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-muted); max-width: 640px; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; }
.h-xl { font-family: var(--display); font-size: clamp(38px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.h-lg { font-family: var(--display); font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.h-md { font-size: 22px; line-height: 1.3; font-weight: 600; }
.h-sm { font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -0.005em; }

/* Sections */
.sec { padding-block: 72px; }
.sec--tight { padding-block: 48px; }
.sec--alt { background: var(--raised); border-block: 1px solid var(--line); }
.sec__head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.page-hero { padding-block: 64px 40px; border-bottom: 1px solid var(--line); background: var(--raised); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-control); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--harbor); text-decoration: underline; }

/* Home hero */
.hero { padding-block: 72px 0; background: var(--raised); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__grid { display: grid; gap: 48px; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: var(--ink-muted); }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--harbor); }

/* Product frame (static rendition of the app) */
.frame { position: relative; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-frame); overflow: hidden; min-width: 0; }
.frame__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; background: var(--raised); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.frame__dots { display: flex; gap: 6px; }
.frame__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame__body { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
.frame__nav { padding: 16px 12px; background: var(--raised); border-right: 1px solid var(--line); font-size: 13px; display: flex; flex-direction: column; gap: 14px; }
.frame__nav b { display: block; padding: 0 8px 4px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.frame__nav span { display: block; padding: 5px 8px; border-radius: 6px; }
.frame__nav .on { background: var(--harbor-soft); color: var(--harbor); font-weight: 600; }
.frame__main { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; font-size: 13px; line-height: 1.45; }
.frame__crumb { font-size: 12px; color: var(--ink-muted); }
.frame__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.frame__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-muted); font-size: 12px; }
.frame__facts b { color: var(--ink); font-weight: 600; }
.panel { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-xs); min-width: 0; }
.panel__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 0; font-weight: 600; }
.panel__b { padding: 12px 16px 16px; }
.trail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0; margin: 0; list-style: none; }
.trail li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-muted); }
.trail i { position: relative; height: 4px; border-radius: 2px; background: var(--line); }
.trail .done i { background: var(--harbor); }
.trail .cur i { background: linear-gradient(90deg, var(--harbor) 50%, var(--line) 50%); }
.trail .done, .trail .cur { color: var(--ink); font-weight: 600; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { padding: 7px 12px; text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); background: var(--sunken); border-block: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tfoot td { border-top: 2px solid var(--line-control); border-bottom: 0; font-weight: 600; }
.tbl .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.sel td { background: var(--harbor-soft); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; font-size: 12px; line-height: 1; font-weight: 600; white-space: nowrap; border-radius: 999px; background: var(--sunken); color: var(--ink-muted); }
.badge--brand { background: var(--harbor-soft); color: var(--harbor); }
.badge--solid { background: var(--harbor); color: var(--on-harbor); }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--risk { background: var(--risk-soft); color: var(--risk); }
.g { display: inline-block; width: 8px; height: 8px; background: currentColor; flex: none; }
.g--c { border-radius: 50%; } .g--s { border-radius: 1px; }
.g--t { width: 0; height: 0; background: none; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid currentColor; }
@media (max-width: 760px) { .frame__body { grid-template-columns: 1fr; } .frame__nav { display: none; } .frame__main { padding: 16px; } .trail { grid-template-columns: repeat(5, minmax(56px, 1fr)); } }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); min-width: 0; }
.card--link { color: inherit; text-decoration: none; transition: border-color 120ms ease; }
.card--link:hover { border-color: var(--harbor); color: inherit; }
.card__more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--harbor); font-size: 15px; }
.card ul, .prose ul, .prose ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.ticks { list-style: none; padding: 0 !important; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--harbor); border-bottom: 2px solid var(--harbor); transform: rotate(-45deg); }

/* Pillars: the four differentiators */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); overflow: hidden; }
.pillar { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.pillar__k { font-family: var(--mono); font-size: 13px; color: var(--harbor); font-weight: 500; }

/* Flow: the weekly cycle, a true sequence */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0; counter-reset: step; }
.flow__step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 24px 0 0; }
.flow__n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--on-harbor); background: var(--harbor); border-radius: 50%; }
.flow__step::after { content: ""; position: absolute; top: 16px; left: 44px; right: 12px; height: 2px; background: var(--line); }
.flow__step:last-child::after { display: none; }
@media (max-width: 760px) { .flow { gap: 24px; } .flow__step::after { display: none; } }

/* Band (dark CTA / trust strip) */
.band { background: var(--band); color: var(--band-ink); }
.band .muted { color: var(--band-muted); }
.band a:not(.btn) { color: var(--band-ink); }
.band .btn--secondary { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.band .btn--secondary:hover { background: var(--band-line); }
.band .btn--primary { background: #2350c2; color: #ffffff; }
.band .btn--primary:hover { background: #1a3e9b; color: #ffffff; }
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 56px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; padding-block: 40px; }
.trust div { display: flex; flex-direction: column; gap: 4px; }
.trust b { font-size: 15px; }
.trust span { font-size: 14px; color: var(--band-muted); }

/* Tables on content pages */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); }
.matrix { width: 100%; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-muted); background: var(--sunken); white-space: nowrap; }
.matrix tbody th { font-weight: 600; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.y { color: var(--ok); font-weight: 600; } .n { color: var(--ink-muted); }

/* Callouts */
.note { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: var(--r-md); background: var(--harbor-soft); color: var(--ink); }
.note b { color: var(--harbor); }
.note--warn { background: var(--warn-soft); } .note--warn b { color: var(--warn); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); }
.plan--focus { border: 2px solid var(--harbor); }
.plan__price { font-family: var(--mono); font-size: 15px; color: var(--ink-muted); }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--harbor); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 20px; color: var(--ink-muted); max-width: var(--read); display: flex; flex-direction: column; gap: 10px; }

/* Docs */
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-block: 40px 80px; }
.dside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); align-self: start; max-height: calc(100vh - 110px); overflow: auto; display: flex; flex-direction: column; gap: 20px; font-size: 15px; }
.dside h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.dside ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dside a { display: block; padding: 5px 10px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.dside a:hover { background: var(--sunken); color: var(--ink); }
.dside a[aria-current="page"] { background: var(--harbor-soft); color: var(--harbor); font-weight: 600; }
@media (max-width: 920px) { .docs { grid-template-columns: 1fr; gap: 24px; } .dside { position: static; max-height: none; padding: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); } }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: var(--read); min-width: 0; }
.prose h1 { font-family: var(--display); font-size: clamp(32px, 3.8vw, 44px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.prose h2 { font-size: 24px; line-height: 1.3; font-weight: 600; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.prose h3 { font-size: 18px; line-height: 1.4; font-weight: 600; margin-top: 8px; scroll-margin-top: 90px; }
.prose li::marker { color: var(--ink-muted); }
.prose ol.steps { list-style: none; padding: 0; counter-reset: s; gap: 14px; }
.prose ol.steps > li { counter-increment: s; position: relative; padding-left: 44px; }
.prose ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--harbor); background: var(--harbor-soft); border-radius: 50%; }
.ui { font-weight: 600; white-space: nowrap; }
.ui::before { content: ""; }
.kbd { font-family: var(--mono); font-size: 13px; padding: 1px 6px; border: 1px solid var(--line-control); border-bottom-width: 2px; border-radius: 4px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; background: var(--raised); color: var(--ink); }
.pager a:hover { border-color: var(--harbor); color: var(--ink); }
.pager small { color: var(--ink-muted); font-size: 13px; }
.pager .next { text-align: right; grid-column: 2; }
.statebox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 14px; }
.statebox .arr { color: var(--ink-muted); font-family: var(--mono); }

/* Changelog */
.log { display: flex; flex-direction: column; gap: 0; }
.log__e { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; padding-block: 36px; border-top: 1px solid var(--line); }
.log__d { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 14px; color: var(--ink-muted); }
@media (max-width: 760px) { .log__e { grid-template-columns: 1fr; gap: 12px; } }

/* Contact */
.copyline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-md); font-family: var(--mono); font-size: 15px; user-select: all; }
.copyline button { font: inherit; font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 4px 10px; color: var(--ink); background: var(--raised); border: 1px solid var(--line-control); border-radius: 6px; cursor: pointer; user-select: none; }

/* Footer */
.ftr { padding-block: 56px 40px; background: var(--raised); border-top: 1px solid var(--line); font-size: 14px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.ftr h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ftr ul a { color: var(--ink); text-decoration: none; }
.ftr ul a:hover { color: var(--harbor); text-decoration: underline; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-muted); }
@media (max-width: 920px) { .ftr__grid { grid-template-columns: repeat(2, 1fr); } .ftr__brand { grid-column: 1 / -1; } }
.prose .crumbs { flex-direction: row; padding-left: 0; gap: 6px; }
.plan__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0; }
.plan__num { font-family: var(--sans); font-variant-numeric: tabular-nums; font-size: 46px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.plan__per { font-size: 15px; color: var(--ink-muted); }

/* Pilot application */
.apply { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.apply__intro { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
.apply__est { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; padding: 16px 18px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-md); }
.apply__est b { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.apply__card { padding: 28px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); min-width: 0; }
.apply__card form { display: flex; flex-direction: column; gap: 24px; }
.apply__card fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.apply__card legend { padding: 0; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label span[aria-hidden] { color: var(--risk); }
.opt { font-weight: 400; color: var(--ink-muted); font-size: 13px; }
.field input, .field select, .field textarea, #ap-summary { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--raised); border: 1px solid var(--line-control); border-radius: var(--r-md); }
.field textarea, #ap-summary { min-height: 96px; resize: vertical; line-height: 1.5; }
#ap-summary { font-family: var(--mono); font-size: 13px; background: var(--sunken); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--harbor); outline-offset: 0; border-color: var(--harbor); }
.field [aria-invalid="true"] { border-color: var(--risk); }
.fhint { font-size: 13px; color: var(--ink-muted); }
.ferr { font-size: 13px; font-weight: 600; color: var(--risk); }
.ferr:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--harbor); flex: none; }
.apply__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.apply__done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; outline: none; }
.apply__done .copyline, #ap-summary { align-self: stretch; }
.apps { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; }
.apps__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.num-r { text-align: right; }
@media (max-width: 920px) { .apply { grid-template-columns: minmax(0, 1fr); gap: 28px; } .apply__intro { position: static; } }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; } .apply__card { padding: 20px 16px; } }

/* ---------- Character layer: small-business home ---------- */
.btn--lg { height: 52px; padding: 0 24px; font-size: 16px; }
.display { font-family: var(--display); font-size: clamp(42px, 6.2vw, 76px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; }
mark.hl { color: inherit; background: linear-gradient(transparent var(--hl-top), var(--marigold) var(--hl-top), var(--marigold) 96%, transparent 96%); padding: 0 0.08em; margin: 0 -0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero2 { padding-block: 64px 80px; background: radial-gradient(circle at 85% 30%, var(--harbor-soft) 0, transparent 46%), var(--raised); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero2__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; }
.hero2__copy { display: flex; flex-direction: column; gap: 24px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 4px 0 0; list-style: none; font-size: 15px; color: var(--ink-muted); }
.proof b { color: var(--ink); font-weight: 700; }

.collage { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.note-card { position: relative; width: 100%; max-width: 440px; padding: 18px 20px; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-frame); display: flex; flex-direction: column; gap: 10px; }
.note-card--status { align-self: flex-start; transform: rotate(-1.2deg); }
.note-card--sow { align-self: flex-end; transform: rotate(1.2deg); z-index: 2; }
.note-card--margin { align-self: flex-start; transform: rotate(-0.8deg); max-width: 380px; z-index: 1; }
.nc__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-muted); }
.nc__app { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.nc__title { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.nc__bar { height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.nc__bar i { display: block; height: 100%; border-radius: inherit; background: var(--harbor); }
.nc__meta { font-size: 13px; color: var(--ink-muted); }
.nc__meta b { color: var(--ink); }
.nc__kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.nc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.nc__list li { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px dashed var(--line); }
.stamp { align-self: flex-start; padding: 4px 12px; font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ok); border: 3px solid currentColor; border-radius: 8px; transform: rotate(-4deg); }
.nc__big { font-family: var(--display); font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.nc__big span { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--ink-muted); margin-left: 6px; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.spark i { flex: 1; border-radius: 4px 4px 0 0; background: var(--harbor-soft); }
.spark i.now { background: var(--marigold); }

.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ba__col { padding: 28px; border-radius: 16px; min-width: 0; }
.ba__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.ba__col li { position: relative; padding-left: 30px; }
.ba__label { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.ba__col--before { background: var(--paper); border: 1px dashed var(--line-control); color: var(--ink-muted); }
.ba__col--before li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 16px; height: 2px; background: var(--risk); transform: rotate(-12deg); }
.ba__col--after { background: var(--raised); border: 2px solid var(--harbor); box-shadow: var(--shadow-xs); }
.ba__col--after .ba__label { color: var(--harbor); }
.ba__col--after li::before { content: ""; position: absolute; left: 3px; top: 0.4em; width: 13px; height: 7px; border-left: 2.5px solid var(--harbor); border-bottom: 2.5px solid var(--harbor); transform: rotate(-45deg); }

.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.day { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.day__d { align-self: flex-start; padding: 2px 10px; font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: 0.02em; color: var(--harbor); background: var(--harbor-soft); border-radius: 999px; }
.day b { font-size: 16px; line-height: 1.3; }
.day p { font-size: 14px; color: var(--ink-muted); }
.day--fri { background: var(--marigold-soft); border-color: var(--marigold); }
.day--fri .day__d { background: var(--marigold); color: #3a2800; }
.day--fri p { color: var(--ink); }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.calc { display: flex; flex-direction: column; gap: 16px; }
.calc__box { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; padding: 24px; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-xs); }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.calc__label output { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--harbor); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { --fill: 15.8%; width: 100%; height: 8px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, var(--harbor) var(--fill), var(--sunken) var(--fill)); border-radius: 999px; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--raised); border: 3px solid var(--harbor); box-shadow: var(--shadow-xs); }
.calc input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--raised); border: 3px solid var(--harbor); }
.calc__out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.calc__price { font-family: var(--display); font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

.letter { margin: 0; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.letter::before { content: ""; position: absolute; top: -10px; left: 32px; width: 84px; height: 22px; background: var(--marigold); opacity: 0.85; transform: rotate(-3deg); border-radius: 2px; }
.letter__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.letter blockquote { margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 18px; line-height: 1.6; }
.letter figcaption { display: flex; flex-direction: column; gap: 2px; }
.sig { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }

.easy .card { gap: 8px; }
.easy__n { font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--marigold); -webkit-text-stroke: 1px var(--marigold-ink); line-height: 1; }

@media (max-width: 1000px) {
  .hero2__grid, .two { grid-template-columns: minmax(0, 1fr); }
  .collage { max-width: 560px; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week .day--fri { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .collage { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
  .note-card { position: static; width: 100%; max-width: 100%; transform: none; }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .letter, .ba__col { padding: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .note-card { transition: transform 200ms ease; }
  .collage:hover .note-card--status { transform: rotate(-2deg) translateY(-3px); }
  .collage:hover .note-card--sow { transform: rotate(2deg) translateY(-3px); }
}
.nav__signin, .nav__apply { display: none; }
@media (max-width: 1040px) {
  .hdr.is-open .nav__signin, .hdr.is-open .nav__apply { display: block; margin-top: 4px; font-weight: 600; }
  .hdr.is-open .nav__signin { border-top: 1px solid var(--line); padding-top: 14px; }
  .hdr.is-open .nav__apply { color: var(--harbor); }
}
