/* NotchDeck site. One motif: the notch itself, drawn the way the app draws it (flush with the top,
   concave flares at the top corners, rounded bottom). It is the logo, the hero, every mockup,
   the privacy band and the footer. All mockup sizes are in app points times --u. */

:root {
  color-scheme: dark;
  --ground: #0b0c0f;
  --surface: #15171c;
  --step: #1f2229;
  --ink: #f3f1ec;
  --muted: #a4a7af;
  --pale: #3a3d45;
  --amber: #ffb13b;
  --on-amber: #140d02;
  --amber-deep: #d98b12;
  --green: #4cd27a;
  --warn: #ff8a7a;
  --black: #000;

  --face: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(2.6rem, 0.8rem + 5vw, 6rem);
  --step-say: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);

  --margin: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(96px, 6vw + 64px, 200px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--face); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { text-decoration-thickness: .12em; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.035em; line-height: 1; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-body); letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
code { font: .88em/1.4 var(--mono); background: var(--step); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--on-amber); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: var(--margin); top: -60px; background: var(--ink); color: var(--ground); padding: 10px 14px; z-index: 20; }
.skip:focus { top: 10px; }

/* Buttons: flat, one fill, gently rounded like a Mac control. */
.btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 52px; padding: 0 22px; border-radius: 12px;
  background: var(--ink); color: var(--ground); font: 600 var(--step-body)/1 var(--face); letter-spacing: -0.01em;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { background: var(--amber); color: var(--on-amber); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.ghost { background: var(--step); color: var(--ink); }
.btn.ghost:hover { background: var(--pale); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: var(--step-small); border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fine { color: var(--muted); font-size: var(--step-small); }

/* Bar */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px;
  padding: 12px var(--margin); background: var(--ground);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.25rem; letter-spacing: -0.03em; text-decoration: none; }
.mark { width: 34px; height: 15px; }
.mark path { fill: var(--ink); }
.mark .a { fill: var(--amber); }
.mark .w { fill: var(--ground); }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: var(--step-small); font-weight: 500; }
.top nav a { text-decoration: none; padding: 6px 0; }
.top nav a:hover { text-decoration: underline; }

/* ---------- The notch mockup ----------
   .nd is the black shape. Its size follows data-phase, in app points (NotchState.swift):
   closed 197 x 32, compact +80, peek +208, open 620 x 200. */
.screen { container-type: inline-size; position: relative; }
.nd {
  --u: min(1.2px, calc(100cqw / 660));
  --t: calc(6 * var(--u)); --b: calc(12 * var(--u));
  position: absolute; left: 50%; top: 0; z-index: 2;
  width: calc(197 * var(--u)); height: calc(32 * var(--u));
  transform: translateX(-50%);
  background: var(--black); color: #fff;
  border-radius: 0 0 var(--b) var(--b);
  font-size: calc(10 * var(--u)); line-height: 1.25;
  transition: width .32s var(--ease), height .32s var(--ease), border-radius .32s var(--ease);
}
/* Concave flares at the top corners, outside the shape like the app's NotchShape. */
.nd::before, .nd::after {
  content: ""; position: absolute; top: 0; width: var(--t); height: var(--t);
  transition: width .32s var(--ease), height .32s var(--ease);
}
.nd::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--t) - 0.5px), var(--black) var(--t)); }
.nd::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--t) - 0.5px), var(--black) var(--t)); }
.nd[data-phase="compact"] { width: calc(277 * var(--u)); }
.nd[data-phase="peek"] { width: calc(405 * var(--u)); --b: calc(14 * var(--u)); }
.nd[data-phase="open"] {
  width: calc(620 * var(--u)); height: calc(200 * var(--u)); --t: calc(19 * var(--u)); --b: calc(26 * var(--u));
  transition-timing-function: var(--spring);
}
.nd[data-phase="open"]::before, .nd[data-phase="open"]::after { transition-timing-function: var(--spring); }
.nd > div { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .18s linear; overflow: hidden; border-radius: inherit; }
.nd[data-phase="compact"] .nd-compact, .nd[data-phase="peek"] .nd-peek, .nd[data-phase="open"] .nd-open { opacity: 1; transition-delay: .12s; }

