/* Nadhif website, "Calm Glass" design: the home page, and the tokens, glass, buttons, top bar and footer that every
   other page shares (those pages add pages.css).
   Every colour, radius and shadow follows the app's own tokens (Nadhif/Views/Theme.swift), so the page and the live
   app-window mocks on it look like the app in both appearances. Plain CSS, no images: the windows, icons, bubbles and
   demos are HTML, inline SVG and CSS. Works without JavaScript (everything is shown in its final state). */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;
  --ground: #F4F7FA;
  --card: #FFFFFF;
  --sunken: #F8FAFC;
  --wash: #EAF7F8;
  --hairline: #E3E9F0;
  --separator: #EDF1F5;
  --control: #EEF2F6;
  --control-hover: #E5EBF1;
  --control-pressed: #D9E1EA;
  --card-border: rgb(16 35 58 / .08);
  --card-highlight: rgb(255 255 255 / 0);
  --card-sheen: rgb(255 255 255 / 0);
  --shadow-contact: rgb(16 35 58 / .06);
  --shadow-ambient: rgb(16 35 58 / .07);
  --shadow-lifted: rgb(16 35 58 / .13);
  --ink: #10233A;
  --ink-2: #52627A;
  --ink-3: #8A97A8;
  --link: #1F6FD1;
  --success: #1B7A4E;
  --success-bg: #E4F5EC;
  --warning: #8F5600;
  --warning-bg: #FDF1DF;
  --danger: #B23A35;
  --danger-bg: #FBE7E6;
  --cyan: #3CC8D8;
  --mint: #46D6A8;
  --blue: #2F7FE0;
  --accent: #0F8296;
  --action: linear-gradient(135deg, #0F8296, #2458C2);
  --action-hover: linear-gradient(135deg, #12909F, #2A63D2);
  --action-pressed: linear-gradient(135deg, #0C6F80, #1E4BA6);
  --meter: linear-gradient(90deg, var(--cyan), var(--blue));

  /* The app's window: a vibrant sidebar, the selected row in the accent colour. */
  --side: #E8ECEF;
  --side-ink: #10233A;
  --side-sel: #1F7489;
  --win-border: rgb(16 35 58 / .1);
  --win-shadow: 0 1px 2px rgb(16 35 58 / .08), 0 30px 80px -20px rgb(16 35 58 / .35), 0 0 0 1px rgb(16 35 58 / .06);
  --sheet-shadow: 0 24px 60px rgb(16 35 58 / .28), 0 0 0 1px rgb(16 35 58 / .08);
  --scrim: rgb(16 35 58 / .14);
  --cursor-fill: #10233A;
  --glow: rgb(60 200 216 / .30);

  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-move: cubic-bezier(.45, .05, .25, 1);
  --ease-pop: cubic-bezier(.2, .8, .2, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #13171C; --card: #1E242C; --sunken: #1A2027; --wash: #14292B; --hairline: #2E3640; --separator: #272E37;
    --control: #2A313B; --control-hover: #323A45; --control-pressed: #3A4350;
    --card-border: rgb(255 255 255 / .08); --card-highlight: rgb(255 255 255 / .12); --card-sheen: rgb(255 255 255 / .035);
    --shadow-contact: rgb(0 0 0 / .35); --shadow-ambient: rgb(0 0 0 / .28); --shadow-lifted: rgb(0 0 0 / .45);
    --ink: #EEF2F6; --ink-2: #A3AFBF; --ink-3: #6F7B8B; --link: #6AAEFF;
    --success: #5BD39A; --success-bg: #183528; --warning: #F2B562; --warning-bg: #3A2C14; --danger: #F08A85; --danger-bg: #3D1E1D;
    --accent: #3CC8D8;
    --side: #202328; --side-ink: #EEF2F6; --side-sel: #3EBDD0;
    --win-border: rgb(255 255 255 / .12);
    --win-shadow: 0 40px 100px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .1);
    --sheet-shadow: 0 24px 60px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .1);
    --scrim: rgb(0 0 0 / .32);
    --cursor-fill: #10233A;
    --glow: rgb(60 200 216 / .20);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #13171C; --card: #1E242C; --sunken: #1A2027; --wash: #14292B; --hairline: #2E3640; --separator: #272E37;
  --control: #2A313B; --control-hover: #323A45; --control-pressed: #3A4350;
  --card-border: rgb(255 255 255 / .08); --card-highlight: rgb(255 255 255 / .12); --card-sheen: rgb(255 255 255 / .035);
  --shadow-contact: rgb(0 0 0 / .35); --shadow-ambient: rgb(0 0 0 / .28); --shadow-lifted: rgb(0 0 0 / .45);
  --ink: #EEF2F6; --ink-2: #A3AFBF; --ink-3: #6F7B8B; --link: #6AAEFF;
  --success: #5BD39A; --success-bg: #183528; --warning: #F2B562; --warning-bg: #3A2C14; --danger: #F08A85; --danger-bg: #3D1E1D;
  --accent: #3CC8D8;
  --side: #202328; --side-ink: #EEF2F6; --side-sel: #3EBDD0;
  --win-border: rgb(255 255 255 / .12);
  --win-shadow: 0 40px 100px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .1);
  --sheet-shadow: 0 24px 60px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .1);
  --scrim: rgb(0 0 0 / .32);
  --cursor-fill: #10233A;
  --glow: rgb(60 200 216 / .20);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 10px;
}
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); text-wrap: balance; }
code, kbd { font-family: var(--mono); }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }

/* The page's own wash at the top, the same light as the app's BrandBackground. */
.page-wash {
  position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 60% at 50% 0%, rgb(60 200 216 / .16), transparent 70%),
    linear-gradient(180deg, rgb(60 200 216 / .10), transparent 70%);
}

/* ---------- Glass ---------- */

.glass {
  position: relative;
  background: linear-gradient(180deg, var(--card-sheen), transparent 45%), var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 var(--card-highlight), 0 1px 2px var(--shadow-contact), 0 10px 28px -8px var(--shadow-ambient);
}

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.032em; line-height: 1.05; }
.h2-split { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; }
.h3 { font-size: 20px; font-weight: 650; letter-spacing: -.012em; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); }
.fine { font-size: 14px; color: var(--ink-3); }
.lead strong, .points strong { color: var(--ink); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--body); letter-spacing: -.005em;
  transition: transform .2s var(--ease-pop), box-shadow .2s, background .2s, color .2s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--action); color: #fff; box-shadow: 0 8px 24px rgb(36 88 194 / .32), inset 0 1px 0 rgb(255 255 255 / .18); }
