/* WireShock — wireshock.com
   One stylesheet. System type, brand palette, light + dark (night sky). */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f7fb;
  --surface-2: #eef0f7;
  --border: #e6e8f0;
  --border-strong: #d5d9e6;
  --text: #0f1222;
  --muted: #5b6275;
  --accent: #6d5cff;
  --accent-hover: #5b4bf0;
  --accent-text: #5443e6;
  --accent-soft: #efedff;
  --blue: #3b82f6;
  --spark: #ffd23f;
  --spark-ink: #1e1b4b;
  --success: #16a34a;
  --warning: #b45309;
  --danger: #e5484d;
  --danger-text: #c42a30;
  --w1: #6d5cff;
  --w2: #3b82f6;
  --w3: #10b981;
  --w4: #f59e0b;
  --sky: #eef1fc;
  --pole: #c9cee0;
  --app-bg: #ffffff;
  --shadow-sm: 0 1px 2px rgb(15 18 34 / .06), 0 2px 6px rgb(15 18 34 / .04);
  --shadow-lg: 0 2px 4px rgb(15 18 34 / .04), 0 24px 60px -12px rgb(40 36 110 / .18);
  --r-ctl: 10px;
  --r-card: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1016;
    --surface: #161922;
    --surface-2: #1c2030;
    --border: #252a36;
    --border-strong: #333a4b;
    --text: #eceef5;
    --muted: #9aa1b5;
    --accent-text: #a79dff;
    --accent-soft: #221f45;
    --warning: #f0a145;
    --danger-text: #ff8f92;
    --w1: #8b7dff;
    --w2: #5b9bff;
    --w3: #34d399;
    --w4: #fbbf24;
    --sky: #131733;
    --pole: #39405a;
    --app-bg: #12141c;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .3), 0 30px 70px -16px rgb(0 0 0 / .7);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--border-strong) transparent; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.025em; }
p { margin: 0; text-wrap: pretty; }
code, kbd { font-family: var(--mono); font-size: .9em; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-ctl); border: 1px solid transparent;
  font: 600 1rem/1 var(--font); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgb(40 30 160 / .25), 0 8px 20px -8px rgb(109 92 255 / .6); }
