/* KortShut website: shared styles.
   Layout: an Apple-style product page. A centred hero over a code-drawn Mac
   desktop, then left-aligned two-column feature bands that alternate white and
   grouped grey. Colours, radii and shadows come from the app's
   AppDesignTokens (lib/theme/app_design_tokens.dart); type is the system font,
   as in the app. */

:root {
  /* Surfaces */
  --bg: #FFFFFF;                      /* backgroundPrimary */
  --bg-alt: #F2F2F7;                  /* backgroundSecondary */
  --card: #FFFFFF;                    /* backgroundTertiary */
  --card-inset: #F2F2F7;
  /* Text */
  --fg: rgba(0, 0, 0, .85);           /* labelPrimary */
  --fg-2: rgba(60, 60, 67, .75);      /* labelSecondary (4.5:1+) */
  --fg-3: rgba(60, 60, 67, .30);      /* decoration only */
  /* Lines and fills */
  --sep: rgba(60, 60, 67, .29);       /* separator */
  --sep-soft: rgba(60, 60, 67, .14);
  --fill: rgba(120, 120, 128, .20);   /* fillPrimary */
  --fill-2: rgba(120, 120, 128, .12);
  --control-border: rgba(60, 60, 67, .65);
  /* Accent */
  --accent: #007AFF;                  /* systemBlue: icons, tints */
  --accent-fill: #0070C9;             /* accentFill: white words 5.05:1 */
  --on-accent: #FFFFFF;
  --link: #005BA3;                    /* accentOnTint */
  --ring: #0070C9;
  --tint: rgba(0, 122, 255, .12);
  --kortney: #4454AD;
  --kortney-fill: #596AC5;
  --kortney-tint: rgba(68, 84, 173, .10);
  --success: #1E7B34;
  --success-fill: #1F7A35;
  --amber: #FF9500;
  /* Glass and depth */
  --glass: rgba(255, 255, 255, .72);
  --glass-solid: #FFFFFF;
  --shadow-raised: 0 1px 4px rgba(0, 0, 0, .08);
  --shadow-floating: 0 4px 20px rgba(0, 0, 0, .10);
  --shadow-overlay: 0 16px 48px rgba(0, 0, 0, .18);
  /* The demo desktop */
  --desk: linear-gradient(160deg, #E9EEF8 0%, #EFE9F7 55%, #F6EAF3 100%);
  --win: #FFFFFF;
  --win-bar: #F6F6F8;
  --win-edge: rgba(0, 0, 0, .12);
  --select: rgba(0, 122, 255, .24);
  --bubble-them: #E9E9EB;
  --bubble-me: #0070C9;
  /* The pill is dark in both themes, as in the app */
  --pill: rgba(28, 28, 30, .95);
  --pill-edge: rgba(255, 255, 255, .20);
  --pill-fg: #FFFFFF;
  --pill-fg-2: rgba(255, 255, 255, .72);
  /* Brand gradient: the logo and the glow behind the demo only */
  --brand-a: #045BEE;
  --brand-b: #6C3AF5;
  --brand-c: #D41DE1;
  --glow-opacity: .20;
  /* Owner markers and notes */
  --mark-bg: #FFF1B8;
  --mark-fg: #4D3800;
  --mark-edge: #A67C00;
  --note-bg: rgba(0, 112, 201, .06);
  --note-edge: rgba(0, 91, 163, .55);
  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-h1: clamp(40px, 6vw, 72px);
  --fs-h2: clamp(28px, 4vw, 44px);
  --fs-h3: 22px;
  --fs-lead: clamp(19px, 2vw, 22px);
  --fs-body: 18px;
  --fs-small: 15px;
  /* Shape (AppRadius) */
  --r-card: 16px;
  --r-control: 12px;
  --r-window: 10px;
  --r-input: 8px;
  --r-key: 4px;
  --header-h: 56px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #1C1C1E; --card: #2C2C2E; --card-inset: #1C1C1E;
    --fg: rgba(255, 255, 255, .90); --fg-2: rgba(235, 235, 245, .62); --fg-3: rgba(235, 235, 245, .30);
    --sep: rgba(84, 84, 88, .65); --sep-soft: rgba(84, 84, 88, .42);
    --fill: rgba(120, 120, 128, .36); --fill-2: rgba(120, 120, 128, .24);
    --control-border: rgba(235, 235, 245, .50);
    --accent: #0A84FF; --accent-fill: #0071E3; --on-accent: #FFFFFF; --link: #6EB3FF; --ring: #6EB3FF;
    --tint: rgba(10, 132, 255, .22);
    --kortney: #A6B0F8; --kortney-fill: #596AC5; --kortney-tint: rgba(166, 176, 248, .14);
    --success: #30D158; --success-fill: #1F7A35; --amber: #FF9F0A;
    --glass: rgba(28, 28, 30, .72); --glass-solid: #1C1C1E;
    --shadow-raised: 0 1px 4px rgba(0, 0, 0, .24);
    --shadow-floating: 0 4px 20px rgba(0, 0, 0, .30);
    --shadow-overlay: 0 16px 48px rgba(0, 0, 0, .54);
    --desk: linear-gradient(160deg, #10131C 0%, #151022 55%, #1C0F1F 100%);
    --win: #1E1E20; --win-bar: #2A2A2D; --win-edge: rgba(255, 255, 255, .12);
    --select: rgba(10, 132, 255, .42);
    --bubble-them: #3A3A3C; --bubble-me: #0071E3;
    --glow-opacity: .34;
    --mark-bg: #3D3000; --mark-fg: #FFE08A; --mark-edge: #C9A227;
    --note-bg: rgba(110, 179, 255, .08); --note-edge: rgba(110, 179, 255, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #1C1C1E; --card: #2C2C2E; --card-inset: #1C1C1E;
  --fg: rgba(255, 255, 255, .90); --fg-2: rgba(235, 235, 245, .62); --fg-3: rgba(235, 235, 245, .30);
  --sep: rgba(84, 84, 88, .65); --sep-soft: rgba(84, 84, 88, .42);
  --fill: rgba(120, 120, 128, .36); --fill-2: rgba(120, 120, 128, .24);
  --control-border: rgba(235, 235, 245, .50);
  --accent: #0A84FF; --accent-fill: #0071E3; --on-accent: #FFFFFF; --link: #6EB3FF; --ring: #6EB3FF;
  --tint: rgba(10, 132, 255, .22);
  --kortney: #A6B0F8; --kortney-fill: #596AC5; --kortney-tint: rgba(166, 176, 248, .14);
  --success: #30D158; --success-fill: #1F7A35; --amber: #FF9F0A;
  --glass: rgba(28, 28, 30, .72); --glass-solid: #1C1C1E;
  --shadow-raised: 0 1px 4px rgba(0, 0, 0, .24);
  --shadow-floating: 0 4px 20px rgba(0, 0, 0, .30);
  --shadow-overlay: 0 16px 48px rgba(0, 0, 0, .54);
  --desk: linear-gradient(160deg, #10131C 0%, #151022 55%, #1C0F1F 100%);
  --win: #1E1E20; --win-bar: #2A2A2D; --win-edge: rgba(255, 255, 255, .12);
  --select: rgba(10, 132, 255, .42);
  --bubble-them: #3A3A3C; --bubble-me: #0071E3;
  --glow-opacity: .34;
  --mark-bg: #3D3000; --mark-fg: #FFE08A; --mark-edge: #C9A227;
  --note-bg: rgba(110, 179, 255, .08); --note-edge: rgba(110, 179, 255, .55);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.standalone { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--glass-solid); }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; color: var(--fg); }
h1 { font-size: var(--fs-h1); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); line-height: 28px; font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: 18px; line-height: 24px; font-weight: 600; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--select); }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: var(--gutter-l); top: -100px; z-index: 100;
  background: var(--accent-fill); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-input);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap-narrow { max-width: 760px; }
