/* UPCNTRL public site — Concept C 2.0 tokens (DashaStudio/DesignSystem.swift → UPColor).
   Follows the system appearance; dark is the reference look. No web fonts, no external requests. */

:root {
  color-scheme: dark light;
  --bg: #161411;
  --bg-elevated: #1C1A17;
  --surface: #221F1B;
  --surface-elevated: #2A2621;
  --surface-sunken: rgba(241, 234, 223, .06);
  --text: #F1EADF;
  --text-2: #A89C8E;
  --text-3: #80766B;
  --accent: #D2B47C;
  --accent-ink: #E2C895;
  --accent-soft: rgba(210, 180, 124, .16);
  --on-primary: #161411;
  --primary: #F1EADF;
  --border: rgba(241, 234, 223, .09);
  --border-strong: rgba(241, 234, 223, .16);
  --success: #9DBA95;
  --warning: #D9A070;
  --danger: #DE8F80;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .3);
  --glow: rgba(210, 180, 124, .13);
  --mark-tile: #1B1916;
  --mark-ink: #F5EFE4;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-s: 12px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-xl: 28px;
  --wrap: 1180px;
  --gutter: 24px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F3EEE6;
    --bg-elevated: #FAF7F1;
    --surface: #FFFDF9;
    --surface-elevated: #FFFDF9;
    --surface-sunken: rgba(35, 28, 23, .06);
    --text: #231C17;
    --text-2: #6E6258;
    --text-3: #8C8176;
    --accent: #A8864B;
    --accent-ink: #7A5B26;
    --accent-soft: rgba(168, 134, 75, .16);
    --on-primary: #F7F2EA;
    --primary: #231C17;
    --border: rgba(35, 28, 23, .09);
    --border-strong: rgba(35, 28, 23, .16);
    --success: #5F7D5A;
    --warning: #A8612F;
    --danger: #A5483C;
    --shadow: 0 30px 70px rgba(35, 28, 23, .16), 0 2px 8px rgba(35, 28, 23, .08);
    --glow: rgba(168, 134, 75, .16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.preview-banner { position: relative; z-index: 60; padding: 10px var(--gutter); background: var(--primary); color: var(--on-primary); border-bottom: 4px solid var(--warning); font-weight: 700; font-size: 14px; line-height: 1.4; text-align: center; }
.icon { width: 18px; height: 18px; flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand .mark { flex: none; width: 30px; height: auto; color: var(--accent); }
.wordmark { font-weight: 700; letter-spacing: .12em; font-size: 15px; }
.nav-desktop { display: flex; gap: 4px; margin-left: auto; }
.nav-desktop a, .nav-mobile nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--text); background: var(--surface-sunken); }
.header-end { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill-soon { color: var(--text-2); border: 1px solid var(--border-strong); cursor: default; }
.lang { display: flex; gap: 2px; font-size: 13px; }
.lang a { padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--text-2); }
.lang a[aria-current="true"] { color: var(--text); background: var(--surface-sunken); }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border-strong); cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { transform: translateY(5px) rotate(45deg); }
.nav-mobile[open] .burger::after { transform: translateY(-5px) rotate(-45deg); }
.nav-mobile nav { position: absolute; right: 0; top: 52px; min-width: 220px; display: grid; gap: 2px; padding: 8px; border-radius: var(--radius-m); background: var(--surface-elevated); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.nav-mobile nav a { padding: 12px 14px; font-size: 16px; color: var(--text); }
.nav-mobile nav a[aria-current="page"] { background: var(--surface-sunken); }
.menu-note { padding: 10px 14px 6px; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--border); margin-top: 4px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.button-primary { background: var(--primary); color: var(--on-primary); }
.button-ghost { border-color: var(--border-strong); color: var(--text); }
.button-ghost:hover { background: var(--surface-sunken); }
.button[aria-disabled="true"] { cursor: default; }
.soon-badge { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 20px 0 16px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.soon-badge .icon { width: 24px; height: 24px; color: var(--accent); }
.soon-badge small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); line-height: 1.2; }
.soon-badge strong { display: block; font-size: 16px; line-height: 1.25; }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 35%; height: 900px; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 22px; font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; color: var(--text-2); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--accent); }
.hero-visual { position: relative; height: 640px; }
.hero-visual .phone { position: absolute; }
.hero-visual .phone-back { right: calc(-1 * min(56px, max(0px, (100vw - var(--wrap)) / 2 - 16px))); top: 56px; transform: scale(.9); transform-origin: top right; }
.hero-visual .phone-front { left: 0; top: 0; z-index: 2; }