.ic { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic .fill, .ic.play { fill: currentColor; }
.t-green { color: var(--green); }
.art { display: block; background: linear-gradient(140deg, #ffcf70, #ff7a3d 45%, #7b3ff2); border-radius: .5em; }

.nd-compact { display: flex; align-items: center; justify-content: space-between; padding: 0 calc(6 * var(--u) + 1.2em); }
.nd-compact .art { width: 2em; height: 2em; border-radius: .45em; }
.wave { display: flex; align-items: center; gap: .2em; height: 1.6em; }
.wave i { width: .25em; height: 100%; background: #fff; border-radius: .2em; transform-origin: center; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.3s; } .wave i:nth-child(3) { animation-delay: -.6s; } .wave i:nth-child(4) { animation-delay: -.15s; }
@keyframes wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.nd-peek { display: flex; align-items: center; justify-content: space-between; padding: 0 calc(6 * var(--u) + 1em); font-weight: 600; font-size: 1.2em; }
.pk-l { display: inline-flex; align-items: center; gap: .5em; }
.pk-l .ic { width: 1.15em; height: 1.15em; }
.meter { width: 7.5em; height: .42em; background: rgba(255,255,255,.18); border-radius: 1em; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--v, 56%); background: #fff; border-radius: inherit; transition: width .25s var(--ease); }
.meter.m2 i { width: 70%; } .meter.m3 i { width: 82%; background: var(--green); }

.nd-open { display: flex; flex-direction: column; }
.nd-tabs { height: calc(32 * var(--u)); flex: none; display: flex; align-items: center; padding: 0 2.4em; }
.nd-tabs .side { flex: 1; display: flex; align-items: center; gap: .3em; }
.nd-tabs .side.l { justify-content: flex-end; padding-right: .8em; }
.nd-tabs .side.r { padding-left: .8em; }
.nd-tabs .gear { margin-left: auto; }
.nd-tabs .hw { width: calc(185 * var(--u)); height: 100%; flex: none; }
.nd-tabs .ic { box-sizing: content-box; padding: .35em .5em; border-radius: .6em; width: 1.3em; height: 1.3em; color: rgba(255,255,255,.75); transition: background-color .2s, color .2s; }
.nd-tabs .ic.on { background: rgba(255,255,255,.18); color: #fff; }
.nd-body { flex: 1; position: relative; padding: .8em 3.8em 2em; }
.pane { position: absolute; inset: .8em 3.8em 2em; display: flex; align-items: center; gap: 2em; opacity: 0; transition: opacity .2s linear; }
.pane.on { opacity: 1; }
.pane b { font-weight: 600; }
.pane em { font-style: normal; color: rgba(255,255,255,.55); }

.np .art.big { width: 9.6em; height: 9.6em; border-radius: 1.1em; flex: none; }
.np-meta { flex: 1; display: grid; gap: .25em; min-width: 0; }
.np-meta b { font-size: 1.5em; }
.np-meta > span { color: rgba(255,255,255,.6); font-size: 1.2em; }
.np-meta .scrub { display: block; height: .4em; margin-top: 1.2em; background: rgba(255,255,255,.18); border-radius: 1em; overflow: hidden; }
.np-meta .scrub i { display: block; height: 100%; width: 32%; background: #fff; border-radius: inherit; }
.np-time { display: flex; justify-content: space-between; font-size: .95em !important; }
.np-ctl { display: flex; align-items: center; gap: 1.4em; }
.np-ctl .ic { width: 2em; height: 2em; }
.np-ctl .ic.play { width: 2.8em; height: 2.8em; }

.tray { gap: 1.2em; }
.tile { display: grid; justify-items: center; gap: .5em; width: 7.4em; }
.tile .ic { width: 4em; height: 4em; stroke-width: 1.4; color: rgba(255,255,255,.85); }
.tile em { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.drop { flex: 1; align-self: stretch; display: grid; place-content: center; text-align: center; gap: .3em; border: .15em dashed rgba(255,255,255,.22); border-radius: 1.2em; font-size: 1.15em; }
.drop em { font-size: .85em; color: rgba(255,255,255,.35) !important; }

.ring { --p: 99%; --c: var(--amber); width: 11.2em; height: 11.2em; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, #000 calc(100% - .75em), transparent calc(100% - .7em)), conic-gradient(var(--c) var(--p), rgba(255,255,255,.12) 0); }
.ring b { font-size: 2.2em; }
.ring.b { --p: 82%; --c: #fff; }
.tm-ctl { display: grid; gap: 1.3em; }
.pills { display: flex; gap: .5em; }
.pills em { font-size: 1.1em; padding: .3em .8em; border-radius: .5em; background: rgba(255,255,255,.12); color: #fff !important; }
.pills em.on { background: rgba(255,177,59,.3); color: var(--amber) !important; }
.pills.big em { font-size: 1.25em; padding: .45em 1.1em; }
.pills em.go { background: var(--amber); color: var(--on-amber) !important; font-weight: 600; }
.batt-t { display: grid; gap: .3em; }
.batt-t b { font-size: 1.6em; }
.batt-t em { font-size: 1.2em; }

.cal, .bell, .todo { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .6em; }
.ev { display: grid; gap: .1em; padding-left: 1em; position: relative; }
.ev::before { content: ""; position: absolute; left: 0; top: .1em; bottom: .1em; width: .4em; border-radius: 1em; background: var(--c); }
.ev b { font-size: 1.3em; } .ev em { font-size: 1.1em; }
.ev.c1 { --c: #5b8cff; } .ev.c2 { --c: var(--green); } .ev.c3 { --c: #ff6b8b; }
.card-n { display: flex; align-items: center; gap: 1em; padding: .8em 1em; border: .1em solid rgba(255,255,255,.16); border-radius: 1.1em; }
.card-n > span { display: grid; flex: 1; min-width: 0; }
.card-n b { font-size: 1.2em; } .card-n em { font-size: 1.15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-n time { font-size: 1em; color: rgba(255,255,255,.45); }
.app { width: 3em; height: 3em; border-radius: .75em; flex: none; }
.app.a1 { background: linear-gradient(#fff, #e6e6e6); box-shadow: inset 0 0 0 .7em #fff, inset 0 0 0 1em #ff9f0a; }
.app.a2 { background: linear-gradient(#fff, #ececec); box-shadow: inset 0 .7em 0 #ff453a; }
.sec { font-size: 1em; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); font-weight: 600; }
.task { display: flex; align-items: center; gap: .8em; font-size: 1.3em; }
.task i { width: 1.1em; height: 1.1em; border-radius: 50%; border: .12em solid rgba(255,255,255,.5); flex: none; }
.task.done { color: rgba(255,255,255,.4); text-decoration: line-through; }
.task.done i { background: var(--amber); border-color: var(--amber); }

/* Hero: the top of a MacBook screen, with the notch at its centre. */
.hero { padding: 0 var(--margin); }
.hero .screen {
  min-height: min(calc(100svh - 76px), 920px); border-radius: 22px 22px 0 0; overflow: hidden;
  background:
    radial-gradient(80% 60% at 78% 110%, rgba(255,177,59,.28), transparent 60%),
    radial-gradient(60% 50% at 10% 0%, rgba(120,80,255,.16), transparent 70%),
    linear-gradient(180deg, #17191f, #0e0f13);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(24px, 4vw, 64px) clamp(32px, 5vw, 72px);
}
.hero .nd { --u: min(1.6px, calc(100cqw / 660)); }
.menubar { position: absolute; left: 0; right: 0; top: 0; height: calc(32 * min(1.6px, calc(100cqw / 660))); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 600; }
.menubar span { display: flex; align-items: center; gap: 14px; }
.menubar i { width: 34px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.22); }
.menubar .mb-l i:first-child { width: 12px; height: 12px; border-radius: 3px; background: rgba(255,255,255,.6); }
.menubar .mb-r i { width: 16px; height: 9px; }
.hero-text { position: relative; z-index: 1; display: grid; gap: 28px; margin-top: clamp(200px, 26vw, 360px); }
.hero h1 { font-size: var(--step-hero); line-height: .96; }
.hero .lede { font-size: var(--step-lead); line-height: 1.38; max-width: 36ch; letter-spacing: -0.01em; }
.hero .fine { margin-top: -10px; }
#heroNotch { cursor: default; }
#heroNotch, #heroNotch::before, #heroNotch::after { pointer-events: auto; }

/* Modules */
.modules { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; padding: var(--gap-section) var(--margin) 0; align-items: center; }
.modules > * { min-width: 0; }
.mod-list h2 { font-size: var(--step-say); line-height: 1.15; color: var(--muted); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 18px; }
.mod-list ul { list-style: none; margin: 0; padding: 0; }
.mod-list button {
  font: 500 var(--step-say)/1.25 var(--face); letter-spacing: -0.03em; color: var(--muted);
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left; display: inline-flex; align-items: center; gap: .35em;
  transition: color .2s;
}
.mod-list button::before { content: ""; width: .55em; height: .22em; border-radius: 0 0 .12em .12em; background: var(--amber); transform: scaleX(0); transition: transform .35s var(--ease); }
.mod-list button:hover { color: var(--ink); }
.mod-list button[aria-selected="true"] { color: var(--ink); font-weight: 650; }
.mod-list button[aria-selected="true"]::before { transform: scaleX(1); }
.mod-stage { display: grid; gap: 20px; }
.screen.strip { aspect-ratio: 16 / 6; border-radius: 18px; overflow: hidden;
  background: radial-gradient(70% 90% at 50% 0%, rgba(255,177,59,.14), transparent 70%), linear-gradient(#17191f, #0f1014); }
.screen.strip .nd { --u: min(1.25px, calc(100cqw / 660)); }
.fact { max-width: 60ch; background: var(--surface); padding: 16px 20px; border-radius: 14px; min-height: 5.6em; }

/* How */
.how { padding: var(--gap-section) var(--margin) 0; }
.how-head { display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: end; }
.how-head h2 { max-width: 14ch; }
.how-head p { max-width: 50ch; }
.how-steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-steps li { min-width: 0; }
.mini { container-type: inline-size; position: relative; aspect-ratio: 16 / 7; background: var(--surface); border-radius: 16px; overflow: hidden; margin-bottom: 22px; }
.mini .nd { --u: calc(100cqw / 660); }
.how-steps li:nth-child(1) .mini .nd, .how-steps li:nth-child(2) .mini .nd { --u: calc(100cqw / 440); }
.how-steps h3 { font-size: var(--step-lead); margin-bottom: 8px; }
.how-steps p { max-width: 36ch; }

/* Plugins */
.plugins { padding: var(--gap-section) var(--margin) 0; display: grid; grid-template-columns: 5fr 6fr; gap: 24px 40px; align-items: start; }
.plugins > * { min-width: 0; }
.plug-text h2 { margin-bottom: 24px; }
.plug-text p { max-width: 46ch; }
.code { margin: 0; background: var(--surface); padding: 24px 26px; border-radius: 16px; overflow-x: auto; font: 14px/1.6 var(--mono); color: var(--muted); }
.code code { background: none; padding: 0; font: inherit; }
.code .k { color: var(--ink); } .code .s { color: var(--amber); }
.plug-out { grid-column: 2; position: relative; height: 120px; background: var(--black); border-radius: 0 0 26px 26px; font-size: 13px; color: #fff; }
.plug-out .pane { inset: 0; padding: 0 32px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; }
.plug-out b { font-size: 15px; }
.pbtns { display: flex; gap: 8px; }
.pbtns em { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; background: rgba(255,255,255,.12); color: #fff !important; }
.pbtns .ic { width: 14px; height: 14px; }

/* Facts */
.say { padding: var(--gap-section) var(--margin) 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.facts li { padding-top: 18px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 8px; border-radius: 0 0 5px 5px; background: var(--ink); }
.facts strong { display: block; font-weight: 650; margin-bottom: 4px; }

/* Privacy: the one full-width amber band, with a notch hanging from its top edge. */
.privacy { margin-top: var(--gap-section); background: var(--amber); color: var(--on-amber); padding: 0 var(--margin) clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: 6fr 5fr; gap: 40px; align-items: end; }
.privacy > * { min-width: 0; }
.privacy .band { grid-column: 1 / -1; height: clamp(72px, 9vw, 120px); position: relative; margin-bottom: clamp(32px, 4vw, 64px); }
.big-notch { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(44%, 520px); height: 100%; background: var(--ground); border-radius: 0 0 40px 40px; }
.big-notch::before, .big-notch::after { content: ""; position: absolute; top: 0; width: 22px; height: 22px; }
.big-notch::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 21.5px, var(--ground) 22px); }
.big-notch::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 21.5px, var(--ground) 22px); }
.privacy h2 { font-size: var(--step-hero); line-height: .96; }
.privacy p { font-size: var(--step-lead); line-height: 1.38; max-width: 38ch; }

/* FAQ: index cards in a drawer */
.faq { padding: var(--gap-section) var(--margin) 0; display: grid; grid-template-columns: 3fr 9fr; gap: 40px; }
.faq > * { min-width: 0; }
.faq-side { align-self: start; position: sticky; top: 96px; }
.drawer { display: flex; flex-direction: column; }
.drawer .file { --c: var(--surface); position: relative; margin-top: 30px; background: var(--c); border-radius: 0 14px 14px 14px; }
.drawer .file:nth-child(2n) { --c: var(--step); }
.drawer .file h3 { margin: 0; }
.drawer .file h3 button {
  font: inherit; color: inherit; background: none; border: 0; width: 100%; text-align: left; cursor: pointer;
  padding: 18px 24px 20px; display: block;
}
.drawer .tab {
  position: absolute; top: -30px; left: calc(var(--i, 0) * min(11%, 120px)); height: 30px; width: 150px; padding: 6px 16px 0;
  background: var(--c); font-size: var(--step-small); font-weight: 600; letter-spacing: 0;
  clip-path: polygon(0 100%, 10px 0, calc(100% - 10px) 0, 100% 100%);
}
.drawer .file:first-child { border-top-left-radius: 0; }
.drawer .q { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; display: block; transition: transform .25s var(--ease); }
.drawer .file h3 button:hover .q { transform: translateX(6px); }
.drawer .a { padding: 0 24px 26px; max-width: calc(58ch + 48px); }
.drawer .file.open .q { font-weight: 650; }

/* Contact: a message written here, sent from the visitor's own email app */
.contact { padding: var(--gap-section) var(--margin) 0; display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: start; }
.contact > * { min-width: 0; }
.contact h2 { max-width: 9ch; margin-bottom: 28px; }
.contact .lede { font-size: var(--step-lead); line-height: 1.38; max-width: 34ch; letter-spacing: -0.01em; }
.reach { list-style: none; margin: 56px 0 0; padding: 0; }
.reach a {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 0;
  font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; text-decoration: none; overflow-wrap: anywhere;
  transition: transform .25s var(--ease);
}
.reach span { font-size: var(--step-small); font-weight: 500; letter-spacing: 0; color: var(--muted); position: relative; padding-top: 12px; transition: color .2s; }
.reach span::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 7px; border-radius: 0 0 4px 4px; background: var(--pale); transition: background-color .2s, width .35s var(--ease); }
.reach a:hover { transform: translateX(6px); }
.reach a:hover span { color: var(--ink); }
.reach a:hover span::before { background: var(--amber); width: 34px; }

.write { background: var(--surface); padding: clamp(22px, 2.6vw, 40px); display: grid; gap: 26px; border-radius: 18px; }
fieldset.chips { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.chips legend, .field { font-size: var(--step-small); font-weight: 500; color: var(--muted); padding: 0; margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px;
  background: var(--step); font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s;
}
.opts input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opts label:hover { background: var(--pale); }
.opts label:has(input:checked) { background: var(--ink); color: var(--ground); }
.opts label:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.field { display: block; margin-bottom: -16px; }
.write textarea {
  width: 100%; min-height: 190px; resize: vertical; border: 0; padding: 16px 18px; border-radius: 12px;
  font: inherit; line-height: 1.5; color: var(--ink); background: var(--ground);
}
.write textarea::placeholder { color: var(--muted); }
.write textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 0; }
.write textarea[aria-invalid="true"] { box-shadow: inset 6px 0 0 var(--warn); }
.err { color: var(--warn); font-size: var(--step-small); font-weight: 500; margin-top: -16px; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.send .fine { flex: 1 1 24ch; max-width: 44ch; }
.after { background: var(--ground); padding: 18px 20px; display: grid; gap: 14px; font-size: var(--step-small); border-radius: 12px; }

/* Get */
.get { padding: var(--gap-section) var(--margin) clamp(96px, 10vw, 160px); display: grid; grid-template-columns: 6fr 5fr; gap: 40px; align-items: end; }
.get > * { min-width: 0; }
.get h2 { font-size: var(--step-hero); line-height: .96; max-width: 13ch; margin-bottom: 40px; }
.get .fine { margin-top: 18px; max-width: 70ch; }
.screen.tiny { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: radial-gradient(90% 80% at 50% 120%, rgba(76,210,122,.18), transparent 70%), linear-gradient(#17191f, #0f1014); }
.screen.tiny .nd { --u: calc(100cqw / 480); }

/* Footer: a wide notch hanging from the top, then the name full width */
.foot { position: relative; background: #050608; color: #f3f1ec; padding: clamp(96px, 12vw, 180px) var(--margin) 40px; }
.foot-notch { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(38%, 460px); height: clamp(40px, 5vw, 64px); background: var(--ground); border-radius: 0 0 28px 28px; }
.foot-notch::before, .foot-notch::after { content: ""; position: absolute; top: 0; width: 16px; height: 16px; }
.foot-notch::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 15.5px, var(--ground) 16px); }
.foot-notch::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 15.5px, var(--ground) 16px); }
.foot .word { font-size: 17.6vw; font-weight: 700; letter-spacing: -0.065em; line-height: .8; margin: 0 0 56px -0.04em; }
.foot .cols { display: grid; grid-template-columns: repeat(4, 1fr) 1.5fr; gap: 32px; font-size: var(--step-small); }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav h2 { font-size: var(--step-small); letter-spacing: 0; color: #9a9ea8; font-weight: 500; margin-bottom: 4px; line-height: 1.5; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot .about { color: #b5b9c2; max-width: 46ch; }

/* Entrances: content is visible without script; app.js adds .pre then .in. */
.pre [data-in] { opacity: 0; transform: translateY(24px); }
.in [data-in] { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }

@media (max-width: 1080px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .foot .cols { grid-template-columns: repeat(4, 1fr); }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { padding: 0 8px; }
  .hero .screen { min-height: 0; border-radius: 16px 16px 0 0; padding: 0 20px 32px; }
  .hero-text { margin-top: 200px; gap: 22px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 4rem); }
  .menubar .mb-l i:not(:first-child), .menubar .mb-r i { display: none; }
  .modules { grid-template-columns: 1fr; gap: 24px; }
  .mod-list ul { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .mod-list button { font-size: 24px; white-space: nowrap; }
  .screen.strip { aspect-ratio: 16 / 8; }
  .how-head { grid-template-columns: 1fr; gap: 16px; }
  .plugins { grid-template-columns: 1fr; }
  .plug-out { grid-column: 1; }
  .code { font-size: 12.5px; padding: 18px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .privacy { grid-template-columns: 1fr; gap: 24px; }
  .big-notch { width: 64%; }
  .faq { grid-template-columns: 1fr; gap: 12px; }
  .faq-side { position: static; }
  .get { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .reach { margin-top: 32px; }
  .drawer .tab { width: 104px; left: calc(var(--i, 0) * 30px); padding: 7px 12px 0; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot-notch { width: 60%; }
}
@media (max-width: 760px) {
  .how-steps { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .reach a { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; }
  .send .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .pre [data-in] { opacity: 1; transform: none; }
}

/* Legal page */
.legal { padding: clamp(48px, 6vw, 96px) var(--margin) var(--gap-section); }
.legal-head { max-width: 62ch; margin-bottom: clamp(56px, 6vw, 96px); display: grid; gap: 20px; }
.legal-head h1 { font-size: var(--step-head); }
.legal-head p { font-size: var(--step-lead); line-height: 1.4; }
.legal-head .fine { font-size: var(--step-small); }
.legal section { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; padding: 48px 0; scroll-margin-top: 72px; }
.legal section > * { min-width: 0; }
.legal section + section { border-top: 6px solid var(--step); }
.legal section h2 { font-size: var(--step-say); line-height: 1.15; }
.legal-body { max-width: 68ch; display: grid; gap: 14px; }
.legal-body h3 { font-size: var(--step-body); margin-top: 18px; }
.legal-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.table-wrap { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: var(--step-small); }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; vertical-align: top; border-bottom: 1px solid var(--step); }
.legal th { color: var(--muted); font-weight: 500; }
.foot.slim { padding-top: 96px; }
@media (max-width: 820px) {
  .legal section { grid-template-columns: 1fr; gap: 16px; }
}
