/* Stowbook site. Visual system "Quiet Ledger" (docs/DESIGN.md): warm neutral canvas, ink text, one accent
   (Stow Blue), status colours only for stock state, system fonts, tabular numbers. Photos of things are the colour.
   No build step, no scripts, no web fonts. */

:root {
  color-scheme: light dark;
  --canvas: #F6F5F2;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --fill: #EFEDE8;
  --hairline: #E6E3DD;
  --ink: #16171A;
  --ink-2: #5E6168;
  --ink-3: #8E9198;
  --accent: #2D5BD8;
  --accent-soft: rgba(45, 91, 216, .12);
  --on-accent: #FFFFFF;
  --on-ink: #FFFFFF;
  --ok: #2E8B57;
  --low: #C27A0E;
  --out: #C2412D;
  --bezel: #121316;
  --paper: #FFFFFF;
  --shadow: 0 1px 2px rgba(22, 23, 26, .05), 0 14px 44px -14px rgba(22, 23, 26, .18);
  --shadow-lg: 0 2px 4px rgba(22, 23, 26, .04), 0 40px 80px -28px rgba(22, 23, 26, .32);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --wrap: 1160px;
  --r-chip: 10px;
  --r-card: 14px;
  --r-sheet: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0F1012;
    --surface: #18191C;
    --raised: #202226;
    --fill: #24262B;
    --hairline: #2A2C31;
    --ink: #F2F2F0;
    --ink-2: #A3A6AD;
    --ink-3: #6E7178;
    --accent: #6E93FF;
    --accent-soft: rgba(110, 147, 255, .14);
    --on-accent: #0F1012;
    --on-ink: #0F1012;
    --ok: #4FC384;
    --low: #F2A93B;
    --out: #FF6B57;
    --bezel: #2A2C31;
    --paper: #F4F2EE;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 50px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 90px -28px rgba(0, 0, 0, .85);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; }
.skip:focus { top: 12px; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--canvas) 84%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}
.nav--line { border-bottom-color: var(--hairline); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 650 1.125rem/1 var(--font-display); letter-spacing: -.015em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; border-radius: 7px; }
.nav__in > nav { margin-left: auto; }
.nav__links { display: flex; gap: 28px; list-style: none; }
.nav__links a { color: var(--ink-2); font-size: .9375rem; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 600 .9375rem/1 var(--font);
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: .875rem; }
.btn--ghost { background: var(--fill); color: var(--ink); }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__in > nav { margin-left: 0; }
  .nav .btn { margin-left: auto; }
}

