@font-face { font-family: "Britti Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/BrittiSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Britti Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/BrittiSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Britti Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/BrittiSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Britti Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/BrittiSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Britti Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/BrittiSans-ExtraBold.woff2") format("woff2"); }
/* JetBrains Mono (SIL Open Font License), Latin subset, variable weight. Served from here so no page asks another site for anything. */
@font-face { font-family: "JetBrains Mono"; font-weight: 400 600; font-style: normal; font-display: swap; src: url("../assets/fonts/JetBrainsMono-Latin.woff2") format("woff2"); }

/* Ports site. Same paper-and-ink system as Fontdeck; the accent is the blue of the icon's dot. */
:root {
  --paper: #f8f9f7;
  --paper-2: #edefec;
  --card: #fdfefd;
  --ink: #111412;
  --ink-2: #454b47;
  --ink-3: #838a85;
  --line: rgba(17, 20, 18, 0.1);
  --accent: #2f6fe6;
  --grad: linear-gradient(95deg, #55b1ff 0%, #3b82f6 50%, #3563e0 100%);
  --green: #22a559;
  --amber: #e8a317;
  --red: #e5484d;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 60px -20px rgba(10,30,25,.28), 0 8px 20px -8px rgba(10,30,25,.18);
  --sans: "Britti Sans", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* The wallpapers behind every app demo: a cool paper for light mode, deep slate for dark. */
  --wall: radial-gradient(ellipse 60% 60% at 92% 104%, rgba(120,165,255,.5), transparent 70%), radial-gradient(ellipse 50% 50% at 2% -4%, rgba(205,196,255,.38), transparent 70%), linear-gradient(165deg, #f7f8fb 0%, #e9edf4 55%, #dce3ee 100%);
  --wall-dk: radial-gradient(ellipse 60% 60% at 92% 106%, rgba(59,130,246,.42), transparent 70%), radial-gradient(ellipse 50% 50% at 4% -6%, rgba(150,140,255,.2), transparent 70%), linear-gradient(170deg, #2a3040 0%, #181c27 45%, #0c0f16 100%);
  --spring-soft: linear(0,.0224,.0789,.1562,.2444,.3363,.427,.5128,.5919,.6629,.7255,.7798,.826,.8648,.897,.9232,.9443,.961,.9741,.9841,.9915,.997,1.0008,1.0034,1.005,1.0059,1.0063,1.0062,1.006,1.0055,1.005,1.0044,1.0038,1.0033,1.0028,1.0023,1);
  --spring-q: linear(0,.0483,.1628,.3075,.4576,.5977,.7192,.8184,.8952,.9515,.9902,1.0146,1.0283,1.0341,1.0346,1.0318,1.0273,1.0221,1.0169,1.0123,1.0083,1.0052,1.0028,1.0011,1,.9993,.9989,.9988,1);
  --out-soft: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

/* ---------- Header: wide glass pill, links centred (same as Fontdeck) ---------- */
.header { position: fixed; inset: 20px 0 auto; z-index: 50; pointer-events: none; display: flex; justify-content: center; padding-inline: 14px;
  --spring: linear(0,.0345,.1218,.2409,.3747,.5101,.638,.7521,.849,.9275,.9877,1.0312,1.06,1.0764,1.0831,1.0824,1.0765,1.0674,1.0565,1.0451,1.0341,1.0241,1.0155,1.0083,1.0027,.9986,.9958,.994,.9932,.993,.9934,.9941,.9949,.9959,.9968,.9977,.9985,.9991,.9996,1,1);
  --spring-q: linear(0,.0483,.1628,.3075,.4576,.5977,.7192,.8184,.8952,.9515,.9902,1.0146,1.0283,1.0341,1.0346,1.0318,1.0273,1.0221,1.0169,1.0123,1.0083,1.0052,1.0028,1.0011,1,.9993,.9989,.9988,1); }
.header .bar {
  pointer-events: auto; width: 100%; max-width: 1060px; height: 60px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 8px 0 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.42));
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255,255,255,.85), inset 0 0 0 1px rgba(255,255,255,.35), 0 1px 2px rgba(20,40,70,.06), 0 12px 32px -14px rgba(20,40,70,.3);
  transition: max-width .8s var(--spring), background .4s ease, box-shadow .4s ease;
}
.header .bar[data-scrolled="true"] { max-width: 820px; background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.68)); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 22px; text-decoration: none; letter-spacing: -.04em; justify-self: start; }
.brand img { width: 32px; height: 32px; border-radius: 9px; transition: transform .5s var(--spring-q); filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.25)); }
.brand:hover img { transform: rotate(-6deg) scale(1.08); }
.nav { display: flex; gap: 2px; position: relative; }
.nav-pill { position: absolute; top: 0; left: 0; height: 100%; width: var(--pw, 0px); translate: var(--px, 0px) 0; opacity: 0; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.28)); border-radius: 999px;
  box-shadow: inset 0 1px rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.25);
  transition: translate .5s var(--spring-q), width .5s var(--spring-q), opacity .2s ease; }
