/* mubash.dev — one stylesheet, one system.
   Spacing: 4 8 12 16 24 32 48 64 96 128. Type: 13 14 16 18 20 24 30 36 48 64. */

/* Self-hosted variable fonts (SIL OFL, licences in /fonts), latin and latin-ext subsets from Google Fonts. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/dm-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/dm-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --sunken: #eef1ea;
  --ink: #18201b;
  --ink-2: #4a554d;
  --ink-3: #6a746c;
  --line: #e0e5dc;
  --line-strong: #c9d1c4;
  --accent: #285840;
  --accent-hover: #1c4330;
  --on-accent: #f4f8f2;
  --lime: #e4f396;
  --lime-panel: #e9f4b4;
  --moe-panel: #f6ecd8;
  --moe-accent: #b0185a;
  --focus: #5b7d1f;
  --bezel: #1c211e;
  --shadow-sm: 0 1px 2px rgb(24 32 27 / .06), 0 1px 1px rgb(24 32 27 / .04);
  --shadow-lg: 0 2px 4px rgb(24 32 27 / .06), 0 24px 48px -16px rgb(24 32 27 / .28);

  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: 40px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111412;
  --surface: #181c19;
  --sunken: #1d221e;
  --ink: #e7ebe5;
  --ink-2: #b4bdb2;
  --ink-3: #8f998e;
  --line: #29302b;
  --line-strong: #3a433c;
  --accent: #a6d4ae;
  --accent-hover: #c3e6c8;
  --on-accent: #10231a;
  --lime-panel: #252d1b;
  --moe-panel: #2b241c;
  --moe-accent: #f07aa9;
  --focus: #c7e07a;
  --bezel: #3a433c;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -16px rgb(0 0 0 / .7);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #111412;
    --surface: #181c19;
    --sunken: #1d221e;
    --ink: #e7ebe5;
    --ink-2: #b4bdb2;
    --ink-3: #8f998e;
    --line: #29302b;
    --line-strong: #3a433c;
    --accent: #a6d4ae;
    --accent-hover: #c3e6c8;
    --on-accent: #10231a;
    --lime-panel: #252d1b;
    --moe-panel: #2b241c;
    --moe-accent: #f07aa9;
    --focus: #c7e07a;
  --bezel: #3a433c;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -16px rgb(0 0 0 / .7);
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--lime); color: #18201b; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: 16px; z-index: 10; padding: 12px 16px; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow-lg); transform: translateY(-200px); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 800 20px/1 var(--font-display); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.site-nav a { padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover { color: var(--ink); background: var(--sunken); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 8px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- shared ---------- */

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font: 500 13px/1.4 var(--font-mono); color: var(--ink-3); letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--line-strong); }
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.section-head p { color: var(--ink-2); font-size: 18px; max-width: 560px; }
.section-head > p { justify-self: end; }
.section-head .eyebrow { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.button {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 8px;
  background: var(--ink); color: var(--bg); font-weight: 500; font-size: 15px; line-height: 1.2; text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.button:hover { background: var(--accent); color: var(--on-accent); }
.button:active { transform: translateY(1px); }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button-quiet:hover { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.arrow { transition: transform .15s ease; }
a:hover > .arrow { transform: translate(2px, -2px); }
a:hover > .arrow-down { transform: translateY(2px); }
.link { font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link:hover { text-decoration: underline; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #d19a17; }
.pill .dot.free { background: #4f9a5f; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 96px; }
.hero h1 { max-width: 920px; font-size: 64px; line-height: 1.04; font-weight: 700; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-intro { max-width: 640px; margin-top: 32px; font-size: 20px; line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 72px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hero-facts div { padding: 24px 24px 0 0; }
.hero-facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-facts dt { font: 500 13px/1.4 var(--font-mono); color: var(--ink-3); margin-bottom: 8px; }
.hero-facts dd { margin: 0; font: 600 18px/1.4 var(--font-display); color: var(--ink); }

/* ---------- products ---------- */

.product + .product { margin-top: 96px; }
.product-media { margin: 0; }
.stage {
  position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; isolation: isolate;
  border-radius: 16px; padding: 5% 5% 0; text-decoration: none;
}
.stage-xp { background: var(--lime-panel); }
.stage-moe { background: var(--moe-panel); }
.stage .screen {
  width: 100%; border-radius: 10px 10px 0 0; box-shadow: var(--shadow-lg);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
a.stage:hover .screen { transform: translateY(-8px); }
.product-media figcaption { margin-top: 12px; font: 400 13px/1.5 var(--font-mono); color: var(--ink-3); }
.product-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px; margin-top: 40px; }
.product-body h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 36px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.product-body h3 small { font: 500 15px/1.4 var(--font-body); letter-spacing: 0; color: var(--ink-3); }
.product-body .pill-row { margin-bottom: 24px; }
.product-tagline { margin-top: 16px; font: 600 20px/1.45 var(--font-display); color: var(--ink); }
.product-detail > p { margin-top: 0; color: var(--ink-2); font-size: 17px; }
.checks { margin: 24px 0 32px; padding: 0; list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line-strong); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 4.5px; height: 7.5px; border: solid var(--accent); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.signup { display: flex; gap: 8px; max-width: 480px; }
.signup-input {
  flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: 400 15px/1.2 var(--font-body);
}
.signup-input::placeholder { color: var(--ink-3); }
.signup-input:focus-visible { outline-offset: 2px; border-color: var(--accent); }
.signup .button { flex: none; border: 0; font-family: inherit; cursor: pointer; }
.signup ~ .signup-note { max-width: 480px; margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.signup-note a:hover { color: var(--accent); }
.signup .button:disabled { opacity: .7; cursor: progress; }
.signup-status { max-width: 480px; font: 600 16px/1.5 var(--font-display); color: var(--accent); }
.signup-status:empty { display: none; }
.signup-status.is-error { margin-top: 12px; font: 500 14px/1.5 var(--font-body); color: #b3261e; }
:root[data-theme="dark"] .signup-status.is-error { color: #f2968f; }

/* ---------- experience ---------- */

.timeline { margin: 0; padding: 0; list-style: none; }
.role { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.role:first-child { border-top: 0; padding-top: 0; }
.role-when { font: 400 14px/1.6 var(--font-mono); color: var(--ink-3); }
.role-when b { display: block; margin-top: 4px; font: 500 14px/1.5 var(--font-body); color: var(--ink-2); }
.role h3 { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.role h3 span { font-weight: 500; color: var(--ink-3); }
.role-product { margin-top: 4px; font: 400 13px/1.5 var(--font-mono); color: var(--ink-3); }
.role-product + .role-summary { margin-top: 12px; }
.role-summary { margin-top: 8px; color: var(--ink-2); max-width: 680px; }
.role ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 680px; }
.role li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.role li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 1px; background: var(--ink-3); }
.role-compact { padding: 24px 0; }

.toolkit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.toolkit h3 { font: 500 13px/1.4 var(--font-mono); color: var(--ink-3); margin-bottom: 12px; }
.toolkit p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* ---------- about ---------- */

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.about h2 { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.about-body > p { font-size: 18px; color: var(--ink-2); max-width: 620px; }
.about-body > p + p { margin-top: 16px; }
.about-list { margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.about-list dt { font: 500 13px/1.4 var(--font-mono); color: var(--ink-3); margin-bottom: 8px; }
.about-list dd { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.about-list dd strong { color: var(--ink); font-weight: 600; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }

/* ---------- contact ---------- */

.contact {
  position: relative; overflow: hidden; margin: 0 0 64px; padding: 64px; border-radius: 20px;
  background: #1f4633; color: #eef5ec;
  display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px; align-items: end;
}
.contact::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgb(228 243 150 / .22), transparent 70%); pointer-events: none;
}
.contact h2 { color: #fff; font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.contact p { margin-top: 12px; color: rgb(238 245 236 / .78); font-size: 18px; max-width: 520px; }
.contact .button { position: relative; z-index: 1; background: var(--lime); color: #18201b; }
.contact .button:hover { background: #fff; color: #18201b; }
.contact-mail { display: block; margin-top: 24px; font: 400 14px/1.4 var(--font-mono); color: rgb(238 245 236 / .7); }
.contact p a:hover { color: #fff; }
.contact .signup { position: relative; z-index: 1; width: 440px; max-width: 100%; }
.contact .signup-input { border-color: rgb(238 245 236 / .32); background: rgb(255 255 255 / .08); color: #fff; }
.contact .signup-input::placeholder { color: rgb(238 245 236 / .6); }
.contact .signup-input:focus-visible { border-color: var(--lime); outline-color: var(--lime); }
.contact .signup-note { margin-top: 12px; font-size: 13px; color: rgb(238 245 236 / .7); }
.contact .signup-status { position: relative; z-index: 1; max-width: 440px; color: var(--lime); }
.contact .signup-status.is-error { color: #ffc2bd; }
.install-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact .button-quiet { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(238 245 236 / .4); }
.contact .button-quiet:hover { background: rgb(255 255 255 / .1); color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.install-link { font-size: 15px; font-weight: 500; color: rgb(238 245 236 / .85); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(238 245 236 / .4); }
.install-link:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- footer ---------- */

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- product page ---------- */

.crumbs { font: 400 13px/1.4 var(--font-mono); color: var(--ink-3); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero { padding: 56px 0 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.page-hero h1 { font-size: 80px; line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.page-hero .lede { margin-top: 24px; font: 600 26px/1.35 var(--font-display); letter-spacing: -.01em; }
.page-hero .pill-row { margin-top: 24px; }
.page-hero aside { color: var(--ink-2); font-size: 17px; }
.page-hero aside .hero-actions { margin-top: 24px; }
.release-note { margin-top: 16px; font: 400 13px/1.5 var(--font-mono); color: var(--ink-3); }
.showcase { margin: 0 0 96px; }
.showcase figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 12px; font: 400 13px/1.5 var(--font-mono); color: var(--ink-3); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; padding: 0 0 96px; }
.story figure { margin: 0; }
.story blockquote { margin: 0; }
.story blockquote p { font: 600 28px/1.4 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.story blockquote p::before { content: "\201C"; margin-left: -.45em; color: var(--accent); }
.story blockquote p::after { content: "\201D"; color: var(--accent); }
.story figcaption { margin-top: 24px; font: 400 13px/1.5 var(--font-mono); color: var(--ink-3); }
.split-intro { margin-top: 16px; max-width: 400px; color: var(--ink-2); font-size: 17px; }
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 24px 0; border-top: 1px solid var(--line); }
.feature-list li:first-child { padding-top: 0; border-top: 0; }
.feature-list h3 { font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.feature-list p { margin-top: 8px; color: var(--ink-2); }
.phones {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 48px 40px 56px; list-style: none;
  border-radius: 16px; background: var(--lime-panel);
}
.phones li { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phones img { width: 100%; max-width: 220px; border: 6px solid var(--bezel); border-radius: 13% / 6%; box-shadow: var(--shadow-lg); }
.phones span { font: 500 13px/1.4 var(--font-mono); color: var(--ink-2); }
.phones-caption { margin: 12px 0 96px; font: 400 13px/1.5 var(--font-mono); color: var(--ink-3); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cards li { padding: 32px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.cards h3 { font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.cards p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.footnote { margin-top: 24px; font: 400 13px/1.6 var(--font-mono); color: var(--ink-3); max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.split h2 { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.split .eyebrow { margin-bottom: 16px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--lime-panel); color: var(--ink); font: 700 16px/1 var(--font-display);
}
.steps h3 { font-size: 20px; line-height: 1.35; font-weight: 700; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.prose p { color: var(--ink-2); font-size: 17px; }
.prose p + p { margin-top: 16px; }
.prose .link { margin-top: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 600 17px/1.45 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sunken); color: var(--ink-2); font: 400 18px/1 var(--font-body); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }

/* ---------- privacy ---------- */

.legal { max-width: 680px; padding: 56px 0 96px; }
.legal h1 { font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.legal-lede { margin-top: 24px; font: 600 22px/1.45 var(--font-display); letter-spacing: -.01em; }
.legal h2 { margin-top: 48px; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.legal h2 + p { margin-top: 8px; }
.legal p { color: var(--ink-2); }
.legal .legal-lede { color: var(--ink); }
.legal-updated { margin-top: 48px; font: 400 13px/1.5 var(--font-mono); color: var(--ink-3); }

/* ---------- 404 ---------- */

.not-found { padding: 128px 0 160px; max-width: 640px; }
.not-found h1 { font-size: 64px; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.not-found p { margin-top: 24px; font-size: 18px; color: var(--ink-2); }
.subscribed-failed, .not-found:has(#failed:target) .subscribed-ok { display: none; }
.subscribed-failed:target { display: block; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero h1 { font-size: 56px; }
  .toolkit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero { grid-template-columns: 1fr; gap: 24px; }
}

.screen-pair { display: none; }

/* ---------- mobile ----------
   Below 760px the site is its own layout, not the desktop stacked:
   a sticky header, phone screenshots instead of desktop ones, full-width
   actions, a vertical timeline and swipeable screenshots. */

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 76px; }
  .section { padding: 56px 0; }

  /* header: compact and always in reach */
  .site-header {
    position: sticky; top: 0; z-index: 20; min-height: 60px; gap: 12px;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 1px 0 var(--line);
  }
  .brand { font-size: 18px; gap: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .site-nav { gap: 0; }
  .site-nav .hide-sm { display: none; }
  .site-nav a { padding: 8px 10px; }
  .theme-toggle { width: 36px; height: 36px; margin-left: 4px; }
  @media (hover: none) { .site-nav a:hover { background: none; } }

  /* shared */
  .eyebrow { margin-bottom: 16px; font-size: 12px; }
  .eyebrow::before { width: 16px; }
  .section-head, .about, .split, .story { grid-template-columns: 1fr; gap: 12px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2, .about h2, .split h2, .contact h2 { font-size: 30px; }
  .section-head p, .section-head > p { justify-self: start; font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .hero-actions .button, .product-actions .button, .contact .button { justify-content: center; }
  .button { padding: 15px 20px; font-size: 16px; }

  /* hero */
  .hero { padding: 36px 0 56px; }
  .hero .eyebrow::before { display: none; }
  .hero h1 { font-size: 42px; line-height: 1.05; letter-spacing: -.035em; }
  .hero-intro { font-size: 18px; line-height: 1.55; margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
  .hero-facts {
    grid-template-columns: 1fr; margin-top: 40px; padding: 4px 20px; border: 0; border-radius: 14px;
    background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  }
  .hero-facts div, .hero-facts div + div { padding: 14px 0; border-left: 0; }
  .hero-facts div + div { border-top: 1px solid var(--line); }
  .hero-facts dt { font-size: 12px; margin-bottom: 4px; }
  .hero-facts dd { font-size: 16px; }

  /* products: a phone on a coloured panel */
  .product + .product { margin-top: 64px; }
  .stage {
    display: flex; justify-content: center; align-items: flex-start; gap: 12px;
    aspect-ratio: 1 / 1; padding: 36px 0 0; border-radius: 16px;
  }
  .stage picture { display: contents; }
  .stage .screen {
    flex: none; width: 58%; border: 6px solid var(--bezel); border-bottom: 0; border-radius: 34px 34px 0 0;
  }
  a.stage:hover .screen { transform: none; }
  .product-media figcaption { margin-top: 10px; font-size: 12px; }
  .product-body { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .product-body .pill-row { margin-bottom: 16px; }
  .product-body h3 { font-size: 32px; }
  .product-tagline { margin: 8px 0 16px; font-size: 18px; }
  .product-detail > p { font-size: 16px; }
  .checks { margin: 20px 0 28px; }
  .product-actions .button { width: 100%; }
  .signup { flex-direction: column; max-width: none; }
  .signup-input { padding: 15px 16px; font-size: 16px; }
  .signup .button { justify-content: center; }
  .contact .signup { width: 100%; }
  .contact .signup-note, .contact .signup-status { text-align: center; }

  /* experience: a vertical timeline */
  .timeline { position: relative; padding-left: 28px; }
  .timeline::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 12px; width: 1px; background: var(--line-strong); }
  .role, .role-compact { position: relative; grid-template-columns: 1fr; gap: 6px; padding: 0 0 40px; border-top: 0; }
  .role:last-child { padding-bottom: 0; }
  .role::before {
    content: ""; position: absolute; left: -28px; top: 5px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink-3);
  }
  .role:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
  .role-when { font-size: 13px; }
  .role-when b { display: inline; margin: 0 0 0 8px; font-size: 13px; }
  .role h3 { font-size: 20px; line-height: 1.3; }
  .role h3 > span { display: block; margin-top: 2px; font-size: 17px; }
  .role h3 .sep { display: none; }
  .role-summary, .role li { font-size: 15px; }
  .toolkit { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; padding-top: 40px; }
  .toolkit h3 { margin-bottom: 6px; }

  /* about and contact */
  .about-body > p { font-size: 17px; }
  .about-list { grid-template-columns: 1fr; margin-top: 32px; }
  .social { margin-top: 32px; }
  .contact { grid-template-columns: 1fr; gap: 24px; padding: 36px 24px 28px; border-radius: 16px; margin-bottom: 40px; }
  .contact p { font-size: 17px; }
  .contact .button { width: 100%; }
  .install-actions { align-items: stretch; }
  .install-link { text-align: center; padding: 6px 0; }
  .contact-mail { margin-top: 16px; text-align: center; font-size: 13px; }
  .site-footer { padding: 24px 0 40px; }

  /* product page */
  .page-hero { padding: 28px 0 40px; gap: 20px; }
  .page-hero h1 { font-size: 56px; }
  .page-hero .lede { margin-top: 16px; font-size: 21px; text-wrap: balance; }
  .page-hero .pill-row { margin-top: 20px; }
  .page-hero aside { font-size: 16px; }
  .release-note { text-align: center; }
  .showcase { margin-bottom: 56px; }
  .showcase .stage { aspect-ratio: 1 / 1.02; }
  .showcase .stage .screen { width: 44%; border-width: 5px; border-radius: 26px 26px 0 0; }
  .showcase .screen-pair { display: block; margin-top: 40px; }
  .showcase figcaption { display: grid; gap: 4px; font-size: 12px; }
  .story { padding-bottom: 56px; }
  .story blockquote p { font-size: 22px; }
  .story blockquote p::before { margin-left: 0; }
  .split-intro { font-size: 16px; }
  .feature-list h3, .cards h3, .steps h3 { font-size: 18px; }
  .feature-list p { font-size: 15px; }
  .phones {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64%; gap: 20px;
    margin: 0 calc(var(--gutter) * -1); padding: 32px var(--gutter) 28px; border-radius: 0;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .phones::-webkit-scrollbar { display: none; }
  .phones li { scroll-snap-align: center; }
  .phones img { max-width: none; border-width: 5px; }
  .phones-caption { margin-bottom: 56px; font-size: 12px; }
  .phones-caption::before { content: "Swipe for more · "; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .cards li { padding: 24px 20px; }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; }
  .steps li::before { width: 36px; height: 36px; font-size: 15px; }
  .faq summary { padding: 18px 0; font-size: 16px; }
  .faq details p { padding-right: 0; font-size: 15px; }
  .legal { padding: 32px 0 64px; }
  .legal h1 { font-size: 44px; }
  .legal-lede { font-size: 19px; }
  .legal h2 { margin-top: 40px; font-size: 20px; }
  .not-found { padding: 64px 0 96px; }
  .not-found h1 { font-size: 44px; }
}

@media (max-width: 400px) {
  .site-nav a { padding: 8px; }
  .brand-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