/* ---------- Type ---------- */
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.h-section { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; }
.lede { color: var(--ink-2); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head .h-section { margin-top: 12px; }
.section__head .lede { margin-top: 16px; }
.note { color: var(--ink-2); font-size: .875rem; }
.band { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.pro { white-space: nowrap; display: inline-block; vertical-align: middle; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 650 .6875rem/1.3 var(--font); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 45%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 78% 45%, #000 0%, transparent 70%);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { margin-top: 18px; font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: .98; letter-spacing: -.04em; font-weight: 750; }
.hero h1 span { display: block; color: var(--ink-3); }
.hero .lede { margin-top: 24px; max-width: 33em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 34px; }
.store { display: inline-block; border-radius: 10px; }
.store img { width: 150px; height: auto; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; color: var(--ink-2); font-size: .9375rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero__facts .icon { width: 17px; height: 17px; color: var(--accent); stroke-width: 2.2; }
@media (max-width: 920px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
  .hero::before { -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 75%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 90% 50% at 50% 75%, #000 0%, transparent 70%); }
}

/* ---------- Phone mock ---------- */
.stage { position: relative; margin: 0; display: flex; justify-content: center; padding: 8px 0; }
.phone {
  position: relative; width: 100%; max-width: 344px;
  padding: 11px; border-radius: 54px; background: var(--bezel);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.screen {
  position: relative; overflow: hidden; border-radius: 43px; background: var(--canvas);
  height: 664px; font-size: 13px; line-height: 1.3; color: var(--ink);
}
.sbar { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 6px 28px 0 34px; font: 600 14px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.sbar svg { height: 11px; width: auto; fill: currentColor; }
.sbar__r { display: flex; gap: 5px; align-items: center; }
.island { position: absolute; top: 11px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; }
.app__top { padding: 4px 16px 0; }
.switch { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 13px; font-weight: 600; }
.switch svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.app__title { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 2px; }
.app__title p { font: 700 30px/1.1 var(--font-display); letter-spacing: -.02em; }
.app__title span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 3px; }
.app__title span svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 16px 0; padding: 10px 0; background: var(--surface); border-radius: 14px; }
.totals div { padding: 0 12px; }
.totals div + div { border-left: 1px solid var(--hairline); }
.totals b { display: block; font: 650 17px/1.15 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.totals small { color: var(--ink-2); font-size: 11px; }
.search { display: flex; align-items: center; gap: 7px; margin: 10px 16px 0; padding: 8px 10px; border-radius: 10px; background: var(--fill); color: var(--ink-3); }
.search svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.chips { display: flex; gap: 6px; margin: 10px 0 0; padding: 0 16px; overflow: hidden; white-space: nowrap; }
.chips span { padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.chips .on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chips .warn { color: var(--low); }
.list { margin: 12px 16px 0; background: var(--surface); border-radius: 14px; list-style: none; overflow: hidden; }
.list li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 9px 12px 9px 10px; }
.list li + li::before { content: ""; position: absolute; top: 0; left: 73px; right: 0; border-top: 1px solid var(--hairline); }
.thumb { display: block; width: 52px; height: 39px; border-radius: 8px; overflow: hidden; }
.thumb svg { width: 100%; height: 100%; }
.list__name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__path { color: var(--ink-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.qty { text-align: right; }
.qty b { display: block; font: 650 16px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.qty small { color: var(--ink-2); font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 650; line-height: 1.35; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.badge--low { color: var(--low); background: color-mix(in srgb, var(--low) 15%, transparent); }
.badge--out { color: var(--out); background: color-mix(in srgb, var(--out) 13%, transparent); }
.qty .badge { margin-top: 3px; }
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: start;
  padding: 8px 6px 26px; border-top: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.tabbar span { display: grid; justify-items: center; gap: 3px; color: var(--ink-3); font-size: 10px; font-weight: 500; }
.tabbar svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .on { color: var(--accent); }
.tabbar .scan-btn { margin-top: -6px; }
.tabbar .scan-btn i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 80%, transparent); }
.tabbar .scan-btn svg { width: 22px; height: 22px; }

.float { position: absolute; z-index: 2; background: color-mix(in srgb, var(--raised) 92%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.float--note { top: 250px; left: -48px; width: 282px; display: grid; grid-template-columns: 34px 1fr; gap: 4px 11px; padding: 12px 14px; border-radius: 20px; font-size: 13px; line-height: 1.35; }
.float--note .appicon { grid-row: span 3; width: 34px; height: 34px; border-radius: 8px; }
.float--note p:first-of-type { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.float--note strong { font-weight: 650; }
.float--note p:last-child { color: var(--ink-2); }
.stage figcaption, .fig-cap { margin-top: 16px; text-align: center; color: var(--ink-3); font-size: .8125rem; }
.stage { flex-direction: column; align-items: flex-end; }
.stage figcaption { align-self: flex-end; width: 344px; }
@media (max-width: 920px) { .stage { align-items: center; } .stage figcaption { align-self: center; width: auto; } .float--note { left: 50%; transform: translateX(-90%); } }
@media (max-width: 560px) {
  .stage { padding-top: 64px; }
  .float--note { top: 0; left: 50%; width: min(330px, 92%); transform: translateX(-50%); }
  .phone { border-radius: 50px; padding: 10px; }
  .screen { border-radius: 40px; height: 620px; }
}

/* ---------- Built-for strip ---------- */
.uses { padding: 26px 0; }
.uses__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.uses p { color: var(--ink-3); font-size: .75rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.uses ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.uses li { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--canvas); color: var(--ink-2); font-size: .875rem; }

/* ---------- Split feature blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(88px, 11vw, 144px); }
.split--flip > :first-child { order: 2; }
.split__copy .h-section { margin-top: 12px; font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.split__copy .lede { margin-top: 18px; }
.ticks { list-style: none; margin-top: 24px; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink); }
.ticks .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); stroke-width: 2.2; }
.split__copy .note { margin-top: 20px; }
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

/* AI photo → item card */
.ai { margin: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 240px; }
.ai__photo { position: relative; grid-column: 1 / 11; grid-row: 1; align-self: start; aspect-ratio: 4 / 3; border-radius: var(--r-sheet); overflow: hidden; box-shadow: var(--shadow); }
.ai__photo > svg { width: 100%; height: 100%; }
.reticle { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #FFFFFF; stroke-width: 1.6; stroke-linecap: round; }
.ai__pill { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(18, 19, 22, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.ai__pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card { background: var(--raised); border: 1px solid var(--hairline); border-radius: var(--r-sheet); box-shadow: var(--shadow-lg); }
.ai__card { position: relative; grid-column: 7 / 13; grid-row: 1 / 3; align-self: end; padding: 18px 18px 16px; }
.ai__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ai__head h4 { margin: 0; font: 650 1.0625rem/1.25 var(--font-display); letter-spacing: -.01em; }
.ai__head p { color: var(--ink-2); font-size: .8125rem; margin-top: 2px; }
.ai__fields { margin: 12px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); font-size: .8125rem; }
.ai__fields dt, .ai__fields dd { padding: 7px 0; border-top: 1px solid var(--hairline); }
.ai__fields dt { color: var(--ink-2); padding-right: 14px; }
.ai__fields dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.est { display: inline-flex; align-items: center; gap: 6px; }
.est small { padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: .6875rem; font-weight: 650; }
.tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.tag { padding: 1px 8px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: .75rem; }
.ai__actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }
.ai__actions span { display: grid; place-items: center; height: 36px; border-radius: 999px; background: var(--fill); font-size: .8125rem; font-weight: 600; }
.ai__actions span:last-child { background: var(--accent); color: var(--on-accent); }
@media (max-width: 560px) {
  .ai { display: block; }
  .ai__card { margin: -32px 12px 0; }
  .ai__pill { top: 12px; bottom: auto; left: 12px; }
}

/* Scan viewfinder */
.vf { position: relative; margin: 0 auto; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; border-radius: 36px; overflow: hidden; background: #1A1B1E; box-shadow: var(--shadow-lg); color: #fff; }
.vf > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vf__modes { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.vf__modes span { padding: 6px 10px; border-radius: 999px; color: rgba(255, 255, 255, .78); }
.vf__modes .on { background: #fff; color: #16171A; }
.vf__reticle { position: absolute; left: 21%; right: 21%; top: 30%; height: 21%; border-radius: 22px; box-shadow: 0 0 0 2px #fff, 0 0 0 9999px rgba(0, 0, 0, .28); }
.vf__line { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: #FF5A4A; box-shadow: 0 0 10px #FF5A4A; }
.vf__sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 16px 16px 14px; border-radius: 26px; background: var(--raised); color: var(--ink); box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .5); }
.vf__grab { width: 36px; height: 5px; border-radius: 3px; background: var(--hairline); margin: -6px auto 12px; }
.vf__found { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; }
.vf__found .thumb { width: 48px; height: 36px; }
.vf__found b { display: block; font-size: .9375rem; }
.vf__found small { color: var(--ink-2); font-size: .75rem; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-top: 14px; }
.stepper i { display: grid; place-items: center; height: 36px; border-radius: 999px; background: var(--fill); font: 500 1.375rem/1 var(--font-display); font-style: normal; }
.stepper i:last-child { background: var(--accent-soft); color: var(--accent); }
.stepper b { text-align: center; font: 650 1.75rem/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stepper b small { font-size: .8125rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 3px; }
.modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; list-style: none; }
.modes li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.band .modes li { background: var(--canvas); }

/* Places tree */
.tree { padding: 20px 20px 10px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.crumbs span { padding: 4px 10px; border-radius: var(--r-chip); background: var(--fill); font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.crumbs span:last-child { background: var(--accent-soft); color: var(--accent); }
.crumbs svg { width: 10px; height: 10px; stroke: var(--ink-3); stroke-width: 2; fill: none; }
.tree ul { list-style: none; margin-top: 14px; }
.tree li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0 10px calc(var(--d, 0) * 22px); border-top: 1px solid var(--hairline); }
.tree li i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.tree li i svg { width: 17px; height: 17px; }
.tree li b { font-weight: 600; font-size: .9375rem; }
.tree li small { display: block; color: var(--ink-2); font-size: .75rem; }
.tree li em { font-style: normal; text-align: right; font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tree li em b { display: block; color: var(--ink); font-size: .875rem; }
.tree li.here { background: linear-gradient(90deg, transparent, var(--accent-soft) 30%); margin: 0 -20px; padding-right: 20px; padding-left: calc(20px + var(--d, 0) * 22px); }

/* Bento: alerts and labels */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--hairline); border-radius: 26px; padding: clamp(24px, 3.4vw, 36px); display: flex; flex-direction: column; overflow: hidden; }
.tile h3 { margin-top: 12px; font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
.tile > p:not(.eyebrow) { margin-top: 12px; color: var(--ink-2); }
.tile__art { margin-top: 28px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } }

.notif { display: grid; grid-template-columns: 34px 1fr; gap: 3px 11px; padding: 12px 14px; border-radius: 20px; background: var(--canvas); border: 1px solid var(--hairline); font-size: .8125rem; line-height: 1.35; }
.notif .appicon { grid-row: span 3; width: 34px; height: 34px; border-radius: 8px; }
.notif p:first-of-type { display: flex; justify-content: space-between; color: var(--ink-3); font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.notif p:last-child { color: var(--ink-2); }
.restock { margin-top: 12px; padding: 6px 16px 14px; border-radius: 20px; background: var(--canvas); border: 1px solid var(--hairline); }
.restock__head { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 6px; }
.restock__head b { font: 650 1rem/1.2 var(--font-display); }
.restock__head span { color: var(--accent); font-size: .8125rem; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.restock__head span svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.restock ul { list-style: none; }
.restock li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: .875rem; }
.restock li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.restock li.done::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.restock li.done span:first-of-type { color: var(--ink-3); text-decoration: line-through; }
.restock li span:last-child { color: var(--ink-2); font-size: .8125rem; font-variant-numeric: tabular-nums; }

.sheet { position: relative; padding: 18px; border-radius: 10px; background: var(--paper); color: #16171A; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 18px 40px -18px rgba(22, 23, 26, .35); transform: rotate(-1.2deg); }
.sheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.label { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border: 1px dashed #D4D0C8; border-radius: 8px; }
.label svg { width: 52px; height: 52px; }
.label b { display: block; font-size: .8125rem; line-height: 1.2; }
.label small { display: block; color: #6A6D74; font-size: .6875rem; line-height: 1.3; margin-top: 2px; }
.label code { display: inline-block; margin-top: 4px; font: 600 .625rem/1 var(--mono); letter-spacing: .08em; color: #8E9198; }
.sheet__meta { display: flex; justify-content: space-between; margin-top: 12px; color: #8E9198; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 560px) { .uses li { font-size: .8125rem; padding: 5px 11px; } .report { padding: 20px 16px 14px; } .report__head { flex-direction: column; gap: 8px; } .report__head p:last-child { text-align: left; } }
@media (max-width: 420px) { .sheet__grid { grid-template-columns: 1fr; } .label:nth-child(n+4) { display: none; } }

/* Insurance report */
.report { position: relative; padding: 26px 26px 18px; border-radius: 6px; background: var(--paper); color: #16171A; box-shadow: var(--shadow-lg); font-size: .8125rem; }
.report::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -10px; height: 10px; border-radius: 0 0 6px 6px; background: color-mix(in srgb, var(--paper) 70%, var(--hairline)); z-index: -1; }
.report__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid #16171A; }
.report__head b { display: block; font: 700 1.25rem/1.15 var(--font-display); letter-spacing: -.02em; }
.report__head small { color: #5E6168; font-size: .75rem; }
.report__head p:last-child { text-align: right; }
.report__head p:last-child b { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.report__room { margin-top: 14px; color: #8E9198; font-size: .6875rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.report table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.report td { padding: 8px 0; border-bottom: 1px solid #E6E3DD; vertical-align: middle; }
.report td:first-child { width: 58px; }
.report td .thumb { width: 46px; height: 35px; border-radius: 6px; }
.report td b { display: block; font-size: .8125rem; }
.report td small { color: #5E6168; font-size: .6875rem; }
.report td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.report td:last-child small { display: block; font-weight: 400; }
.report__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: #8E9198; font-size: .625rem; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hairline); list-style: none; }
.grid li { padding: 30px 26px 34px 0; border-bottom: 1px solid var(--hairline); }
.grid li:not(:nth-child(4n + 1)) { padding-left: 26px; border-left: 1px solid var(--hairline); }
.grid .icon { width: 26px; height: 26px; color: var(--accent); }
.grid h3 { margin-top: 16px; font-size: 1.0625rem; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grid p { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid li, .grid li:not(:nth-child(4n + 1)) { padding: 28px 24px 30px 0; border-left: 0; }
  .grid li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--hairline); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .grid li, .grid li:nth-child(2n), .grid li:not(:nth-child(4n + 1)) { padding: 24px 0 26px; border-left: 0; }
}

/* ---------- Privacy ---------- */
.privacy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.privacy li { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-sheet); padding: 24px; }
.privacy .icon { width: 26px; height: 26px; color: var(--accent); }
.privacy h3 { margin-top: 16px; font-size: 1.0625rem; letter-spacing: -.01em; }
.privacy p { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }
.privacy + .note { margin-top: 24px; }
@media (max-width: 1000px) { .privacy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .privacy { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--hairline); border-radius: 26px; padding: clamp(24px, 3.5vw, 36px); display: flex; flex-direction: column; }
.plan--pro { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow); }
.plan h3 { font-size: 1.25rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.plan__price { margin-top: 14px; font: 700 2.75rem/1 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.plan__alt { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; }
.plan .ticks { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: .9375rem; }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; list-style: none; }
.prices li { position: relative; padding: 14px 14px 12px; border-radius: 16px; border: 1px solid var(--hairline); background: var(--canvas); }
.prices li.best { border-color: var(--accent); background: var(--accent-soft); }
.prices span { display: block; color: var(--ink-2); font-size: .8125rem; font-weight: 600; }
.prices b { display: block; margin-top: 4px; font: 700 1.5rem/1.1 var(--font-display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.prices small { display: block; margin-top: 4px; color: var(--ink-2); font-size: .75rem; line-height: 1.35; }
.prices em { position: absolute; top: -10px; right: 12px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 650 .6875rem/1.4 var(--font); font-style: normal; letter-spacing: .02em; }
.plan--pro .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.plans + .note { margin-top: 22px; max-width: 780px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .prices { grid-template-columns: 1fr; gap: 14px; }
  .prices li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
  .prices b { grid-column: 2; grid-row: 1; margin: 0; }
  .prices small { grid-column: 1 / -1; }
  .plan--pro .ticks { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font: 600 1.0625rem/1.4 var(--font); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-3px) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; }
.cta .appicon { width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 18px; box-shadow: var(--shadow); }
.cta .h-section { max-width: 15ch; margin: 0 auto; }
.cta .lede { margin: 16px auto 0; max-width: 34em; }
.cta .store { margin-top: 30px; }
.foot { border-top: 1px solid var(--hairline); padding: 40px 0 48px; color: var(--ink-2); font-size: .875rem; }
.foot__in { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; list-style: none; }
.foot nav a { color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); }
.foot small { grid-column: 1 / -1; font-size: .8125rem; color: var(--ink-3); line-height: 1.6; }
@media (max-width: 640px) {
  .foot__in { grid-template-columns: 1fr; }
  .foot nav ul { justify-content: flex-start; }
}

/* ---------- Documents (privacy, terms, support) ---------- */
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.doc__in { max-width: 780px; }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.doc__meta { margin-top: 12px; color: var(--ink-2); font-size: .9375rem; }
.doc__summary { margin-top: 32px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--accent); border-radius: var(--r-card); }
.doc__summary h2 { font-size: 1.0625rem; margin: 0 0 10px; }
.toc { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--hairline); border-radius: var(--r-card); }
.toc h2 { font-size: .75rem; color: var(--ink-3); font-weight: 650; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 8px; }
.toc ol { columns: 2 220px; column-gap: 32px; padding-left: 1.5em; font-size: .9375rem; color: var(--ink-3); }
.toc li { break-inside: avoid; padding: 2px 0; }
.prose { margin-top: 8px; }
.prose h2 { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 1.4375rem; letter-spacing: -.015em; line-height: 1.25; }
.prose h3 { margin-top: 28px; font-size: 1.0625rem; letter-spacing: -.005em; }
.prose p, .prose ul, .prose ol, .prose table { margin-top: 14px; }
.prose ul, .prose ol, .doc__summary ul { padding-left: 1.3em; }
.prose li + li, .doc__summary li + li { margin-top: 6px; }
.prose li::marker { color: var(--ink-3); }
.prose strong { font-weight: 600; }
.prose .caps { font-size: .9375rem; letter-spacing: .005em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
.prose th { font-weight: 600; color: var(--ink); }
.prose td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; }
.contact { margin-top: 32px; padding: 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sheet); }
.contact h2 { font-size: 1.25rem; }
.contact p { margin-top: 8px; color: var(--ink-2); }
.contact .btn { margin-top: 16px; }
.kbd { font: 500 .875em/1 var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--fill); white-space: nowrap; }
.doc .faq { margin-top: 20px; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - 60px - 160px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost__code { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 .875rem/1 var(--mono); }
.lost h1 { margin-top: 22px; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.03em; line-height: 1.05; }
.lost p { margin: 14px auto 0; max-width: 30em; color: var(--ink-2); }
.lost .btn { margin-top: 28px; }