.nav:hover .nav-pill { opacity: 1; }
.nav a { position: relative; z-index: 1; display: flex; align-items: center; height: 44px; text-decoration: none; font-size: 15px; font-weight: 500; color: rgba(17,20,18,.72); padding: 0 16px; border-radius: 999px; transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.hdr-right { display: flex; align-items: center; gap: 6px; justify-self: end; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 0; border-radius: 999px; height: 52px; padding: 0 26px 0 22px; font-weight: 600; font-size: 17px; letter-spacing: -.01em;
  background: #111; color: #fff; transition: transform .35s var(--spring-q), box-shadow .3s ease, background .3s ease;
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 1px 2px rgba(0,0,0,.2), 0 8px 24px -8px rgba(0,0,0,.45);
}
.btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: inset 0 1px rgba(255,255,255,.18), 0 1px 2px rgba(0,0,0,.2), 0 14px 30px -10px rgba(0,0,0,.5); }
.btn:active { transform: scale(.97); }
/* No drop shadow here: the bar already floats. Depth comes from a soft top-to-bottom gradient. */
.header .btn.sm { height: 44px; padding: 0 20px 0 16px; font-size: 15px; gap: 8px; background: linear-gradient(#2c2d30, #0f0f10); box-shadow: inset 0 1px rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.06); }
.header .btn.sm:hover { transform: scale(1.03); background: linear-gradient(#36373b, #151516); box-shadow: inset 0 1px rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.06); }
.swap { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.swap svg { width: 100%; height: 100%; }
.header .swap { width: 16px; height: 16px; }
.swap > * { grid-area: 1/1; transition: opacity .25s ease, filter .25s ease, scale .4s var(--spring-q); }
.swap > :first-child { translate: 0 -1px; }
.swap > :last-child, a:hover .swap > :first-child { opacity: 0; filter: blur(4px); scale: .6; }
a:hover .swap > :last-child { opacity: 1; filter: blur(0); scale: 1; }
.btn.ghost { padding: 0 24px; color: var(--ink); background: linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,.45));
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px rgba(255,255,255,.9), inset 0 -1px rgba(0,0,0,.04), 0 1px 2px rgba(30,60,90,.08), 0 10px 28px -12px rgba(30,60,90,.35); }
.btn.ghost:hover { background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.6)); box-shadow: inset 0 1px rgba(255,255,255,.9), inset 0 -1px rgba(0,0,0,.04), 0 1px 2px rgba(30,60,90,.08), 0 10px 28px -12px rgba(30,60,90,.35); }
.mode { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: rgba(17,20,18,.75); display: grid; place-items: center; transition: background .2s, color .2s, transform .3s var(--spring-q); }
.mode:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.mode:active { transform: scale(.9); }
.mode svg { grid-area: 1/1; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s ease, rotate .6s var(--spring-q), scale .5s var(--spring-q), filter .3s ease; }
.mode .moon, .mode[aria-pressed="true"] .sun { opacity: 0; rotate: -60deg; scale: .5; filter: blur(3px); }
.mode[aria-pressed="true"] .moon { opacity: 1; rotate: 0deg; scale: 1; filter: none; }
.menu-btn { display: none; justify-self: end; background: none; border: 0; padding: 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 0; }
.hero-panel {
  margin: 0; position: relative; overflow: hidden; text-align: center; padding: 184px 0 0; isolation: isolate;
  background: linear-gradient(180deg, #bfdbfe, #dbeafe);
}
/* The white light (top left) and the lavender glow (bottom right) are their own layers so they can
   drift. Each path ends where it starts, so with motion reduced they simply rest in place. */
.hero-panel::before, .hero-panel::after { content: ""; position: absolute; z-index: -1; pointer-events: none; will-change: transform; }
.hero-panel::before { left: -31%; top: -16%; width: 90%; height: 80%;
  background: radial-gradient(closest-side, rgba(255,255,255,.85), transparent 70%);
  animation: light-drift 22s ease-in-out infinite; }
.hero-panel::after { left: 32%; top: 45%; width: 120%; height: 110%;
  background: radial-gradient(closest-side, #ddd6fe, transparent 70%);
  animation: glow-drift 20s ease-in-out infinite; }
@keyframes light-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(16%, 7%) scale(1.12); }
  60% { transform: translate(7%, 16%) scale(.94); }
  80% { transform: translate(-5%, 5%) scale(1.05); }
}
@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  25% { transform: translate(-24%, -12%) scale(1.18); opacity: .8; }
  50% { transform: translate(-10%, -26%) scale(.86); opacity: 1; }
  75% { transform: translate(8%, -10%) scale(1.1); opacity: .9; }
}
/* The outline wordmark sits behind the Mac and the hero copy. It draws itself in, then a short
   blue stroke keeps travelling round the letters. */
