/* Noble Relay: landing page */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f6f8f5; }
.site { container-type: inline-size; container-name: site; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: #134e3a; color: #fff; font: 600 14px system-ui, sans-serif; text-decoration: none; transition: top 160ms; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.site {
  --r: 16px;
  --gap: 1;
  /* light neutrals */
  --bg: #f6f8f5;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --line: #dde5df;
  --text: #0f1a16;
  --muted: #55645c;
  --shadow: 0 1px 2px rgba(15, 26, 22, 0.06), 0 8px 24px -8px rgba(15, 26, 22, 0.14);
  /* palette: evergreen (default) */
  --accent: #1f7a53;
  --accent-2: #2e9e6b;
  --accent-soft: #e0f1e8;
  --brass: #b5852a;
  --on-accent: #ffffff;
  --hero-from: #e4f3ea;
  --hero-to: #f6f8f5;
  --hero-text: var(--text);
  --hero-muted: var(--muted);
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-weight: 750;
  --display-track: -0.03em;

  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100%;
}
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site h1, .site h2, .site h3, .site p { margin: 0; }
.site a { color: inherit; text-decoration: none; }
.site button { font: inherit; }
.site svg { display: block; }
.site [hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.section { padding-block: calc(88px * var(--gap)); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--brass); border-radius: 2px; }
.h2 {
  margin-top: 10px;
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-track); line-height: 1.12;
  font-size: clamp(28px, 4.2cqi, 42px);
}
.lede { margin-top: 14px; max-width: 58ch; color: var(--muted); font-size: 18px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .kicker { justify-content: center; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: calc(var(--r) * 0.75);
  border: 1px solid transparent; cursor: pointer; font-weight: 650; font-size: 16px;
  transition: transform 140ms, box-shadow 140ms, background 140ms;
}
.cta.primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.cta.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.cta.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.cta.ghost:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.cta:focus-visible, .nav a:focus-visible, .tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; }
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.brand svg { filter: drop-shadow(0 4px 8px rgba(19, 78, 58, 0.35)); }
.nav .links { display: flex; gap: 6px; margin-left: auto; }
.nav .links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav .links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav .cta { height: 40px; padding: 0 16px; font-size: 14.5px; }
.hero {
  background:
    radial-gradient(700px 360px at 85% 10%, color-mix(in srgb, var(--brass) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--hero-from), var(--hero-to));
  color: var(--hero-text);
  padding-block: calc(76px * var(--gap)) calc(84px * var(--gap));
  overflow: hidden;
}
.hero .grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--hero-text); font-size: 13.5px; font-weight: 550;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.hero .eyebrow b { background: var(--brass); color: #1a1303; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.hero h1 {
  margin-top: 20px;
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-track); line-height: 1.04;
  font-size: clamp(38px, 6.4cqi, 68px);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { margin-top: 20px; max-width: 52ch; font-size: clamp(17px, 1.9cqi, 20px); color: var(--hero-muted); }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .meta { margin-top: 16px; font-size: 14px; color: var(--hero-muted); }
.platforms { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border-radius: 999px; font-size: 13.5px; font-weight: 550;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  color: var(--text);
}