.wrap-text { max-width: 820px; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
.icon-stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Keycaps (help style: symbol hidden, name visible) ---------- */
kbd {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--mono); font-size: .8em; line-height: 1.5; font-weight: 500;
  padding: 0 .45em; min-height: 1.6em;
  border: 1px solid var(--sep); border-bottom-width: 2px; border-radius: var(--r-key);
  background: var(--card); color: var(--fg);
  white-space: nowrap; vertical-align: .05em;
}
kbd span[aria-hidden="true"] { font-family: var(--font); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--glass-solid);
  border-bottom: 1px solid var(--sep-soft);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); text-decoration: none; font-weight: 650; font-size: 18px; letter-spacing: -0.01em; min-height: 44px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-input);
  color: var(--fg); text-decoration: none; font-size: 15px; font-weight: 500;
}
.main-nav a:hover { background: var(--fill-2); }
.main-nav a[aria-current="page"] { color: var(--link); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 0; background: transparent; color: var(--fg); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--fill-2); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-btn .sun { display: none; }
  :root:not([data-theme]) .theme-btn .moon { display: inline; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-control);
  font: 600 17px/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background-color: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background-image: linear-gradient(rgba(0, 0, 0, .10), rgba(0, 0, 0, .10)); }
.btn-secondary { background: var(--fill-2); color: var(--fg); border-color: var(--sep-soft); }
.btn-secondary:hover { background: var(--fill); }
.btn-large { min-height: 52px; padding: 0 26px; font-size: 18px; border-radius: 14px; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; }
.btn-small svg { width: 17px; height: 17px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }

/* Mac versus phone: at phone width (or on a touch screen) the download
   buttons become a note with Copy link and Share. */
.phone-only { display: none !important; }
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  .mac-only { display: none !important; }
  .phone-only { display: block !important; }
  .phone-only.btn, .phone-only.icon-btn { display: inline-flex !important; }
}

.phone-note {
  text-align: left; background: var(--card); border: 1px solid var(--sep-soft); border-radius: var(--r-card);
  padding: 18px; box-shadow: var(--shadow-raised); max-width: 460px; margin-inline: auto;
}
.phone-note-title { font-weight: 600; font-size: 18px; line-height: 24px; display: flex; gap: 10px; align-items: flex-start; }
.phone-note-title svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: -1px; }
.phone-note p + p, .phone-note p + .phone-note-actions, .phone-note-actions + p { margin-top: 10px; }
.phone-note-body { color: var(--fg-2); font-size: var(--fs-small); line-height: 22px; }
.phone-note-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.phone-note-actions .btn { flex: 1 1 140px; }
.phone-note-status { font-size: var(--fs-small); line-height: 22px; min-height: 0; }
.phone-note-status:empty { display: none; }
.phone-note-link { width: 100%; font: 15px/1.4 var(--mono); padding: 8px 10px; border-radius: var(--r-input); border: 1px solid var(--control-border); background: var(--card-inset); color: var(--fg); margin-top: 6px; }
.phone-note-small { font-size: var(--fs-small); line-height: 22px; }