.btn-primary:hover { background: var(--action-hover); box-shadow: 0 10px 28px rgb(36 88 194 / .42), inset 0 1px 0 rgb(255 255 255 / .22); }
.btn-big { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-quiet { background: var(--control); color: var(--ink); box-shadow: inset 0 0 0 1px var(--card-border); }
.btn-quiet:hover { background: var(--control-hover); }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- Top bar ---------- */

header.top {
  position: fixed; inset: 12px 0 auto; z-index: 50; pointer-events: none;
  transition: transform .5s var(--ease-out);
}
header.top.is-hidden { transform: translateY(calc(-100% - 16px)); }
.top-bar {
  pointer-events: auto;
  width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; gap: 22px; height: 60px; padding-block: 0; padding-inline: 16px 10px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--ground) 62%, transparent);
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .35s, border-color .35s, box-shadow .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s;
}
header.top.is-scrolled .top-bar {
  background: color-mix(in srgb, var(--card) 72%, transparent);
  border-color: var(--card-border);
  box-shadow: inset 0 1px 0 var(--card-highlight), 0 10px 30px -10px var(--shadow-lifted);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -.02em; }
.brand .logo { width: 30px; height: 30px; }
header.top nav { display: flex; gap: 4px; margin-inline-start: auto; }
header.top nav a {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px;
  transition: color .2s, background .2s;
}
header.top nav a:hover { color: var(--ink); background: var(--control); }
@media (max-width: 860px) { header.top nav { display: none; } header.top .btn { margin-inline-start: auto; } }

/* ---------- Sections ---------- */

main { position: relative; }
.section { position: relative; padding-block: clamp(96px, 12vw, 150px) 0; }
.section-tight { padding-top: clamp(72px, 8vw, 96px); }
.head { display: grid; gap: 18px; justify-items: center; text-align: center; max-width: 820px; margin-inline: auto; }
.head .lead { max-width: 680px; }

/* ---------- Hero ---------- */

.hero { padding-top: 132px; text-align: center; position: relative; z-index: 1; }
.hero .wrap { display: grid; justify-items: center; gap: 22px; }
.badge {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; padding-inline-start: 10px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  box-shadow: inset 0 1px 0 var(--card-highlight), 0 1px 2px var(--shadow-contact), 0 6px 18px -6px var(--shadow-ambient);
  isolation: isolate;
}
.badge::before {
  /* A slowly turning ring of brand colour around the badge. */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--sweep, 0deg), rgb(60 200 216 / .1), rgb(60 200 216 / .9), rgb(70 214 168 / .2), rgb(47 127 224 / .7), rgb(60 200 216 / .1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: sweep 6s linear infinite;
}
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sweep { to { --sweep: 360deg; } }
.badge b { font-weight: 650; color: var(--accent); }
.badge .arrow { width: 14px; height: 14px; color: var(--ink-3); }
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(2.8); opacity: 0; } }

.hero .h1 { max-width: 13ch; }
.hero .lead { max-width: 640px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 4px 0 0; list-style: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; padding-inline-start: 8px; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-size: 14px; font-weight: 550;
  background: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: inset 0 0 0 1px var(--card-border);
  transition: background .2s, transform .2s var(--ease-pop);
}
.pill:hover { background: var(--card); transform: translateY(-1px); }
.pill svg { width: 22px; height: 22px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.platform { font-size: 14px; color: var(--ink-3); }
.platform span + span::before { content: "·"; margin-inline: 8px; }

/* The stage the hero window stands on: brand light from below and bubbles rising behind it. */
.stage { position: relative; margin-top: 56px; padding: 0 var(--gutter) 24px; }
.stage::before {
  content: ""; position: absolute; inset: 8% 0 -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 75%);
}
.stage-bubbles { position: absolute; inset: -120px 0 0; overflow: hidden; pointer-events: none; z-index: -1;
  -webkit-mask: linear-gradient(transparent, #000 18%, #000 80%, transparent); mask: linear-gradient(transparent, #000 18%, #000 80%, transparent); }
.chapters {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px auto 0; max-width: 760px;
}
.chapters ol { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; margin: 0; list-style: none; }
.chap {
  -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; width: 100%; cursor: pointer; text-align: start;
  display: grid; gap: 7px; color: var(--ink-3); font: 600 13px/1.2 var(--body); transition: color .3s;
}
.chap .track { height: 3px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.chap .track i { display: block; height: 100%; background: var(--meter); transform-origin: left; transform: scaleX(var(--p, 0)); }
.chap.is-on, .chap:hover { color: var(--ink); }
.chap span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playpause {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; flex: none;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--control); color: var(--ink); box-shadow: inset 0 0 0 1px var(--card-border);
}
.playpause svg { width: 12px; height: 12px; fill: currentColor; }
.playpause .i-play { display: none; }
.is-paused-by-user .playpause .i-play { display: block; }
.is-paused-by-user .playpause .i-pause { display: none; }
.chap em { font-style: normal; }
@media (max-width: 560px) { .chap em { display: none; } }

/* ---------- Bubbles (the app's RisingBubbles, as CSS) ---------- */

.bubble {
  position: absolute; bottom: -80px; left: var(--x, 50%); width: var(--d, 30px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c) 55%, transparent), color-mix(in srgb, var(--c) 18%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent);
  opacity: 0; animation: rise var(--t, 20s) linear var(--delay, 0s) infinite;
}
.bubble::after {
  content: ""; position: absolute; left: 25%; top: 23%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / .9);
}
@keyframes rise {
  0% { opacity: 0; transform: translate(0, 0) scale(.8); }
  10% { opacity: var(--a, .55); }
  85% { opacity: calc(var(--a, .55) * .78); }
  100% { opacity: 0; transform: translate(var(--drift, 0px), calc(-1 * var(--h, 900px))) scale(1.05); }
}

/* =====================================================================================================
   The app window. Built at the app's own point sizes on a fixed design canvas (--w × --h) and scaled to its
   column with a container query, so it keeps the app's proportions at every width, like a screenshot that stays live.
   ===================================================================================================== */

.win-fit { position: relative; width: 100%; max-width: var(--fit-max, 1180px); margin-inline: auto; aspect-ratio: var(--w) / var(--h); container-type: inline-size; }
.win-fit > .aw {
  position: absolute; top: 0; left: 0; transform-origin: 0 0;
  transform: scale(var(--s, .5));
  transform: scale(tan(atan2(100cqw, calc(var(--w) * 1px)))); /* the column's width divided by the canvas width */
}
.win-tilt { perspective: 1400px; }
.win-tilt > .win-fit { transform-origin: 50% 0; will-change: transform; }

.aw {
  width: calc(var(--w) * 1px); height: calc(var(--h) * 1px);
  border-radius: 18px; overflow: hidden; isolation: isolate; text-align: start;
  background: var(--ground); color: var(--ink);
  box-shadow: var(--win-shadow);
  font: 13px/1.35 var(--body); letter-spacing: 0;
  display: grid; grid-template-columns: 236px 1fr;
  user-select: none; -webkit-user-select: none;
  contain: layout paint;
}
.aw.no-side { grid-template-columns: 1fr; }
.aw * { letter-spacing: inherit; }
.aw::after { /* the window's own 1pt edge, above everything */
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--win-border); pointer-events: none; z-index: 30;
}