.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: calc(26px * var(--gap)); }
.strip .it { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 550; }
.strip .it small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.ico {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: calc(var(--r) * 0.6); background: var(--accent-soft); color: var(--accent);
}
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative; padding: 26px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.step .n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px;
}
.step h3 { margin-top: 16px; font-size: 19px; letter-spacing: -0.01em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.code {
  display: inline-flex; gap: 5px; margin-top: 14px;
}
.code b {
  display: grid; place-items: center; width: 30px; height: 38px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  font: 650 17px ui-monospace, "Cascadia Code", Consolas, monospace;
}
.code b:nth-child(3) { margin-right: 8px; }
.features { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 24px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); transition: transform 160ms, box-shadow 160ms, border-color 160ms;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card h3 { margin-top: 16px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.card .tag {
  display: inline-block; margin-top: 12px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--brass) 16%, transparent); color: color-mix(in srgb, var(--brass) 80%, var(--text));
}
.card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.kbd { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.kbd kbd {
  padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 3px;
  background: var(--surface-2); font: 600 13px ui-monospace, Consolas, monospace; color: var(--text);
}
.security { background: var(--surface-2); border-block: 1px solid var(--line); }
.sec-grid { margin-top: 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.sec-list { display: grid; gap: 18px; }
.sec-list li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.sec-list ul { margin: 0; padding: 0; display: grid; gap: 20px; }
.sec-list h3 { font-size: 17px; }
.sec-list p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.vault {
  padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.vault .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.vault .row:first-of-type { border-top: 0; }
.vault .row .sw { width: 34px; height: 20px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.vault .row .sw::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.vault .row .sw.off { background: var(--line); }
.vault .row .sw.off::after { right: auto; left: 2px; }
.vault h3 { font-size: 16px; margin-bottom: 4px; }
.vault small { color: var(--muted); }
.tabs { margin: 40px auto 0; display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.dl {
  margin: 22px auto 0; max-width: 860px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px;
  padding: 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.dl h3 { font-size: 22px; letter-spacing: -0.01em; }
.dl .files { margin-top: 16px; display: grid; gap: 10px; }
.file {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  border-radius: calc(var(--r) * 0.7); border: 1px solid var(--line); background: var(--surface-2);
}
.file div { min-width: 0; }
.file code { display: block; font: 600 13px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.file small { color: var(--muted); font-size: 12.5px; }
.file .cta { height: 38px; padding: 0 14px; font-size: 14px; flex: none; }
.dl ol { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; display: grid; gap: 8px; }
.dl ol code, .dl p code { font: 600 13px ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.soon { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: color-mix(in srgb, var(--brass) 20%, transparent); color: color-mix(in srgb, var(--brass) 80%, var(--text)); }
.site .note {
  margin: 18px auto 0; max-width: 860px; padding: 14px 18px; border-radius: calc(var(--r) * 0.7);
  background: color-mix(in srgb, var(--brass) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brass) 30%, var(--line));
  font-size: 14.5px; color: var(--muted);
}
.note b { color: var(--text); }
.faq { margin: 40px auto 0; max-width: 780px; display: grid; gap: 10px; }
.faq details { border-radius: calc(var(--r) * 0.8); border: 1px solid var(--line); background: var(--surface); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--accent); transition: transform 160ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15.5px; }
.foot { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 14.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot .links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }
@container site (max-width: 820px) {
.hero .grid, .sec-grid, .dl { grid-template-columns: 1fr; }
.hero .grid { gap: 40px; text-align: left; }
.strip .wrap { grid-template-columns: 1fr 1fr; }
.nav .links { display: none; }
.nav .cta { margin-left: auto; }
}
@container site (max-width: 700px) {
.steps { grid-template-columns: 1fr; }
.features { grid-template-columns: 1fr 1fr; }
.card.wide { grid-column: span 2; }
}
@container site (max-width: 560px) {
.wrap { width: calc(100% - 32px); }
.features { grid-template-columns: 1fr; }
.card.wide { grid-column: auto; grid-template-columns: 1fr; }
.strip .wrap { grid-template-columns: 1fr; }
.hero .actions .cta { width: 100%; }
.file { flex-direction: column; align-items: stretch; }
}
.tour { background: var(--surface-2); border-block: 1px solid var(--line); }
.tour-card {
  margin: 26px auto 0; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: center;
  text-align: left; max-width: 1040px;
}
.tour-copy h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 26px; line-height: 1.15; }
.tour-copy p { margin-top: 10px; color: var(--muted); }
.tour-copy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.tour-copy li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15.5px; }
.tour-copy li svg { color: var(--accent); margin-top: 2px; }
.tour-copy li b { display: block; font-weight: 650; }
.tour-copy li span { color: var(--muted); font-size: 14.5px; }
.win {
  margin: 0; border-radius: calc(var(--r) * 1.1); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(8, 40, 28, 0.35), 0 2px 6px rgba(8, 40, 28, 0.1);
}
.win .bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.win .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win .bar span { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.win img { display: block; width: 100%; height: auto; }
@container site (max-width: 820px) {
.tour-card { grid-template-columns: 1fr; gap: 24px; }
.win { order: -1; }
}

.devices {
  position: relative; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 2.05;
  container-type: inline-size; container-name: dev;
}
.site:not([data-visual="devices"]) .devices { display: none; }
.desk {
  position: absolute; left: -4%; right: -4%; top: 33cqw; height: 11cqw; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--text) 16%, transparent), transparent 74%);
  filter: blur(5px); opacity: 0.75;
}
.dev { position: absolute; }
.winpc { left: 0; top: 7cqw; width: 48cqw; }
.mac { left: 52cqw; top: 6cqw; width: 48cqw; }
.lid { position: absolute; left: 3.5%; width: 93%; transition: box-shadow 420ms ease; }
.winpc .lid {
  height: 27.8cqw; padding: 0.55cqw 0.55cqw 1cqw; border-radius: 1.4cqw 1.4cqw 0.3cqw 0.3cqw;
  background: linear-gradient(180deg, #34393a, #1a1d1d 40%, #141616);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10) inset, 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 2.4cqw 3.6cqw -1.6cqw rgba(3, 24, 16, 0.6);
}
.mac .lid {
  height: 28.6cqw; padding: 0.28cqw; border-radius: 1.7cqw 1.7cqw 0.3cqw 0.3cqw;
  background: linear-gradient(180deg, #e8ebed, #c6cbcf 55%, #b4babf);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2.4cqw 3.6cqw -1.6cqw rgba(3, 24, 16, 0.6);
}
.bezel { position: relative; width: 100%; height: 100%; background: #060808; overflow: hidden; }
.winpc .bezel { border-radius: 0.7cqw; padding: 0.35cqw; }
.mac .bezel { border-radius: 1.45cqw 1.45cqw 0.2cqw 0.2cqw; padding: 0.55cqw 0.55cqw 0.7cqw; }
.cam { position: absolute; top: 0.18cqw; left: 50%; width: 0.4cqw; height: 0.4cqw; margin-left: -0.2cqw; border-radius: 50%; background: #1d2423; box-shadow: 0 0 0 0.12cqw #0a0d0c; z-index: 4; }
.notch { position: absolute; top: 0; left: 50%; width: 5.2cqw; height: 1.25cqw; margin-left: -2.6cqw; border-radius: 0 0 0.7cqw 0.7cqw; background: #060808; z-index: 4; }
.scr { position: relative; width: 100%; height: 100%; overflow: hidden; }
.winpc .scr {
  border-radius: 0.35cqw;
  background:
    radial-gradient(55% 75% at 22% 105%, #2f7bf0 0%, transparent 62%),
    radial-gradient(50% 70% at 82% 12%, #18c2a6 0%, transparent 64%),
    radial-gradient(40% 50% at 60% 60%, #5b5bd6 0%, transparent 70%),
    linear-gradient(160deg, #0a2a52, #0a5d70);
}
.mac .scr {
  border-radius: 1cqw 1cqw 0.15cqw 0.15cqw;
  background:
    radial-gradient(60% 80% at 15% 15%, #ffb4c2 0%, transparent 62%),
    radial-gradient(55% 75% at 90% 75%, #9fb0ff 0%, transparent 62%),
    radial-gradient(45% 55% at 55% 105%, #ffe08a 0%, transparent 70%),
    linear-gradient(135deg, #ffe9b8, #cdb7ff);
}
.glass { position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.04) 28%, transparent 42%),
              radial-gradient(120% 90% at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.22) 100%);
}
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2.5cqw; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 0.5cqw;
  background: rgba(240, 244, 248, 0.72); backdrop-filter: blur(6px); border-top: 1px solid rgba(255, 255, 255, 0.5);
}
.taskbar b { width: 1.15cqw; height: 1.15cqw; border-radius: 0.3cqw; background: linear-gradient(135deg, #46a0ff, #1c64d6); }
.taskbar b:nth-child(2) { background: linear-gradient(135deg, #ffd166, #f59e0b); }
.taskbar b:nth-child(3) { background: linear-gradient(135deg, #6ee7b7, #10b981); }
.taskbar b:nth-child(4) { background: linear-gradient(135deg, #f9a8d4, #ec4899); }
.taskbar b:nth-child(5) { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.taskbar u { position: absolute; right: 1cqw; width: 3.4cqw; height: 0.55cqw; border-radius: 1cqw; background: rgba(15, 23, 42, 0.35); }
.menubar {
  position: absolute; left: 0; right: 0; top: 0; height: 1.9cqw; z-index: 2; display: flex; align-items: center; gap: 0.9cqw; padding: 0 1.1cqw;
  background: rgba(255, 255, 255, 0.38); backdrop-filter: blur(8px);
}
.menubar i { width: 0.8cqw; height: 0.9cqw; border-radius: 50% 50% 45% 45%; background: #111; }
.menubar b { height: 0.45cqw; width: 3cqw; border-radius: 1cqw; background: rgba(0, 0, 0, 0.55); }
.menubar b:nth-of-type(2) { width: 2.2cqw; background: rgba(0, 0, 0, 0.4); }
.menubar u { margin-left: auto; width: 4.6cqw; height: 0.45cqw; border-radius: 1cqw; background: rgba(0, 0, 0, 0.45); }
.dock {
  position: absolute; left: 50%; bottom: 0.7cqw; transform: translateX(-50%); z-index: 2; display: flex; gap: 0.6cqw; padding: 0.5cqw 0.8cqw;
  border-radius: 1.3cqw; background: rgba(255, 255, 255, 0.34); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
.dock b { width: 1.9cqw; height: 1.9cqw; border-radius: 0.55cqw; background: linear-gradient(135deg, #5ab0ff, #2563eb); box-shadow: 0 0.2cqw 0.4cqw rgba(0, 0, 0, 0.25); }
.dock b:nth-child(2) { background: linear-gradient(135deg, #86efac, #16a34a); }
.dock b:nth-child(3) { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.dock b:nth-child(4) { background: linear-gradient(135deg, #fca5a5, #ef4444); }
.dock b:nth-child(5) { background: linear-gradient(135deg, #1f7a53, #134e3a); }
.app {
  position: absolute; z-index: 1; display: flex; flex-direction: column; overflow: hidden; background: #fbfcfb; color: #223;
  border-radius: 0.7cqw; box-shadow: 0 1.4cqw 2.6cqw -0.6cqw rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.winpc .app { left: 5.5%; right: 5.5%; top: 6%; bottom: 13%; }
.mac .app { left: 6.5%; right: 6.5%; top: 14%; bottom: 17%; }
.app .tb { height: 2cqw; flex: none; display: flex; align-items: center; gap: 0.5cqw; padding: 0 0.8cqw; background: #f1f4f2; border-bottom: 1px solid #e1e6e3; }
.app .tb .lights { display: flex; gap: 0.35cqw; }
.app .tb .lights i { width: 0.6cqw; height: 0.6cqw; border-radius: 50%; background: #ff5f57; }
.app .tb .lights i:nth-child(2) { background: #febc2e; }
.app .tb .lights i:nth-child(3) { background: #28c840; }
.app .tb .ttl { height: 0.5cqw; width: 5cqw; border-radius: 1cqw; background: #2b3a34; opacity: 0.8; }
.app .tb .ctl { margin-left: auto; display: flex; gap: 0.7cqw; }
.app .tb .ctl i { width: 0.55cqw; height: 0.55cqw; border: 1px solid #8a948f; border-radius: 0.1cqw; }
.mac .app .tb .ctl { display: none; }
.winpc .app .tb .lights { display: none; }
.app .body { flex: 1; display: grid; grid-template-columns: 23% 1fr; min-height: 0; }
.app .side { padding: 0.9cqw 0.6cqw; background: #f6f8f7; border-right: 1px solid #e6ebe8; display: grid; align-content: start; gap: 0.45cqw; }
.app .side .brand { display: flex; align-items: center; gap: 0.45cqw; margin-bottom: 0.5cqw; }
.app .side .brand i { width: 1.3cqw; height: 1.3cqw; border-radius: 0.4cqw; background: linear-gradient(135deg, #134e3a, #1f7a53); position: relative; }
.app .side .brand b { height: 0.45cqw; width: 3cqw; border-radius: 1cqw; background: #2b3a34; opacity: 0.85; }
.app .side p { margin: 0; display: flex; align-items: center; gap: 0.45cqw; height: 1.55cqw; padding: 0 0.4cqw; border-radius: 0.45cqw; }
.app .side p i { width: 0.75cqw; height: 0.75cqw; border-radius: 0.2cqw; background: #aab5b0; }
.app .side p b { height: 0.4cqw; border-radius: 1cqw; background: #b9c3be; flex: none; }
.app .side p:nth-of-type(1) { background: #d7f0e2; }
.app .side p:nth-of-type(1) i { background: #1f7a53; }
.app .side p:nth-of-type(1) b { background: #1f7a53; opacity: 0.8; }
.app .main { padding: 1cqw 1.1cqw; display: grid; align-content: start; gap: 0.7cqw; background: #fbfcfb; }
.app .head { display: flex; align-items: center; gap: 0.6cqw; }
.app .head .t { height: 0.7cqw; width: 5cqw; border-radius: 1cqw; background: #17231d; opacity: 0.85; }
.app .head .pill { height: 0.9cqw; width: 5.2cqw; border-radius: 1cqw; background: #d8f2e4; }
.app .head .pill.ok { background: #bfeed2; }
.app .card { display: flex; align-items: center; gap: 0.8cqw; padding: 0.7cqw 0.8cqw; border-radius: 0.6cqw; background: #fff; border: 1px solid #e4e9e6; box-shadow: 0 0.2cqw 0.5cqw rgba(0, 0, 0, 0.05); }
.app .card .av { width: 1.9cqw; height: 1.9cqw; border-radius: 0.5cqw; background: #dff3e8; position: relative; flex: none; }
.app .card .av::after { content: ""; position: absolute; inset: 0.55cqw 0.45cqw; border: 1px solid #1f7a53; border-radius: 0.15cqw; }
.app .card .tx { flex: 1; display: grid; gap: 0.4cqw; }
.app .card .tx b { height: 0.5cqw; border-radius: 1cqw; background: #26332d; opacity: 0.8; width: 55%; }
.app .card .tx b + b { height: 0.4cqw; background: #98a49e; width: 80%; opacity: 0.7; }
.app .card .btn { width: 3.1cqw; height: 1.35cqw; border-radius: 0.4cqw; background: #1f7a53; }
.app .card .btn.ghost { background: #eef2f0; border: 1px solid #dde4e0; }
.deck { position: absolute; left: 0; width: 100%; height: 8.2cqw; clip-path: polygon(4.5% 0, 95.5% 0, 100% 100%, 0 100%); }
.winpc .deck { top: 27.8cqw; background: linear-gradient(180deg, #5a6160 0%, #3a403f 18%, #262a2a 100%); }
.mac .deck { top: 28.6cqw; height: 7.4cqw; background: linear-gradient(180deg, #f2f4f5 0%, #d4d9dc 22%, #b9bfc4 100%); }
.deck::before { /* hinge shadow */ content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0.5cqw; background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent); z-index: 2; }
.keys {
  position: absolute; left: 9%; right: 9%; top: 1.3cqw; height: 3.1cqw; border-radius: 0.3cqw;
  background-color: #0b0d0d;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 calc(25% - 0.18cqw), #2d3332 calc(25% - 0.18cqw) 25%),
    repeating-linear-gradient(90deg, transparent 0 calc(6.66% - 0.18cqw), #2d3332 calc(6.66% - 0.18cqw) 6.66%);
}
.mac .keys { background-color: #14171a; background-image:
    repeating-linear-gradient(0deg, transparent 0 calc(25% - 0.18cqw), #3a3f45 calc(25% - 0.18cqw) 25%),
    repeating-linear-gradient(90deg, transparent 0 calc(6.66% - 0.18cqw), #3a3f45 calc(6.66% - 0.18cqw) 6.66%); }
.pad { position: absolute; left: 36%; right: 36%; top: 4.9cqw; height: 2.4cqw; border-radius: 0.4cqw; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset; }
.mac .pad { top: 4.6cqw; height: 2.1cqw; background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15)); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) inset; }
.deck .lip { position: absolute; left: 50%; top: 0; width: 15%; height: 0.8cqw; margin-left: -7.5%; border-radius: 0 0 0.8cqw 0.8cqw; background: rgba(0, 0, 0, 0.22); z-index: 3; }
.dev::after { /* contact shadow on the desk */
  content: ""; position: absolute; left: 6%; right: 6%; top: 34.5cqw; height: 2.4cqw; background: radial-gradient(closest-side, rgba(3, 24, 16, 0.42), transparent); filter: blur(0.5cqw); z-index: -1;
}
.mac::after { top: 34.2cqw; }
.bridge {
  position: absolute; left: 45.4cqw; top: 18.4cqw; width: 9.4cqw; height: 0.26cqw; border-radius: 1cqw; z-index: 3;
  background: repeating-linear-gradient(90deg, #5ee2a8 0 0.8cqw, transparent 0.8cqw 1.5cqw); box-shadow: 0 0 1cqw rgba(94, 226, 168, 0.8);
  opacity: 0; transition: opacity 220ms;
}
.devices[data-phase="cross"] .bridge { opacity: 1; }
.cur { position: absolute; left: 0; top: 0; z-index: 7; width: 3.2cqw; height: 3.2cqw; pointer-events: none; will-change: transform; }
.cur path { fill: #fff; stroke: #0b1210; stroke-width: 1.5; stroke-linejoin: round; }
.cur.lead { filter: drop-shadow(0 0.35cqw 0.45cqw rgba(0, 0, 0, 0.45)); }
.cur.t1 { opacity: 0.38; }
.cur.t2 { opacity: 0.18; }
.cur.t1 path, .cur.t2 path { fill: #5ee2a8; stroke: none; }
.ripple { position: absolute; left: 77.4cqw; top: 18.4cqw; width: 2.6cqw; height: 2.6cqw; margin: -1.3cqw 0 0 -1.3cqw; z-index: 6; border-radius: 50%; border: 0.22cqw solid #d9a441; opacity: 0; pointer-events: none; }
.devices[data-click="on"] .ripple { animation: dripple 650ms ease-out; }
@keyframes dripple { from { opacity: 0.95; transform: scale(0.3); } to { opacity: 0; transform: scale(2.1); } }
.toast {
  position: absolute; left: 62cqw; top: 29.6cqw; z-index: 8; display: inline-flex; align-items: center; gap: 0.8cqw; white-space: nowrap;
  padding: 0.8cqw 1.4cqw; border-radius: 99cqw; font-size: clamp(9px, 1.75cqw, 13px); font-weight: 600; line-height: 1.2; color: #0f1a16;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); border: 1px solid rgba(0, 0, 0, 0.08); box-shadow: 0 1cqw 2.2cqw -0.6cqw rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translateY(1cqw) scale(0.96); transition: opacity 320ms ease, transform 320ms ease;
}
.toast::before { content: ""; width: 1cqw; height: 1cqw; flex: none; border-radius: 50%; background: #2e9e6b; box-shadow: 0 0 0 0.4cqw rgba(46, 158, 107, 0.28); }
.devices[data-toast="on"] .toast { opacity: 1; transform: none; }
.devices[data-phase="left"] .winpc .lid, .devices[data-phase="cross"] .winpc .lid {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10) inset, 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 0 0 0.3cqw rgba(94, 226, 168, 0.75), 0 0 4cqw rgba(94, 226, 168, 0.5), 0 2.4cqw 3.6cqw -1.6cqw rgba(3, 24, 16, 0.6);
}
.devices[data-phase="right"] .mac .lid, .devices[data-phase="cross"] .mac .lid {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 0 0 0.3cqw rgba(217, 164, 65, 0.85), 0 0 4cqw rgba(217, 164, 65, 0.5), 0 2.4cqw 3.6cqw -1.6cqw rgba(3, 24, 16, 0.6);
}
@media (prefers-reduced-motion: reduce) {
.toast, .lid, .bridge { transition: none; }
}
@container site (max-width: 560px) {
.toast { padding: 0.6cqw 1.1cqw; }
}

.site .card .mv:not(.kbd) { display: none; }
.mv {
  position: relative; align-items: center; justify-content: center; gap: 8px; min-height: 104px; padding: 14px; overflow: hidden; flex: none;
  color: var(--text);
  border-radius: calc(var(--r) * 0.75); border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface-2)), var(--surface-2));
}
.mv b { color: var(--accent); font-weight: 700; font-size: 13px; }
.mv-edge { gap: 0; justify-content: space-between; padding-inline: 22px; }
.mv-edge .s { width: 40%; height: 54px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.mv-edge .s::after { content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 4px; border-radius: 2px; background: var(--line); box-shadow: 0 9px 0 var(--line), 0 18px 0 color-mix(in srgb, var(--accent) 35%, var(--line)); }
.mv-edge .a { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); }
.mv-edge .bridge2 { position: absolute; left: 44%; right: 44%; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent-2) 0 4px, transparent 4px 8px); }
.mv-edge .cu { position: absolute; width: 18px; height: 18px; top: 52%; left: 26%; animation: mvhop 5.5s cubic-bezier(.6, 0, .3, 1) infinite; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.mv-edge .cu path { fill: #fff; stroke: #0b1210; stroke-width: 1.6; stroke-linejoin: round; }
@keyframes mvhop { 0%, 12% { left: 24%; } 42% { left: 43%; } 52% { left: 52%; } 80%, 100% { left: 68%; top: 46%; } }
.mv-clip .chip { padding: 6px 11px; border-radius: 9px; font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mv-clip .chip.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }
.mv-file { flex-direction: column; align-items: stretch; gap: 10px; }
.mv-file .fr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.mv-file .fi { width: 22px; height: 26px; border-radius: 4px; flex: none; background: linear-gradient(135deg, color-mix(in srgb, var(--brass) 55%, #fff), var(--brass)); }
.mv-file .fr div { flex: 1; min-width: 0; }
.mv-file em { font-style: normal; font-size: 12px; font-weight: 600; }
.mv-file u { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: var(--line); text-decoration: none; }
.mv-file s { display: block; height: 100%; border-radius: 2px; background: var(--accent-2); }
.mv-file .fr span { font-size: 12px; font-weight: 700; color: var(--accent); }
.mv-file .acc { align-self: flex-end; padding: 3px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 650; background: var(--accent); color: var(--on-accent); }
.mv-chat { flex-direction: column; align-items: stretch; gap: 7px; }
.mv-chat p { margin: 0; max-width: 78%; padding: 6px 11px; border-radius: 12px; font-size: 12px; line-height: 1.35; }
.mv-chat .l { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.mv-chat .r { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.mv-view { flex-direction: column; gap: 8px; }
.mv-view .mon { position: relative; width: 78px; height: 48px; border-radius: 7px; border: 2px solid var(--text); background: var(--surface); }
.mv-view .mon::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: var(--text); }
.mv-view .live { position: absolute; right: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: mvlive 1.6s ease-in-out infinite; }
@keyframes mvlive { 50% { opacity: 0.35; } }
.mv-view .badge2 { padding: 2px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 650; background: color-mix(in srgb, var(--brass) 18%, transparent); color: color-mix(in srgb, var(--brass) 75%, var(--text)); }
.mv-type kbd { display: inline-grid; place-items: center; width: 30px; height: 32px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--surface); font: 700 15px ui-monospace, Consolas, monospace; }
.mv-type b { font-size: 11px; color: var(--muted); }
.mv-phone { gap: 16px; }
.mv-phone .ph { position: relative; width: 36px; height: 64px; border-radius: 9px; border: 2px solid var(--text); background: var(--surface); }
.mv-phone .ph s { position: absolute; inset: 7px 5px; border-radius: 4px; background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--brass) 18%, var(--surface))); }
.mv-phone .lk { width: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent-2) 0 4px, transparent 4px 8px); }
.mv-phone .mn { width: 62px; height: 42px; border-radius: 6px; border: 2px solid var(--text); background: var(--surface); }
.mv-org .n { width: 30px; height: 30px; margin-right: -12px; border-radius: 50%; border: 3px solid var(--surface-2); background: var(--accent); }
.mv-org .n.b { background: var(--brass); }
.mv-org .n.c { background: var(--accent-2); }
.mv-org .role { margin-left: 20px; padding: 2px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 650; background: var(--surface); border: 1px solid var(--line); }
.mv-cli { flex-direction: column; align-items: stretch; gap: 5px; background: #0f1a16; border-color: #1f2f27; }
.mv-cli code { font: 12px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; color: #d6efe1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-cli code span { color: #5ee2a8; }
.mv-cli code.d { color: #8fb3a1; }
.card.wide .kbd.mv { align-self: stretch; }
.site[data-steps="line"] .steps { position: relative; gap: 28px; }
.site[data-steps="line"] .steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 17px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.site[data-steps="line"] .step { background: none; border: 0; box-shadow: none; padding: 0 6px; }
.site[data-steps="line"] .step .n { position: relative; box-shadow: 0 0 0 8px var(--bg); }
.site[data-steps="line"] .step h3 { margin-top: 20px; }
@container site (max-width: 700px) {
.site[data-steps="line"] .steps::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.mv-edge .cu, .mv-view .live { animation: none; }
}

.site[data-cards="stack"] .card .mv { display: flex; }
.site[data-cards="stack"] .features { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; gap: 26px; padding-bottom: 20px; }
.site[data-cards="stack"] .card, .site[data-cards="stack"] .card.wide {
  position: sticky; top: calc(92px + var(--si, 0) * 16px); display: grid; grid-template-columns: 1fr 1fr; grid-column: auto; column-gap: 28px; align-items: center; padding: 26px 28px;
  border-radius: calc(var(--r) * 1.3); background: var(--surface); box-shadow: 0 -10px 30px -18px rgba(8, 40, 28, 0.35), var(--shadow); min-height: 190px;
}
.site[data-cards="stack"] .card:nth-child(1) { --si: 0; }
.site[data-cards="stack"] .card:nth-child(2) { --si: 1; }
.site[data-cards="stack"] .card:nth-child(3) { --si: 2; }
.site[data-cards="stack"] .card:nth-child(4) { --si: 3; }
.site[data-cards="stack"] .card:nth-child(5) { --si: 4; }
.site[data-cards="stack"] .card:nth-child(6) { --si: 5; }
.site[data-cards="stack"] .card:nth-child(7) { --si: 6; }
.site[data-cards="stack"] .card:nth-child(8) { --si: 7; }
.site[data-cards="stack"] .card:nth-child(9) { --si: 8; }
.site[data-cards="stack"] .card:nth-child(10) { --si: 9; }
.site[data-cards="stack"] .card > .ico, .site[data-cards="stack"] .card > h3, .site[data-cards="stack"] .card > p, .site[data-cards="stack"] .card > .tag { grid-column: 1; justify-self: start; }
.site[data-cards="stack"] .card > .mv { grid-column: 2; grid-row: 1 / span 4; align-self: center; min-height: 140px; }
.site[data-cards="stack"] .card h3 { margin-top: 14px; font-size: 24px; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); }
.site[data-cards="stack"] .card:hover { transform: none; }
.site[data-cards="stack"] .card.wide { grid-template-columns: 1fr 1fr; }
.site[data-cards="stack"] .card.wide > div:first-child { display: contents; }
.site[data-cards="stack"] .card.wide .kbd { grid-column: 2; grid-row: 1 / span 4; justify-content: center; align-self: center; min-height: 140px; align-items: center; background: var(--surface-2); border-radius: calc(var(--r) * 0.75); border: 1px solid var(--line); }
@container site (max-width: 700px) {
.site[data-cards="stack"] .card, .site[data-cards="stack"] .card.wide { grid-template-columns: 1fr; position: static; padding: 22px; }
.site[data-cards="stack"] .card > .mv, .site[data-cards="stack"] .card.wide .kbd { grid-column: 1; grid-row: auto; order: -1; margin-bottom: 14px; }
}

/* Problem section: three cards side by side on wide screens */
#why .features { grid-template-columns: repeat(3, 1fr); max-width: 1040px; gap: 18px; padding-bottom: 0; }
@media (max-width: 820px) { #why .features { grid-template-columns: 1fr; max-width: 560px; } }
#why .features .card { display: block; }
#why .features .card h3 { margin-top: 14px; }

/* Release notes page */
.log { max-width: 820px; }
.log h1.h2 { margin-top: 8px; }
.log-entry { margin-top: 28px; padding: 26px 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.log-entry header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
.log-entry h2 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.log-entry time { color: var(--muted); font-size: 14px; }
.log-entry h3 { margin: 18px 0 6px; font-size: 16px; }
.log-entry p, .log-entry li { color: var(--muted); line-height: 1.55; }
.log-entry ul { margin: 6px 0 10px; padding-left: 20px; }
.log-entry code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.log-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.log-links a:not(.cta) { text-decoration: underline; text-underline-offset: 3px; }
.cta.sm { padding: 7px 14px; font-size: 14px; }
.nav .links a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