/* ---------- Dialogs ---------- */
dialog.sheet {
  border: 0; padding: 0; color: var(--fg); background: var(--card);
  border-radius: var(--r-card); box-shadow: var(--shadow-overlay);
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
}
dialog.sheet::backdrop { background: rgba(0, 0, 0, .38); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 0 20px; }
.sheet-head h2 { font-size: 20px; line-height: 26px; }
.sheet-body { padding: 8px 20px 20px; }
.sheet-nav { list-style: none; display: grid; gap: 2px; }
.sheet-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 10px; color: var(--fg); text-decoration: none; font-size: 18px; font-weight: 500; }
.sheet-nav a:hover { background: var(--fill-2); }
.sheet-nav a[aria-current="page"] { color: var(--link); font-weight: 600; }
.sheet .phone-note { box-shadow: none; border: 0; padding: 0; background: transparent; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; display: grid; gap: 16px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.eyebrow { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--link); letter-spacing: .01em; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--fg-2); }
.muted { color: var(--fg-2); }
.small { font-size: var(--fs-small); line-height: 22px; }
.stack > * + * { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(24px, 4vw, 48px); overflow: hidden; }
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 20px; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy .lead { max-width: 42em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: center; }
.cta-trial { font-size: var(--fs-lead); line-height: 1.4; font-weight: 600; }
.cta-sub { color: var(--fg-2); font-size: var(--fs-small); line-height: 22px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-size: var(--fs-small); line-height: 22px; color: var(--fg-2); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--fg-3); margin-right: 4px; }
.facts svg { width: 16px; height: 16px; color: var(--success); }

/* ---------- The demo ---------- */
.demo { position: relative; margin-top: clamp(40px, 6vw, 64px); }
.demo::before {
  content: ""; position: absolute; inset: 6% -4% -8%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 55% at 22% 40%, var(--brand-a), transparent 70%),
    radial-gradient(38% 50% at 55% 60%, var(--brand-b), transparent 70%),
    radial-gradient(40% 55% at 82% 42%, var(--brand-c), transparent 70%);
  opacity: var(--glow-opacity); filter: blur(48px);
}
.demo > * { position: relative; z-index: 1; }
.demo-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.demo-tab {
  display: grid; gap: 0; text-align: left; min-height: 52px; min-width: 132px; padding: 6px 16px 6px 14px;
  border-radius: var(--r-control); border: 1px solid var(--sep-soft); background: var(--card); color: var(--fg);
  font: inherit; cursor: pointer; box-shadow: var(--shadow-raised);
}
.demo-tab:hover { border-color: var(--sep); }
.demo-tab-title { font-weight: 650; font-size: 17px; line-height: 22px; display: flex; align-items: center; gap: 8px; }
.demo-tab-sub { font-size: 13px; line-height: 18px; color: var(--fg-2); }
.demo-tab[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-floating); }
.demo-tab[aria-pressed="true"] .demo-tab-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.demo-stage { display: grid; border-radius: 20px; overflow: hidden; background: var(--desk); border: 1px solid var(--sep-soft); box-shadow: var(--shadow-overlay); }
.scene { grid-area: 1 / 1; min-width: 0; padding: clamp(14px, 3vw, 28px); display: grid; align-content: center; justify-items: center; gap: 14px; }
.scene:not(.is-active) { visibility: hidden; }
.scene-top { width: 100%; max-width: 720px; display: flex; justify-content: flex-start; min-height: 34px; }
.scene-bottom { width: 100%; display: grid; justify-items: center; gap: 10px; min-height: 92px; align-content: end; }

.fade { opacity: 0; transform: translateY(6px); transition: opacity .22s ease, transform .22s ease; }
.fade.is-on { opacity: 1; transform: none; }

.keyhint {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  background: var(--glass-solid); border: 1px solid var(--sep-soft); border-radius: 999px;
  padding: 5px 8px 5px 14px; font-size: 14px; line-height: 20px; color: var(--fg-2); box-shadow: var(--shadow-raised);
}
.keyhint .keys { display: inline-flex; gap: 4px; align-items: center; color: var(--fg); }
.keyhint kbd { font-size: 12.5px; transition: transform .12s ease, background-color .12s ease, border-color .12s ease; }
.keyhint kbd.is-down { transform: translateY(1px); background: var(--tint); border-color: var(--accent); border-bottom-width: 1px; }

/* Mac window */
.win {
  width: 100%; max-width: 720px; background: var(--win); border-radius: var(--r-window);
  border: 1px solid var(--win-edge); box-shadow: var(--shadow-floating); overflow: hidden; text-align: left;
  font-size: 15px; line-height: 22px; color: var(--fg);
}
.win-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; background: var(--win-bar); border-bottom: 1px solid var(--sep-soft); }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; display: block; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.win-title { font-size: 13px; font-weight: 600; color: var(--fg-2); flex: 1; text-align: center; margin-right: 45px; }
.mail-row { display: flex; gap: 8px; padding: 6px 16px; border-bottom: 1px solid var(--sep-soft); font-size: 14px; }
.mail-label { color: var(--fg-2); min-width: 4.5em; }
.mail-body { padding: 14px 16px 18px; min-height: 112px; display: grid; gap: 8px; align-content: start; }
.caret { display: inline-block; width: 2px; height: 1.15em; background: var(--accent); vertical-align: -0.2em; margin-left: 1px; }
.is-playing .caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typed-flash { border-radius: 3px; transition: background-color .6s ease; }
.typed-flash.is-new { background: var(--tint); }

.chat-body { padding: 14px 16px; display: grid; gap: 8px; min-height: 104px; align-content: start; }
.bubble { max-width: 80%; padding: 7px 12px; border-radius: 16px; font-size: 14.5px; line-height: 20px; }
.bubble.them { background: var(--bubble-them); color: var(--fg); justify-self: start; border-bottom-left-radius: 5px; }
.chat-compose { margin: 0 12px 12px; padding: 8px 12px; border-radius: 18px; border: 1px solid var(--sep); min-height: 40px; font-size: 14.5px; line-height: 22px; }
.chat-compose .sel { border-radius: 2px; transition: background-color .15s ease; }
.chat-compose .sel.is-selected { background: var(--select); }
.chat-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); padding: 10px 16px 0; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #FFFFFF; background: #8E8E93; }