.btn-primary:hover { background: var(--accent-hover); }
@media (prefers-color-scheme: dark) { .btn-primary { box-shadow: 0 1px 2px rgb(0 0 0 / .5), 0 8px 18px -10px rgb(0 0 0 / .8); } }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9375rem; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.site-header .btn { margin-left: 8px; }
@media (max-width: 760px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky) 0%, color-mix(in srgb, var(--sky) 40%, var(--bg)) 55%, var(--bg) 100%);
  padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 112px);
  overflow: hidden;
}
.hero-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 56px; align-items: end; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); letter-spacing: -.035em; line-height: .98; font-weight: 750; }
.hero h1 span { display: block; color: var(--accent-text); }
.hero .lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 38ch; }
.hero-copy { padding-bottom: 6px; }
.hero-row { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); margin-top: clamp(40px, 5vw, 64px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-note { margin-top: 16px; font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cta-note span { display: inline-flex; align-items: center; gap: 6px; }
.cta-note .icon { width: 16px; height: 16px; color: var(--success); }

.wires { position: absolute; z-index: 1; pointer-events: none; }
.wires-h { position: absolute; left: calc(-1 * var(--gutter) - max(0px, (100vw - var(--wrap)) / 2)); right: calc(66.667% - 4px); top: 0; height: calc(100% - 40px); }
.wires-h svg { width: 100%; height: 100%; }
.wires-v { display: none; }
.wire { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.wire-1 { stroke: var(--w1); } .wire-2 { stroke: var(--w2); } .wire-3 { stroke: var(--w3); } .wire-4 { stroke: var(--w4); }
.pole { stroke: var(--pole); stroke-width: 2; stroke-linecap: round; }
.insulator { fill: var(--bg); stroke: var(--pole); stroke-width: 1.5; }
.wire-label { font: 600 12.5px var(--font); fill: var(--muted); letter-spacing: .01em; }
.wire-label tspan.k { fill: var(--text); }
.junction { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.spark { fill: none; stroke: var(--spark); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 3 200; stroke-dashoffset: 3; }
.spark-glow { fill: none; stroke: var(--spark); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 3 200; stroke-dashoffset: 3; opacity: .35; }
.spark.run, .spark-glow.run { animation: spark-run 1.15s cubic-bezier(.55, 0, .35, 1) forwards; }
@keyframes spark-run { from { stroke-dashoffset: 3; } to { stroke-dashoffset: -101; } }

.hero-stage { grid-column: 2; position: relative; z-index: 2; }
.mock-caption { margin-top: 14px; font-size: .8125rem; color: var(--muted); text-align: right; }

/* ---------- app mockup ---------- */
.app {
  margin: 0;
  background: var(--app-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}
.app-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.app-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--surface); border-radius: 9px; color: var(--muted); font-size: 13px; }
.app-search .icon { width: 16px; height: 16px; }
.app-search kbd { margin-left: auto; font-size: 11px; border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 6px; background: var(--app-bg); }
.app-compose { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; }
.app-compose .icon { width: 15px; height: 15px; }
.app-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 452px; }
.app-side { border-right: 1px solid var(--border); padding: 14px 10px; background: color-mix(in srgb, var(--surface) 55%, var(--app-bg)); }
.app-side .side-h { font: 600 11px/1 var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 10px 8px; }
.app-side .side-h:first-child { margin-top: 2px; }
.app-side ul { list-style: none; margin: 0; padding: 0; }
.app-side li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.app-side li.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.app-side li b { margin-left: auto; font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.app-side li.on b { color: var(--accent-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
.c1 { color: var(--w1); } .c2 { color: var(--w2); } .c3 { color: var(--w3); } .c4 { color: var(--w4); }
.app-side .icon { width: 16px; height: 16px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--border); }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 12px 12px; border: 0; background: none; cursor: pointer;
  font: 500 13.5px/1 var(--font); color: var(--muted);
  border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); font-weight: 650; }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.tab .count { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: var(--surface-2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); text-align: center; }
.tab[aria-selected="true"] .count { background: var(--accent); color: #fff; }
.list { list-style: none; margin: 0; padding: 4px 0; }
[role="tabpanel"][hidden] { display: none; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 16px; border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.row:last-child { border-bottom: 0; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 650; color: #fff; letter-spacing: 0; }
.av-a { background: #7c3aed; } .av-b { background: #0369a1; } .av-c { background: #0f766e; } .av-d { background: #be185d; } .av-e { background: #b45309; } .av-f { background: #475569; } .av-g { background: #4f46e5; }
.av-n { background: var(--surface-2); color: var(--muted); }
.av-n .icon { width: 17px; height: 17px; }
.row .who { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.row .who b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.read .who b { font-weight: 500; }
.row .subj { display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.read .subj { color: var(--muted); }
.row .snip { display: block; margin-top: 2px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.row .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.row .meta .dot { width: 7px; height: 7px; }
.row.is-new { animation: row-in .7s var(--ease) both; }
.row.is-new .who b::after { content: "New"; margin-left: 8px; padding: 1px 6px; border-radius: 999px; background: var(--spark); color: var(--spark-ink); font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
@keyframes row-in {
  from { opacity: 0; transform: translateY(-10px); background: color-mix(in srgb, var(--spark) 30%, transparent); }
  60% { background: color-mix(in srgb, var(--spark) 14%, transparent); }
  to { opacity: 1; transform: none; background: transparent; }
}

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 148px) 0; position: relative; }
.section-tint { background: var(--surface); }
.section h2 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); letter-spacing: -.03em; font-weight: 720; max-width: 18ch; }
.section .intro { margin-top: 20px; font-size: 1.1875rem; color: var(--muted); max-width: 54ch; line-height: 1.55; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.facts .icon { margin-top: 3px; color: var(--accent-text); }
.facts b { display: block; font-weight: 650; }
.facts span { color: var(--muted); }

/* lanes (smart inbox) */
.lanes { position: relative; display: grid; gap: 10px; padding-left: 28px; }
.lanes::before { content: ""; position: absolute; left: 0; top: 30px; bottom: 30px; width: 1.6px; background: var(--border-strong); border-radius: 2px; }
.lane { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 18px; padding: 14px 0; }
.lane::before { content: ""; position: absolute; left: -28px; width: 28px; top: 50%; height: 1.6px; background: var(--border-strong); }
.lane-name { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.0625rem; }
.lane-name small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; }
.lane-track { position: relative; display: flex; gap: 10px; overflow: hidden; padding: 4px 0; mask-image: linear-gradient(90deg, #000 78%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); }
.lane-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.6px; background: var(--lane, var(--accent)); opacity: .5; }
.lane-people { --lane: var(--w1); } .lane-notif { --lane: var(--w2); } .lane-news { --lane: var(--w3); }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 7px 12px 7px 7px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: .875rem; white-space: nowrap; box-shadow: var(--shadow-sm); }
.chip .av { width: 26px; height: 26px; font-size: 11px; }
.chip .av-n .icon { width: 13px; height: 13px; }
.lane-badge { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--lane) 14%, transparent); color: var(--lane); }
.lane-badge .icon { width: 18px; height: 18px; }
.lane-people .lane-name, .lane-notif .lane-name, .lane-news .lane-name { color: var(--text); }
.notify-pick { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--border); font-size: .9375rem; color: var(--muted); }
.notify-pick b { color: var(--text); font-weight: 600; }
.notify-pick .icon { color: var(--accent-text); }

/* accounts line */
.line-block { margin-top: clamp(48px, 6vw, 72px); position: relative; }
.line { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.line::before { content: ""; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 22px; height: 1.6px; background: linear-gradient(90deg, var(--w1), var(--w2) 33%, var(--w3) 66%, var(--w4)); opacity: .9; }
.stop { position: relative; padding-top: 58px; padding-right: 24px; }
.stop::before { content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c, var(--accent)); box-sizing: border-box; }
.stop:nth-child(1) { --c: var(--w1); } .stop:nth-child(2) { --c: var(--w2); } .stop:nth-child(3) { --c: var(--w3); } .stop:nth-child(4) { --c: var(--w4); }
.stop h3 { font-size: 1.375rem; letter-spacing: -.02em; }
.stop p { margin-top: 8px; color: var(--muted); font-size: .9875rem; max-width: 30ch; }
.providers { margin-top: 44px; color: var(--muted); font-size: 1rem; max-width: 70ch; }
.providers b { color: var(--text); font-weight: 600; }
.backup { margin-top: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 24px; border-radius: var(--r-card); background: var(--surface); }
.backup-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.backup h3 { font-size: 1.125rem; letter-spacing: -.015em; }
.backup p { color: var(--muted); font-size: .9688rem; margin-top: 4px; }
.backup .file { font: 500 .8125rem var(--mono); color: var(--muted); padding: 8px 12px; border-radius: 8px; border: 1px dashed var(--border-strong); white-space: nowrap; }

/* offline demo */
.offline-demo { background: var(--app-bg); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.od-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.od-bar strong { font-size: .9375rem; }
.switch { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px; cursor: pointer; font: 500 .875rem var(--font); color: var(--muted); }
.switch-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--success); transition: background-color .25s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 21px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: left .3s var(--ease); }
.switch[aria-checked="false"] .switch-track { background: var(--border-strong); }
.switch[aria-checked="false"] .switch-track::after { left: 3px; }
.od-banner { display: flex; align-items: center; gap: 10px; padding: 0 16px; max-height: 0; overflow: hidden; background: color-mix(in srgb, var(--warning) 12%, var(--app-bg)); color: var(--text); font-size: .875rem; transition: max-height .4s var(--ease), padding .4s var(--ease); }
.od-banner .icon { width: 16px; height: 16px; color: var(--warning); }
.is-offline .od-banner { max-height: 60px; padding: 10px 16px; }
.od-list .row { transition: opacity .3s; }
.state { display: none; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.state .icon { width: 12px; height: 12px; }
.state-queued { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.state-sent { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.row[data-state="queued"] .state-queued, .row[data-state="sent"] .state-sent { display: inline-flex; }
.row[data-state="queued"] { opacity: .75; }
.od-foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--muted); }

/* phone */
.devices { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 46px; padding: 12px;
  background: #0b0d14; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2a2f3e;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 35px; overflow: hidden;
  background: linear-gradient(170deg, #3a2fb8 0%, #2c4fc4 45%, #10133a 100%);
  color: #fff; padding: 58px 12px 12px;
}
.phone-screen::before { content: ""; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 999px; background: #000; }
.lock-time { text-align: center; font-size: 64px; font-weight: 300; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.lock-date { text-align: center; font-size: 14px; opacity: .85; margin-top: 6px; }
.notifs { position: absolute; left: 10px; right: 10px; bottom: 22px; display: grid; gap: 8px; }
.notif { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 11px 12px; border-radius: 18px; background: rgb(245 246 255 / .82); color: #0f1222; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 13px; line-height: 1.3; }
.notif img { width: 36px; height: 36px; border-radius: 9px; }
.notif .n-top { display: flex; justify-content: space-between; font-size: 12px; color: #4a5068; }
.notif b { display: block; font-weight: 650; margin-top: 1px; }
.notif > div { min-width: 0; }
.notif span { display: block; color: #3b4157; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-notif { position: absolute; right: 0; top: 46%; width: 300px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.35; }
.desk-notif img { width: 40px; height: 40px; border-radius: 10px; }
.desk-notif .n-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.desk-notif b { display: block; }
.desk-notif span { color: var(--muted); }
.install { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.install div { padding: 18px 18px 0 0; }
.install b { display: block; font-size: .9375rem; }
.install span { display: block; color: var(--muted); font-size: .875rem; margin-top: 4px; }

/* keyboard */
.keys-wrap { text-align: center; }
.keys-wrap h2 { margin-inline: auto; }
.keys-wrap .intro { margin-inline: auto; }
.keys { margin: 52px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 900px; }
.key {
  display: grid; grid-template-rows: auto auto; justify-items: center; gap: 12px;
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font: 500 .875rem var(--font);
}
.key kbd {
  display: grid; place-items: center; width: 76px; height: 72px;
  border-radius: 14px; font: 600 1.5rem/1 var(--font); color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 var(--border-strong), 0 5px 0 -1px var(--border), 0 10px 22px -10px rgb(15 18 34 / .25);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.key.is-down kbd, .key:active kbd { transform: translateY(4px); box-shadow: 0 1px 0 var(--border-strong), 0 1px 0 0 var(--border), 0 4px 10px -6px rgb(15 18 34 / .25); background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.key.is-down { color: var(--text); }
.key-out { margin-top: 36px; min-height: 28px; font-size: 1.0625rem; color: var(--muted); }
.key-out b { color: var(--text); }

/* privacy band */
.privacy { background: var(--text); color: var(--bg); }
.privacy h2 { color: var(--bg); max-width: 16ch; }
.privacy .intro { color: color-mix(in srgb, var(--bg) 70%, var(--text)); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.pledges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.pledges li { padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.pledges .icon { width: 22px; height: 22px; color: var(--spark); }
.pledges b { display: block; margin-top: 14px; font-size: 1.125rem; letter-spacing: -.01em; }
.pledges span { display: block; margin-top: 6px; color: color-mix(in srgb, var(--bg) 70%, var(--text)); font-size: .9688rem; }
.privacy a.more { color: var(--bg); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; }
.privacy a.more .icon { width: 18px; height: 18px; }
@media (prefers-color-scheme: dark) {
  .privacy { background: #05060b; color: var(--text); border-block: 1px solid var(--border); }
  .privacy h2 { color: var(--text); }
  .privacy .intro, .pledges span { color: var(--muted); }
  .pledges li { border-top-color: var(--border); }
  .privacy a.more { color: var(--text); }
}

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq summary:hover { color: var(--accent-text); }
.faq details > div { padding: 0 0 24px; color: var(--muted); max-width: 64ch; }
.faq details > div p + p { margin-top: 12px; }

/* final cta */
.final { position: relative; text-align: center; padding: clamp(96px, 13vw, 168px) 0; background: linear-gradient(0deg, var(--sky), var(--bg)); overflow: hidden; }
.final h2 { margin-inline: auto; font-size: clamp(2.5rem, 6vw, 4.75rem); letter-spacing: -.035em; max-width: 14ch; }
.final p { margin: 20px auto 0; color: var(--muted); font-size: 1.1875rem; max-width: 44ch; }
.final .cta-row { justify-content: center; margin-top: 36px; }
.final-wires { position: absolute; inset: auto 0 0 0; height: 100%; width: 100%; z-index: 0; pointer-events: none; }
.final .wrap { position: relative; z-index: 1; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid p { color: var(--muted); margin-top: 12px; max-width: 34ch; }
.foot-grid h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--accent-text); text-decoration: underline; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .875rem; }

/* ---------- reading pages (guides, security, legal) ---------- */
.page-hero { background: linear-gradient(180deg, var(--sky), var(--bg)); padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.375rem, 5vw, 4rem); letter-spacing: -.033em; max-width: 18ch; font-weight: 740; }
.page-hero .lede { margin-top: 18px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.page-hero .meta-line { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .875rem; }
.page-hero .meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.page-hero .meta-line .icon { width: 16px; height: 16px; }
.hero-line { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; width: 100%; z-index: 0; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(80px, 10vw, 128px); align-items: start; }
.toc { position: sticky; top: 96px; font-size: .875rem; }
.toc b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1.6px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1.6px; border-left: 1.6px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--border-strong); }
.toc a.on { color: var(--accent-text); border-left-color: var(--accent); font-weight: 600; }
.prose { max-width: 70ch; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); letter-spacing: -.025em; margin-top: 2.4em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; letter-spacing: -.015em; margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 650; }
.prose code { padding: .12em .4em; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); font-size: .86em; overflow-wrap: anywhere; }
.prose kbd { padding: .1em .45em; border-radius: 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; font-size: .85em; background: var(--bg); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 600; color: var(--muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; }
.table-scroll { overflow-x: auto; }
.prose .muted { color: var(--muted); }

.note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: var(--r-card); background: var(--surface); font-size: .9688rem; }
.note .icon { margin-top: 2px; color: var(--accent-text); }
.note-warn { background: color-mix(in srgb, var(--warning) 10%, var(--bg)); }
.note-warn .icon { color: var(--warning); }
.note > div > * + * { margin-top: .5em; }
.draft-banner { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: var(--r-card); border: 1px dashed var(--warning); background: color-mix(in srgb, var(--warning) 8%, var(--bg)); font-size: .9375rem; margin-top: 24px; max-width: 70ch; }
.draft-banner .icon { color: var(--warning); margin-top: 2px; }

/* steps */
.steps { list-style: none; padding: 0 !important; margin: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 20px; padding-bottom: 44px; counter-increment: step; }
.step + .step { margin-top: 0 !important; }
.step::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1.6px solid var(--accent); color: var(--accent-text); font-weight: 700; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; left: 21.2px; top: 44px; bottom: 0; width: 1.6px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--blue) 50%, transparent)); opacity: .45; }
.step:last-child::after { display: none; }
.step-body { min-width: 0; padding-top: 8px; }
.step-body > * + * { margin-top: .9em; }
.step-body h3 { font-size: 1.3125rem; margin-top: 0; letter-spacing: -.018em; scroll-margin-top: 96px; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .875rem; }
.path span { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.path .icon { width: 14px; height: 14px; color: var(--muted); }

/* console panel: a drawn diagram of the form you will fill in */
.panel { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); box-shadow: var(--shadow-sm); overflow: hidden; font-size: .9375rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: .8125rem; color: var(--muted); font-weight: 600; }
.panel-body { padding: 16px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .8125rem; color: var(--muted); font-weight: 500; }
.value { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 6px 6px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-ctl); background: var(--bg); font: 500 .875rem var(--mono); overflow-wrap: anywhere; }
.value > code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: inherit; }
.value-plain { font-family: var(--font); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-ctl); font-size: .875rem; color: var(--muted); }
.choice span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid var(--border-strong); }
.choice .sel { border-color: var(--accent); color: var(--text); background: var(--accent-soft); font-weight: 600; }
.choice .sel::before { border: 4.5px solid var(--accent); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.status-pill.test { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.status-pill.prod { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.status-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status-flow .icon { width: 16px; height: 16px; color: var(--muted); }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .75rem var(--font); cursor: pointer; }
.copy:hover { border-color: var(--border-strong); }
.copy .icon { width: 14px; height: 14px; }
.copy.done { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }

/* google warning diagram */
.gwarn { border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; background: var(--bg); box-shadow: var(--shadow-sm); }
.gwarn .g-ico { width: 30px; height: 30px; color: var(--danger); }
.gwarn .gwarn-title { font-weight: 700; font-family: var(--font-display); font-size: 1.125rem; margin-top: 12px; letter-spacing: -.01em; }
.gwarn p { color: var(--muted); font-size: .9375rem; margin-top: 8px; }
.gwarn .g-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .875rem; }
.gwarn .g-links span { color: var(--muted); }
.gwarn .g-links .hl { color: var(--accent-text); font-weight: 600; padding: 4px 10px; border-radius: 8px; outline: 2px dashed var(--accent); outline-offset: 2px; }

.trouble { display: grid; gap: 14px; margin-top: 1.2em; }
.trouble details { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); }
.trouble summary { cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; gap: 12px; align-items: baseline; list-style: none; }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary code { font-weight: 600; color: var(--danger-text); background: color-mix(in srgb, var(--danger) 8%, transparent); border-color: transparent; }
.trouble details > div { padding: 0 18px 18px; color: var(--muted); }
.trouble details > div > * + * { margin-top: .7em; }

.provider-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.provider-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 500; font-size: .9375rem; }
.provider-nav a:hover { border-color: var(--accent); color: var(--accent-text); }
.server-table td:first-child { white-space: nowrap; color: var(--muted); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; background: linear-gradient(180deg, var(--sky), var(--bg)); }
.lost h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -.035em; }
.lost p { color: var(--muted); margin: 16px auto 0; max-width: 44ch; font-size: 1.125rem; }
.lost svg { margin: 0 auto 32px; width: min(420px, 90%); height: auto; }
.lost .cta-row { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .app-body { grid-template-columns: 168px minmax(0, 1fr); }
  .desk-notif { right: -12px; width: 260px; }
}
@media (max-width: 960px) {
  .hero-head, .hero-row { grid-template-columns: 1fr; }
  .hero-row { margin-top: 0; }
  .wires-h { display: none; }
  .wires-v { display: block; position: relative; height: 150px; margin: 28px calc(-1 * var(--gutter)) 0; }
  .wires-v svg { width: 100%; height: 100%; }
  .hero-stage { grid-column: 1; margin-top: -2px; }
  .mock-caption { text-align: center; }
  .split, .privacy-grid, .faq-grid { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .line { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .line::before { display: none; }
  .stop { padding-top: 40px; border-top: 1.6px solid var(--c); }
  .stop::before { top: -10px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .app-side { display: none; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-top { padding: 10px 12px; }
  .app-search kbd { display: none; }
  .tabs { padding: 8px 6px 0; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .tab { padding: 9px 9px 12px; font-size: 13px; }
  .row { padding: 10px 12px; gap: 10px; grid-template-columns: 34px minmax(0, 1fr) auto; }
  .av { width: 34px; height: 34px; }
  .lane { grid-template-columns: 1fr; gap: 10px; padding: 12px 0; }
  .lanes { padding-left: 20px; }
  .lane::before { left: -20px; width: 20px; top: 28px; }
  .line { grid-template-columns: 1fr; }
  .backup { grid-template-columns: auto minmax(0, 1fr); }
  .backup .file { grid-column: 1 / -1; justify-self: start; }
  .devices { min-height: 0; flex-direction: column; gap: 24px; }
  .desk-notif { position: relative; top: 0; right: 0; width: 100%; max-width: 340px; order: 2; }
  .phone { width: 264px; height: 540px; }
  .install { grid-template-columns: 1fr; }
  .pledges { grid-template-columns: 1fr; gap: 28px; }
  .key kbd { width: 62px; height: 60px; font-size: 1.25rem; }
  .keys { gap: 10px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .step { grid-template-columns: 36px minmax(0, 1fr); gap: 0 14px; }
  .step::before { width: 36px; height: 36px; font-size: .9375rem; }
  .step::after { left: 17.2px; top: 36px; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 2.5rem; }
  .row .snip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .spark, .spark-glow { display: none; }
}
@media print {
  .site-header, .site-footer, .toc, .wires, .hero-line { display: none !important; }
  body { color: #000; background: #fff; }
}
.final-wires .wire { opacity: .45; stroke-width: 1.4; }
.hero-line .wire { opacity: .55; stroke-width: 1.4; }