/* Sidebar */
.aw-side {
  position: relative; display: flex; flex-direction: column; min-height: 0;
  background: var(--side); color: var(--side-ink);
  border-inline-end: 1px solid var(--card-border);
}
.aw-side::before { /* the content's brand wash shows through the vibrant sidebar at the top */
  content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(rgb(60 200 216 / .1), transparent); pointer-events: none;
}
.aw-lights { display: flex; gap: 8px; height: 52px; align-items: center; padding-inline: 18px; position: relative; }
.aw-lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .12); }
.aw-lights i:nth-child(1) { background: #FF5F57; } .aw-lights i:nth-child(2) { background: #FEBC2E; } .aw-lights i:nth-child(3) { background: #28C840; }
.aw-toggle {
  position: absolute; inset-inline-end: 8px; top: 9px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2);
  background: color-mix(in srgb, var(--card) 60%, transparent); box-shadow: 0 0 0 1px var(--card-border), 0 1px 2px var(--shadow-contact);
}
.aw-toggle svg { width: 18px; height: 18px; }
.aw-list { padding: 0 10px; flex: 1; display: flex; flex-direction: column; gap: 0; min-height: 0; overflow: hidden; }
.aw-grp { font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 12px 4px 3px; }
.aw-row {
  display: flex; align-items: center; gap: 8px; height: 29px; padding: 0 8px; border-radius: 8px;
  font-size: 13px; white-space: nowrap; color: var(--side-ink); transition: background .3s, color .3s;
}
.aw-row svg { width: 20px; height: 20px; flex: none; }
.aw-row .lbl { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.aw-row .bdg { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; opacity: 0; transform: scale(.7); transition: opacity .35s var(--ease-pop), transform .35s var(--ease-pop); }
.aw-row .bdg.is-in { opacity: 1; transform: none; }
.aw-row.is-sel { background: var(--side-sel); color: #fff; font-weight: 600; }
.aw-row.is-sel .bdg { color: rgb(255 255 255 / .85); }
.aw-disk {
  margin: 10px; padding: 12px; border-radius: 12px; display: grid; gap: 8px; font-size: 12px;
  background: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: inset 0 0 0 1px var(--card-border);
}
.aw-disk .r { display: flex; justify-content: space-between; } .aw-disk b { font-weight: 600; } .aw-disk .m { color: var(--ink-2); }
.aw-meter { height: 6px; border-radius: 999px; background: var(--hairline); overflow: hidden; }
.aw-meter i { display: block; height: 100%; border-radius: inherit; background: var(--meter); width: var(--used, 65%); transition: width 1s var(--ease-out); }

/* Content */
.aw-main { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--ground); }
.aw-main::before { /* BrandBackground: the page tint fading out by 45% of the height */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(color-mix(in srgb, var(--tint, #3CC8D8) 13%, transparent), transparent 45%);
}
.aw-bar { position: absolute; inset: 0 0 auto; height: 52px; z-index: 6; display: flex; align-items: center; gap: 10px; padding-block: 0; padding-inline: 20px 12px; pointer-events: none; }
.aw-bar .title { font-size: 15px; font-weight: 600; color: var(--ink); }
.aw-bar .tools { margin-inline-start: auto; display: flex; gap: 8px; }
.aw-tbtn {
  height: 34px; min-width: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: 0 0 0 1px var(--card-border), 0 1px 3px var(--shadow-contact);
  transition: opacity .3s, transform .3s var(--ease-pop);
}
.aw-tbtn.round { padding: 0; }
.aw-tbtn svg { width: 16px; height: 16px; }
.aw-tbtn.is-hidden { opacity: 0; transform: scale(.9); }

/* One page of the window at a time: each view fades in with a hint of scale, like the app's phase transition. */
.aw-view {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: scale(.985);
  transition: opacity .32s ease-out, transform .32s ease-out, visibility 0s .32s;
}
.aw-view.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .32s ease-out, transform .32s ease-out, visibility 0s; }

/* Reveal inside a view: order --o, 70 ms apart, spring-like. Played when the view turns on. */
.aw .rv { opacity: 1; transform: none; }
.aw.is-live .aw-view:not(.is-shown) .rv { opacity: 0; transform: translateY(var(--rv, 12px)); }
.aw.is-live .aw-view.is-shown .rv { transition: opacity .55s var(--ease-out) calc(var(--o, 0) * 70ms), transform .55s cubic-bezier(.3, 1.35, .5, 1) calc(var(--o, 0) * 70ms); }

/* Generic app parts */
.x-card {
  background: linear-gradient(180deg, var(--card-sheen), transparent 40%), var(--card);
  border-radius: 16px; position: relative;
  box-shadow: inset 0 0 0 1px var(--card-border), inset 0 1px 0 var(--card-highlight), 0 1px 1px var(--shadow-contact), 0 5px 10px var(--shadow-ambient);
}
.x-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; white-space: nowrap;
  height: 40px; min-width: 96px; padding: 0 22px; font-size: 14px; font-weight: 600; color: #fff;
  background: var(--action); box-shadow: 0 4px 7px rgb(36 88 194 / .22);
  transition: transform .12s var(--ease-pop), filter .15s, box-shadow .15s;
}
.x-btn.big { height: 44px; min-width: 168px; font-size: 15px; }
.x-btn.mid { height: 36px; }
.x-btn.is-hover { background: var(--action-hover); box-shadow: 0 6px 10px rgb(36 88 194 / .32); }
.x-btn.is-press { transform: scale(.96); background: var(--action-pressed); }
.x-btn.off { background: var(--control); color: var(--ink-3); box-shadow: none; }
.x-sec {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink); background: var(--control); white-space: nowrap;
  transition: transform .12s var(--ease-pop), background .15s;
}
.x-sec.h40 { height: 40px; } .x-sec.h26 { height: 26px; font-size: 12px; padding: 0 10px; }
.x-sec svg { width: 13px; height: 13px; }
.x-sec.is-hover { background: var(--control-hover); }
.x-sec.is-press { transform: scale(.96); background: var(--control-pressed); }
.x-native { /* a classic bordered macOS push button (Cancel, Edit…) */
  display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--ink);
  background: var(--card); box-shadow: 0 0 0 .5px rgb(0 0 0 / .12), 0 1px 2px rgb(0 0 0 / .12); white-space: nowrap;
}
:root[data-theme="dark"] .x-native { background: #4A4F57; box-shadow: inset 0 1px 0 rgb(255 255 255 / .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .x-native { background: #4A4F57; box-shadow: inset 0 1px 0 rgb(255 255 255 / .1); } }
.x-link { color: var(--link); font-size: 13px; font-weight: 500; white-space: nowrap; }
.x-tag { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 6px; white-space: nowrap; }
.x-tag.ok { color: var(--success); background: var(--success-bg); }
.x-tag.warn { color: var(--warning); background: var(--warning-bg); }
.x-tag.bad { color: var(--danger); background: var(--danger-bg); }
.x-tag.neu { color: var(--ink-2); background: var(--control); }
.x-sep { height: 1px; background: var(--separator); }
.x-cb { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.x-cb .on, .x-cb .some { display: none; }
.is-on > .x-cb .on, .x-cb.is-on .on { display: block; } .is-on > .x-cb .off, .x-cb.is-on .off { display: none; }
.is-some > .x-cb .some, .x-cb.is-some .some { display: block; } .is-some > .x-cb .off, .x-cb.is-some .off { display: none; }
.x-cb.is-on, .is-on > .x-cb, .x-cb.is-some, .is-some > .x-cb { color: var(--tick, var(--accent)); }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: conic-gradient(from 0deg, transparent 0 15%, var(--ink-3) 90%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 2px));
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.mono { font-family: var(--mono); }

/* Page header used by every tool page: 64 pt glass icon tile, 28 pt bold title, intro, a figure on the trailing side. */
.p-head { display: flex; align-items: center; gap: 16px; }
.p-tile {
  width: 64px; height: 64px; border-radius: 18px; flex: none; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--card-sheen), transparent 45%), var(--card);
  box-shadow: inset 0 0 0 1px var(--card-border), inset 0 1px 0 var(--card-highlight), 0 6px 12px color-mix(in srgb, var(--tint) 22%, transparent);
}
.p-tile svg { width: 40px; height: 40px; }
.p-title { font-size: 28px; font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.p-sub { font-size: 14px; color: var(--ink-2); margin-top: 4px; max-width: 560px; }
.p-fig { margin-inline-start: auto; text-align: end; flex: none; }
.p-fig b { display: block; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.3px; line-height: 1.1; }
.p-fig span { font-size: 13px; color: var(--ink-2); }
.p-fig span.bad { color: var(--danger); }

/* Bottom action bar */
.x-action {
  position: relative; z-index: 2; margin-top: auto; height: 76px; flex: none; display: flex; align-items: center; gap: 16px; padding-block: 0; padding-inline: 32px 24px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 -1px 0 var(--card-border), 0 -2px 10px rgb(0 0 0 / .06);
}
.x-action .t { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.x-action .n { font-size: 13px; color: var(--ink-2); }
.x-action .go { margin-inline-start: auto; display: flex; gap: 10px; }

/* The fake pointer */
.aw-cursor {
  position: absolute; left: 0; top: 0; z-index: 40; width: 24px; height: 24px; pointer-events: none;
  transform: translate(var(--cx, 900px), var(--cy, 900px)); opacity: 0;
  transition: transform 1s var(--ease-move), opacity .35s;
}
.aw-cursor.is-in { opacity: 1; }
.aw-cursor.is-fast { transition-duration: .7s, .35s; }
.aw-cursor svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .32)); transform-origin: 3px 2px; transition: transform .12s; }
.aw-cursor.is-click svg { transform: scale(.84); }
.aw-cursor .ring { position: absolute; left: -12px; top: -12px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; }
.aw-cursor.is-click .ring { animation: ring .55s var(--ease-out); }
@keyframes ring { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }

/* Window-modal sheet */
.aw-scrim { position: absolute; inset: 0; z-index: 20; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .3s; }
.aw-scrim.is-in { opacity: 1; }
.aw-sheet {
  position: absolute; z-index: 21; top: 64px; left: 0; right: 0; margin-inline: auto; width: 480px; padding: 24px; border-radius: 22px;
  background: linear-gradient(180deg, var(--card-sheen), transparent 40%), var(--card); box-shadow: var(--sheet-shadow), inset 0 1px 0 var(--card-highlight);
  display: grid; gap: 18px;
  opacity: 0; visibility: hidden; transform: translateY(-16px) scale(.96);
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}
.aw-sheet.is-in { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease-out), transform .45s var(--ease-out), visibility 0s; }

/* The paused state of a mock: everything stands still. */
.is-paused .aw *, .is-paused .aw *::before, .is-paused .aw *::after, .is-paused.aw *, .is-paused.aw *::after { animation-play-state: paused !important; }

/* ---------- Hero window: Smart Scan screens ---------- */

/* Home */
.v-home { align-items: center; padding: 24px; }
.v-home .bubbles { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;
  -webkit-mask: linear-gradient(transparent, #000 20%); mask: linear-gradient(transparent, #000 20%); }
.v-home .bubble { --a: .42; }
.v-home > * { position: relative; z-index: 1; }
.v-home .sp1 { flex: 1 1 12px; min-height: 12px; max-height: 90px; }
.v-home .sp2 { flex: 1 1 20px; min-height: 20px; }
.home-title { display: grid; gap: 10px; justify-items: center; text-align: center; }
.home-title b { font-size: 34px; font-weight: 700; letter-spacing: -.4px; line-height: 1.15; }
.home-title p { font-size: 15px; color: var(--ink-2); max-width: 540px; line-height: 1.3; }
.orb { position: relative; width: 260px; height: 260px; margin: 12px 0; display: grid; place-items: center; }
.orb > * { grid-area: 1 / 1; border-radius: 50%; position: relative; }
.orb .glow { width: 260px; height: 260px; background: radial-gradient(circle, rgb(60 200 216 / .24) 15%, rgb(70 214 168 / .10) 35%, transparent 50%); animation: breathe 2.6s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(.97); } to { transform: scale(1.05); } }
.orb .band { width: 212px; height: 212px; padding: 2.5px;
  background: conic-gradient(from 0deg, rgb(60 200 216 / 0), rgb(60 200 216 / .7), rgb(70 214 168 / 0), rgb(47 127 224 / .55), rgb(60 200 216 / 0));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  animation: turn 16s linear infinite; }
@keyframes turn { to { transform: rotate(1turn); } }
.orb .plate { width: 208px; height: 208px; background: color-mix(in srgb, var(--card) 45%, transparent); box-shadow: inset 0 0 0 1px rgb(60 200 216 / .22), inset 0 1px 0 rgb(255 255 255 / .4), 0 4px 16px var(--shadow-ambient);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.orb .disc {
  width: 168px; height: 168px; display: grid; place-content: center; text-align: center; color: #fff; gap: 4px;
  background: var(--action); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22), 0 10px 32px rgb(36 88 194 / .28);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), background .18s, box-shadow .18s;
}
.orb .disc b { font-size: 24px; font-weight: 600; line-height: 1.1; }
.orb .disc span { font-size: 12px; font-weight: 500; opacity: .9; }
.orb .disc.is-hover { transform: scale(1.03); background: var(--action-hover); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22), 0 10px 40px rgb(36 88 194 / .38); }
.orb .disc.is-press { transform: scale(.96); }
.never { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); text-align: center; }
.never svg { width: 14px; height: 14px; color: #1E9AA6; flex: none; }
.sched { width: 100%; max-width: 860px; display: flex; align-items: center; gap: 14px; padding: 12px 20px; margin-bottom: 12px; }
.sched > svg { width: 24px; height: 24px; color: var(--ink-2); flex: none; }
.sched .t { flex: 1; display: grid; gap: 3px; } .sched .t b { font-size: 13px; font-weight: 600; } .sched .t span { color: var(--ink-2); }
.sched .menu { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding-block: 0; padding-inline: 10px 6px; border-radius: 6px; background: var(--control); font-size: 13px; }
.sched .menu svg { width: 10px; height: 10px; }
.strip { width: 100%; max-width: 860px; display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; align-items: center; }
.strip > div:not(.vr) { padding: 16px 20px; display: grid; gap: 4px; }
.strip .vr { height: 36px; background: var(--separator); }
.strip .k { font-size: 12px; color: var(--ink-2); }
.strip .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; }
.strip .fda b { font-size: 12px; font-weight: 600; color: var(--success); } .strip .fda span { color: var(--ink-2); }