/* The pill (VoiceMeterPill): 32 pt tall, dark glass, 2 pt bars */
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  background: var(--pill); color: var(--pill-fg); border: 1px solid var(--pill-edge); border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28); font-size: 13px; font-weight: 600;
}
.pill-bars { display: inline-flex; align-items: center; gap: 2px; height: 22px; }
.pill-bars i { display: block; width: 2px; height: 3px; border-radius: 1px; background: var(--pill-fg); opacity: .95; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #FF453A; }
.pill-btn { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .16); }
.pill-btn svg { width: 13px; height: 13px; stroke: var(--pill-fg); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pill-text { color: var(--pill-fg-2); font-weight: 500; }
.pill-undo { color: #9CCBFF; font-weight: 600; }
.say-caption {
  max-width: 620px; text-align: center; font-size: 16px; line-height: 24px; color: var(--fg);
  background: var(--glass-solid); border-radius: 12px; padding: 8px 14px; box-shadow: var(--shadow-raised); border: 1px solid var(--sep-soft);
}
.say-caption .say-label { color: var(--fg-2); font-weight: 600; margin-right: 4px; }
.say-caption .w { transition: opacity .15s ease; }
.say-caption .w.is-off { opacity: 0; }
.say-caption s { text-decoration-thickness: 2px; color: var(--fg-2); }
.say-caption .struck { text-decoration: none; transition: color .3s ease; }
.say-caption .struck.is-struck { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--fg-2); }
.say-fix-note { font-size: 13px; color: var(--fg-2); display: block; margin-top: 2px; }

/* Klipboard panel */
.desk-layer { width: 100%; max-width: 720px; position: relative; display: grid; }
.desk-layer > * { grid-area: 1 / 1; }
.desk-layer > .win { align-self: start; }
.klip {
  justify-self: center; align-self: start; margin-top: 18px; width: min(440px, 94%);
  background: var(--glass-solid); border: 1px solid var(--win-edge); border-radius: 14px; box-shadow: var(--shadow-overlay);
  overflow: hidden; text-align: left; font-size: 14px; line-height: 20px; z-index: 2;
}
.klip-search { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 7px 10px; border-radius: var(--r-input); background: var(--fill-2); color: var(--fg); min-height: 36px; }
.klip-search svg { width: 16px; height: 16px; color: var(--fg-2); }
.klip-search .ph { color: var(--fg-2); }
.klip-list { list-style: none; padding: 0 6px 6px; display: grid; }
.klip-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; min-width: 0; transition: opacity .2s ease; }
.klip-row.is-hi { background: var(--accent-fill); color: var(--on-accent); }
.klip-row.is-hi .klip-meta { color: #FFFFFF; }
.klip-row.is-gone { display: none; }
.klip-app { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #FFFFFF; font-size: 12px; font-weight: 700; }
.klip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.klip-meta { font-size: 12px; color: var(--fg-2); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.klip-meta svg { width: 13px; height: 13px; }
.klip-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 14px; border-top: 1px solid var(--sep-soft); font-size: 12px; color: var(--fg-2); }
.klip-foot kbd { font-size: 11px; }
.tag-chip { font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 6px; background: var(--fill-2); color: var(--fg); }
.klip-row.is-hi .tag-chip { background: rgba(0, 0, 0, .30); color: #FFFFFF; }

/* Quick prompt (Kortney) */
.qp {
  justify-self: center; align-self: start; margin-top: 30px; width: min(500px, 96%);
  background: var(--glass-solid); border: 1px solid var(--win-edge); border-radius: 16px; box-shadow: var(--shadow-overlay);
  text-align: left; font-size: 14px; line-height: 20px; padding: 12px; display: grid; gap: 10px; z-index: 2;
}
.qp-head { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--kortney); }
.qp-head svg { width: 18px; height: 18px; }
.qp-clip { padding: 8px 10px; border-radius: 10px; background: var(--kortney-tint); color: var(--fg); font-size: 14px; border-left: 0; }
.qp-clip-label { display: block; font-size: 12px; color: var(--fg-2); }
.qp-chips { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.qp-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--sep); color: var(--fg); background: var(--card); transition: background-color .12s ease, color .12s ease, border-color .12s ease; }
.qp-chip.is-hi { background: var(--kortney-fill); border-color: var(--kortney-fill); color: #FFFFFF; }
.qp-chip svg { width: 12px; height: 12px; }
.qp-menu { position: absolute; right: 0; top: calc(100% + 4px); background: var(--glass-solid); border: 1px solid var(--win-edge); border-radius: 10px; box-shadow: var(--shadow-floating); padding: 4px; display: grid; min-width: 150px; z-index: 3; }
.qp-menu span { padding: 5px 10px; border-radius: 6px; font-size: 13px; }
.qp-menu span.is-hi { background: var(--kortney-fill); color: #FFFFFF; }
.qp-composer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--sep); border-radius: 20px; padding: 6px 6px 6px 14px; color: var(--fg-2); }
.qp-send { width: 28px; height: 28px; border-radius: 50%; background: var(--kortney-fill); display: grid; place-items: center; }
.qp-send svg { width: 14px; height: 14px; stroke: #FFFFFF; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qp-keys { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--fg-2); }
.qp-keys kbd { font-size: 11px; }
.qp-thinking { display: inline-flex; gap: 4px; align-items: center; }
.qp-thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--kortney); opacity: .4; }