/* Sections */
section { position: relative; }
.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2, .split h2, .final h2 { margin-top: 16px; font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4.2vw, 52px); letter-spacing: -.02em; }
.section-head p { margin-top: 18px; color: var(--text-2); font-size: 19px; }
.section-head.flush { margin-bottom: 0; }

.strip { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.strip li strong { display: block; color: var(--text); font-weight: 600; }
.strip .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 26px 24px 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border); }
.feature .glyph { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 22px; }
.feature .glyph svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse .split-text { order: 2; }
.split-text p { margin-top: 18px; color: var(--text-2); font-size: 18px; max-width: 32em; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 10px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(.8); transform-origin: left top; }
.split-visual { display: flex; justify-content: center; position: relative; }
.split-visual::before { content: ""; position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, var(--glow), transparent 75%); }

.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.privacy-card { padding: 26px; border-radius: var(--radius-l); border: 1px solid var(--border); background: var(--surface); }
.privacy-card h3 { font-size: 17px; margin-bottom: 8px; }
.privacy-card p { font-size: 15px; color: var(--text-2); }
.text-link { display: inline-flex; margin-top: 36px; color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.languages { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.languages span { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 15px; }

.final { text-align: center; padding: 120px 0; }
.final .wrap { display: grid; justify-items: center; }
.final .mark { width: 64px; color: var(--accent); margin-bottom: 28px; }
.final p { margin-top: 18px; color: var(--text-2); font-size: 19px; max-width: 34em; }
.final .hero-actions { justify-content: center; }

/* Phone mockups — rebuilt from the Concept C 2.0 screens with synthetic data */
.phone { --w: 300px; width: var(--w); aspect-ratio: 300 / 626; padding: 10px; border-radius: 48px; background: linear-gradient(145deg, #3a352f, #121110 60%); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .08); flex: none; }
.screen { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: var(--bg); color: var(--text); font-size: 12px; line-height: 1.3; }
.screen * { font-family: var(--font-sans); }
.statusbar { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 26px 0 30px; font-size: 13px; font-weight: 600; }
.island { position: absolute; left: 50%; top: 11px; width: 92px; height: 27px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.sb-icons { display: flex; gap: 5px; align-items: center; }
.sb-icons i { display: block; width: 16px; height: 9px; border-radius: 3px; border: 1.3px solid currentColor; }
.sb-icons b { display: block; width: 14px; height: 9px; background: linear-gradient(to right, currentColor 0 18%, transparent 18% 27%, currentColor 27% 45%, transparent 45% 55%, currentColor 55% 73%, transparent 73% 82%, currentColor 82%); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.app { padding: 6px 14px 90px; }
.app-title { text-align: center; font-weight: 600; font-size: 14px; padding: 6px 0 14px; }
.biz { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 4px 0 10px; }
.biz-tile { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 700; }
.biz .chev { width: 7px; height: 7px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.m-date { color: var(--text-2); font-size: 11px; }
.m-h1 { font-size: 24px; font-weight: 700; margin: 1px 0 10px; letter-spacing: -.01em; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 9px; }
.kpis.two { grid-template-columns: 1fr 1fr; }
.kpi { padding: 8px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.kpi small { display: block; color: var(--text-2); font-size: 9.5px; }
.kpi strong { display: block; font-size: 17px; font-weight: 600; margin: 1px 0; font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: 9px; color: var(--text-2); white-space: nowrap; }
.kpi .warn { color: var(--warning); }
.card { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.next { padding: 10px 11px; margin-bottom: 9px; }
.next-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 600; color: var(--accent-ink); margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 6px; font-size: 9.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.chip.due { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.chip.ok { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.chip.low { background: transparent; color: var(--warning); padding: 0; }
.person { display: flex; align-items: center; gap: 9px; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; }
.person-main { flex: 1; min-width: 0; }
.person-main strong { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-main span { display: block; color: var(--text-2); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bigtime { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.btns span { display: grid; place-items: center; height: 28px; border-radius: 9px; font-size: 11px; font-weight: 600; }
.btns .fill { background: var(--primary); color: var(--on-primary); }
.btns .line { border: 1px solid var(--border-strong); }
.rowlink { display: flex; align-items: center; gap: 9px; padding: 9px 11px; margin-bottom: 9px; font-size: 11.5px; }
.rowlink .sq { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-ink); }
.rowlink .sq svg { width: 13px; height: 13px; }
.rowlink em { font-style: normal; flex: 1; }
.rowlink.spaced { margin-top: 9px; }
.rowlink .go { width: 6px; height: 6px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(-45deg); }
.m-section { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; margin: 12px 2px 7px; }
.m-section a, .m-section span:last-child { color: var(--accent-ink); font-weight: 500; text-decoration: none; }
.list .item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; }
.list .item + .item { border-top: 1px solid var(--border); }
.list .time { width: 34px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stack > .card + .card { margin-top: 6px; }
.tabbar { position: absolute; left: 10px; right: 10px; bottom: 12px; height: 58px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-radius: 22px; background: color-mix(in srgb, var(--surface-elevated) 92%, transparent); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.tab { display: grid; justify-items: center; gap: 3px; font-size: 8.5px; color: var(--text-3); }
.tab svg { width: 18px; height: 18px; }
.tab-add { width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; background: var(--surface-sunken); display: grid; place-items: center; color: var(--text-2); font-size: 22px; font-weight: 300; }
.phone[data-tab="home"] .tab-home, .phone[data-tab="calendar"] .tab-calendar, .phone[data-tab="clients"] .tab-clients, .phone[data-tab="menu"] .tab-menu { color: var(--text); font-weight: 600; }
.cal-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.cal-head small { color: var(--text-2); font-size: 10.5px; }
.cal-head strong { display: block; font-size: 20px; font-weight: 700; }
.today-btn { display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border-strong); font-size: 10.5px; font-weight: 600; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 10px; }
.week div { padding: 5px 0 6px; border-radius: 10px; font-size: 9px; color: var(--text-2); }
.week b { display: block; font-size: 13px; color: var(--text); font-weight: 600; margin-top: 2px; }
.week i { display: block; width: 14px; height: 2px; border-radius: 2px; margin: 4px auto 0; background: var(--surface-sunken); }
.week i.has { background: linear-gradient(to right, var(--accent) 0 40%, var(--surface-sunken) 40%); }
.week .sel { background: var(--primary); color: var(--on-primary); }
.week .sel b { color: var(--on-primary); }
.seg-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--text-2); font-size: 10.5px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 2px; border-radius: 9px; background: var(--surface-sunken); font-size: 10px; font-weight: 600; }
.seg.three { grid-template-columns: repeat(3, 1fr); width: 100%; margin-bottom: 8px; }
.seg span { padding: 4px 12px; border-radius: 7px; text-align: center; color: var(--text-2); }
.seg .on { background: var(--surface-elevated); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.appt { display: grid; grid-template-columns: 34px 1fr; gap: 6px; margin-bottom: 6px; }
.appt > span { font-size: 11px; font-weight: 600; padding-top: 9px; font-variant-numeric: tabular-nums; }
.appt .card { position: relative; padding: 8px 10px 9px 14px; }
.appt .card::before { content: ""; position: absolute; left: 6px; top: 9px; bottom: 9px; width: 2.5px; border-radius: 2px; background: var(--accent); }
.appt .card.done::before { background: var(--success); }
.appt-top { display: flex; justify-content: space-between; font-weight: 600; font-size: 12px; }
.appt-top span { font-variant-numeric: tabular-nums; }
.appt small { display: block; color: var(--text-2); font-size: 10px; margin: 2px 0 6px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-3); font-size: 11px; margin-bottom: 8px; }
.search i { width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 50%; }
.filters { display: flex; gap: 5px; margin-bottom: 8px; flex-wrap: nowrap; overflow: hidden; }
.filters span { height: 24px; padding: 0 9px; display: inline-flex; align-items: center; gap: 4px; border-radius: 8px; border: 1px solid var(--border-strong); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.filters span em { font-style: normal; color: var(--text-2); font-weight: 500; }
.filters .on { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.filters .on em { color: var(--on-primary); opacity: .7; }
.letter { font-size: 10px; color: var(--text-2); font-weight: 600; margin: 8px 3px 4px; }
.client { display: flex; align-items: center; gap: 9px; padding: 8px 10px; }
.chart { padding: 10px 11px 9px; }
.chart-title { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; gap: 4px; height: 96px; padding-bottom: 4px; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(to top, transparent 0 31px, var(--border) 31px 32px); }
.bars i { display: block; border-radius: 3px 3px 1px 1px; background: var(--accent); opacity: .9; }
.bars i.dim { opacity: .35; }
/* Bar heights of the Finance mockup (was inline style=""; moved here for the strict CSP). */
.bars i:nth-child(1) { height: 34%; }
.bars i:nth-child(2) { height: 52%; }
.bars i:nth-child(3) { height: 41%; }
.bars i:nth-child(4) { height: 66%; }
.bars i:nth-child(5) { height: 58%; }
.bars i:nth-child(6) { height: 22%; }
.bars i:nth-child(7) { height: 8%; }
.bars i:nth-child(8) { height: 47%; }
.bars i:nth-child(9) { height: 71%; }
.bars i:nth-child(10) { height: 55%; }
.bars i:nth-child(11) { height: 83%; }
.bars i:nth-child(12) { height: 62%; }
.bars i:nth-child(13) { height: 30%; }
.bars i:nth-child(14) { height: 49%; }
.axis { display: flex; justify-content: space-between; font-size: 8.5px; color: var(--text-3); margin-top: 4px; }
.fin-rows .item { font-size: 11px; }
.fin-rows .item span:last-child { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.mat { display: flex; align-items: center; gap: 9px; padding: 8px 10px; }
.mat .sq { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.mat .sq svg { width: 15px; height: 15px; }
.qty { text-align: right; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.qty small { display: block; font-size: 8.5px; color: var(--text-2); font-weight: 500; }
.mat + .mat { border-top: 1px solid var(--border); }

/* Google Calendar illustration */
.gcal { width: min(100%, 440px); padding: 22px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; }
.gcal-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); margin-bottom: 16px; }
.gcal-head strong { color: var(--text); font-size: 16px; }
.gcal-grid { display: grid; grid-template-columns: 44px 1fr; row-gap: 0; font-size: 12px; color: var(--text-3); }
.gcal-grid > span { height: 46px; border-top: 1px solid var(--border); padding-top: 4px; }
.gcal-grid > div { height: 46px; border-top: 1px solid var(--border); position: relative; }
.ev { position: absolute; left: 6px; right: 0; top: 4px; padding: 7px 10px; border-radius: 10px; font-size: 13px; line-height: 1.3; }
.ev strong { display: block; color: #231C17; font-weight: 600; }
.ev small { color: rgba(35, 28, 23, .7); font-size: 11.5px; }
.ev-up { background: #E2C895; height: 84px; }
.ev-other { background: var(--surface-sunken); border: 1px dashed var(--border-strong); height: 38px; }
.ev-other strong { color: var(--text-2); font-weight: 500; }
.gcal-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 13px; }
.gcal-note div { display: flex; gap: 8px; align-items: center; }
.gcal-note .yes::before, .gcal-note .no::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; }
.gcal-note .yes::before { background: color-mix(in srgb, var(--success) 25%, transparent); box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 8px var(--success); }
.gcal-note .no::before { background: linear-gradient(45deg, transparent 45%, var(--text-3) 45% 55%, transparent 55%); border: 1.5px solid var(--text-3); }
.gcal-note .no { color: var(--text-2); }

/* Documents (Privacy, Terms, Support) */
.doc-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border); }
.doc-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5vw, 60px); letter-spacing: -.02em; margin-top: 16px; overflow-wrap: break-word; hyphens: auto; }
.doc-hero p { margin-top: 16px; color: var(--text-2); font-size: 18px; max-width: 42em; }
.doc-status { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 24px; font-size: 14px; color: var(--text-2); }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 104px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); background: var(--surface-sunken); }
.prose { max-width: 72ch; min-width: 0; overflow-wrap: break-word; }
.prose h2 { font-size: 24px; margin: 56px 0 16px; padding-top: 8px; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 30px 0 10px; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent-ink); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; padding: 1px 5px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border); overflow-wrap: anywhere; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text-2); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.callout { padding: 18px 20px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--border); margin: 0 0 20px; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-color: color-mix(in srgb, var(--warning) 40%, transparent); }
mark.todo { background: color-mix(in srgb, var(--warning) 22%, transparent); color: var(--text); padding: 1px 6px; border-radius: 6px; font-size: .88em; font-weight: 600; white-space: normal; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Support */
.support-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 12px; }
.support-card { padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--border); }
.support-card h3 { font-size: 18px; margin: 0 0 6px; }
.support-card p { color: var(--text-2); font-size: 15px; margin-bottom: 14px; }
.support-card a.mail { font-weight: 600; color: var(--accent-ink); font-size: 17px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-top: 7px; border-right: 1.6px solid var(--text-2); border-bottom: 1.6px solid var(--text-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
.faq .answer { padding: 0 2px 18px; color: var(--text-2); }
.faq .answer p + p, .faq .answer p + ol, .faq .answer ol + p { margin-top: 10px; }
.faq .answer ol, .faq .answer ul { padding-left: 1.2em; margin: 8px 0 0; }
.faq .answer strong { color: var(--text); }

/* 404 */
.notfound { padding: 140px 0; text-align: center; }
.notfound h1 { font-family: var(--font-display); font-weight: 500; font-size: 56px; }
.notfound p { color: var(--text-2); margin: 16px 0 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elevated); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.footer-brand p { margin-top: 14px; color: var(--text-2); max-width: 26em; }
.footer-brand .muted { font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; font-weight: 600; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .muted { font-size: 13px; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; }

/* Responsive */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 600px; max-width: 560px; width: 100%; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-text { order: 0; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-desktop, .pill-soon { display: none; }
  .nav-mobile { display: block; }
  .header-end { margin-left: auto; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; padding: 18px 18px 14px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--border); }
  .toc ol { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .header-row { height: 60px; }
  .hero { padding: 48px 0 40px; }
  .hero-visual { height: 520px; }
  .hero-visual .phone-front { --w: 250px; left: 0; }
  .hero-visual .phone-back { --w: 250px; top: 44px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .features, .privacy-grid, .support-cards, .strip ul { grid-template-columns: 1fr; }
  .toc ol { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-links > div:last-child { grid-column: 1 / -1; }
  .final { padding: 88px 0; }
  .soon-badge { width: 100%; justify-content: center; }
  .hero-actions .button { width: 100%; }
  .prose h2 { font-size: 21px; margin-top: 44px; }
}
@media (max-width: 380px) {
  /* iPhone SE (320 px): header fits without clipping the menu button. */
  .header-row, .header-end { gap: 8px; }
  .brand { gap: 8px; }
  .brand .mark { width: 26px; }
  .wordmark { font-size: 13px; letter-spacing: .08em; }
  .lang { gap: 0; }
  .lang a { padding: 6px 5px; }
  .nav-mobile summary { width: 38px; height: 38px; }
  .hero-visual .phone-front, .hero-visual .phone-back { --w: 220px; }
  .hero-visual { height: 470px; }
}
@media (forced-colors: active) {
  .phone { border: 2px solid CanvasText; }
  mark.todo { forced-color-adjust: none; }
}

.next .person-main span { white-space: normal; }
@media (max-width: 640px) { .eyebrow::before { display: none; } }