/* Scanning */
.v-scan { align-items: center; padding: 32px; gap: 24px; justify-content: center; }
.scan-title { display: grid; gap: 8px; text-align: center; }
.scan-title b { font-size: 30px; font-weight: 700; line-height: 1.15; } .scan-title span { font-size: 15px; color: var(--ink-2); }
.ring { position: relative; width: 164px; height: 164px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .trk { fill: none; stroke: var(--hairline); }
.ring .arc { fill: none; stroke: url(#g-ring); stroke-linecap: round; transition: stroke-dashoffset .5s ease-out; }
.ring .spinarc { fill: none; stroke: rgb(60 200 216 / .55); stroke-linecap: round; transform-origin: 50% 50%; animation: turn 1.4s linear infinite; }
.ring .fig { position: relative; font: 600 26px/1 ui-rounded, var(--display); font-variant-numeric: tabular-nums; }
.ring .cap { position: absolute; top: 58%; font-size: 12px; color: var(--ink-2); }
.tiles { width: 100%; max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 14px; }
.tile svg.g { width: 34px; height: 34px; flex: none; transition: opacity .25s, transform .25s; }
.tile .t { flex: 1; min-width: 0; display: grid; gap: 3px; } .tile .t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t span { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tile .st { width: 18px; height: 18px; display: grid; place-items: center; flex: none; }
.tile .st .spinner { display: none; } .tile .st .ok { display: none; width: 18px; height: 18px; color: var(--success); }
.tile.is-wait svg.g { opacity: .45; }
.tile.is-busy svg.g { transform: scale(1.06); } .tile.is-busy .st .spinner { display: block; }
.tile.is-done .st .ok { display: block; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.tile::before { /* the category's colour marks the tile being worked on */
  content: ""; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--tint); opacity: 0; transition: opacity .25s;
}
.tile.is-busy::before { opacity: 1; }
.tile::after { /* shimmer */
  content: ""; position: absolute; inset: 0; width: 60%; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tint) 9%, transparent), transparent);
  transform: translateX(-100%); opacity: 0;
}
.tile.is-busy::after { opacity: 1; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(240%); } }

/* Results */
.v-results .scroll { flex: 1; min-height: 0; padding: 60px 32px 24px; display: grid; align-content: start; gap: 20px; }
.res-head b { display: flex; gap: 9px; align-items: baseline; font-size: 34px; font-weight: 700; letter-spacing: -.4px; line-height: 1.15; }
.res-head p { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 16px; align-items: stretch; }
.ccard { padding: 18px; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 8px; transition: transform .15s ease-out, box-shadow .15s; }
.ccard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tint) 50%, transparent); opacity: 0; transition: opacity .2s; pointer-events: none; }
.ccard.is-on::after, .ccard.is-some::after { opacity: 1; }
.ccard .top { display: flex; align-items: flex-start; justify-content: space-between; }
.ccard .top > svg.g { width: 44px; height: 44px; }
.ccard .top .x-cb { --tick: var(--tint); }
.ccard.is-on .x-cb .on, .ccard.is-some .x-cb .some { display: block; }
.ccard.is-on .x-cb .off, .ccard.is-some .x-cb .off { display: none; }
.ccard.is-on .x-cb, .ccard.is-some .x-cb { color: var(--tint); }
.ccard .nm { font-size: 15px; font-weight: 600; margin-top: 4px; }
.ccard .fig { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ccard .x-sep { align-self: end; }
.ccard .ft { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; padding-top: 4px; }
.ccard .ft .ok { color: var(--success); } .ccard .ft .warn { color: var(--warning); }
.ccard .ft .x-link { font-weight: 500; }
.ccard.is-hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--card-border), inset 0 1px 0 var(--card-highlight), 0 2px 4px var(--shadow-contact), 0 14px 26px var(--shadow-lifted); }
.ccard.empty .fig { color: var(--ink-2); } .ccard.empty svg.g { opacity: .55; }
.ccard .note { font-size: 13px; font-weight: 400; color: var(--ink-2); line-height: 1.3; }