.bottom-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-2); }

/* Under the stage */
.demo-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.demo-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; line-height: 22px; color: var(--fg-2); min-width: 0; flex: 1 1 360px; }
.demo-steps li { display: inline-flex; align-items: center; gap: 7px; }
.demo-steps .mark { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid var(--sep); color: var(--fg-2); flex: none; }
.demo-steps li[data-state="current"] { color: var(--fg); font-weight: 600; }
.demo-steps li[data-state="current"] .mark { border-color: var(--accent); color: var(--link); }
.demo-steps li[data-state="done"] .mark { background: var(--success-fill); border-color: var(--success-fill); color: #FFFFFF; }
.demo-steps li[data-state="done"] .mark .num { display: none; }
.demo-steps li:not([data-state="done"]) .mark .tick { display: none; }
.demo-steps .mark svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.demo-control { flex: none; }
.demo-rm-note { font-size: 14px; color: var(--fg-2); }

@media (max-width: 640px) {
  .demo-tab { min-width: 0; flex: 1 1 0; padding-inline: 10px; }
  .demo-tab-title { font-size: 16px; }
  .scene-bottom { min-height: 112px; }
  .win { font-size: 14px; }
  .mail-body { min-height: 96px; }
  .klip { width: 100%; margin-top: 8px; }
  .qp { width: 100%; margin-top: 8px; }
  .qp-keys { display: none; }
}

/* ---------- Works in your apps ---------- */
.apps-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; margin-top: 18px; }
.apps-row li { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--sep-soft); font-size: 15px; line-height: 22px; font-weight: 500; }

/* ---------- Feature bands ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 18px; min-width: 0; }
.feature-copy .lead { color: var(--fg-2); }
.feature-visual { min-width: 0; }
.points { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 17px; line-height: 26px; }
.points li > svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.fine { font-size: var(--fs-small); line-height: 22px; color: var(--fg-2); }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
}

.visual-card { background: var(--desk); border-radius: 20px; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--sep-soft); display: grid; gap: 14px; justify-items: center; }
.state-list { display: grid; gap: 14px; width: 100%; max-width: 420px; }
.state { display: grid; gap: 8px; justify-items: center; text-align: center; }
.state-label { font-size: 13px; line-height: 18px; color: var(--fg-2); font-weight: 600; }
.static-klip { position: static; margin: 0; width: 100%; max-width: 440px; }
.static-qp { position: static; margin: 0; width: 100%; max-width: 480px; }

.ks-card { width: 100%; max-width: 480px; background: var(--card); border-radius: 14px; border: 1px solid var(--sep-soft); box-shadow: var(--shadow-floating); padding: 14px 16px; display: grid; gap: 10px; text-align: left; font-size: 14px; line-height: 20px; }
.ks-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ks-card-name { font-weight: 650; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.ks-card-name svg { width: 18px; height: 18px; color: var(--kortney); }
.ks-card-keys { display: inline-flex; gap: 4px; }
.ks-card-keys kbd { font-size: 11.5px; }
.ks-say { color: var(--fg-2); font-size: 13px; }
.before-after { display: grid; gap: 6px; }
.ba { padding: 7px 10px; border-radius: 8px; background: var(--card-inset); }
.ba b { display: block; font-size: 11.5px; line-height: 16px; color: var(--fg-2); font-weight: 600; letter-spacing: .02em; }

/* Kortney answer */
.kortney-card { width: 100%; max-width: 500px; background: var(--card); border-radius: 16px; border: 1px solid var(--sep-soft); box-shadow: var(--shadow-floating); padding: 16px; display: grid; gap: 12px; text-align: left; font-size: 15px; line-height: 22px; }
.k-q { justify-self: end; background: var(--accent-fill); color: #FFFFFF; padding: 8px 12px; border-radius: 16px; border-bottom-right-radius: 5px; max-width: 85%; }
.k-a { display: grid; gap: 8px; }
.k-a-head { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--kortney); font-size: 14px; }
.k-a-head svg { width: 16px; height: 16px; }
.k-sources { display: grid; gap: 6px; }
.k-sources-label { font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.k-source-row { display: flex; flex-wrap: wrap; gap: 6px; }
.k-source { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; padding: 4px 10px; border-radius: 999px; background: var(--kortney-tint); color: var(--fg); }
.k-source i { width: 16px; height: 16px; border-radius: 4px; background: var(--fill); display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 700; color: var(--fg-2); }
.k-attach { display: flex; flex-wrap: wrap; gap: 8px; }
.k-file { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--card-inset); font-size: 13px; }
.k-file svg { width: 18px; height: 18px; color: var(--kortney); }

/* One app instead of three */
.merge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; margin-top: 40px; }
.merge-old { border: 1.5px dashed var(--sep); border-radius: var(--r-card); padding: 18px; color: var(--fg-2); display: grid; gap: 6px; align-content: start; }
.merge-old h3 { font-size: 17px; line-height: 22px; color: var(--fg-2); font-weight: 600; }
.merge-old p { font-size: 15px; line-height: 22px; }
.merge-arrow { grid-column: 1 / -1; display: grid; place-items: center; color: var(--fg-2); }
.merge-arrow svg { width: 28px; height: 28px; }
.merge-new { grid-column: 1 / -1; background: var(--card); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow-floating); border: 1px solid var(--sep-soft); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.merge-new .brand-mark { width: 48px; height: 48px; }
.merge-new h3 { font-size: 20px; }
@media (max-width: 720px) { .merge { grid-template-columns: minmax(0, 1fr); } .merge-new { grid-template-columns: minmax(0, 1fr); } }

