:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --tint: #f5f5f7;
  --accent: #3499ff;
  --accent-strong: #0a84ff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; flex: none; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: #f5f5f7; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.nav.is-scrolled { background: rgba(0, 0, 0, .72); border-color: rgba(255, 255, 255, .08); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.brand-mark { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: rgba(245, 245, 247, .72); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; transition: background .2s, transform .2s, color .2s; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #2a93ff; transform: translateY(-1px); }
.btn-ghost { color: #2997ff; padding-inline: 10px; }
.btn-ghost:hover { color: #62b0ff; }
.btn-small { padding: 7px 15px; font-size: 13px; }
.btn-large { padding: 15px 30px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 132px 0 96px; text-align: center; color: #f5f5f7; background: radial-gradient(1100px 620px at 50% 108%, #0d2f5c 0%, #04070f 55%, #000 75%) #000; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: .2px; margin-bottom: 14px; }
h1 { font-size: clamp(50px, 8.6vw, 116px); line-height: .98; letter-spacing: -.048em; font-weight: 700; }
h1 span { background: linear-gradient(92deg, #9fd0ff 0%, #3499ff 42%, #9d7bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin: 22px auto 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.45; letter-spacing: -.01em; color: #a1a1a6; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-top: 34px; }
.fineprint { margin-top: 18px; font-size: 13px; color: var(--faint); }

.hero-stage-wrap { margin-top: 66px; }
.laptop { max-width: 1080px; margin: 0 auto; padding: clamp(5px, .85vw, 11px) clamp(5px, .85vw, 11px) clamp(8px, 1.3vw, 16px); border-radius: clamp(14px, 2.1vw, 26px) clamp(14px, 2.1vw, 26px) clamp(5px, .7vw, 9px) clamp(5px, .7vw, 9px); background: #050506; box-shadow: 0 0 0 1.5px #3c3d41, 0 0 0 3px #1b1c1f, 0 50px 140px -40px rgba(52, 153, 255, .45); }
.laptop-base { position: relative; max-width: 1190px; height: clamp(9px, 1.35vw, 17px); margin: 0 auto; border-radius: 2px 2px 50% 50% / 2px 2px 100% 100%; background: linear-gradient(#77797e 0%, #3f4044 18%, #2a2b2f 60%, #151619 100%); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8); }
.laptop-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 14%; height: 42%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: linear-gradient(#141517, #2b2c30); }

.stage-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 34px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); }
.segmented button { border: 0; background: none; color: #a1a1a6; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .25s, color .25s; }
.segmented button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
.stage-actions { display: flex; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #f5f5f7; font-size: 14px; transition: background .2s; }
.chip:hover { background: rgba(255, 255, 255, .1); }
.chip .icon { width: 15px; height: 15px; color: #30d158; }
.stage-status { min-width: 200px; font-size: 14px; color: #a1a1a6; }
.stage-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.stage-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ---------- Simulated Mac screens ---------- */
.screen { position: relative; overflow: hidden; isolation: isolate; background: #000; container-type: inline-size; }
.screen--lock { aspect-ratio: 16 / 10; border-radius: clamp(8px, 1.3vw, 15px) clamp(8px, 1.3vw, 15px) clamp(3px, .45vw, 6px) clamp(3px, .45vw, 6px); }
.wallpaper { position: absolute; inset: -6%; z-index: 0; transition: filter .9s ease, transform .9s ease;
  background:
    radial-gradient(55% 65% at 16% 92%, #ff7b54 0%, transparent 62%),
    radial-gradient(50% 60% at 88% 82%, #8a5cff 0%, transparent 64%),
    radial-gradient(70% 70% at 52% 18%, #2476ff 0%, transparent 72%),
    linear-gradient(160deg, #0b1d3a, #1c1250 55%, #2c0f30); }
.screen--lock .wallpaper { filter: blur(20px) brightness(.78) saturate(1.1); transform: scale(1.05); }
.screen--lock.is-unlocked .wallpaper { filter: none; transform: none; }

.menubar { position: absolute; inset: 0 0 auto; z-index: 3; height: calc(32px * var(--s, .7)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(16px * var(--s, .7)); font-size: max(7px, calc(13px * var(--s, .7))); color: #fff; background: rgba(0, 0, 0, .1); text-shadow: 0 0 3px rgba(0, 0, 0, .25); white-space: nowrap; }
.menubar-left, .menubar-right { display: flex; align-items: center; }
.menubar-left { gap: calc(19px * var(--s, .7)); }
.menubar-right { gap: calc(15px * var(--s, .7)); }
.menubar-left b { font-weight: 700; }
.menubar-left i { font-style: normal; font-weight: 500; }
.menubar img { width: calc(16px * var(--s, .7)); height: calc(16px * var(--s, .7)); object-fit: contain; filter: invert(1) drop-shadow(0 0 1px rgba(0, 0, 0, .3)); }
.menubar .mb-apple { width: calc(15px * var(--s, .7)); height: calc(18px * var(--s, .7)); }
.mb-input { display: grid; place-items: center; min-width: calc(19px * var(--s, .7)); height: calc(16px * var(--s, .7)); border-radius: calc(4px * var(--s, .7)); background: #fff; color: #000; font-size: calc(11px * var(--s, .7)); font-weight: 700; text-shadow: none; }
.menubar time { font-weight: 500; }
.screen--lock .menubar-left { opacity: 0; transition: opacity .6s ease .2s; }
.screen--lock.is-unlocked .menubar-left { opacity: 1; }

.lockscreen { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; color: #fff; transition: opacity .6s ease, transform .6s ease; }
.is-unlocked .lockscreen { opacity: 0; transform: scale(1.04); }
.lock-date { margin-top: 31cqw; font-size: 1.9cqw; font-weight: 500; opacity: .85; }
.lock-clock { font-size: 11cqw; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: rgba(255, 255, 255, .92); }
.lock-user { position: absolute; bottom: 5cqw; display: flex; flex-direction: column; align-items: center; gap: .5cqw; font-size: 1.5cqw; }
.avatar { width: 5.4cqw; height: 5.4cqw; margin-bottom: .4cqw; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .2); backdrop-filter: blur(10px); }
.avatar svg { width: 55%; height: 55%; color: #fff; }
.lock-user small { font-size: 1.15cqw; opacity: .7; }
.lockscreen .lock-clock { order: 2; }
.lockscreen .lock-date { order: 1; }

.dock { position: absolute; z-index: 1; left: 50%; bottom: .55cqw; display: flex; align-items: center; gap: .26cqw; padding: .34cqw .42cqw; border-radius: 1.3cqw; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 34px rgba(0, 0, 0, .28); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); transform: translate(-50%, 0); transition: transform .7s cubic-bezier(.2, .8, .2, 1) .15s; }
.screen--lock .dock { transform: translate(-50%, 170%); }
.screen--lock.is-unlocked .dock { transform: translate(-50%, 0); }
.dock-item { position: relative; flex: none; width: 3.05cqw; height: 3.05cqw; }
.dock-item img { width: 100%; height: 100%; }
.dock-item.is-running::after { content: ""; position: absolute; left: 50%; bottom: -.3cqw; width: .2cqw; height: .2cqw; min-width: 2px; min-height: 2px; border-radius: 50%; background: rgba(255, 255, 255, .8); transform: translateX(-50%); }
.dock-divider { flex: none; align-self: stretch; width: 1px; margin: .25cqw .12cqw; background: rgba(255, 255, 255, .32); }

.screen--mini { aspect-ratio: 16 / 11; }
.screen--mini .wallpaper { background: radial-gradient(70% 90% at 18% 105%, #b7dbff 0%, transparent 62%), radial-gradient(60% 80% at 92% 95%, #e2d2ff 0%, transparent 60%), linear-gradient(180deg, #eef5ff, #d5e5fb); }
.screen--mini .menubar { color: #1d1d1f; background: rgba(255, 255, 255, .4); text-shadow: none; }
.screen--mini .menubar img { filter: none; }
.screen--mini .menubar-right img:nth-of-type(n+3), .screen--mini .mb-input, .screen--mini .menubar time { display: none; }

/* ---------- Notch overlay (geometry driven by app.js) ---------- */
.notch-wrap { position: absolute; top: 0; left: 50%; z-index: 6; transform: translateX(-50%); filter: drop-shadow(0 0 9px rgba(0, 0, 0, var(--shadow, 0))); }
.screen[data-style="pill"] .notch-wrap { transform: translate(-50%, calc(-100% - 20px)); transition: transform .25s ease-out; }
.screen[data-style="pill"] .notch-wrap.is-positioned { transform: translate(-50%, var(--gap, 3px)); }
.notch-panel { position: relative; overflow: hidden; background: #000; cursor: pointer; }
.notch-content { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; will-change: transform, opacity; }
.screen[data-style="minimal"] .notch-content { justify-content: space-between; }
.notch-lock { display: none; position: relative; flex: none; color: #fff; }
.screen[data-style="minimal"] .notch-lock { display: block; }
.notch-lock svg { position: absolute; top: 50%; left: 50%; width: var(--icon); height: var(--icon); transform: translate(-50%, -50%); transition: opacity .4s ease, transform .4s ease; }
.notch-lock .lock-open, .notch-lock.is-open .lock-closed { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.notch-lock.is-open .lock-open { opacity: 1; transform: translate(-50%, -50%); }
.notch-media { position: relative; flex: none; }
.notch-media img, .notch-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.notch-media .is-visible { opacity: 1; }
.notch-media.is-pulsing { animation: scan-pulse .9s ease-in-out .6s infinite; }
@keyframes scan-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 45%, 55% { transform: scale(.97); opacity: .65; } }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: #000; color: #f5f5f7; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
h2 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; }
.section--dark h2 span { color: #6e6e73; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.section-lede { max-width: 620px; margin-top: 20px; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 34px 30px 38px; border-radius: 28px; background: var(--tint); }
.step-num { display: block; margin-bottom: 64px; font-size: 14px; font-weight: 600; color: var(--accent-strong); }
.step p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--muted); }

.style-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.style-card { overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 60px -34px rgba(0, 0, 0, .3); }
.style-card figcaption { padding: 24px 26px 28px; }
.style-card p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 30px; border-radius: 26px; border: 1px solid #e8e8ed; background: #fff; }
.feature-icons { display: flex; gap: 10px; margin-bottom: 36px; }
.feature-icons img { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--tint); }
.feature p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Settings window preview ---------- */
.window { max-width: 980px; margin: 0 auto; overflow: hidden; border-radius: 18px; background: #fbfbfd; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 40px 90px -40px rgba(0, 0, 0, .4); }
.window-bar { position: relative; height: 46px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(0, 0, 0, .06); background: #f3f3f6; }
.lights { position: absolute; left: 18px; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.window-title { font-size: 13px; font-weight: 600; color: #4a4a4f; }
.window-body { display: grid; grid-template-columns: 230px 1fr; min-height: 560px; }
.window-sidebar { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; background: #efeff3; }
.sidebar-label { margin: 16px 10px 6px; font-size: 12px; font-weight: 600; color: #8e8e93; }
.sidebar-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 9px; background: none; font-size: 14px; text-align: left; transition: background .15s; }
.sidebar-item:hover { background: rgba(0, 0, 0, .05); }
.sidebar-item.is-active { background: rgba(0, 0, 0, .09); }
.sidebar-status { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .05); font-size: 13px; font-weight: 500; }
.sidebar-status .sym { width: 15px; height: 15px; }
.sidebar-credit { margin: 8px 8px 0; font-size: 11px; color: #aeaeb2; }
.tile { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: linear-gradient(#3aa0ff, #157ef0); }
.tile .sym { width: 15px; height: 15px; filter: invert(1); }
.tile--teal { background: linear-gradient(#5ad6cf, #24aaa2); }
.tile--gray { background: linear-gradient(#a5a5ae, #83838d); }
.tile--graphite { background: linear-gradient(#58595f, #303138); }
.tile--purple { background: linear-gradient(#bd7bea, #a354d5); }
.tile--pink { background: linear-gradient(#ee83b4, #d45d99); }
.tile--indigo { background: linear-gradient(#8483f2, #5856d6); }
.window-pane { max-height: 620px; overflow: auto; padding: 22px 28px 30px; }
.pane-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 19px; }
.hero-card { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; padding: 20px; border-radius: 14px; background: rgba(0, 0, 0, .035); border: 1px solid rgba(0, 0, 0, .06); }
.hero-card img { width: 60px; height: 60px; }
.hero-card b { font-size: 18px; }
.hero-card p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.group-title { margin: 20px 12px 8px; font-size: 13px; font-weight: 600; color: #8e8e93; }
.group { overflow: hidden; margin-top: 12px; border-radius: 12px; background: rgba(0, 0, 0, .035); border: 1px solid rgba(0, 0, 0, .06); }
.group-title + .group { margin-top: 0; }
.group > * + * { border-top: 1px solid rgba(0, 0, 0, .06); }
.row { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 16px; }
.row-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.row-text b { font-size: 14px; font-weight: 500; }
.row-text span { font-size: 12.5px; color: var(--muted); }
.badge { padding: 3px 9px; border-radius: 999px; background: rgba(48, 209, 88, .14); color: #1f9d55; font-size: 12px; font-weight: 600; }
.switch { flex: none; width: 38px; height: 22px; padding: 2px; border: 0; border-radius: 999px; background: #d1d1d6; transition: background .2s; }
.switch::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch[aria-checked="true"] { background: #34c759; }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 12px; padding: 14px 16px 16px; }
.option { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 10px; border: 1px solid rgba(0, 0, 0, .08); border-radius: 12px; background: rgba(255, 255, 255, .7); font-size: 13px; color: var(--muted); transition: box-shadow .2s, color .2s; }
.option .sym { width: 22px; height: 22px; opacity: .65; }
.option.is-selected { border-color: transparent; box-shadow: 0 0 0 3px var(--accent-strong); color: var(--ink); }
.option.is-selected .sym { opacity: 1; }
.slider { display: block; padding: 12px 16px 14px; }
.slider > span { display: flex; justify-content: space-between; gap: 12px; }
.slider b { font-size: 14px; font-weight: 500; }
.slider output { font-size: 13px; color: var(--muted); }
.slider input { width: 100%; margin: 12px 0 0; accent-color: var(--accent-strong); }
.fake-button { padding: 4px 12px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, .12); background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); font-size: 13px; }
.about { padding: 34px 0; text-align: center; }
.about img { width: 92px; height: 92px; margin: 0 auto 14px; }
.about b { display: block; font-size: 24px; }
.about span { font-size: 13px; color: var(--muted); }
.about p { margin-top: 10px; color: var(--muted); }
.about strong { display: block; margin-top: 16px; font-size: 14px; }
.preview-note { margin-top: 22px; text-align: center; font-size: 13px; color: var(--faint); }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.privacy-grid article { padding: 30px 26px; border-radius: 24px; background: #111114; border: 1px solid rgba(255, 255, 255, .08); }
.privacy-grid p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: #a1a1a6; }
.caveat { display: flex; align-items: flex-start; gap: 14px; margin-top: 22px; padding: 22px 24px; border-radius: 20px; background: rgba(255, 159, 10, .08); border: 1px solid rgba(255, 159, 10, .25); color: #f1d9b5; }
.caveat .icon { margin-top: 2px; color: #ff9f0a; }
.caveat p { font-size: 15px; line-height: 1.55; }
.caveat strong { color: #ffcc80; }

/* ---------- Setup, FAQ, download, footer ---------- */
.setup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.setup li { padding-top: 26px; border-top: 2px solid var(--ink); counter-increment: step; }
.setup li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--accent-strong); }
.setup p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 40px 22px 0; list-style: none; cursor: pointer; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; top: 50%; right: 6px; width: 10px; height: 10px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: translateY(-75%) rotate(45deg); transition: transform .25s; }
.faq-list details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-list p { padding: 0 40px 24px 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

.download { text-align: center; }
.download-icon { margin: 0 auto 26px; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .18)); }
.download .section-lede { margin: 18px auto 32px; }

.footer { border-top: 1px solid #e8e8ed; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 30px 0 40px; font-size: 13px; color: var(--muted); }
.footer-inner strong { color: var(--ink); font-weight: 600; }
.footer-legal { margin-left: auto; }

/* ---------- Enrollment (geometry from OnboardingMetrics.swift, scaled by --s) ---------- */
.enroll .section-head { margin-inline: auto; text-align: center; }
.enroll .section-lede { margin-inline: auto; }
.screen--enroll { aspect-ratio: 16 / 10; border-radius: clamp(8px, 1.3vw, 15px) clamp(8px, 1.3vw, 15px) clamp(3px, .45vw, 6px) clamp(3px, .45vw, 6px); }
.screen--enroll .wallpaper { background: radial-gradient(60% 70% at 18% 88%, #1d3b73 0%, transparent 62%), radial-gradient(55% 60% at 86% 18%, #3a2870 0%, transparent 62%), linear-gradient(160deg, #060a14, #0c1428 60%, #120a1f); }
.sweep { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
.enroll-wrap { position: absolute; top: 0; left: 50%; z-index: 6; transform: translateX(-50%); filter: drop-shadow(0 0 9px rgba(0, 0, 0, .3)); }
.enroll-panel { position: relative; overflow: hidden; background: #000; }
.enroll-content { position: absolute; top: 50%; left: 50%; width: calc(352px * var(--s, 1)); height: calc(344px * var(--s, 1)); will-change: transform, opacity; }
.enroll-cluster { position: absolute; top: calc(40px * var(--s, 1)); left: 50%; width: calc(240px * var(--s, 1)); height: calc(240px * var(--s, 1)); transform: translateX(-50%); }
.enroll-ring { position: absolute; inset: 0; }
.tick-arm { position: absolute; top: 50%; left: 50%; width: 0; height: 0; }
.tick { position: absolute; left: 0; bottom: calc(100px * var(--s, 1)); display: block; border-radius: 999px; background: #fff; }
.enroll-camera { position: absolute; top: 50%; left: 50%; width: calc(185px * var(--s, 1)); height: calc(185px * var(--s, 1)); overflow: hidden; border-radius: 50%; transform: translate(-50%, -50%); transition: opacity .4s ease-in-out; }
.enroll-camera svg { display: block; width: 100%; height: 100%; }
.is-camera-hidden .enroll-camera { opacity: 0; }
.enroll-complete-ring { position: absolute; top: 50%; left: 50%; width: calc(224px * var(--s, 1)); height: calc(224px * var(--s, 1)); border: calc(14px * var(--s, 1)) solid var(--accent); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .45s ease-in-out, transform .45s ease-in-out; }
.is-complete .enroll-complete-ring { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.enroll-check { position: absolute; top: 50%; left: 50%; width: calc(70px * var(--s, 1)); height: calc(59px * var(--s, 1)); overflow: visible; opacity: 0; transform: translate(-50%, calc(-50% + 2px * var(--s, 1))); }
.enroll-check path { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; }
.is-checked .enroll-check { opacity: 1; }
.is-checked .enroll-check path { stroke-dashoffset: 0; transition: stroke-dashoffset .28s cubic-bezier(.65, 0, .35, 1); }
.enroll-instruction { position: absolute; right: calc(20px * var(--s, 1)); bottom: calc(30px * var(--s, 1)); left: calc(20px * var(--s, 1)); color: #fff; font-size: calc(15px * var(--s, 1)); font-weight: 500; line-height: 1.25; text-align: center; opacity: 0; transition: opacity .35s ease-in-out; }
.is-guiding .enroll-instruction { opacity: 1; transition-duration: .3s; }
.is-guiding .enroll-instruction.is-swapping { opacity: 0; transition-duration: .12s; }
.enroll-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 34px; }
.enroll-steps { display: flex; gap: 10px; }
.enroll-steps span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: background .3s, transform .3s; }
.enroll-steps span.is-current { background: rgba(255, 255, 255, .65); transform: scale(1.3); }
.enroll-steps span.is-done { background: var(--accent); transform: none; }
.enroll .stage-note { text-align: center; }

/* Phones: keep the headline inside the viewport. */
body { overflow-x: clip; }
h1 { font-size: clamp(40px, 10.6vw, 116px); }
@media (max-width: 640px) {
  .screen--enroll { aspect-ratio: 4 / 3.7; }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal]:nth-child(2) { transition-delay: .08s; }
.js [data-reveal]:nth-child(3) { transition-delay: .16s; }
.js [data-reveal]:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .style-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .feature-grid, .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .steps, .setup { grid-template-columns: 1fr; }
  .step-num { margin-bottom: 28px; }
}
@media (max-width: 760px) {
  .window-body { grid-template-columns: 1fr; min-height: 0; }
  .window-sidebar { flex-direction: row; gap: 6px; overflow-x: auto; padding: 10px; }
  .sidebar-label, .sidebar-status, .sidebar-credit { display: none; }
  .sidebar-item { width: auto; white-space: nowrap; }
  .window-pane { padding: 18px 16px 22px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 108px 0 72px; }
  h1 { letter-spacing: -.04em; }
  .hero-stage-wrap { margin-top: 48px; }
  .screen--lock { aspect-ratio: 4 / 3.3; }
  .lock-date { margin-top: 44cqw; font-size: 3cqw; }
  .lock-clock { font-size: 15cqw; }
  .lock-user { font-size: 2.6cqw; }
  .lock-user small { font-size: 2cqw; }
  .avatar { width: 8cqw; height: 8cqw; }
  .feature-grid, .privacy-grid { grid-template-columns: 1fr; }
  .footer-legal { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .notch-media.is-pulsing { animation: none; }
  .wallpaper, .lockscreen, .dock, .notch-lock svg { transition: none; }
}
