/*
 * Maydon HR marketing site in the Maydon Design System (Figma "Kamron-Maydon"; the same values as
 * frontend/packages/tokens/src/tokens.css): white pages, Noto Sans, black and grey pill buttons, rounded frames, and
 * the brand orange (--brass here) only for "you are here". Ink blocks (.night) use the derived dark values. Light only.
 */

@font-face { font-family: 'Noto Sans'; font-weight: 400; font-display: swap; src: url('fonts/noto-sans-latin-400-normal.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; }
@font-face { font-family: 'Noto Sans'; font-weight: 500; font-display: swap; src: url('fonts/noto-sans-latin-500-normal.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; }
@font-face { font-family: 'Noto Sans'; font-weight: 600; font-display: swap; src: url('fonts/noto-sans-latin-600-normal.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; }
@font-face { font-family: 'Noto Sans'; font-weight: 400; font-display: swap; src: url('fonts/noto-sans-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Noto Sans'; font-weight: 500; font-display: swap; src: url('fonts/noto-sans-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Noto Sans'; font-weight: 600; font-display: swap; src: url('fonts/noto-sans-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Noto Sans'; font-weight: 400; font-display: swap; src: url('fonts/noto-sans-cyrillic-ext-400-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Noto Sans'; font-weight: 500; font-display: swap; src: url('fonts/noto-sans-cyrillic-ext-500-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Noto Sans'; font-weight: 600; font-display: swap; src: url('fonts/noto-sans-cyrillic-ext-600-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  color-scheme: light;
  --paper: #FFFFFF; /* Bg/bg-zero-0 */
  --surface: #FFFFFF;
  --fill: #F4F4F4; /* Bg/bg-weak-5: grey pills */
  --fill-strong: #E8E8E8; /* Bg/bg-soft-10 */
  --hairline: #E8E8E8; /* Stroke/stroke-soft-10 */
  --ink: #1B1B1B; /* Text/text-strong-100 */
  --muted: #767676; /* Text/text-sub-60 */
  --brass: #FC563D; /* Primary/primary-base: the accent */
  --present: #15A05D;
  --late: #FC563D;
  --absent: #F5222D;
  /* Status words: darker shades that keep 4.5:1 on white (the app tokens' *-ink). */
  --present-ink: #127F4A;
  --late-ink: #A9470F;
  --absent-ink: #C8161F;
  --on-brass: #FFFFFF;
  --track: #F4F4F4;

  --font: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 8px;
  --r: 16px;
  --r-lg: 24px;
  --r-frame: 32px;
  --r-pill: 999px;
  --rule: 1px solid var(--hairline);
  --title-rule: 1px solid var(--hairline);

  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --step-display: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  --step-1: clamp(2rem, 1.5rem + 2vw, 3rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: 1.1875rem;
}

/* Ink blocks reuse the app's dark-theme values (proposal §3, item 2). */
.night {
  --paper: #1B1B1B; /* Bg/bg-strong-100 */
  --surface: #262626;
  --fill: #262626;
  --fill-strong: #323232; /* Bg/bg-surface-90 */
  --hairline: #323232;
  --ink: #F4F4F4;
  --muted: #A3A3A3; /* Text/text-soft-40 */
  --brass: #FD7864; /* Primary/primary-light */
  --present: #2FBF71;
  --late: #FD7864;
  --absent: #FF6A5C;
  --present-ink: #2FBF71;
  --late-ink: #FD7864;
  --absent-ink: #FF7A70;
  --track: #323232;
  --title-rule: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.02em;
}

b, strong { font-weight: 600; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: var(--r-sm); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */

/* Maydon's Button: pills, 16/20 medium. Secondary = the grey pill; primary = the black pill (light pill on ink blocks). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: var(--r-pill);
  background: var(--fill); color: var(--ink);
  font: 500 1rem/1.25 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 120ms, color 120ms;
}
.btn:hover { background: var(--fill-strong); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #323232; }
.night .btn-primary { background: var(--ink); color: var(--paper); }
.night .btn-primary:hover { background: #E8E8E8; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 30px; height: 18px; }
.brand-word { display: block; width: 127px; height: 24px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { white-space: nowrap; padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.9375rem; }
.nav a:hover { color: var(--ink); background: var(--fill); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--fill); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--fill); }
.lang a { padding: 7px 10px; border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 500; text-decoration: none; color: var(--muted); min-width: 36px; text-align: center; }
.lang a + a { border-left: 0; }
.lang a[aria-current='true'] { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }
.nav .nav-signin { display: none; }

/* The nav folds into the menu up to 1120 px: with Sign in, the Russian nav (one line each) needs that much room. */
@media (max-width: 1120px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill); background: var(--fill); color: var(--ink); }
  .site-header[data-open] .nav { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: var(--rule); padding: 8px var(--gutter) 16px; margin: 0; }
  .site-header[data-open] .nav a { padding: 12px 0; font-size: 1.0625rem; border-bottom: var(--rule); border-radius: 0; box-shadow: none; }
}

/* The header's two buttons stay until 960 px; below it Sign in moves into the menu. */
@media (max-width: 960px) {
  .site-header .header-cta, .site-header .header-signin { display: none; }
  .site-header[data-open] .nav .nav-signin { display: block; color: var(--ink); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section + .section:not(.night) { border-top: var(--rule); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: var(--step-1); }
.section-head p { margin-top: 18px; font-size: 1.1875rem; color: var(--muted); max-width: 40rem; }
.kicker { display: block; margin-bottom: 14px; font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.kicker::before { content: ''; display: inline-block; width: 18px; height: 6px; margin-right: 10px; vertical-align: 2px; border-radius: 3px; background: linear-gradient(90deg, var(--present) 0 66%, var(--track) 66%); }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--step-display); letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 span { display: block; }
.hero .lede { margin-top: 24px; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); max-width: 34rem; color: var(--ink); }
.hero .cta-row { margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }
.hero-note strong { color: var(--ink); font-weight: 500; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* The day board: the hero's one orchestrated motion (assets/day.js). */
.board { background: var(--surface); border: var(--rule); border-radius: var(--r-frame); padding: clamp(16px, 2.4vw, 28px); }
.board-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: var(--title-rule); }
.board-place { font-weight: 600; font-size: 1.0625rem; }
.board-date { color: var(--muted); font-size: 0.875rem; margin-top: 2px; }
.board-clock { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.board-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: var(--rule); }
.board-counts div { padding: 12px 0 12px; }
.board-counts div + div { padding-left: 14px; border-left: var(--rule); }
.board-counts b { display: block; font-size: 1.625rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.board-counts span { font-size: 0.8125rem; color: var(--muted); }
.board-axis, .board-row { display: grid; grid-template-columns: minmax(92px, 8.5rem) minmax(0, 1fr) minmax(84px, 8rem); gap: 16px; align-items: center; }
.board-now { position: absolute; inset: 0; pointer-events: none; align-items: stretch; padding: 0; }
.board-now > div { position: relative; }
.board-axis { padding: 12px 0 4px; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.axis { position: relative; height: 16px; }
.axis span { position: absolute; transform: translateX(-50%); }
.axis span:first-child { transform: none; }
.board-rows { position: relative; }
.board-row { padding: 9px 0; border-bottom: var(--rule); }
.board-row:last-child { border-bottom: 0; }
.row-name { font-size: 0.9375rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-shift { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.track { position: relative; height: 10px; border-radius: 5px; background: var(--track); }
.track .start { position: absolute; top: -4px; bottom: -4px; width: 1.5px; background: var(--muted); opacity: 0.55; }
.track .fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--present); }
.track .fill.is-late { background: var(--late); }
.track .fill.is-late::after { content: ''; position: absolute; inset: 0; border-radius: 5px; background: var(--present); clip-path: inset(0 0 0 var(--late-w, 0)); }
.row-status { font-size: 0.875rem; font-weight: 500; text-align: right; line-height: 1.3; }
.s-present { color: var(--present-ink); }
.s-late { color: var(--late-ink); }
.s-absent { color: var(--absent-ink); }
.s-muted { color: var(--muted); font-weight: 400; }
.now-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--brass); pointer-events: none; }
.now-line::before { content: ''; position: absolute; top: -6px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brass); }
.board-alert { margin-top: 14px; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: var(--rule); border-left: 3px solid var(--absent); border-radius: var(--r); font-size: 0.875rem; background: var(--paper); }
.board-alert[hidden] { display: none; }
.board-alert b { display: block; font-weight: 600; }
.board-alert .chips { display: flex; gap: 6px; margin-top: 8px; }
.chip { display: inline-block; padding: 4px 10px; border: 0; border-radius: var(--r-sm); background: var(--fill); font-size: 0.8125rem; font-weight: 500; }
.board-foot { margin-top: 12px; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 560px) {
  /* Phones: name and status on one line, the bar full width under them. */
  .board-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .board-row .track { grid-column: 1 / -1; grid-row: 2; }
  .board-axis { grid-template-columns: minmax(0, 1fr); }
  .board-axis > span { display: none; }
  .board-now { display: none; }
  .board-counts div + div { padding-left: 8px; }
  .board-counts b { font-size: 1.25rem; }
  .board-counts span { font-size: 0.75rem; line-height: 1.25; display: block; }
  .row-status { font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .board-alert.is-new { animation: alert-in 360ms ease-out; }
  @keyframes alert-in { from { opacity: 0; transform: translateY(6px); } }
}

/* ---------- Problems: a ruled three-column statement ---------- */

.ruled-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--title-rule); }
.ruled-cols > * { padding: 24px 28px 8px 0; }
.ruled-cols > * + * { padding-left: 28px; border-left: var(--rule); }
.ruled-cols h3 { font-size: var(--step-3); margin-bottom: 10px; }
.ruled-cols p { color: var(--muted); }
@media (max-width: 860px) {
  .ruled-cols { grid-template-columns: 1fr; }
  .ruled-cols > * + * { padding-left: 0; border-left: 0; border-top: var(--rule); }
}

/* ---------- Steps + phone ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 22px 0; border-top: var(--rule); }
.steps li:last-child { border-bottom: var(--rule); }
.steps li::before { content: counter(step); grid-row: span 2; font-size: 1.75rem; font-weight: 600; line-height: 1.1; color: var(--brass); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--step-3); }
.steps p { color: var(--muted); }

.phone { width: min(340px, 100%); margin: 0 auto; border: 1.5px solid var(--ink); border-radius: 48px; padding: 12px; background: var(--surface); }
.phone-screen { border-radius: 38px; background: var(--paper); overflow: hidden; min-height: 520px; display: flex; flex-direction: column; }
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); border-bottom: var(--rule); font-size: 0.875rem; }
.phone-bar b { font-weight: 600; }
.phone-bar .avatar { width: 30px; height: 30px; display: grid; place-items: center; }
.phone-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.today-card { background: var(--surface); border: var(--rule); border-radius: var(--r-lg); padding: 16px; }
.today-card .t-place { font-size: 0.8125rem; color: var(--muted); }
.today-card .t-shift { font-weight: 600; margin-top: 2px; }
.today-card .t-big { font-size: 3.25rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 18px 0 4px; font-variant-numeric: tabular-nums; }
.today-card .t-sub { font-size: 0.875rem; }
.today-card .track { margin-top: 18px; }
.today-card .tick { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--brass); }
.today-card .t-axis { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.phone .btn { width: 100%; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; border: var(--rule); border-radius: var(--r-lg); background: var(--surface); }
.mini-stats div { padding: 12px 14px; }
.mini-stats div + div { border-left: var(--rule); }
.mini-stats b { display: block; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.mini-stats span { font-size: 0.75rem; color: var(--muted); }
.sample { margin-top: 12px; text-align: center; font-size: 0.75rem; color: var(--muted); }

/* ---------- Telegram chat (night block) ---------- */

.chat { width: min(420px, 100%); margin: 0 auto; border: 1px solid var(--hairline); border-radius: var(--r-frame); background: var(--surface); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.chat-head .avatar { width: 36px; height: 36px; display: grid; place-items: center; }
.chat-head b { display: block; font-weight: 600; }
.chat-head span { font-size: 0.8125rem; color: var(--muted); }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 92%; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 11px 13px; font-size: 0.9375rem; line-height: 1.45; }
.msg b { font-weight: 600; }
.msg .time { display: block; text-align: right; font-size: 0.6875rem; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.msg-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.msg-keys span { text-align: center; padding: 8px; border-radius: var(--r); background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: 0.875rem; font-weight: 500; }
.msg-keys .done { grid-column: span 2; color: var(--present-ink); background: transparent; border: 1px solid var(--hairline); }

.points { list-style: none; }
.points li { padding: 18px 0; border-top: 1px solid var(--hairline); }
.points li:last-child { border-bottom: 1px solid var(--hairline); }
.points h3 { font-size: var(--step-3); margin-bottom: 6px; }
.points p { color: var(--muted); }

/* ---------- Timesheet grid ---------- */

.sheet-frame { background: var(--surface); border: var(--rule); border-radius: var(--r-frame); overflow: hidden; }
.sheet-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: var(--title-rule); }
.sheet-bar b { font-size: 1.0625rem; }
.sheet-bar .muted { font-size: 0.875rem; }
.sheet-scroll { overflow-x: auto; }
.sheet { border-collapse: collapse; width: 100%; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { padding: 9px 8px; border-bottom: var(--rule); text-align: center; white-space: nowrap; }
.sheet thead th { font-weight: 500; color: var(--muted); font-size: 0.75rem; }
.sheet th[scope='row'] { text-align: left; font-weight: 500; padding-left: 18px; position: sticky; left: 0; background: var(--surface); }
.sheet .wk { color: var(--muted); background: var(--paper); }
.sheet .hol { color: var(--brass); font-weight: 600; background: var(--paper); }
.sheet .L { color: var(--late-ink); font-weight: 600; }
.sheet .A { color: var(--absent-ink); font-weight: 600; }
.sheet .E { color: var(--muted); }
.sheet .tot { border-left: var(--rule); font-weight: 600; color: var(--ink); }
.sheet .tot + .tot { border-left: 0; }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 12px 18px; border-top: var(--rule); font-size: 0.8125rem; color: var(--muted); }
.sheet-legend b { font-weight: 600; margin-right: 4px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: var(--rule); }
.facts > div { padding: 20px 20px 4px 0; }
.facts > div + div { padding-left: 20px; border-left: var(--rule); }
.facts h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.facts p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts > div + div { padding-left: 0; border-left: 0; border-top: var(--rule); } }

/* ---------- Feature index (two-column ruled list) ---------- */

.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 72px); }
.index > div { display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; padding: 20px 0; border-top: var(--rule); }
.index svg { width: 26px; height: 26px; grid-row: span 2; color: var(--ink); stroke-width: 1.5; }
.index h3 { font-size: 1.0625rem; }
.index p { color: var(--muted); font-size: 0.9688rem; }
@media (max-width: 760px) { .index { grid-template-columns: 1fr; } }

/* ---------- Promises ---------- */

.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--title-rule); }
.promises > div { padding: 22px 22px 6px 0; }
.promises > div + div { padding-left: 22px; border-left: var(--rule); }
.promises h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.promises h3::before { content: ''; display: block; width: 22px; height: 1.5px; background: var(--absent); margin-bottom: 14px; }
.promises p { color: var(--muted); font-size: 0.9688rem; }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr 1fr; } .promises > div:nth-child(3) { padding-left: 0; border-left: 0; } .promises > div:nth-child(n + 3) { border-top: var(--rule); } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; } .promises > div + div { padding-left: 0; border-left: 0; border-top: var(--rule); } }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.plan { display: flex; flex-direction: column; background: var(--surface); border: var(--rule); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.plan.is-main { border: 1.5px solid var(--ink); }
.plan h3 { font-size: var(--step-2); }
.plan .price { margin: 18px 0 4px; font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price-note { color: var(--muted); font-size: 0.9375rem; }
.plan ul { list-style: none; margin: 24px 0 28px; }
.plan li { padding: 10px 0 10px 28px; border-top: var(--rule); position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: 19px; width: 14px; height: 6px; border-radius: 3px; background: var(--present); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.placeholder { background: color-mix(in srgb, var(--brass) 16%, transparent); padding: 0 0.2em; border-radius: var(--r-sm); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Tables (privacy, compare) ---------- */

.table-scroll { overflow-x: auto; border-top: var(--title-rule); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9688rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: var(--rule); }
.data-table thead th { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.data-table tbody th { font-weight: 600; min-width: 11rem; }
.data-table td { color: var(--ink); min-width: 10rem; }
.yes { color: var(--present-ink); font-weight: 500; }
.no { color: var(--muted); }

/* ---------- Features page ---------- */

.audience { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding: clamp(40px, 5vw, 64px) 0; border-top: var(--title-rule); }
.audience + .audience { border-top: var(--rule); }
.audience-head h2 { font-size: var(--step-2); }
.audience-head p { color: var(--muted); margin-top: 10px; }
.feature-list { list-style: none; }
.feature-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 16px 0; border-bottom: var(--rule); }
.feature-list li:first-child { padding-top: 0; }
.feature-list h3 { font-size: 1.0625rem; }
.feature-list p { grid-column: 1 / -1; color: var(--muted); font-size: 0.9688rem; max-width: 44rem; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */

.industry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); padding: clamp(40px, 5vw, 64px) 0; border-top: var(--rule); }
.industry:first-of-type { border-top: var(--title-rule); }
.industry h2 { font-size: var(--step-2); }
.industry .lead { color: var(--muted); margin-top: 12px; }
.industry dl { margin: 0; display: grid; grid-template-columns: 9rem 1fr; }
.industry dt, .industry dd { padding: 12px 0; border-top: var(--rule); margin: 0; }
.industry dt { font-weight: 600; font-size: 0.9375rem; padding-right: 16px; }
.industry dd { color: var(--ink); }
@media (max-width: 860px) { .industry { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .industry dl { grid-template-columns: 1fr; } .industry dd { border-top: 0; padding-top: 0; } }

/* ---------- Page head (inner pages) ---------- */

.page-head { padding: clamp(48px, 7vw, 104px) 0 clamp(32px, 4vw, 56px); }
.page-head h1 { font-size: var(--step-1); max-width: 22ch; letter-spacing: -0.03em; }
.page-head p { margin-top: 18px; font-size: 1.1875rem; color: var(--muted); max-width: 42rem; }

/* ---------- FAQ ---------- */

.faq { border-top: var(--title-rule); max-width: 52rem; }
.faq details { border-bottom: var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 44rem; }

/* ---------- Final call ---------- */

.final { padding: clamp(64px, 9vw, 120px) 0; }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.final h2 { font-size: var(--step-1); max-width: 18ch; }
.final p { margin-top: 18px; color: var(--muted); max-width: 34rem; font-size: 1.125rem; }
.final .cta-row { margin-top: 32px; }
.qr { width: 196px; padding: 16px; background: #FFFFFF; border-radius: var(--r-lg); }
.qr img { width: 100%; height: auto; }
.qr-cap { margin-top: 10px; font-size: 0.8125rem; color: var(--muted); text-align: center; width: 196px; }
@media (max-width: 760px) { .final-grid { grid-template-columns: 1fr; } .qr-box { display: none; } }

/* ---------- Footer ---------- */

.site-footer { padding: 48px 0 40px; border-top: var(--rule); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
.footer-grid h2 { font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-bottom: 10px; letter-spacing: 0; }
.footer-grid ul { list-style: none; }
.footer-grid li { padding: 4px 0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-about p { color: var(--muted); max-width: 26rem; margin-top: 12px; }
.footnotes { margin-top: 36px; padding-top: 18px; border-top: var(--rule); color: var(--muted); font-size: 0.8125rem; }
.footnotes p + p { margin-top: 6px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

.prose { max-width: 44rem; }
.prose p + p { margin-top: 14px; }
.note { padding: 16px 18px; border-left: 3px solid var(--brass); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; color: var(--ink); max-width: 46rem; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }

.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.table-title { font-size: var(--step-2); margin-bottom: 20px; }
.founder { margin: 0; max-width: 46rem; }
.founder p { font-size: var(--step-2); line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; }
.founder footer { margin-top: 18px; color: var(--muted); }
.placeholder-block { background: color-mix(in srgb, var(--brass) 12%, transparent); padding: 4px 8px; border-radius: var(--r); }

/* ---------- The film (assets/film.js). A fixed 1280×720 stage scaled to the frame, like a video. ---------- */

.film-section .section-head p { color: var(--muted); }
.film-frame { position: relative; overflow: hidden; border-radius: var(--r-frame); border: 1px solid var(--hairline); background: #FFFFFF; }
.film-stage {
  /* The stage is always light: it shows the product, not the page around it. */
  --paper: #FFFFFF; --surface: #FFFFFF; --hairline: #E8E8E8; --ink: #1B1B1B; --muted: #767676; --brass: #FC563D;
  --present: #15A05D; --late: #FC563D; --absent: #F5222D; --present-ink: #127F4A; --late-ink: #A9470F; --absent-ink: #C8161F; --track: #F4F4F4;
  position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0;
  background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1.4; overflow: hidden;
}
.film-stage.is-portrait { width: 720px; height: 960px; font-size: 24px; }
.f-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 72px; padding: 128px 80px 142px; visibility: hidden; }
.film-stage.is-portrait .f-scene { flex-direction: column; gap: 32px; padding: 150px 48px 170px; }
.f-clock { position: absolute; left: 64px; top: 44px; display: flex; align-items: baseline; gap: 22px; z-index: 2; }
.f-clock b { font-size: 64px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.f-clock span { font-size: 24px; color: var(--muted); font-weight: 500; }
.film-stage.is-portrait .f-clock { left: 48px; top: 40px; flex-direction: column; gap: 6px; }
.film-stage.is-portrait .f-clock b { font-size: 56px; }
.f-caption { position: absolute; left: 64px; right: 64px; bottom: 40px; font-size: 25px; line-height: 1.38; max-width: 900px; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.film-stage.is-portrait .f-caption { left: 48px; right: 48px; bottom: 40px; font-size: 24px; }

.f-door { display: flex; flex-direction: column; align-items: center; }
.f-door-screen { width: 360px; background: var(--ink); color: #F4F4F4; border-radius: 16px; padding: 22px 24px 18px; }
.f-door-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 18px; }
.f-door-head span { color: #A3A3A3; }
.f-door-foot { margin-top: 12px; font-size: 15px; color: #A3A3A3; text-align: center; }
.f-door-stand { width: 90px; height: 34px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 8px 8px; }
.f-qr { margin-top: 16px; background: #FFFFFF; border-radius: 8px; padding: 16px; }
.f-qr svg[hidden] { display: none; }
.f-qr svg { width: 100%; height: auto; fill: var(--ink); shape-rendering: crispEdges; }
.f-qr-small { margin: 0; padding: 10px; }
.film-stage.is-portrait .f-door-screen { width: 280px; padding: 16px 18px 14px; }
.film-stage.is-portrait .f-door-foot, .film-stage.is-portrait .f-door-stand { display: none; }

.f-phone { width: 300px; height: 444px; border: 2.5px solid var(--ink); border-radius: 44px; padding: 12px; background: var(--surface); flex: none; }
.f-phone-sm { height: 330px; }
.film-stage.is-portrait .f-phone { height: 470px; }
.film-stage.is-portrait .f-phone-sm { height: 300px; }
.f-phone-screen { position: relative; height: 100%; border-radius: 34px; background: var(--paper); overflow: hidden; }
.f-pane { position: absolute; inset: 0; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.f-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px; padding: 18px; font-size: 19px; }
.f-card b { display: block; font-weight: 600; }
.f-muted { color: var(--muted); font-size: 17px; }
.f-big { font-size: 58px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 16px 0 6px; font-variant-numeric: tabular-nums; }
.f-muted-big { color: var(--muted); }
.f-present { color: var(--present-ink); font-weight: 500; }
.f-late { color: var(--late-ink); font-weight: 500; }
.f-btn { display: flex; align-items: center; justify-content: center; min-height: 58px; border: 2px solid var(--ink); border-radius: 6px; font-weight: 500; font-size: 20px; margin-top: auto; }
.f-btn-primary { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.f-btn-sm { min-height: 44px; padding: 0 18px; font-size: 18px; margin: 0; }
.is-pressed { transform: scale(0.96); filter: brightness(0.88); }
.f-track { position: relative; height: 12px; border-radius: 6px; background: var(--track); margin-top: 18px; }
.f-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--present); }
.f-fill.is-late { background: var(--late); }
.f-tick { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px; background: var(--brass); }
.f-scan { background: #1B1B1B; align-items: center; justify-content: center; color: #F4F4F4; }
.f-finder { position: relative; width: 210px; padding: 18px; }
.f-finder i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--brass); }
.f-finder i:nth-of-type(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.f-finder i:nth-of-type(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.f-finder i:nth-of-type(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.f-finder i:nth-of-type(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.f-scan-cap { font-size: 17px; color: #A3A3A3; text-align: center; }
.f-ok { padding: 10px 14px; border-radius: 6px; background: var(--surface); color: var(--present-ink); font-size: 17px; font-weight: 500; border: 1px solid var(--hairline); }
.f-scan .f-ok { position: absolute; left: 20px; right: 20px; bottom: 26px; }
.f-ok-strong { border-left: 4px solid var(--present); }
.f-sheet-title { font-size: 26px; font-weight: 600; }
.f-option { padding: 14px 16px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--surface); font-size: 19px; }
.f-option.is-picked { border: 2px solid var(--ink); }
.f-input { padding: 14px 16px; border-bottom: 2px solid var(--ink); background: var(--surface); font-size: 18px; }
.f-pane .f-ok { position: static; }
.f-btn-inline { margin-top: 4px; }
.f-stack { display: grid; }
.f-stack > * { grid-area: 1 / 1; align-self: start; }

.f-chat { width: 520px; flex: none; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; align-self: center; }
.f-chat-wide { width: 600px; }
.film-stage.is-portrait .f-chat { width: 600px; }
.f-chat-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); font-size: 20px; }
.f-avatar { width: 42px; height: 42px; display: grid; place-items: center; }
.f-avatar svg { width: 42px; height: 42px; }
.f-avatar-group { border-radius: 50%; background: var(--brass); color: var(--ink); font-weight: 600; }
.f-chat-body { position: relative; padding: 20px; min-height: 220px; display: grid; }
.f-chat-body > * { grid-area: 1 / 1; align-self: start; }
.f-msg { background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px; padding: 16px 18px; font-size: 20px; line-height: 1.45; }
.f-msg b { font-weight: 600; }
.f-msg-alert { border-left: 4px solid var(--absent); }
.f-msg-closed { border-left: 4px solid var(--present); color: var(--muted); }
.f-msg-closed b { color: var(--ink); }
.f-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.f-msg > .f-keys + .f-keys { margin-top: -54px; }
.f-keys span { text-align: center; padding: 11px; border-radius: 999px; background: #F4F4F4; font-weight: 500; font-size: 18px; }
.f-keys .f-done { grid-column: span 2; background: transparent; border: 1px solid var(--hairline); color: var(--present-ink); }

.f-bars { width: 470px; display: flex; flex-direction: column; gap: 16px; }
.f-bar-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; }
.f-bar-row .f-track { margin: 0; }
.film-stage.is-portrait .f-bars { width: 600px; gap: 12px; }

.f-sheet { width: 1120px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.f-sheet-bar { display: flex; align-items: center; gap: 22px; padding: 16px 22px; border-bottom: 1.5px solid var(--ink); font-size: 20px; }
.f-sheet-bar b { margin-right: auto; }
.f-open { color: var(--late-ink); font-weight: 500; }
.f-sheet .sheet { font-size: 16px; }
.f-sheet .sheet th, .f-sheet .sheet td { padding: 8px 7px; }
.f-sheet .sheet thead th { font-size: 15px; }
.film-stage.is-portrait .f-sheet { width: 640px; }
.film-stage.is-portrait .f-sheet .sheet { font-size: 13px; }
.film-stage.is-portrait .f-sheet .sheet th, .film-stage.is-portrait .f-sheet .sheet td { padding: 9px 3px; }
.film-stage.is-portrait .f-sheet .sheet th[scope='row'] { padding-left: 12px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.film-stage.is-portrait .f-sheet-bar { flex-wrap: wrap; gap: 10px 16px; }
.f-file { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--surface); font-size: 19px; font-weight: 500; }
.f-file svg { width: 26px; height: 26px; color: var(--present); }
.f-scene[data-scene='4'] { flex-direction: column; gap: 18px; }

.film-play { position: absolute; inset: 0; margin: auto; width: max-content; height: 64px; display: inline-flex; align-items: center; gap: 12px; padding: 0 28px 0 22px; border: 0; border-radius: 999px; background: #1B1B1B; color: #FFFFFF; font: 500 1.125rem/1 var(--font); cursor: pointer; z-index: 3; }
.film-play svg { width: 26px; height: 26px; }
.film-play:hover { background: #323232; }
.film.is-started .film-play { display: none; }
.film.is-ended .film-play { display: inline-flex; }
.film-frame::after { content: ''; position: absolute; inset: 0; background: rgb(21 36 31 / 0.18); pointer-events: none; transition: opacity 200ms; }
.film.is-started .film-frame::after { opacity: 0; }
.film-controls { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.film-toggle { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--hairline); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.film-toggle svg { width: 20px; height: 20px; }
.film-progress { position: relative; flex: 1; height: 10px; border-radius: 5px; background: var(--track); cursor: pointer; touch-action: none; }
.film-progress .f-fill { width: 0; }
.film-progress .f-tick { left: 0; top: -7px; bottom: -7px; }
.film-progress i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--paper); }
.film-note { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.film-chapters { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--hairline); }
.film-chapters button { width: 100%; height: 100%; text-align: left; padding: 14px 14px 14px 0; background: none; border: 0; color: var(--muted); font: 500 0.9375rem/1.35 var(--font); cursor: pointer; border-top: 2px solid transparent; margin-top: -1px; }
.film-chapters li + li button { padding-left: 14px; }
.film-chapters .num { display: block; color: var(--brass); font-weight: 600; margin-bottom: 4px; }
.film-chapters button:hover, .film-chapters button[aria-current] { color: var(--ink); }
.film-chapters button[aria-current] { border-top-color: var(--brass); }
@media (max-width: 760px) {
  .film-chapters { grid-template-columns: 1fr; }
  .film-chapters li + li button { padding-left: 0; }
  .film-chapters button { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline); }
  .film-chapters .num { margin: 0; }
  .film-note { display: none; }
}

/* Export mode (scripts/export-film.mjs): only the stage, at 1:1. */
.film-export body > *:not(main), .film-export main > *:not(.film-section) { display: none !important; }
.film-export .film-section { padding: 0; }
.film-export .film-section .wrap { padding: 0; max-width: none; }
.film-export .section-head, .film-export .film-controls, .film-export .film-chapters, .film-export .film-play { display: none !important; }
.film-export .film-frame { border: 0; border-radius: 0; height: auto !important; overflow: visible; }
.film-export .film-frame::after { display: none; }
.film-export .film-stage { position: relative; }

/* Portrait film (phones, and the 4:5 export): scene-specific fits inside 720×960. */
.film-stage.is-portrait .f-scene { padding: 142px 48px 160px; }
.film-stage.is-portrait .f-scene[data-scene='0'] { flex-direction: row; gap: 28px; }
.film-stage.is-portrait [data-scene='0'] .f-phone { width: 290px; height: 470px; }
.film-stage.is-portrait .f-door-screen { width: 280px; }
.film-stage.is-portrait .f-scene[data-scene='1'] { gap: 20px; }
.film-stage.is-portrait [data-scene='1'] .f-phone { width: 340px; height: 368px; }
.film-stage.is-portrait .f-chat-body { min-height: 0; }
[data-scene='1'] .f-input { display: none; }

/* The privacy table as stacked records on phones. */
@media (max-width: 640px) {
  .data-table thead { display: none; }
  .data-table tr { display: block; padding: 14px 0; border-bottom: var(--rule); }
  .data-table th, .data-table td { display: block; border: 0; padding: 3px 0; min-width: 0; }
  .data-table tbody th { font-size: 1.0625rem; margin-bottom: 4px; }
  .data-table td::before { content: attr(data-label); display: block; font-size: 0.8125rem; color: var(--muted); }
}

.feature-list li { grid-template-columns: 1fr; }

/* ---------- Feature demos (assets/demos.js) ---------- */

.demo-block { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: var(--rule); }
.demo-block.flip { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.75fr); }
.demo-block.flip .demo-copy { order: 2; }
.demo-schedule .demo-body { padding-bottom: 56px; }
.demo-copy h3 { font-size: var(--step-2); margin-bottom: 10px; }
.demo-copy p { color: var(--muted); }
.demo-note { padding: 16px 0 28px; color: var(--muted); max-width: 52rem; }
.demo-note b { color: var(--ink); font-weight: 600; margin-right: 4px; }
@media (max-width: 900px) { .demo-block, .demo-block.flip { grid-template-columns: 1fr; } .demo-block.flip .demo-copy { order: 0; } }
.audience .demo { margin-top: 28px; }

.demo { margin: 0; min-width: 0; }
.demo-window { background: var(--surface); border: var(--rule); border-radius: var(--r-frame); overflow: hidden; position: relative; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: var(--rule); font-size: 0.8125rem; color: var(--muted); }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline); }
.demo-bar span { margin-left: 10px; font-weight: 500; }
.demo-body { padding: clamp(12px, 2vw, 20px); position: relative; }
.demo-cap { margin-top: 10px; font-size: 0.75rem; color: var(--muted); }
.demo-toast { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; background: var(--ink); color: var(--paper); padding: 9px 14px; border-radius: var(--r); font-size: 0.875rem; font-weight: 500; white-space: nowrap; }

/* Schedule editor */
.sc { position: relative; font-size: 0.8125rem; min-width: 520px; }
.demo-schedule .demo-body { overflow-x: auto; }
.sc-palette { height: 48px; display: flex; align-items: center; gap: 6px; }
.sc-spacer { flex: 1; }
.sc-chip, .sc-ghost { padding: 5px 10px; border-radius: var(--r); font-weight: 500; white-space: nowrap; font-size: 0.8125rem; }
.sc-ghost { position: absolute; z-index: 2; outline: 1.5px solid var(--ink); box-shadow: none; pointer-events: none; transform: translate(4px, 0); }
.sc-btn { padding: 5px 10px; border: 1px solid var(--ink); border-radius: var(--r); font-weight: 500; }
.sc-btn-primary { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.sc-row { display: grid; grid-template-columns: 28% repeat(7, minmax(0, 1fr)); height: 40px; align-items: center; border-bottom: var(--rule); }
.sc-head { height: 30px; color: var(--muted); font-size: 0.75rem; border-bottom: var(--title-rule); }
.sc-head > span:not(.sc-name) { text-align: center; }
.sc-name { position: relative; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.sc-head .sc-name { font-weight: 500; }
.sc-row > .sc, .sc-row > .sc-stack { min-width: 0; }
span.sc { display: block; margin: 0 2px; padding: 5px 0; text-align: center; border-radius: var(--r-sm); font-weight: 500; min-width: 0; font-size: 0.75rem; }
.sc-day { background: #E6F0EA; color: var(--present-ink); }
.sc-night { background: #E4E7F0; color: #3A4A78; }
.sc-off { background: transparent; color: var(--muted); }
.sc-chip.sc-off { border: 1px solid var(--hairline); }
.sc-stack { display: grid; }
.sc-stack > * { grid-area: 1 / 1; }
.sc-warn { display: block; font-size: 0.6875rem; line-height: 1.1; color: var(--absent-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Live map */
.mp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 16px; align-items: start; }
.mp { width: 100%; height: auto; background: var(--paper); border-radius: var(--r); }
.mp-street { fill: none; stroke: var(--hairline); stroke-width: 6; }
.mp-zone { fill: color-mix(in srgb, var(--present) 8%, transparent); stroke: var(--present); stroke-width: 1.5; stroke-dasharray: 5 4; }
.mp-label { font: 500 13px var(--font); fill: var(--muted); text-anchor: middle; }
.mp-trail { fill: none; stroke: var(--brass); stroke-width: 2; stroke-dasharray: 1; stroke-linecap: round; }
.mp-marker circle { fill: var(--ink); stroke: var(--surface); stroke-width: 2.5; }
.mp-marker text { font: 600 11px var(--font); fill: #FFFFFF; text-anchor: middle; }
.mp-marker.is-off circle { fill: var(--surface); stroke: var(--muted); stroke-dasharray: 3 3; }
.mp-marker.is-off text { fill: var(--muted); }
.mp-side { font-size: 0.875rem; }
.mp-side-head { padding-bottom: 8px; border-bottom: var(--title-rule); color: var(--muted); }
.mp-side-head b { color: var(--ink); font-size: 1.25rem; margin-left: 4px; }
.mp-side ul { list-style: none; }
.mp-side li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: var(--rule); }
.mp-side li b { font-weight: 500; }
.mp-side li span { font-size: 0.8125rem; font-weight: 500; }
.mp-side p { margin-top: 10px; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 640px) { .mp-wrap { grid-template-columns: 1fr; } }

/* Analytics */
.an { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; font-size: 0.875rem; }
.an-title { font-weight: 600; padding-bottom: 8px; margin-bottom: 8px; border-bottom: var(--title-rule); }
.an-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 6rem; gap: 10px; align-items: center; padding: 9px 0; }
.an-row b { text-align: right; font-weight: 600; }
.an-track { position: relative; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.an-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--late); }
.an-total { display: flex; justify-content: space-between; padding-top: 10px; margin-top: 4px; border-top: var(--rule); }
.an-total b { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.hm-row { display: grid; grid-template-columns: 2rem repeat(10, minmax(0, 1fr)); gap: 3px; margin-bottom: 3px; align-items: center; }
.hm-row span { font-size: 0.75rem; color: var(--muted); }
.hm-row i { display: block; aspect-ratio: 1.4; border-radius: 2px; }
.hm-0 { background: var(--track); }
.hm-1 { background: color-mix(in srgb, var(--late) 25%, var(--track)); }
.hm-2 { background: color-mix(in srgb, var(--late) 50%, var(--track)); }
.hm-3 { background: color-mix(in srgb, var(--late) 75%, var(--track)); }
.hm-4 { background: var(--late); }
.hm-axis span { font-size: 0.6875rem; }
@media (max-width: 640px) { .an { grid-template-columns: 1fr; } }

/* Signed documents */
.sg { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; font-size: 0.875rem; }
.sg-doc { background: var(--paper); border: var(--rule); border-radius: var(--r-lg); padding: 18px; }
.sg-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; margin-bottom: 10px; border-bottom: var(--title-rule); font-size: 1rem; }
.sg-label { font-size: 0.75rem; font-weight: 500; color: var(--muted); padding: 1px 7px; border: 1px solid var(--hairline); border-radius: 999px; }
.sg-lines i { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--track); }
.sg-sign { display: grid; margin-top: 16px; min-height: 44px; }
.sg-sign > * { grid-area: 1 / 1; align-self: center; }
.sg-progress span { display: block; font-size: 0.8125rem; color: var(--muted); margin-bottom: 6px; }
.sg-progress .an-track i { background: var(--brass); }
.sg-stamp { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 12px; border: 1.5px solid var(--present); border-radius: var(--r); color: var(--present-ink); font-weight: 600; }
.sg-stamp svg { width: 18px; height: 18px; }
.sg-steps { list-style: none; }
.sg-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: var(--rule); }
.sg-steps li > .sg-step { grid-column: 2; grid-row: 1; }
.sg-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--hairline); display: grid; place-items: center; }
.sg-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--present); }
.sg-step { font-weight: 500; position: relative; z-index: 1; background: var(--surface); }
.sg-todo { color: var(--muted); font-weight: 400; z-index: 0; }
@media (max-width: 640px) { .sg { grid-template-columns: 1fr; } }
.audience > * { min-width: 0; }