/* Four keys */
.keys-card { background: var(--card); border-radius: var(--r-card); border: 1px solid var(--sep-soft); box-shadow: var(--shadow-floating); padding: 20px; display: grid; gap: 4px; width: 100%; max-width: 480px; }
.keys-card h3 { font-size: 17px; line-height: 22px; margin-bottom: 8px; }
.key-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--sep-soft); }
.key-row:first-of-type { border-top: 0; }
.key-row .keys { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.key-row .what { font-weight: 600; }
.key-row .what small { display: block; font-weight: 400; color: var(--fg-2); font-size: 14px; line-height: 20px; }
.keys-note { font-size: 14px; line-height: 20px; color: var(--fg-2); margin-top: 10px; }

/* Privacy grid */
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; list-style: none; }
.privacy-grid li { background: var(--card); border-radius: var(--r-card); padding: 20px; border: 1px solid var(--sep-soft); display: grid; gap: 10px; align-content: start; font-size: 16px; line-height: 24px; }
.privacy-grid svg { width: 26px; height: 26px; color: var(--accent); }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } }

/* Planned */
.planned { display: flex; gap: 16px; align-items: flex-start; border: 1.5px dashed var(--sep); border-radius: var(--r-card); padding: 18px 20px; max-width: 760px; margin-inline: auto; }
.badge { display: inline-flex; align-items: center; font-size: 12.5px; line-height: 18px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: var(--fill-2); color: var(--fg); border: 1px solid var(--sep); white-space: nowrap; }
.badge-save { background: var(--success-fill); color: #FFFFFF; border-color: var(--success-fill); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 40px auto 0; }
.plan { background: var(--card); border-radius: 20px; border: 1px solid var(--sep-soft); padding: 28px; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow-raised); position: relative; }
.plan.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-floating); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plan-name { font-size: 20px; line-height: 26px; font-weight: 650; }
.price { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.price-num { font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-display); }
.price-per { font-size: 18px; color: var(--fg-2); }
.plan-bill { color: var(--fg-2); font-size: 16px; line-height: 24px; }
.plan .btn { width: 100%; }
.plan .phone-note { max-width: none; box-shadow: none; }
.plan-trial { font-size: var(--fs-small); line-height: 22px; color: var(--fg-2); text-align: center; }
.renew { max-width: 860px; margin: 22px auto 0; font-size: var(--fs-small); line-height: 22px; color: var(--fg-2); text-align: center; }
.renew a { white-space: nowrap; }
.plan-includes { list-style: none; display: grid; gap: 10px; }
.plan-includes li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; line-height: 24px; }
.plan-includes svg { width: 20px; height: 20px; color: var(--success); margin-top: 2px; }
@media (max-width: 720px) { .plans { grid-template-columns: minmax(0, 1fr); } .price-num { font-size: 46px; } }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 800px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--card); border: 1px solid var(--sep-soft); border-radius: var(--r-card); padding: 24px; display: grid; gap: 14px; align-content: start; }
.panel h2, .panel h3 { font-size: 22px; line-height: 28px; }

.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 18px; position: relative; font-size: 16px; line-height: 24px; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--sep-soft); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--link); font-weight: 700; font-size: 13px; }
.timeline .dot svg { width: 16px; height: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 40px auto 0; border-top: 1px solid var(--sep); }
.faq details { border-bottom: 1px solid var(--sep); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; min-height: 56px; font-weight: 600; font-size: 19px; line-height: 26px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 22px; height: 22px; flex: none; color: var(--fg-2); transition: transform .2s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 4px 22px; color: var(--fg); font-size: 17px; line-height: 27px; display: grid; gap: 10px; max-width: 68ch; }
.faq .answer p { color: var(--fg-2); }

/* ---------- Final CTA ---------- */
.final { text-align: center; display: grid; justify-items: center; gap: 18px; }
.final h2 { max-width: 16ch; }
.alive { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: var(--fs-small); line-height: 22px; color: var(--fg-2); }

/* ---------- Owner markers (legal details still to be filled) ---------- */
mark.owner-fill {
  background: var(--mark-bg); color: var(--mark-fg); border: 1.5px dashed var(--mark-edge);
  border-radius: 5px; padding: 0 5px; font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
mark.owner-fill .owner-label { font-weight: 700; }

/* ---------- Page heads (inner pages) ---------- */
.page-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(24px, 4vw, 40px); }
.page-head .wrap { display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.crumbs { font-size: 14px; line-height: 20px; color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--fg-3); }
.crumbs a { color: var(--link); }

/* ---------- Prose (help, legal, changelog) ---------- */
.prose { max-width: 70ch; font-size: 17px; line-height: 28px; min-width: 0; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 26px; line-height: 32px; margin-top: 44px; letter-spacing: -0.01em; }
.prose h3 { font-size: 20px; line-height: 26px; margin-top: 32px; }
.prose h4 { margin-top: 24px; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: 8px; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose li::marker { color: var(--fg-2); }
.prose ol > li::marker { font-weight: 600; }
.prose blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--sep); color: var(--fg-2); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--fill-2); padding: 1px 5px; border-radius: 5px; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--sep-soft); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 23px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--sep-soft); }
.prose th { background: var(--bg-alt); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose .inline-icon { width: 1.05em; height: 1.05em; vertical-align: -0.16em; color: var(--fg-2); }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc-side { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px); display: grid; gap: 10px; font-size: 15px; line-height: 22px; }
.doc-side h2 { font-size: 13px; line-height: 18px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); }
.doc-side ul { list-style: none; display: grid; gap: 2px; }
.doc-side a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--fg); text-decoration: none; }
.doc-side a:hover { background: var(--fill-2); }
.doc-side a[aria-current="page"] { background: var(--tint); color: var(--link); font-weight: 600; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-side { position: static; order: 2; border-top: 1px solid var(--sep); padding-top: 24px; }
}