.stage-wrap { position: relative; max-width: 1068px; margin: 64px auto 0; }
.hero-panel > .wrap > :not(.stage-wrap) { position: relative; z-index: 2; }
/* Sized from the viewport so it shrinks with the screen; the offset follows the same measure. */
.wordmark { --wm: min(1900px, 116vw); position: absolute; top: calc(var(--wm) * -.18); left: 50%; translate: -50%; width: var(--wm); max-width: none; overflow: visible; pointer-events: none; z-index: 0; }
.wordmark text { font: 800 470px var(--sans); font-kerning: none; fill: none; }
.wm-base { stroke: rgba(255,255,255,.8); stroke-width: 1.3px; vector-effect: non-scaling-stroke; stroke-dasharray: 3200; stroke-dashoffset: 3200; animation: wm-draw 3.2s var(--out-soft) .35s forwards; }
.wm-run { stroke: url(#wm-g); stroke-width: 1.8px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 150 1450; opacity: 0; animation: wm-run 9s linear 2.4s infinite, wm-on 1.2s ease 2.4s forwards; }
@keyframes wm-draw { to { stroke-dashoffset: 0; } }
@keyframes wm-run { to { stroke-dashoffset: -1600; } }
@keyframes wm-on { to { opacity: .9; } }
.hero-panel > .wrap { position: relative; z-index: 1; }
.pill-note { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 99px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.8); font-size: 13.5px; color: var(--ink-2); margin-bottom: 26px; backdrop-filter: blur(8px); }
/* The version pill is a link to the change log: it lifts like a button and its arrow slides in. */
a.pill-note { text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(20,40,80,.06);
  transition: translate .35s var(--spring-q), scale .35s var(--spring-q), background .25s ease, box-shadow .3s ease, color .25s ease, padding .35s var(--spring-q); }
a.pill-note:hover { translate: 0 -1px; scale: 1.03; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 1px 2px rgba(20,40,80,.1), 0 10px 22px -10px rgba(20,40,80,.4); padding-right: 10px; }
a.pill-note:active { scale: .97; }
a.pill-note:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pill-note svg { width: 0; height: 14px; margin-left: -8px; opacity: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: width .35s var(--spring-q), margin .35s var(--spring-q), opacity .25s ease; }
a.pill-note:hover svg { width: 14px; margin-left: -3px; opacity: 1; }
.pill-note b { background: #111; color: #fff; border-radius: 99px; padding: 3px 10px; font-weight: 600; font-size: 12.5px; }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); max-width: 620px; margin: 0 auto 30px; text-wrap: pretty; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.meta { margin-top: 18px; font-size: 13.5px; color: var(--ink-2); opacity: .75; }
.eyebrow { font: 600 12.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.015em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 8.2vw, 94px); margin: 0 0 22px; letter-spacing: -.02em; }
h1 em, h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-line { display: block; }
.hero-line > * { display: inline-block; animation: hero-word 1s var(--spring-soft) both; animation-delay: var(--d, 0s); }
.hero-fade { animation: hero-fade 1s var(--out-soft) backwards; animation-delay: var(--d, 0s); }
@keyframes hero-word { from { opacity: 0; filter: blur(10px); transform: translateY(18px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes hero-fade { from { opacity: 0; filter: blur(6px); } }
@keyframes mac-in { from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }

/* ---------- The Mac the hero demo plays on: a dark bezel around the screen ---------- */
.mac {
  position: relative; z-index: 1; height: 680px; padding: 14px 14px 0; border-radius: 38px 38px 0 0; background: #0c0c0d;
  box-shadow: inset 0 0 0 1.5px #2a2a2c, inset 0 0 0 3px #0c0c0d, 0 40px 80px -30px rgba(10,40,70,.55), 0 2px 4px rgba(10,40,70,.2);
  animation: mac-in 1.3s var(--spring-soft) both; animation-delay: .35s;
}
.desk {
  position: relative; height: 100%; border-radius: 25px 25px 0 0; overflow: hidden; text-align: left; isolation: isolate;
  clip-path: inset(-1px 0 0 round 25px 25px 0 0);
  font: 13px/1.35 var(--ui); user-select: none; color: #1d1d1f; background: var(--wall);
}
/* Dark mode fades in over the light wallpaper. */
.desk::before { content: ""; position: absolute; inset: 0; background: var(--wall-dk); opacity: 0; transition: opacity .9s ease; }
.desk.dk::before { opacity: 1; }
.desk.dk { color: #fff; }
.mbar { position: absolute; inset: 0 0 auto; height: 32px; border-radius: 25px 25px 0 0; display: flex; align-items: center; gap: 18px; padding: 0 18px; font-size: 13px; font-weight: 500; color: rgba(0,0,0,.84); background: rgba(255,255,255,.3); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 3; white-space: nowrap; transition: color .9s ease, background .9s ease; }
.desk.dk .mbar { color: rgba(255,255,255,.92); background: rgba(20,24,34,.3); }
.mbar .st { height: 12px; width: auto; fill: currentColor; }
.mbar .r { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.mbar b { font-weight: 700; }

.mbar .apple { width: 14px; height: 16px; fill: currentColor; translate: 0 -1px; }
.mb-ports { display: flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; transition: background .2s; }
.mb-ports.on { background: rgba(0,0,0,.12); }
.desk.dk .mb-ports.on { background: rgba(255,255,255,.22); }
.mb-ports svg { width: 16px; height: 16px; }
.mb-ports .cnt { display: inline-block; min-width: 8px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.mb-ports .cnt.bump { transform: scale(1.45); }

/* Terminal window */
.tw { position: absolute; left: 34px; top: 78px; z-index: 1; width: 520px; border-radius: 14px; overflow: hidden; background: rgba(22,24,28,.93); box-shadow: 0 0 0 .5px rgba(255,255,255,.14) inset, 0 24px 50px -12px rgba(0,0,0,.55); }
.tw-bar { height: 34px; display: flex; align-items: center; padding: 0 12px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.55); font-size: 12px; }
.tw-bar span { margin: 0 auto; transform: translateX(-26px); }
.lights { 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; }
.tw-body { padding: 14px 16px 18px; height: 300px; font: 12.5px/1.75 var(--mono); color: #d8dcd6; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.tw-body div { white-space: pre-wrap; word-break: break-word; }
.t-pr { color: #6ee7a0; } .t-dim { color: #7d857f; } .t-err { color: #ff7b72; } .t-ok { color: #6ee7a0; } .t-url { color: #7cc4ff; }
.caret::after { content: ""; display: inline-block; width: 7px; height: 1.05em; background: currentColor; vertical-align: -3px; margin-left: 1px; opacity: .8; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- The Ports panel, as the app draws it (dark glass) ---------- */
.pp {
  --p-text: #f3f4f3; --p-mute: rgba(235,238,236,.56); --p-faint: rgba(235,238,236,.34); --p-line: rgba(255,255,255,.1); --p-fill: rgba(255,255,255,.07);
  width: 400px; border-radius: 20px; color: var(--p-text); font: 13px/1.3 var(--ui); text-align: left; user-select: none; overflow: hidden;
  background: var(--glass, rgba(44,48,54,.74)); backdrop-filter: blur(34px) saturate(1.7); -webkit-backdrop-filter: blur(34px) saturate(1.7);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.28), inset 0 1px rgba(255,255,255,.2), 0 28px 60px -14px rgba(0,0,0,.6), 0 6px 18px -6px rgba(0,0,0,.4);
}
.desk .pp, .stage .pp, .sw-list { --glass: rgba(40,43,48,.82); }
.desk .pp { position: absolute; right: 26px; top: 40px; z-index: 2; transform-origin: 86% 0; transition: opacity .22s ease, transform .32s cubic-bezier(.3,1.25,.5,1), background-color .5s ease, box-shadow .5s ease; }
.desk .pp.shut { opacity: 0; transform: scale(.94) translateY(-10px); pointer-events: none; }
.pp.solid { background: #2a2d32; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.2), 0 30px 60px -18px rgba(10,30,25,.5), 0 8px 20px -8px rgba(10,30,25,.3); }
.pp-h { display: flex; align-items: center; gap: 11px; padding: 12px 12px 10px 14px; }
.pp-h img { width: 30px; height: 30px; }
.pp-h b { display: block; font-size: 13.5px; font-weight: 600; }
.pp-h small { display: block; font-size: 11.5px; color: var(--p-mute); font-variant-numeric: tabular-nums; }
.pp-h .tools { margin-left: auto; display: flex; gap: 2px; }
.pp-h .tools i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--p-mute); transition: background .2s, color .2s; }
.pp-h .tools i.hot { background: var(--p-fill); color: var(--p-text); }
.pp svg.ln { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pp-q { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.pp-q.on { grid-template-rows: 1fr; }
.pp-q > div { overflow: hidden; }
.pp-q .fld { margin: 0 14px 10px; height: 30px; border-radius: 9px; background: var(--p-fill); box-shadow: inset 0 0 0 1px rgba(90,150,255,.6); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12.5px; }
.pp-q .fld svg { color: var(--p-mute); flex: none; }
.pp-q .ph { color: var(--p-faint); }
.pp-q .caret::after { width: 1.5px; height: 1.1em; background: #6ea8ff; vertical-align: -2px; }
.pp-b { border-top: .5px solid var(--p-line); border-bottom: .5px solid var(--p-line); padding: 4px 6px 8px; }
.pp-f { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px 11px 14px; font-size: 11.5px; color: var(--p-mute); font-variant-numeric: tabular-nums; }
.pp-f span.q { padding: 3px 11px; border-radius: 99px; background: var(--p-fill); color: var(--p-text); font-weight: 600; }

/* Only the glass itself eases between modes. Easing text colour on every nested element makes each
   level restart as its parent changes, so the text switches at once. */
.pp { transition: background-color .5s ease, box-shadow .5s ease; }
.pp.light {
  --p-text: #1d1d1f; --p-mute: rgba(60,60,67,.62); --p-faint: rgba(60,60,67,.36); --p-line: rgba(0,0,0,.09); --p-fill: rgba(0,0,0,.055);
  --glass: rgba(246,246,247,.82);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.7), inset 0 1px rgba(255,255,255,.8), 0 0 0 .5px rgba(0,0,0,.14), 0 28px 60px -14px rgba(20,40,70,.4), 0 6px 18px -6px rgba(20,40,70,.22);
}
.pp.light .tile { background: color-mix(in srgb, var(--t, #8a8f94) 17%, #fff); color: color-mix(in srgb, var(--t, #8a8f94) 88%, #000); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.06); }
.pp.light .tile.ghost { background: none; box-shadow: none; border-color: rgba(0,0,0,.22); }
.pp.light .act { background: rgba(0,0,0,.08); } .pp.light .act.press { background: rgba(0,0,0,.22); } .pp.light .act.stop.press { background: #e5484d; color: #fff; }
.pp.light .play.press { background: rgba(0,0,0,.14); color: #000; }
.pp.light .row .l2.warn { color: #b26a00; }
.pp.light .row .rt .globe { stroke: #e08a2c; }
.pp.light .det .box, .pp.light .det .chip { background: rgba(0,0,0,.05); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); }
.pp.light .det .chain span.on { color: #000; }
.pp.light .det .dir { color: #1668e3; }
.pp.light .det .btns span { background: rgba(0,0,0,.07); } .pp.light .det .btns span.press { background: rgba(0,0,0,.2); }
.pp.light .row.flash { animation-name: flash-l; }
@keyframes flash-l { 0% { background: rgba(59,130,246,.26); } 100% { background: transparent; } }
.pp.light .pp-q .ph { color: var(--p-faint); }

/* Anything that appears or leaves the list collapses its height */
.fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .34s cubic-bezier(.3,.9,.3,1), opacity .26s ease; }
.fold > .in { overflow: hidden; min-height: 0; }
.fold.gone { grid-template-rows: 0fr; opacity: 0; }

.pg-h { display: flex; align-items: baseline; gap: 8px; padding: 12px 8px 4px; font-size: 12px; white-space: nowrap; }
.pg-h b { font-weight: 600; }
.pg-h.mute b { color: var(--p-mute); }
.pg-h .br { color: var(--p-mute); display: inline-flex; align-items: center; gap: 4px; }
.pg-h .br svg { width: 11px; height: 11px; }
.pg-h .path { margin-left: auto; color: var(--p-faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }

.row { border-radius: 11px; transition: background .2s; position: relative; }
.row.hov, .row.open { background: var(--p-fill); }
.row.flash { animation: flash 1.1s ease; }
@keyframes flash { 0% { background: rgba(90,150,255,.38); } 100% { background: transparent; } }
.row-s { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; column-gap: 11px; padding: 7px 8px; min-height: 46px; }
.tile { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--t, #8a8f94) 24%, transparent); color: color-mix(in srgb, var(--t, #8a8f94) 70%, #fff); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1); font: 700 12px var(--ui); }
.tile svg { width: 16px; height: 16px; fill: currentColor; }
.tile.ghost { background: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: var(--p-faint); border-radius: 9px; outline-offset: -1px; }
.tile.ghost { box-shadow: none; border: 1px dashed rgba(255,255,255,.28); }
.row .l1 { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; overflow: hidden; }
.row .port { font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.row .nm { font-size: 13.5px; }
.row .sub { color: var(--p-mute); font-size: 13px; }
.row .l2 { font-size: 11.5px; color: var(--p-mute); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .l2.warn { color: #f5b942; }
.row .rt { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--p-mute); font-variant-numeric: tabular-nums; }
.row .rt .globe { width: 13px; height: 13px; stroke: #f0a04b; fill: none; stroke-width: 1.6; }
.row .acts { display: none; gap: 4px; }
.row.hov .acts { display: flex; }
.row.hov .up, .row.hov .globe { display: none; }
.act { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: var(--p-text); transition: transform .15s, background .15s; }
.act svg { width: 11px; height: 11px; }
.act.press { transform: scale(.82); background: rgba(255,255,255,.3); }
.act.stop.press { background: #e5484d; }
.row.idle .port, .row.idle .nm { color: var(--p-mute); }
.row .play { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--p-mute); transition: transform .15s, background .15s; }
.row .play.press { transform: scale(.82); background: rgba(255,255,255,.25); color: #fff; }

.det { padding: 2px 10px 12px 49px; display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; font-size: 11.5px; align-items: baseline; }
.det dt { color: var(--p-mute); text-align: right; white-space: nowrap; }
.det dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.det code { font: 11.5px/1.45 var(--mono); }
.det .box { display: block; background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1); border-radius: 7px; padding: 6px 9px; }
.det .chip { display: inline-block; background: rgba(0,0,0,.2); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1); border-radius: 6px; padding: 2px 7px; margin-right: 5px; font: 11.5px var(--mono); }
.det .chain span { color: var(--p-mute); transition: color .3s; } .det .chain span.on { color: #fff; font-weight: 600; }
.det .chain i { font-style: normal; color: var(--p-faint); margin: 0 5px; }
.det .dir { color: #62a8ff; }
.det .btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.det .btns span { padding: 4px 11px; border-radius: 99px; background: rgba(255,255,255,.1); font-weight: 600; font-size: 11.5px; transition: background .2s, transform .15s; }
.det .btns span.press { background: rgba(255,255,255,.3); transform: scale(.95); }

/* In the hero: the notification under the menu bar, the shortcut's key caps, and the step caption */
.desk .note { top: 44px; right: 14px; }
.hk { position: absolute; left: 34px; top: 446px; z-index: 2; display: flex; align-items: center; gap: 7px; opacity: 0; translate: 0 10px; transition: opacity .3s ease, translate .5s var(--spring-q); }
.hk.show { opacity: 1; translate: 0; }
.hk kbd { min-width: 46px; height: 46px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; font: 600 18px var(--ui); color: #1d1d1f;
  background: linear-gradient(#fff, #f1f2f5); box-shadow: 0 0 0 .5px rgba(0,0,0,.14), 0 2px 0 rgba(0,0,0,.16), 0 8px 18px -8px rgba(20,40,70,.4); transition: transform .12s, box-shadow .12s, background .12s; }
.hk kbd.dn { transform: translateY(2px); background: #e3edff; box-shadow: 0 0 0 .5px rgba(47,111,230,.5), 0 0 0 rgba(0,0,0,0), 0 4px 10px -6px rgba(20,40,70,.4); }
.hk span { margin-left: 8px; font-size: 13px; font-weight: 500; color: rgba(0,0,0,.6); }
.desk.dk .hk kbd { color: #f3f4f3; background: linear-gradient(#4a4d55, #34363c); box-shadow: 0 0 0 .5px rgba(255,255,255,.18), 0 2px 0 rgba(0,0,0,.5), 0 8px 18px -8px rgba(0,0,0,.6); }
.desk.dk .hk kbd.dn { background: #2f6fe6; }
.desk.dk .hk span { color: rgba(255,255,255,.7); }
.steps { position: absolute; left: 34px; bottom: 26px; z-index: 2; margin: 0; padding: 5px; list-style: none; display: flex; gap: 2px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: rgba(255,255,255,.55); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: inset 0 1px rgba(255,255,255,.8), 0 0 0 .5px rgba(0,0,0,.08), 0 8px 22px -10px rgba(20,40,70,.35); }
.steps li { padding: 5px 12px; border-radius: 999px; color: rgba(0,0,0,.42); white-space: nowrap; transition: background .35s ease, color .35s ease; }
.steps li.done { color: rgba(0,0,0,.7); }
.steps li.on { background: #111; color: #fff; }
.desk.dk .steps { background: rgba(40,44,54,.6); box-shadow: inset 0 1px rgba(255,255,255,.14), 0 0 0 .5px rgba(255,255,255,.12), 0 8px 22px -10px rgba(0,0,0,.6); }
.desk.dk .steps li { color: rgba(255,255,255,.45); } .desk.dk .steps li.done { color: rgba(255,255,255,.75); } .desk.dk .steps li.on { background: #fff; color: #111; }

/* The demo pointer */
.cur { position: absolute; left: 0; top: 0; z-index: 9; width: 18px; height: 22px; pointer-events: none; translate: var(--x, 300px) var(--y, 500px); transition: translate .75s cubic-bezier(.45,.05,.2,1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); opacity: 0; }
.cur.on { opacity: 1; }

/* ---------- Strip ---------- */
.strip { padding: 44px 0 20px; text-align: center; }
.strip p { margin: 0 0 14px; font-size: 13px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.chip svg { width: 15px; height: 15px; fill: var(--ink-2); }
/* The kinds slide past in one row and fade out at both edges of the content column. */
.chips.marquee { display: block; overflow: hidden; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; width: max-content; animation: kinds-slide 48s linear infinite; }
.marquee .track + .track { margin-top: 8px; animation-direction: reverse; }
.marquee .set { display: flex; gap: 8px; padding-right: 8px; flex: none; }
.marquee .chip { white-space: nowrap; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes kinds-slide { to { transform: translateX(-50%); } }
.chip.more { color: var(--ink-3); border-style: dashed; background: transparent; padding-left: 14px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
h2 { font-size: clamp(34px, 5vw, 58px); margin-top: 12px; }
.sec-head p { color: var(--ink-2); font-size: 18px; margin: 16px 0 0; text-wrap: pretty; }
.feature { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature.flip { grid-template-columns: 6fr 5fr; }
.feature.flip .copy { order: 2; }
.feature h3 { font-size: clamp(28px, 3.4vw, 42px); margin: 10px 0 14px; }
.feature p { color: var(--ink-2); margin: 0 0 14px; font-size: 17px; text-wrap: pretty; }
.feature ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.feature li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.stage { position: relative; display: grid; justify-items: center; align-content: center; min-height: 430px; padding: 34px 20px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(165deg, #e4ecfa 0%, #cfdcf5 55%, #b8caee 100%); }
.stage::before { content: ""; position: absolute; inset: 0; background: var(--wall-dk); opacity: 0; transition: opacity .7s ease; }
.stage.dk::before { opacity: 1; }
.stage > * { position: relative; }
.stage .pp { width: min(400px, 100%); }
.stage.tall { min-height: 520px; align-content: start; }
.stage.note-stage { align-content: start; padding-top: 150px; }

/* Settings switches mock */
.sw-list { width: min(400px, 100%); margin-bottom: 14px; border-radius: 16px; background: rgba(44,48,54,.78); backdrop-filter: blur(30px); color: #f3f4f3; font: 12.5px var(--ui); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22), 0 18px 40px -14px rgba(0,0,0,.5); padding: 4px 14px; }
.sw-list .hd { font-size: 11px; font-weight: 600; color: rgba(235,238,236,.5); padding: 9px 0 3px; }
.sw-row { display: flex; align-items: center; justify-content: space-between; height: 34px; border-top: .5px solid rgba(255,255,255,.08); }
.sw-row:first-of-type { border-top: 0; }
.sw { width: 34px; height: 20px; border-radius: 99px; background: #30c463; position: relative; transition: background .25s; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 16px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .25s cubic-bezier(.3,1.4,.5,1); }
.sw.off { background: rgba(255,255,255,.2); } .sw.off::after { left: 2px; }

/* The settings mock in light mode */
.sw-list.light { background: rgba(246,246,247,.86); color: #1d1d1f; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.7), 0 0 0 .5px rgba(0,0,0,.12), 0 18px 40px -14px rgba(20,40,70,.35); }
.sw-list.light .hd { color: rgba(60,60,67,.6); } .sw-list.light .sw-row { border-top-color: rgba(0,0,0,.08); } .sw-list.light .sw.off { background: rgba(0,0,0,.16); }

/* Notification, as macOS draws it: dark glass, the app icon at full height, title, text and time */
.note { position: absolute; right: 16px; top: 16px; width: 330px; padding: 11px 14px 11px 11px; border-radius: 22px; z-index: 4; font: 13px/1.3 var(--ui); color: #f4f5f4;
  display: grid; grid-template-columns: 42px 1fr; column-gap: 11px; align-items: center; text-align: left;
  background: rgba(58,60,62,.72); backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.22), inset 0 1px rgba(255,255,255,.14), 0 16px 36px -10px rgba(0,0,0,.55);
  transform: translateX(24px) scale(.97); opacity: 0; transition: .42s cubic-bezier(.3,1.3,.5,1); }
.note.show { transform: none; opacity: 1; }
.note .ni { width: 42px; height: 42px; }
.note .nt { min-width: 0; }
.note .t { display: flex; gap: 10px; align-items: baseline; }
.note .t b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note .t em { margin-left: auto; font-style: normal; font-size: 11.5px; color: rgba(244,245,244,.5); flex: none; }
.note p { margin: 1px 0 0; color: rgba(244,245,244,.86); font-size: 13px; }
.note .nb { display: inline-block; margin-top: 8px; padding: 4px 13px; border-radius: 99px; background: rgba(255,255,255,.16); font-weight: 600; font-size: 12px; transition: background .15s, transform .15s; }
.note .nb.press { background: rgba(255,255,255,.4); transform: scale(.95); }
.note.light { color: #1d1d1f; background: rgba(246,246,247,.82); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.7), 0 0 0 .5px rgba(0,0,0,.12), 0 16px 36px -10px rgba(20,40,70,.4); }
.note.light .t em { color: rgba(60,60,67,.55); } .note.light p { color: rgba(40,40,46,.86); }
.note.light .nb { background: rgba(0,0,0,.08); } .note.light .nb.press { background: rgba(0,0,0,.22); }
.notes { display: grid; gap: 9px; width: min(350px, 100%); align-content: start; min-height: 330px; }
.notes .note { position: static; width: auto; transform: translateY(-12px) scale(.97); }
.notes .note.show { transform: none; }

/* ---------- Dark stats ---------- */
.dark { background: var(--ink); color: var(--paper); border-radius: 36px; margin: 0 16px; }
.dark .sec-head p { color: rgba(245,248,246,.7); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: 20px; overflow: hidden; }
.stat { background: var(--ink); padding: 34px 24px; }
.stat .num { white-space: nowrap; font: 700 clamp(34px, 4.2vw, 56px)/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .4em; color: rgba(245,248,246,.55); margin-left: 4px; letter-spacing: 0; }
.stat p { margin: 10px 0 0; color: rgba(245,248,246,.65); font-size: 14px; }
.fine { font-size: 12.5px; color: rgba(245,248,246,.5); margin-top: 18px; }

/* ---------- Small things ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; min-height: 250px; }
.card h4 { margin: 0; font: 600 18px var(--sans); letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; text-wrap: pretty; }
.card .viz { flex: 1; min-height: 116px; display: grid; align-items: end; margin-bottom: 10px; }
.keys { display: flex; gap: 6px; justify-content: center; align-items: center; padding-bottom: 14px; }
.keys kbd { min-width: 46px; height: 46px; padding: 0 12px; display: grid; place-items: center; border-radius: 11px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(17,20,18,.12); font: 600 17px var(--ui); transition: transform .12s, box-shadow .12s, background .12s; }
.keys kbd.dn { transform: translateY(2px); box-shadow: 0 0 0 rgba(0,0,0,0); background: #e6efff; }
.keys span { font-size: 12.5px; color: var(--ink-3); margin-left: 8px; min-width: 96px; }
.links { display: grid; gap: 6px; font-size: 12.5px; }
.links .lk { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.links .lk b { font-variant-numeric: tabular-nums; }
.links .lk .res { margin-left: auto; font-weight: 600; font-size: 11.5px; padding: 2px 9px; border-radius: 99px; background: #eef0ee; color: var(--ink-3); transition: background .3s, color .3s; white-space: nowrap; }
.links .lk .res.page { background: rgba(34,165,89,.16); color: #167a41; }
.links .lk .res.addr { background: rgba(232,163,23,.18); color: #8a5c00; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #d5d9d6; border-top-color: var(--accent); animation: spin .7s linear infinite; display: inline-block; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.stops { display: grid; gap: 5px; font-size: 12.5px; }
.stops div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.stops div.on { border-color: var(--accent); background: #f0f5ff; }
.stops code { font: 11.5px var(--mono); color: var(--ink-3); }
.term { background: #171a18; color: #e3e8e4; font: 12px/1.7 var(--mono); border-radius: 12px; padding: 12px 14px; min-height: 110px; overflow: hidden; white-space: pre-wrap; word-break: break-word; }
.term .pr { color: #6ee7a0; } .term .dm { color: #7d857f; } .term .hl { color: #7cc4ff; }
.health { display: grid; gap: 6px; }
.health .hr { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; }
.health .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; transition: background .4s; }
.health .hr.bad .dot { background: var(--amber); } .health .hr.bad .st { color: #9a6700; }
.health .st { margin-left: auto; color: var(--ink-3); font-size: 11.5px; font-weight: 600; transition: color .4s; }

/* ---------- Panels ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.panel h3 { font-size: 28px; margin: 8px 0 10px; }
.panel p { color: var(--ink-2); margin: 0 0 14px; }
.panel ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.panel li { display: flex; gap: 10px; font-size: 15px; }
.panel li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.panel-link { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.panel-link span { display: inline-block; transition: transform .2s; }
.panel-link:hover { text-decoration-color: currentColor; }
.panel-link:hover span { transform: translateX(3px); }
.panel.hl { background: var(--ink); color: var(--paper); border: 0; }
.panel.hl p, .panel.hl li { color: rgba(245,248,246,.8); }
.panel.hl li::before { color: #7db4ff; }
.panel.hl .btn { background: #fff; color: #111; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details { border-top: 1px solid var(--line); padding: 20px 4px; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font: 600 19px var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 16px; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--ink-3); transition: transform .45s var(--spring-q), color .25s; }
details.shown summary::after { transform: rotate(45deg); color: var(--accent); }
/* The answer's height eases open and shut; main.js keeps [open] set until the closing ends. */
.ans { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--out-soft), opacity .35s ease; }
details.shown .ans { grid-template-rows: 1fr; opacity: 1; }
/* The gap above the text sits inside the clipped box: padding on it would keep a closed answer 12px tall. */
.ans > p { overflow: hidden; min-height: 0; color: var(--ink-2); margin: 0; max-width: 640px; }
.ans > p::before, .ans-body::before { content: ""; display: block; height: 12px; }
details.shown .ans > p { transition: none; }
.ans { grid-template-columns: minmax(0, 1fr); }
.ans > .ans-body { overflow: hidden; min-height: 0; min-width: 0; color: var(--ink-2); }
.ans-body > p { margin: 0; max-width: 640px; }
.ans-body code, .cmd code { font: 500 .88em var(--mono); }
.ans-body p code { background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
.cmds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
.cmd { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 12px; padding: 9px 9px 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.cmd span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cmd code { min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--ink-2); scrollbar-width: none; }
.cmd button { font: 600 12.5px var(--sans); color: var(--ink); background: var(--paper-2); border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer; min-width: 64px; }
.cmd button:hover { background: var(--line); }
.cmd button.done { color: var(--accent); }
@media (max-width: 640px) { .cmd { grid-template-columns: minmax(0, 1fr) auto; } .cmd code { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Closing + footer ---------- */
.closing { text-align: center; padding: 110px 0; }
.closing h2 { font-size: clamp(40px, 7vw, 84px); }
.closing .lede { margin-top: 18px; }
.footer { border-top: 1px solid var(--line); padding: 36px 0 60px; color: var(--ink-3); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; } .footer a:hover { color: var(--ink); }

/* ---------- Change log page ---------- */
.log { padding-top: 170px; }
.log h1 { font-size: clamp(40px, 6.4vw, 72px); margin: 12px 0 0; }
.releases { max-width: 760px; margin: 0 auto; }
.release { padding: 28px 0; border-top: 1px solid var(--line); }
.release header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.release h2 { font-size: 26px; margin: 0; }
.release h2 small { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; margin-left: 8px; vertical-align: middle; }
.policy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.policy h2 { margin-bottom: 12px; }
.policy-date { font: 500 13px var(--mono); color: var(--ink-3); margin: 18px 0 0; }
.release time { font: 500 13px var(--mono); color: var(--ink-3); }
.release ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; }
.release code { font: 500 .9em var(--mono); background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; filter: blur(6px); translate: 0 24px; transition: opacity .7s var(--out-soft), translate .9s var(--spring-soft), filter .7s var(--out-soft); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; filter: none; translate: 0; }
.cards .rv:nth-child(3n+2), .two .rv:nth-child(2), .stats .stat:nth-child(2) { --d: 90ms; }
.cards .rv:nth-child(3n) { --d: 180ms; }
.feature .stage { transition: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tw { width: 44%; left: 18px; } .desk .pp { right: 14px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; padding: 36px 0; }
  .feature.flip .copy { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 64px; left: 12px; right: 12px; flex-direction: column; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; } .nav a { padding: 12px; }
  .menu-btn { display: block; } .hdr-right .btn { display: none; } .header .bar { grid-template-columns: 1fr auto; } .nav-pill { display: none; }
  .hero-panel { padding-top: 130px; } .stage-wrap { margin-top: 44px; }
  .btn { height: 48px; font-size: 16px; padding: 0 22px 0 18px; }
  .mac { height: 620px; padding: 9px 9px 0; border-radius: 28px 28px 0 0; } .desk { border-radius: 20px 20px 0 0; clip-path: inset(-1px 0 0 round 20px 20px 0 0); } .mbar { border-radius: 20px 20px 0 0; padding: 0 14px; }
  .tw, .cur, .hk, .steps, .mbar .hide-s { display: none; }
  .desk .pp { right: 50%; transform: translateX(50%); width: min(400px, calc(100% - 20px)); transform-origin: 50% 0; }
  .desk .pp.shut { transform: translateX(50%) scale(.94) translateY(-10px); }
  .cards, .two { grid-template-columns: 1fr; }
  section { padding: 64px 0; } .dark { border-radius: 24px; margin: 0 8px; }
  .stage { padding: 22px 10px; min-height: 0; border-radius: 22px; }
  .det { padding-left: 12px; }
  .note { width: min(330px, calc(100% - 20px)); right: 10px; top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; filter: none; translate: 0; transition: none; }
  .mac, .hero-line > *, .hero-fade { animation: none; }
  .wm-base { animation: none; stroke-dashoffset: 0; } .wm-run { display: none; }
  /* No transitions at all rather than very short ones: a tiny transition on every element makes
     inherited colours settle one nesting level at a time. */
  *:not(.header):not(.header *), *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