/* Confirm sheet */
.cs-head { display: flex; align-items: center; gap: 14px; }
.cs-head .logo { width: 48px; height: 48px; }
.cs-head b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.2px; }
.cs-head span { color: var(--ink-2); }
.cs-list { padding: 4px 12px; border-radius: 10px; background: var(--sunken); }
:root[data-theme="dark"] .cs-list { background: var(--sunken); }
.cs-list div { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.cs-list div + div { border-top: 1px solid var(--separator); }
.cs-list svg { width: 22px; height: 22px; }
.cs-list .s { margin-inline-start: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cs-note { display: flex; gap: 8px; align-items: flex-start; }
.cs-note svg { width: 20px; height: 20px; flex: none; }
.cs-acts { display: flex; align-items: center; }
.cs-acts .x-btn { margin-inline-start: auto; }

/* Cleaning */
.v-clean { align-items: center; justify-content: center; padding: 32px; gap: 24px; }
.v-clean .ring { width: 150px; height: 150px; }
.v-clean .ring .arc { stroke: url(#g-ring-v); transition: stroke-dashoffset .3s ease-out; }
.v-clean .ring .fig { display: grid; justify-items: center; gap: 2px; }
.v-clean .ring .fig small { font: 400 12px var(--body); color: var(--ink-2); }
.v-clean > b { font-size: 30px; font-weight: 700; }
.clist { width: 460px; padding: 0; }
.clist > div { display: flex; align-items: center; gap: 12px; padding: 9px 14px; }
.clist > div + div { border-top: 1px solid var(--separator); }
.clist svg.g { width: 28px; height: 28px; transition: opacity .3s; }
.clist .lbl { flex: 1; transition: color .3s; }
.clist .st { width: 18px; height: 18px; display: grid; place-items: center; }
.clist .st > * { display: none; }
.clist .st .dash { width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed var(--ink-3); opacity: .6; }
.clist .st .ok { width: 18px; height: 18px; color: var(--success); }
.clist .s0 svg.g { opacity: .45; } .clist .s0 .lbl { color: var(--ink-2); } .clist .s0 .dash { display: block; }
.clist .s1 .spinner { display: block; } .clist .s2 .ok { display: block; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.cpath { font-size: 11px; color: var(--ink-3); max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 15px; }

/* Report */
.v-report { align-items: center; padding: 16px 64px 24px; gap: 24px; justify-content: center; }
.v-report .sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.v-report > *:not(.sparkles) { position: relative; z-index: 1; }
.done-mark { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.done-mark::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgb(70 214 168 / .30) 10%, rgb(70 214 168 / .06) 45%, transparent 50%); }
.done-mark i { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2.5px #2FB487; display: grid; place-items: center; color: var(--success); }
.done-mark i svg { width: 24px; height: 24px; }
.done-mark .burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.spark {
  position: absolute; width: var(--r, 10px); height: var(--r, 10px); margin: calc(var(--r, 10px) / -2);
  background: var(--c, #3CC8D8);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.done-mark .spark { opacity: 0; }
.is-burst .done-mark .spark { animation: burst 1.5s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes burst {
  0% { opacity: 0; transform: translate(calc(var(--dx) * .25), calc(var(--dy) * .25)) scale(1); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.5); }
}
.twinkle { position: absolute; left: var(--x); top: var(--y); opacity: 0; animation: twinkle var(--t, 5s) ease-in-out var(--delay, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: translateY(0) scale(.6) rotate(0); } 50% { opacity: .7; transform: translateY(-18px) scale(1) rotate(30deg); } 99% { transform: translateY(-36px) scale(.6) rotate(60deg); } }
.rep-title { display: grid; gap: 8px; text-align: center; justify-items: center; }
.rep-title b { font-size: 34px; font-weight: 700; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.rep-title p { font-size: 15px; color: var(--ink-2); max-width: 540px; line-height: 1.3; }
.rlist { width: 560px; }
.rlist > div { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px; font-size: 14px; }
.rlist > div + div { border-top: 1px solid var(--separator); }
.rlist svg.g { width: 30px; height: 30px; }
.rlist .lbl { flex: 1; } .rlist .s { font-variant-numeric: tabular-nums; }
.rlist .ok { width: 13px; height: 13px; color: var(--success); }
.rep-acts { display: flex; align-items: center; gap: 12px; }
.rep-acts .x-link { padding: 0 8px; }

/* ---------- Feature mocks (content-only windows) ---------- */

.aw-page { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; }
.aw-page .pad { flex: 1; min-height: 0; padding: 60px 32px 20px; display: flex; flex-direction: column; gap: 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 4px 0 2px; }
.facts div { display: flex; gap: 8px; }
.facts svg { width: 16px; height: 16px; flex: none; color: var(--warning); margin-top: 1px; }
.facts b { display: block; font-size: 13px; font-weight: 600; } .facts span { font-size: 13px; color: var(--ink-2); }
.facts div + div svg { color: #E07E3A; }
.tbar { display: flex; align-items: center; gap: 10px; }
.tbar .sel { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.tbar .sel svg.chev { width: 9px; height: 9px; }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--control); }
.seg span { padding: 4px 14px; border-radius: 6px; font-size: 13px; color: var(--ink); white-space: nowrap; transition: background .25s, color .25s; }
.seg span.is-on { background: var(--side-sel); color: #fff; }
.seg.wide span { padding-inline: 18px; }
.filter { display: inline-flex; align-items: center; gap: 6px; height: 30px; width: 180px; padding: 0 10px; border-radius: 8px; background: var(--card); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--card-border); }
.filter svg { width: 13px; height: 13px; }
.grow { flex: 1; }
.rows { padding: 6px 16px; flex: 1; min-height: 0; overflow: hidden; }
.rowx { display: flex; align-items: center; gap: 12px; padding: 9px 0; transition: background .3s; }
.rowx + .rowx { border-top: 1px solid var(--separator); }
.rowx .ic { width: 22px; height: 22px; flex: none; color: var(--ink-3); }
.rowx .nm { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rowx .nm b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowx .nm span { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowx .sz { min-width: 64px; text-align: end; font-size: 14px; font-variant-numeric: tabular-nums; }
.rowx .open { width: 13px; height: 13px; color: var(--ink-3); flex: none; }
.rowx.grp .nm b { font-weight: 600; }
.rowx .chev { width: 10px; height: 10px; color: var(--ink-3); flex: none; }
.rowx.is-hover { background: color-mix(in srgb, var(--control) 60%, transparent); }
.rowx.is-leaving { opacity: 0; transform: translateX(16px); transition: opacity .35s, transform .45s var(--ease-out); }
.rowx.is-gone { display: none; }
.rowx.is-new { animation: row-in .5s var(--ease-out) both; animation-delay: var(--rd, 0ms); }
.tip {
  position: absolute; z-index: 25; max-width: 360px; padding: 6px 9px; border-radius: 7px; font-size: 12px; line-height: 1.35; color: var(--ink);
  background: var(--card); box-shadow: 0 6px 20px var(--shadow-lifted), 0 0 0 1px var(--card-border);
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s var(--ease-out); pointer-events: none;
}
.tip.is-in { opacity: 1; transform: none; }
.tip .mono { display: block; color: var(--ink-2); font-size: 11px; margin-top: 3px; }

/* Grouped lists */
.lgrp { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 12px 0 2px; }
.lgrp span + span { font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rowx .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; margin-inline: 6px; }
.rowx .ver { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.rowx .ver em { font-style: normal; font-weight: 600; color: var(--success); }
.rowx.is-sel { background: color-mix(in srgb, var(--side-sel) 14%, transparent); }
.dpad { padding: 60px 28px 20px; }
.x-sec.is-done { color: var(--success); }

/* Uninstaller */
.appi {
  width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 700;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .12), 0 1px 2px rgb(0 0 0 / .14);
}
.appi.big { width: 52px; height: 52px; border-radius: 12px; font-size: 24px; }
.pane-empty { display: none; flex: 1; place-items: center; padding: 24px; text-align: center; color: var(--ink-3); font-size: 13px; }
.pane { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.aw.u-empty .pane-empty { display: grid; }
.aw.u-empty .pane { display: none; }
.aw.u-open .pane { animation: pane-in .45s var(--ease-out); }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } }
.files { padding: 2px 18px 10px; flex: 1; min-height: 0; overflow: hidden; }
.fgrp { font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 10px 0 0; }
.files .rowx { padding: 6px 0; }
.files .rowx .nm b { font-size: 13px; }
.files .rowx .sz { font-size: 13px; }

/* Findings (This Mac, Servers, Websites) */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sev-h { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 10px 0 2px; }
.frow { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 0; font-size: 13px; transition: opacity .35s, transform .45s var(--ease-out); }
.frow + .frow { border-top: 1px solid var(--separator); }
.frow .chev { width: 10px; height: 10px; color: var(--ink-3); flex: none; transition: transform .3s var(--ease-out); }
.frow .ft { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow .cat { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.frow .x-native { height: 24px; padding: 0 10px; font-size: 12px; }
.frow .fixing { display: none; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.frow.is-fixing .fixing { display: inline-flex; }
.frow.is-fixing .x-native { display: none; }
.frow.is-open .chev { transform: rotate(90deg); }
.frow.is-leaving { opacity: 0; transform: translateX(16px); }
.frow.is-gone, .sev-h.is-gone { display: none; }
.frow.is-new { animation: row-in .5s var(--ease-out) both; animation-delay: var(--rd, 0ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }
.code { padding: 8px 10px; border-radius: 8px; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--card-border); }
.fixbox .k { display: block; font: 600 11px/1.3 var(--body); color: var(--ink-2); margin-bottom: 4px; }
.fdetail { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease-out); }
.aw.is-live .fdetail:not(.is-open) { grid-template-rows: 0fr; }
.fdetail > .in { min-height: 0; overflow: hidden; display: grid; gap: 8px; padding-inline-start: 20px; }
.fdetail > .in > :first-child { margin-top: 2px; }
.fdetail > .in > :last-child { margin-bottom: 10px; }
.fdetail p { font-size: 12.5px; color: var(--ink-2); }

/* This Mac */
.mac-sum { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.score { position: relative; width: 54px; height: 54px; display: grid; place-items: center; flex: none; }
.score svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.score [data-score-arc] { transition: stroke-dashoffset .9s var(--ease-out); }
.score b { position: relative; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fixed-card { display: none; align-items: center; gap: 12px; padding: 10px 16px; }
.aw.m-fixed .fixed-card { display: flex; animation: pane-in .5s var(--ease-out); }
.okc { width: 22px; height: 22px; color: var(--success); flex: none; }

/* Servers */
.srv-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 14px 18px; }

/* Websites */
.web-top { display: flex; align-items: center; gap: 12px; }
.web-sum { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.grade {
  width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font: 700 28px/1 ui-rounded, var(--display); color: #fff; background: var(--danger);
  transition: opacity .3s, transform .45s cubic-bezier(.3, 1.5, .5, 1);
}
.grade.is-wait { opacity: .25; transform: scale(.85); background: var(--ink-3); }
.x-btn .spinner { width: 14px; height: 14px; background: conic-gradient(from 0deg, transparent 0 15%, currentColor 90%); }
.x-btn.off .spinner { display: block; }

/* ---------- Page layout: split feature sections ---------- */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .copy { order: 2; }
.copy { display: grid; gap: 18px; align-content: start; }
.copy .lead { max-width: 30em; }
.points { display: grid; gap: 14px; padding: 0; margin: 8px 0 0; list-style: none; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.points svg { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.mock { position: relative; }
.mock::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent 80%); opacity: .7; pointer-events: none; }
.mock .win-fit { --fit-max: 760px; }
@media (max-width: 980px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .mock::before { inset: -8% 0; }
  .split.flip > .copy { order: 0; }
}

/* ---------- What it fixes ---------- */

.fixes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; padding: 0; list-style: none; }
.fix {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: center; padding: 22px; color: var(--ink); text-decoration: none; height: 100%;
  transition: transform .25s var(--ease-pop), box-shadow .25s;
}
.fix:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--card-highlight), 0 1px 2px var(--shadow-contact), 0 18px 36px -12px var(--shadow-lifted); }
.fix .tile32 { grid-column: 1; grid-row: 1 / 3; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--card-sheen), transparent 45%), var(--card); box-shadow: inset 0 0 0 1px var(--card-border), inset 0 1px 0 var(--card-highlight), 0 6px 14px color-mix(in srgb, var(--tint) 25%, transparent); }
.fix .tile32 svg { width: 34px; height: 34px; }
.fix b { grid-column: 2; grid-row: 1; align-self: end; font: 650 18px/1.2 var(--display); letter-spacing: -.01em; }
.fix > span:not(.tile32) { grid-column: 2; grid-row: 2; align-self: start; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.fix .go { grid-row: 1 / 3; grid-column: 3; width: 16px; height: 16px; color: var(--ink-3); transition: transform .25s var(--ease-pop), color .25s; }
.fix:hover .go { transform: translateX(3px); color: var(--accent); }
@media (max-width: 980px) { .fixes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fixes { grid-template-columns: 1fr; } }

/* ---------- Always current ---------- */

.current { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 56px; }
.feed { padding: 8px 8px 0; overflow: hidden; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; }
.feed-head b { font-size: 15px; font-weight: 600; }
.feed-head span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.feed ol { margin: 0; padding: 0 8px; list-style: none; }
.feed li { display: grid; grid-template-columns: 96px 150px 1fr auto; gap: 12px; align-items: center; padding: 12px 8px; border-top: 1px solid var(--separator); font-size: 14px; }
.feed time { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.feed .cve { font-family: var(--mono); font-size: 12.5px; color: var(--danger); }
.feed .nm { color: var(--ink); min-width: 0; }
.feed .where { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap; background: var(--control); color: var(--ink-2); }
.feed-foot { padding: 14px 16px 18px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--separator); }
.js .feed li.rv-item { opacity: 0; transform: translateY(8px); }
.js .feed.is-in li.rv-item { opacity: 1; transform: none; transition: opacity .6s var(--ease-out) calc(var(--i) * 90ms + 200ms), transform .7s var(--ease-out) calc(var(--i) * 90ms + 200ms); }
.facts-list { display: grid; gap: 22px; padding: 0; margin: 0; list-style: none; }
.facts-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.facts-list .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.facts-list .ico svg { width: 20px; height: 20px; }
.facts-list b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.facts-list p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 980px) { .current { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .feed li { grid-template-columns: 1fr auto; gap: 2px 10px; } .feed time { grid-column: 1; } .feed .cve { grid-column: 1; } .feed .nm { grid-column: 1; } .feed .where { grid-column: 2; grid-row: 1 / 4; } }

/* ---------- Keyboard ---------- */

.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; padding: 0; list-style: none; }
.key { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 18px; }
.key span { font-size: 15px; color: var(--ink-2); }
.key kbd { display: inline-flex; gap: 4px; }
.key kbd i {
  font: 500 14px/1 var(--body); font-style: normal; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 8px; display: grid; place-items: center; color: var(--ink);
  background: linear-gradient(180deg, var(--card), var(--sunken)); box-shadow: inset 0 0 0 1px var(--card-border), 0 2px 0 var(--hairline), inset 0 1px 0 var(--card-highlight);
}
@media (max-width: 980px) { .keys { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .keys { grid-template-columns: 1fr; } }

/* ---------- Everything else ---------- */

.more { columns: 3 260px; column-gap: 40px; margin: 48px 0 0; padding: 0; list-style: none; }
.more li { break-inside: avoid; display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--separator); font-size: 15px; color: var(--ink-2); }
.more li strong { color: var(--ink); font-weight: 600; }
.more svg { width: 18px; height: 18px; color: var(--success); margin-top: 2px; }

/* ---------- Promises ---------- */

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; padding: 0; list-style: none; }
.promise { padding: 28px; display: grid; gap: 12px; align-content: start; }
.promise .n { font: 700 15px/1 var(--mono); color: var(--accent); }
.promise b { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; }
.promise p { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.stat { padding: 22px 26px; border-radius: 22px; display: grid; gap: 4px; }
.stat b { font: 700 34px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */

.pricing { position: relative; }
.pricing::before { content: ""; position: absolute; left: 50%; top: 45%; width: min(1100px, 100%); height: 700px; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(60 200 216 / .22), rgb(47 127 224 / .08) 55%, transparent); }
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; margin-top: 56px; align-items: stretch; max-width: 940px; margin-inline: auto; }
.plan { padding: 32px; display: grid; gap: 18px; align-content: start; border-radius: 28px; }
.plan .name { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.plan .price { display: flex; align-items: baseline; gap: 10px; }
.plan .price b { font: 700 64px/1 var(--display); letter-spacing: -.04em; }
.plan .price span { font-size: 15px; color: var(--ink-2); }
.plan ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; color: var(--success); margin-top: 2px; }
.plan .btn { justify-self: start; margin-top: 4px; }
.plan.pro { box-shadow: inset 0 1px 0 var(--card-highlight), 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent), 0 30px 60px -24px rgb(36 88 194 / .35); }
.plan .launch { display: inline-flex; align-self: start; justify-self: start; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.plan .was { font-size: 14px; color: var(--ink-3); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 48px auto 0; display: grid; gap: 10px; }
.qa { border-radius: 18px; padding: 0; }
.qa h3 { margin: 0; }
.qa button {
  -webkit-appearance: none; appearance: none; width: 100%; background: none; border: 0; cursor: pointer; color: var(--ink); text-align: start;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font: 600 17px/1.35 var(--display); letter-spacing: -.01em;
}
.qa button svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; transition: transform .45s var(--ease-out); }
.qa button[aria-expanded="true"] svg { transform: rotate(45deg); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.qa .ans > div { overflow: hidden; }
.qa .ans p { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.5px; }
.qa.is-open .ans { grid-template-rows: 1fr; }
.no-js .qa .ans, html:not(.js) .qa .ans { grid-template-rows: 1fr; }

/* ---------- Download ---------- */

.get { text-align: center; }
.get .wrap { display: grid; justify-items: center; gap: 20px; }
.get .logo { width: 96px; height: 96px; filter: drop-shadow(0 18px 30px rgb(36 88 194 / .3)); }
.soon { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.soon span { padding: 4px 10px; border-radius: 999px; background: var(--control); color: var(--ink-2); }
.soon b { font-weight: 600; color: var(--ink-3); margin-inline-end: 4px; }

/* ---------- Footer ---------- */

.foot { margin-top: clamp(96px, 12vw, 150px); padding: 48px 0 56px; border-top: 1px solid var(--separator); font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot h4 { font: 600 13px/1 var(--body); color: var(--ink); margin: 6px 0 14px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.foot a { color: var(--ink-2); text-decoration: none; } .foot a:hover { color: var(--ink); }
.foot .about { margin-top: 14px; max-width: 36em; }
.foot .ctrls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.appearance { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--control); box-shadow: inset 0 0 0 1px var(--card-border); }
.appearance button {
  -webkit-appearance: none; appearance: none; border: 0; background: none; cursor: pointer; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font: 500 13px var(--body);
}
.appearance button svg { width: 15px; height: 15px; }
.appearance button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px var(--shadow-contact), inset 0 0 0 1px var(--card-border); }
.langpick { position: relative; display: inline-flex; align-items: center; height: 36px; border-radius: 999px; background: var(--control); box-shadow: inset 0 0 0 1px var(--card-border); color: var(--ink-2); }
.langpick .globe { position: absolute; inset-inline-start: 12px; width: 16px; height: 16px; pointer-events: none; }
.langpick .chev { position: absolute; inset-inline-end: 12px; width: 11px; height: 11px; pointer-events: none; }
.langpick select { -webkit-appearance: none; appearance: none; background: none; border: 0; color: var(--ink); font: 500 13px var(--body); height: 36px; padding-block: 0; padding-inline: 36px 32px; cursor: pointer; border-radius: 999px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.word { display: inline-block; }
.js [data-words]:not(.word-go) .word { opacity: 0; }
@keyframes word-in { from { opacity: 0; filter: blur(10px); transform: translateY(10px); } }
.js .is-in .word, .js .word-go .word { animation: word-in .7s var(--ease-out) var(--wd, 0ms) both; }

/* ---------- Arabic and German ---------- */

/* Arabic: the system's Arabic faces, no tracking (it breaks the joined letters), roomier lines. */
:root[lang="ar"] {
  --display: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", system-ui, "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
  --body: var(--display);
}
:root[lang="ar"] body { line-height: 1.7; }
:root[lang="ar"] body, :root[lang="ar"] body * { letter-spacing: 0 !important; }
:root[lang="ar"] .h1, :root[lang="ar"] .h2, :root[lang="ar"] .h2-split { line-height: 1.25; }
:root[lang="ar"] .eyebrow { text-transform: none; font-size: 14px; }
:root[lang="ar"] .aw { line-height: 1.4; }

/* Right to left: the layout mirrors through logical properties; what points or moves sideways is flipped here.
   Numbers, paths, commands and shortcuts stay left to right (.ltr). */
[dir="rtl"] { --meter: linear-gradient(270deg, var(--cyan), var(--blue)); }
[dir="rtl"] .chap .track i { transform-origin: right; }
[dir="rtl"] .badge .arrow, [dir="rtl"] .fix .go, [dir="rtl"] .rowx .chev, [dir="rtl"] .frow .chev { transform: scaleX(-1); }
[dir="rtl"] .fix:hover .go { transform: translateX(-3px) scaleX(-1); }
[dir="rtl"] .frow.is-open .chev { transform: scaleX(-1) rotate(90deg); }
[dir="rtl"] .rowx.is-leaving, [dir="rtl"] .frow.is-leaving { transform: translateX(-16px); }
[dir="rtl"] .tile.is-busy::after { animation-name: shimmer-rtl; }
@keyframes shimmer-rtl { from { transform: translateX(100%); } to { transform: translateX(-240%); } }
[dir="rtl"] .key kbd { direction: ltr; }
[dir="rtl"] .feed .cve, [dir="rtl"] .rowx .nm .ltr { text-align: right; }
/* macOS keeps the traffic lights at the window's top left in Arabic too: the sidebar moves to the right, so the
   lights sit in the toolbar, after the title and the toolbar buttons. */
[dir="rtl"] .aw-side .aw-lights i { visibility: hidden; }
[dir="rtl"] .aw-bar { padding-inline: 20px; }
[dir="rtl"] .aw-bar .title { margin-inline-end: auto; }
[dir="rtl"] .aw-bar .tools { order: 2; }
[dir="rtl"] .aw-bar > .aw-lights { order: 3; margin-inline: 4px 0 !important; }

/* German: long compound words may break in headings instead of running out of the column. */
:root[lang="de"] h1, :root[lang="de"] h2, :root[lang="de"] h3 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
:root[lang="de"] .word { max-width: 100%; }

/* ---------- Reduced motion: every section in its final state ---------- */

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .word, .bubble, .badge::before, .live::after, .orb .glow, .orb .band, .twinkle, .tile::after { animation: none !important; }
  .bubble, .twinkle { display: none; }
  .js .feed li.rv-item { opacity: 1; transform: none; }
  .aw * { transition: none !important; }
}