/* Help index */
.help-search { display: grid; gap: 8px; max-width: 560px; }
.help-search label { font-weight: 600; font-size: 16px; }
.field {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-control);
  border: 1px solid var(--control-border); background: var(--card); color: var(--fg); font: 17px/1.4 var(--font);
}
.field:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.help-group { background: var(--card); border: 1px solid var(--sep-soft); border-radius: var(--r-card); padding: 22px; display: grid; gap: 12px; align-content: start; }
.help-group h2 { font-size: 20px; line-height: 26px; }
.help-group ul { list-style: none; display: grid; gap: 4px; }
.help-group li { font-size: 16px; line-height: 24px; padding: 4px 0; }
.help-group li a { font-weight: 500; }
.help-intro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; }
.help-intro li { background: var(--card); border: 1px solid var(--sep-soft); border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 22px; color: var(--fg-2); }
.help-intro strong { display: block; color: var(--fg); font-size: 17px; }
@media (max-width: 800px) { .help-grid { grid-template-columns: minmax(0, 1fr); } .help-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Changelog */
.release { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding-block: 32px; border-top: 1px solid var(--sep); }
.release-meta { display: grid; gap: 4px; align-content: start; }
.release-meta .ver { font-size: 22px; font-weight: 700; line-height: 28px; }
.release-meta time { color: var(--fg-2); font-size: 15px; }
.release .prose h2:first-child { display: none; }
.release .prose > :first-child { margin-top: 0; }
@media (max-width: 700px) { .release { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* Download steps */
.dl-hero { display: grid; gap: 18px; justify-items: start; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.dl-status { font-size: 16px; line-height: 24px; }
.dl-status .btn, .phone-note-status .btn { margin-top: 10px; }
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.step { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--sep-soft); border-radius: var(--r-card); padding: 18px; }
.step-art { width: 112px; height: 84px; border-radius: 12px; background: var(--desk); display: grid; place-items: center; overflow: hidden; }
.step-art svg { width: 100%; height: 100%; }
.step h3 { font-size: 19px; line-height: 26px; display: flex; gap: 10px; align-items: baseline; }
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-fill); color: var(--on-accent); font-size: 14px; font-weight: 700; flex: none; transform: translateY(-1px); }
.step p { color: var(--fg-2); font-size: 16px; line-height: 24px; margin-top: 4px; }
@media (max-width: 560px) { .step { grid-template-columns: minmax(0, 1fr); } .step-art { width: 100%; height: 110px; } }
.req-list { list-style: none; display: grid; gap: 10px; }
.req-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; line-height: 24px; }
.req-list svg { width: 20px; height: 20px; color: var(--success); margin-top: 2px; }

/* Contact form */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: 16px; line-height: 22px; }
.form-hint { font-size: 14px; line-height: 20px; color: var(--fg-2); }
textarea.field { min-height: 160px; resize: vertical; }
.field[aria-invalid="true"] { border-color: var(--err, #D70015); border-width: 2px; }
.form-error { font-size: 14px; line-height: 20px; color: var(--err-text, #D70015); font-weight: 500; display: flex; gap: 6px; align-items: center; }
.form-error:empty { display: none; }
.form-done { border-radius: 12px; padding: 14px 16px; background: var(--note-bg); border: 1px solid var(--note-edge); }
.form-fail { border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; border: 2px solid var(--err, #D70015); background: var(--card); }
.form-fail p:first-child { font-weight: 600; }
.form button[disabled] { opacity: .6; cursor: progress; }
/* The honeypot box: off screen, never shown, skipped by Tab and screen readers. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email-big { font-size: 22px; line-height: 30px; font-weight: 600; user-select: all; -webkit-user-select: all; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--sep-soft); padding-block: 56px 40px; font-size: 15px; line-height: 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand p { color: var(--fg-2); max-width: 30ch; }
.footer-col h2 { font-size: 13px; line-height: 18px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-2); margin-bottom: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.footer-col a:hover { text-decoration: underline; color: var(--link); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--sep); display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; color: var(--fg-2); }
.footer-bottom a { color: var(--link); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.appearance { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.appearance legend { float: left; font-weight: 600; color: var(--fg); margin-right: 4px; padding: 0; }
.seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill-2); border: 1px solid var(--sep-soft); }
.seg label { position: relative; display: inline-flex; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 7px; font-size: 14px; color: var(--fg); cursor: pointer; }
.seg input:checked + span { background: var(--card); box-shadow: var(--shadow-raised); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--ring); outline-offset: 1px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 404 ---------- */
.notfound { text-align: center; display: grid; gap: 18px; justify-items: center; }
.notfound .code { font-size: 15px; font-weight: 600; color: var(--fg-2); letter-spacing: .08em; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .fade { transform: none; }
}

/* ---------- Errors (tokens) ---------- */
:root { --err: #D70015; --err-text: #D70015; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --err: #FF6961; --err-text: #FF6961; } }
:root[data-theme="dark"] { --err: #FF6961; --err-text: #FF6961; }

/* ---------- Small additions ---------- */
main:focus { outline: none; }
.h-small { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--fg-2); text-align: center; letter-spacing: 0; }
.big-mark { width: 56px; height: 56px; }
.merge-new .big-mark { width: 48px; height: 48px; }
.facts-list { display: grid; gap: 0; margin: 0; }
.facts-list > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--sep-soft); }
.facts-list > div:first-child { border-top: 0; }
.facts-list dt { color: var(--fg-2); font-weight: 500; }
.facts-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .facts-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.logo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.logo-tile { border-radius: 14px; padding: 22px; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 650; font-size: 22px; border: 1px solid var(--sep-soft); }
.logo-tile .brand-mark { width: 48px; height: 48px; }
.logo-tile-light { background: #FFFFFF; color: #1D1D1F; }
.logo-tile-dark { background: #000000; color: #F5F5F7; }
.prose hr { border: 0; border-top: 1px solid var(--sep); margin-block: 32px; }
.prose a { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .theme-btn { display: none; }
  .header-inner { gap: 10px; }
  .brand { font-size: 17px; }
}

/* Polish from the visual pass */
.doc-side { max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 900px) { .doc-side { max-height: none; overflow: visible; } }
@media (max-width: 640px) {
  .facts { flex-direction: column; align-items: center; gap: 4px; }
  .facts li + li::before { display: none; }
  .keyhint { border-radius: 14px; }
}
@media (max-width: 480px) {
  .key-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .key-row .keys { justify-content: flex-start; }
}

/* Generated by build.py from the pages' style attributes (no inline styles, for the CSP). */
.s-0b221130:not(#_) { font-size:16px;line-height:24px; }
.s-110c1427:not(#_) { justify-content:flex-end; }
.s-113f56bf:not(#_) { background:#C98A00; }
.s-115b004f:not(#_) { font-weight:500; }
.s-120a9853:not(#_) { fill:var(--accent-fill); }
.s-142a7cf2:not(#_) { height:17px; }
.s-18add012:not(#_) { height:16px; }
.s-1959f437:not(#_) { height:11px; }
.s-1d5ccfb9:not(#_) { font-size:17px;line-height:26px;padding-left:1.3em;display:grid;gap:6px; }
.s-1d9211de:not(#_) { fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.s-1e7bd321:not(#_) { height:15px; }
.s-268b55d3:not(#_) { fill:#fff;font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:7.5px;font-weight:700; }
.s-29e36099:not(#_) { margin-top:28px; }
.s-29fb1110:not(#_) { padding-top:8px; }
.s-2f1af308:not(#_) { fill:var(--accent);opacity:.85; }
.s-36840fdb:not(#_) { height:7px; }
.s-3963494d:not(#_) { fill:var(--fg);font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:10px;font-weight:600; }
.s-41149aaf:not(#_) { align-items:start; }
.s-43a97fe4:not(#_) { margin-top:8px; }
.s-48d63bd7:not(#_) { height:5px; }
.s-4c071735:not(#_) { max-width:40em; }
.s-4e3b78e9:not(#_) { color:var(--amber); }
.s-534bbde3:not(#_) { background:#2F7DE1; }
.s-549efaba:not(#_) { background:#C2571A; }
.s-56e62793:not(#_) { fill:var(--fill-2); }
.s-57c44882:not(#_) { font-size:28px;line-height:34px;margin-bottom:20px; }
.s-5a471511:not(#_) { fill:var(--fg);font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:8px;font-weight:600; }
.s-5d2fcd40:not(#_) { fill:none;stroke:var(--accent);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round; }
.s-611dbb7f:not(#_) { fill:var(--success-fill); }
.s-6f30f75c:not(#_) { height:8px; }
.s-7058029b:not(#_) { padding-top:16px; }
.s-72c2b6f6:not(#_) { padding-bottom:8px; }
.s-7801dbe5:not(#_) { stroke:var(--fill);stroke-width:4;stroke-linecap:round; }
.s-7b393ab7:not(#_) { color:var(--kortney); }
.s-7c868067:not(#_) { height:10px; }
.s-7ec48985:not(#_) { height:12px; }
.s-811a1309:not(#_) { padding-top:0; }
.s-8e5626de:not(#_) { text-align:center;margin-top:8px; }
.s-8fa4d4e3:not(#_) { height:3px; }
.s-9052be30:not(#_) { stroke:var(--card);stroke-width:1.5;opacity:.6; }
.s-90797ad2:not(#_) { border-top:1px solid var(--sep);padding-top:24px; }
.s-90f662a1:not(#_) { display:grid;justify-items:center; }
.s-92c18f6b:not(#_) { margin-top:16px; }
.s-93b9b7af:not(#_) { height:4px; }
.s-95e4053d:not(#_) { height:14px; }
.s-9fc509ff:not(#_) { fill:var(--fill); }
.s-a313f978:not(#_) { font-size:17px;line-height:26px; }
.s-a82c33ab:not(#_) { background:#2E9B4E; }
.s-af49e29f:not(#_) { height:13px; }
.s-b284ce8f:not(#_) { fill:var(--card);stroke:var(--sep); }
.s-b7aa1ec0:not(#_) { width:100%; }
.s-bbaada0a:not(#_) { background:#8E5BD0; }
.s-bc136d3b:not(#_) { background:#1A73E8; }
.s-bc66a2f2:not(#_) { fill:none;stroke:var(--accent);stroke-width:2; }
.s-c198e8d3:not(#_) { display:grid;gap:20px; }
.s-cc314768:not(#_) { height:9px; }
.s-cc64b125:not(#_) { font-size:clamp(34px,5vw,52px); }
.s-d1f7a16a:not(#_) { fill:var(--fg);font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:10.5px;font-weight:600; }
.s-d98d762e:not(#_) { fill:var(--fg);font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:9px;font-weight:600; }
.s-e3e4380d:not(#_) { background:#5B7FA6; }
.s-e593254e:not(#_) { height:6px; }
.s-f82b0c69:not(#_) { stroke:var(--sep);stroke-width:2;stroke-linecap:round; }
.s-f9054301:not(#_) { text-align:center;justify-items:center; }
