/* OPTweaks Display: the wordmark's lettering as a typeface, drawn for OPTweaks (design\font\make_font.py).
   Capitals only. Black is the wordmark's own weight, for headlines; Bold and Medium are for the small things. */
@font-face { font-family: "OPTweaks Display"; src: url("fonts/OPTweaksDisplay-Black.ttf") format("truetype"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "OPTweaks Display"; src: url("fonts/OPTweaksDisplay-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "OPTweaks Display"; src: url("fonts/OPTweaksDisplay-Medium.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }

/* OPTweaks website and the working app preview.
   Light mode is white with a bright golden yellow. Dark mode is black with the same gold.
   Headings are Bahnschrift, the condensed face Windows ships; the rest is Segoe UI. */

/* ---------- 1. Colours ---------- */

:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF; --bg-2: #F7F7F5;
  --surface: #FFFFFF; --surface-2: #FAFAF8; --surface-3: #FFF3B0;
  --inset: #F5F5F2;
  --line: #ECEBE6; --line-strong: #D9D7CF;
  --text: #141412; --text-2: #4F4D47; --text-3: #77746B;
  --gold-a: #FFE680; --gold-b: #FFDF29; --gold-c: #F2CA05;
  --gold-text: #141412;
  --on-gold: #141412;
  --ok: #1B8F58; --warn: #D2601A; --bad: #CF3349;
  --shadow: 0 1px 2px rgba(20, 18, 10, .05), 0 12px 28px -14px rgba(20, 18, 10, .22);
  --shadow-lg: 0 34px 80px -34px rgba(20, 18, 10, .32), 0 2px 6px rgba(20, 18, 10, .05);
  --gold-glow: 0 10px 22px -12px rgba(20, 18, 10, .38);   /* a plain shadow: no yellow glow (owner, 15 November 2026) */
  --scrim: 255, 255, 255;
  --sky: linear-gradient(180deg, #ECEBE7, #FAFAF8 60%, #FFF3B0);
  --frame: linear-gradient(180deg, #FFFFFF, #F7F7F5);
  --flash: rgba(255, 231, 90, .55);
  --top: rgba(255, 255, 255, .86);
  --scrim-dialog: rgba(20, 18, 10, .34);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0B0A; --bg-2: #0F0F0E;
  --surface: #161615; --surface-2: #1E1D1B; --surface-3: #2C2817;
  --inset: #101010;
  --line: rgba(255, 230, 128, .12); --line-strong: rgba(255, 230, 128, .24);
  --text: #F7F6F0; --text-2: #BDBAB0; --text-3: #8E8B82;
  --gold-text: #FFE680;
  --on-gold: #141412;
  --ok: #55C98D; --warn: #F08A45; --bad: #F2647A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 30px -16px rgba(0, 0, 0, .85);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 230, 128, .06);
  --gold-glow: 0 12px 26px -12px rgba(0, 0, 0, .85);
  --scrim: 11, 11, 10;
  --sky: linear-gradient(180deg, #050505, #121110 58%, #3A3210);
  --frame: linear-gradient(180deg, #1B1B19, #0E0E0D);
  --flash: rgba(255, 226, 70, .4);
  --top: rgba(11, 11, 10, .84);
  --scrim-dialog: rgba(0, 0, 0, .66);
}

:root {
  --brand: linear-gradient(135deg, var(--gold-a) 0%, var(--gold-b) 46%, var(--gold-c) 100%);
  --edge: linear-gradient(135deg, #FFE680, #FFDF29 50%, #FFE680);
  --r1: 8px; --r2: 12px; --r3: 16px;
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "OPTweaks Display", Bahnschrift, "DIN Alternate", "Segoe UI Variable Display", "Segoe UI", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, "SF Mono", Consolas, monospace;
}

/* ---------- 2. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 100%) fixed; color: var(--text); font: 400 16px/1.6 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold-c); outline-offset: 2px; border-radius: var(--r1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.gold { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .gold { padding: 0 .08em; background: linear-gradient(transparent 58%, #FFE680 58%, #FFDF29 92%, transparent 92%); -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); -webkit-text-fill-color: currentColor; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* The logo: the OP emblem from the owner's sketch (14 November 2026), in the light yellow, on a
   small black tile so it reads on white as well as on black. The emblem keeps its own shape, 74 by 54. */
.logo { display: inline-grid; place-items: center; flex: none; width: 46px; height: 38px; padding: 7px 7px 6px; border-radius: 11px; background: linear-gradient(180deg, #1E1E1C, #0A0A09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 4px 12px -4px rgba(0, 0, 0, .35); }
.logo svg { display: block; width: 100%; height: 100%; overflow: visible; fill: url(#gold-mark); }
:root[data-theme="dark"] .logo { box-shadow: inset 0 0 0 1px rgba(255, 230, 128, .2); }
.word { font: 700 15.2px/1.13 var(--display); letter-spacing: 0; }
.word b { font-weight: 700; color: var(--text); }

/* ---------- 3. Buttons ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: 600 14px/1 var(--font); text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(20, 18, 10, .06); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease, filter .12s ease; }
.btn:hover { border-color: var(--gold-c); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; box-shadow: none; }
.btn-primary { border-color: rgba(20, 18, 10, .1); background: var(--brand); color: var(--on-gold); font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), var(--gold-glow); }
.btn-primary:hover { border-color: rgba(20, 18, 10, .18); background: var(--brand); filter: brightness(1.05) saturate(1.05); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); filter: brightness(.97); }
.btn-lg { height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15.5px; }
.btn-sm { height: 30px; padding: 0 11px; border-radius: 8px; font-size: 13px; }
.btn-quiet { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.btn-quiet:hover { color: var(--text); }
.arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: 600 15.5px/1 var(--font); text-decoration: none; }
.arrow .i { transition: transform .15s ease; }
.arrow:hover .i { transform: translateY(3px); }
.arrow:hover { color: var(--gold-text); }

/* ---------- 4. Top bar ---------- */

.top { position: sticky; top: 0; z-index: 40; background: var(--top); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.top nav { display: flex; gap: 2px; margin-left: 10px; }
.top nav a { padding: 8px 12px; border-radius: var(--r1); color: var(--text-2); font: 600 14px/1 var(--font); text-decoration: none; transition: color .12s ease, background .12s ease; }
.top nav a:hover { color: var(--text); background: var(--surface-2); }
.top-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mode { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.mode button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); font: 600 12.5px/1 var(--font); }
.mode button[aria-pressed="true"] { background: var(--brand); color: var(--on-gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.mode .i { width: 14px; height: 14px; }

/* ---------- 5. The start box ---------- */

.hero { position: relative; padding: 18px 0 0; }
.hero-flash { position: absolute; inset: -30px 0 -50px; z-index: 0; opacity: 0; pointer-events: none; background: radial-gradient(46% 70% at var(--at, 76%) 30%, var(--flash), transparent 70%); filter: blur(28px); }
.hero-window { position: relative; z-index: 1; width: min(1560px, 100% - 32px); margin-inline: auto; padding: 10px; border: 1.5px solid transparent; border-radius: 30px; background: var(--frame) padding-box, var(--edge) border-box; box-shadow: var(--shadow-lg); }
.hero-glass { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); min-height: clamp(520px, calc(100vh - 136px), 860px); overflow: hidden; border-radius: 20px; background: var(--sky); }
.hero-glass::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 4px 16px rgba(20, 18, 10, .12); }
:root[data-theme="dark"] .hero-glass::after { box-shadow: inset 0 0 0 1px rgba(255, 228, 84, .22), inset 0 4px 20px rgba(0, 0, 0, .5); }
#scene { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.hero-copy { position: relative; align-self: center; padding: clamp(40px, 6vw, 72px) 12% clamp(40px, 6vw, 72px) clamp(26px, 5.4vw, 84px); }
.hero-copy::before { content: ""; position: absolute; z-index: 1; top: -100vh; bottom: -100vh; left: 0; right: -16.7%; pointer-events: none; background: linear-gradient(90deg, rgba(var(--scrim), .97) 0, rgba(var(--scrim), .92) 60%, rgba(var(--scrim), 0) 100%); }
.hero-copy > * { position: relative; z-index: 3; }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-text); font: 700 13px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--brand); }
.hero h1 { margin-top: 22px; font: 900 clamp(26.6px, 3.5vw, 53.2px)/1.11 var(--display); letter-spacing: 0; text-transform: uppercase; }
.hero h1 .line { display: block; }
.hero h1 .gold { width: fit-content; padding-bottom: .06em; }
.hero-lead { max-width: 30em; margin-top: 22px; color: var(--text-2); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--text-2); font: 600 13px/1 var(--font); }
.hero-facts .i { width: 14px; height: 14px; color: var(--gold-text); }
/* The part of the box the picture is composed in: beside the words, or under them on a phone. */
.hero-pane { position: relative; z-index: 2; pointer-events: none; }

/* The film around the picture. The black bars of a cinema screen start closed, open as the
   title card fades, and hold; the lower bar carries the subtitle. Grain and a darker edge make
   it read as film, and the shot pushes in slowly. Calm motion gets the bars already open. */
.hero-glass { --lb: clamp(14px, 7%, 58px); }
#scene { transform-origin: 69% 62%; animation: push-in 28s ease-in-out 2.2s infinite alternate both; }
@keyframes push-in { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero-bar { position: absolute; z-index: 2; left: 0; right: 0; height: var(--lb); background: #050403; pointer-events: none; animation: bars-open 1.5s cubic-bezier(.7, 0, .2, 1) .8s both; }
.hero-bar.top { top: 0; box-shadow: 0 1px 0 rgba(255, 223, 41, .28); }
.hero-bar.bottom { bottom: 0; display: flex; align-items: center; justify-content: center; padding: 0 20px; box-shadow: 0 -1px 0 rgba(255, 223, 41, .28); }
@keyframes bars-open { from { height: 50.5%; } to { height: var(--lb); } }
.hero-sub { max-width: 46em; margin: 0; color: #FFF8CF; font: 500 clamp(13px, 1.12vw, 17px)/1.3 var(--font); letter-spacing: .01em; text-align: center; text-shadow: 0 1px 2px #000; opacity: 0; transition: opacity .5s ease; }
.hero-sub.on { opacity: 1; }
.hero-card { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; pointer-events: none; animation: card-out .6s ease .9s both; }
.hero-card span { color: #FFDF29; font: 900 clamp(18.2px, 2.4vw, 32.2px)/1.13 var(--display); letter-spacing: .096em; text-transform: uppercase; text-shadow: 0 0 24px rgba(255, 223, 41, .45); animation: card-in .7s ease both; }
.hero-card svg { width: clamp(58px, 6.4vw, 92px); aspect-ratio: 74 / 54; height: auto; margin-bottom: 8px; overflow: visible; fill: url(#gold-mark); filter: drop-shadow(0 0 16px rgba(255, 214, 0, .55)); animation: card-in .7s ease both; }
.hero-card small { color: rgba(255, 248, 207, .7); font: 600 12px/1 var(--font); letter-spacing: .5em; text-transform: uppercase; animation: card-in .7s ease .12s both; }
@keyframes card-in { from { opacity: 0; letter-spacing: .6em; } }
/* The words come in once the bars have opened, one after another, like opening titles. */
.hero-copy > * { animation: titles-in .8s ease both; }
.hero-copy > :nth-child(1) { animation-delay: 1.4s; } .hero-copy > :nth-child(2) { animation-delay: 1.55s; } .hero-copy > :nth-child(3) { animation-delay: 1.75s; }
.hero-copy > :nth-child(4) { animation-delay: 1.9s; } .hero-copy > :nth-child(5) { animation-delay: 2.05s; }
@keyframes titles-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes card-out { to { opacity: 0; visibility: hidden; } }
.hero-grain { position: absolute; z-index: 2; inset: -40px; pointer-events: none; opacity: var(--grain, .5); mix-blend-mode: overlay; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain .9s steps(5) infinite; }
.hero-grain::after { content: ""; position: absolute; inset: 40px; background: radial-gradient(120% 95% at 62% 52%, transparent 58%, var(--vignette, rgba(20, 18, 10, .32)) 100%); mix-blend-mode: normal; }
:root[data-theme="dark"] .hero-glass { --grain: .7; --vignette: rgba(0, 0, 0, .55); }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-14px, 9px); } 40% { transform: translate(11px, -16px); } 60% { transform: translate(-7px, 18px); } 80% { transform: translate(17px, 4px); } 100% { transform: translate(0, 0); } }

.scroll-cue { display: flex; justify-content: center; padding: 18px 0 0; }
.scroll-cue a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font: 600 13px/1 var(--font); text-decoration: none; }
.scroll-cue a:hover { color: var(--gold-text); }

/* ---------- 6. Sections ---------- */

.section { padding: 104px 0 0; }
.section:last-of-type { padding-bottom: 104px; }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head.mid { margin-inline: auto; text-align: center; }
.section h2 { margin-top: 16px; font: 900 clamp(21px, 2.5vw, 33.6px)/1.18 var(--display); letter-spacing: 0; text-transform: uppercase; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 17.5px; }
/* The gold half of a heading always starts its own line, so a phrase is never split. */
.section h2 .gold, .end h2 .gold { display: block; width: fit-content; padding-bottom: .06em; }
.section-head.mid h2 .gold, .end h2 .gold { margin-inline: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--gold-text); font: 700 11px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-c); }
.try-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: -18px 0 22px; color: var(--text-2); font-size: 14px; }

/* ---------- 7. The app window ---------- */

.app { position: relative; display: grid; grid-template-rows: 42px minmax(0, 1fr); height: 760px; padding: 0; border: 1.5px solid transparent; border-radius: 18px; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--edge) border-box; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; font-size: 14px; line-height: 1.45; }
.a-chrome { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: 600 12.5px/1 var(--font); user-select: none; }
.a-chrome .logo { width: 30px; height: 25px; padding: 4px 4px 3.5px; border-radius: 7px; }
.a-chrome .ctl { display: flex; margin-left: auto; }
.a-chrome .ctl i { display: grid; place-items: center; width: 42px; height: 41px; color: var(--text-3); }
.a-chrome .ctl svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1; }
.a-body { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 0; }

.a-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px 12px; border-right: 1px solid var(--line); background: var(--inset); overflow-y: auto; }
.a-side .me { display: flex; align-items: center; gap: 10px; padding: 0 6px 14px; }
.a-side .label { padding: 16px 10px 6px; color: var(--text-3); font: 700 10.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.a-nav { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; height: 36px; padding: 0 11px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-2); font: 600 13.5px/1 var(--font); text-align: left; transition: background .12s ease, color .12s ease; }
.a-nav:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.a-nav[aria-current="page"] { border-color: var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.a-nav[aria-current="page"] .i { color: var(--gold-text); }
.a-nav[aria-current="page"]::before { content: ""; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--brand); }
.a-nav .n { margin-left: auto; color: var(--text-3); font: 600 12px/1 var(--font); }
.a-side .state { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.a-side .state b { display: block; font: 600 13px/1.3 var(--font); }
.a-side .state span { color: var(--text-3); font-size: 12px; }

.a-main { position: relative; min-width: 0; padding: 26px 30px 34px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.a-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; margin-bottom: 22px; }
.a-head h3 { font: 700 20.8px/1.3 var(--display); letter-spacing: 0; }
.a-head p { margin-top: 4px; color: var(--text-2); font-size: 13.5px; }
.a-head .acts { display: flex; gap: 8px; margin-left: auto; }
.a-sub { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; color: var(--text-3); font: 700 10.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.a-sub .right { margin-left: auto; letter-spacing: 0; text-transform: none; font: 600 12.5px/1 var(--font); }
.a-sub .chip { letter-spacing: .04em; }
.a-sub:first-child { margin-top: 0; }

.card { border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); box-shadow: var(--shadow); }
.card.glow { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--edge) border-box; box-shadow: var(--shadow), var(--gold-glow); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pad { padding: 14px 16px; }
.tile { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--gold-text); }
.tile .i { width: 17px; height: 17px; }

/* Home: the banner */
.banner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 24px 26px; border: 1.5px solid transparent; border-radius: 16px; background: linear-gradient(110deg, var(--surface) 0%, var(--surface-2) 55%, var(--surface-3) 100%) padding-box, var(--edge) border-box; box-shadow: var(--shadow), var(--gold-glow); overflow: hidden; }
.banner::after { content: ""; position: absolute; right: -70px; top: -90px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 223, 41, .42), rgba(255, 223, 41, 0)); pointer-events: none; }
.banner > * { position: relative; z-index: 1; }
.banner h3 { font: 700 24px/1.15 var(--display); letter-spacing: 0; text-transform: uppercase; }
.banner p { margin-top: 6px; color: var(--text-2); font-size: 14px; }
.banner .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

/* Hardware cards */
.hw { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.hw .who { display: flex; align-items: center; gap: 10px; }
.hw .who small { display: block; color: var(--text-3); font: 700 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.hw h4 { margin-top: 3px; font: 600 14.5px/1.25 var(--font); }
.hw p { color: var(--text-2); font-size: 13px; }
.hw dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.hw dt { color: var(--text-3); font-size: 11.5px; }
.hw dd { font: 700 12.8px/1.3 var(--display); }
.hw .btn { align-self: flex-start; }

/* Live readings */
.meter { padding: 12px 14px 10px; }
.meter .k { color: var(--text-3); font: 700 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.meter .v { margin-top: 9px; font: 700 22.4px/1.13 var(--display); }
.meter .v small { margin-left: 3px; color: var(--text-3); font: 600 12.5px/1 var(--font); }
.meter .c { margin-top: 5px; color: var(--text-3); font-size: 12px; }
.meter svg { display: block; width: 100%; height: 30px; margin-top: 8px; overflow: visible; }
.meter path { fill: none; stroke: var(--gold-c); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.meter path.hd { stroke: var(--gold-c); stroke-width: 6; stroke-linecap: round; }   /* a zero-length line with a round cap: a dot that keeps its shape when the chart stretches */
.meter.plain { padding: 0; }

/* Lists */
.list > * + * { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px; }
.row .main { min-width: 0; flex: 1; }
.row .t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 14px/1.35 var(--font); }
.row .d { margin-top: 1px; color: var(--text-2); font-size: 12.5px; }
.row .val { color: var(--text-3); font: 400 11.5px/1.4 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .col { flex: none; width: 96px; color: var(--text-2); font-size: 12.5px; }
.row .col.wide { width: 138px; }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 5px; background: var(--surface-3); color: var(--gold-text); font: 700 10px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.tag.plain { background: var(--inset); color: var(--text-3); }
.dot { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font: 600 12.5px/1.2 var(--font); white-space: nowrap; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.dot.ok::before { background: var(--ok); }
.dot.warn::before { background: var(--warn); }
.dot.bad::before { background: var(--bad); }
.dot.sig::before { background: var(--gold-c); }
.empty { padding: 28px 16px; color: var(--text-2); font-size: 13.5px; text-align: center; }
.empty b { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }

/* Switch */
.sw { position: relative; flex: none; width: 40px; height: 22px; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--inset); transition: background .14s ease, border-color .14s ease; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(20, 18, 10, .35); transition: transform .14s ease; }
:root[data-theme="dark"] .sw:not([aria-checked="true"])::after { background: var(--text-2); }
.sw[aria-checked="true"] { border-color: rgba(20, 18, 10, .6); background: var(--brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.sw[aria-checked="true"]::after { background: #FFFFFF; transform: translateX(18px); }
.sw[disabled] { opacity: .45; cursor: not-allowed; }
.chev { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--r1); background: transparent; color: var(--text-3); }
.chev:hover { color: var(--text); background: var(--surface-2); }
.chev[aria-expanded="true"] .i { transform: rotate(180deg); }

/* Tweak details */
.detail { padding: 2px 14px 16px 64px; }
.detail .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--inset); }
.detail h5 { margin: 0 0 5px; color: var(--text-3); font: 700 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.detail p { color: var(--text); font-size: 13px; }
.detail .chg { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
.detail .chg li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 3px 0; color: var(--text-3); font: 400 11.5px/1.5 var(--mono); }
.detail .chg li span:first-child { overflow-wrap: anywhere; }
.detail .chg li span:last-child { color: var(--text-2); white-space: nowrap; }
.why-not { margin: 0 14px 12px 64px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r1); background: var(--inset); color: var(--text-2); font-size: 12.5px; }

/* Sets, tabs, search */
.set { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.set .top-line { display: flex; align-items: center; gap: 10px; }
.set h4 { font: 700 13.6px/1.2 var(--display); }
.set p { color: var(--text-2); font-size: 12.5px; }
.set .bar { height: 5px; margin: 8px 0 4px; border-radius: 3px; background: var(--inset); overflow: hidden; }
.set .bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand); transition: width .2s ease; }
.set .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.set .foot span { color: var(--text-3); font: 600 12px/1 var(--font); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 12px; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); }
.tab { height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 600 13px/1 var(--font); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.search { position: relative; margin-left: auto; }
.search .i { position: absolute; left: 11px; top: 10px; width: 14px; height: 14px; color: var(--text-3); pointer-events: none; }
.search input { width: 210px; height: 34px; padding: 0 10px 0 32px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-size: 13px; }
.search input::placeholder { color: var(--text-3); }

/* Banner note, table, charts */
.note { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r2); background: var(--surface-2); color: var(--text-2); font-size: 13px; }
.note .i { color: var(--gold-text); }
.note.good { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.note.good .i { color: var(--ok); }
.note .btn { margin-left: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { padding: 11px 14px; color: var(--text-3); font: 700 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; text-align: left; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl .delta { color: var(--ok); font-weight: 700; }
.chart { display: block; width: 100%; height: 90px; }
.chart .ln { fill: none; stroke: var(--gold-c); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.chart .spike { fill: none; stroke: var(--bad); stroke-width: 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--inset); }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 600 13px/1 var(--font); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }

/* Dialog and toast, inside the window */
.a-over { position: absolute; inset: 42px 0 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--scrim-dialog); overflow: hidden; }
.dlg { display: flex; flex-direction: column; width: min(560px, 100%); max-height: 100%; min-height: 0; border: 1.5px solid transparent; border-radius: var(--r3); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--edge) border-box; box-shadow: var(--shadow-lg); }
.dlg header { padding: 20px 22px 0; }
.dlg h4 { font: 700 17.6px/1.3 var(--display); }
.dlg header p { margin-top: 5px; color: var(--text-2); font-size: 13px; }
.dlg .body { min-height: 0; margin: 14px 0 0; padding: 0 22px; overflow-y: auto; }
.dlg .picks { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.dlg label { display: flex; align-items: center; gap: 9px; padding: 4px 0; color: var(--text); font-size: 13px; cursor: pointer; }
.dlg label small { color: var(--text-3); font-size: 12px; }
.dlg input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: #FFDF29; }
.dlg .also { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dlg footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; }
.dlg footer .hint { margin-right: auto; color: var(--text-3); font-size: 12px; }
.dlg .big { padding: 6px 0 2px; font: 700 27.2px/1.19 var(--display); text-transform: uppercase; }
.spin { width: 18px; height: 18px; border: 2px solid var(--surface-3); border-top-color: var(--gold-c); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: absolute; left: 50%; bottom: 18px; z-index: 6; max-width: calc(100% - 32px); padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text); font: 600 13px/1.3 var(--font); transform: translateX(-50%); }

/* ---------- 8. Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.plan.pick { border: 1.5px solid transparent; background: linear-gradient(180deg, var(--surface), var(--surface-2)) padding-box, var(--edge) border-box; box-shadow: var(--shadow-lg), var(--gold-glow); }
.plan h3 { display: flex; align-items: center; gap: 10px; font: 700 17.6px/1.2 var(--display); text-transform: uppercase; }
.plan .price { margin-top: 18px; font: 900 37.8px/1.13 var(--display); }
.plan .price small { margin-left: 8px; color: var(--text-3); font: 600 15px/1 var(--font); }
.plan .for { min-height: 48px; margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.plan .btn { margin-top: 20px; }
.plan ul { display: grid; gap: 11px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li .i { margin-top: 2px; color: var(--gold-text); }
.plan .fine { margin-top: auto; padding-top: 20px; color: var(--text-3); font-size: 12.5px; }

/* ---------- 9. Safety, questions, the end ---------- */

.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cell { padding: 24px; border: 1px solid var(--line); border-radius: var(--r3); background: var(--surface); box-shadow: var(--shadow); }
.cell .tile { width: 42px; height: 42px; border-radius: 12px; }
.cell .tile .i { width: 20px; height: 20px; }
.cell h3 { margin-top: 16px; font: 700 16px/1.2 var(--display); }
.cell p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }

.faq { max-width: 820px; margin-inline: auto; }
.faq details { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 600 16px/1.4 var(--font); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--gold-text); transition: transform .15s ease; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq p { padding: 0 20px 20px; color: var(--text-2); }

.end { margin-top: 104px; padding: 0 0 96px; }
.end-box { padding: 56px 32px; border: 1.5px solid transparent; border-radius: 28px; background: linear-gradient(120deg, var(--surface) 0%, var(--surface-2) 60%, var(--surface-3) 100%) padding-box, var(--edge) border-box; box-shadow: var(--shadow-lg), var(--gold-glow); text-align: center; }
.end h2 { font: 900 clamp(21px, 2.7vw, 36.4px)/1.15 var(--display); text-transform: uppercase; }
.end p { margin-top: 12px; color: var(--text-2); font-size: 17px; }
.end .cta { justify-content: center; }
footer.site { padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
footer.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
footer.site .logo { width: 40px; height: 33px; padding: 6px; border-radius: 9px; }
footer.site .word { font-size: 16px; }
footer.site .right { margin-left: auto; }

/* ---------- 10. Smaller screens ---------- */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3.hwrow { grid-template-columns: minmax(0, 1fr); }
  .row .col:not(.risk) { display: none; }
  .row .col.risk { width: auto; }
}
@media (max-width: 860px) {
  .top nav { display: none; }
  .plans, .cells { grid-template-columns: minmax(0, 1fr); }
  .plan .for { min-height: 0; }
  .section { padding-top: 76px; }
  .hero-window { padding: 7px; border-radius: 24px; }
  /* On a phone the picture comes first and the words follow under it. */
  .hero-glass { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(250px, 38vh) auto; min-height: 0; border-radius: 17px; }
  .hero-pane { grid-row: 1; }
  .hero-copy { grid-row: 2; align-self: start; padding: 14px 20px calc(var(--lb) + 22px); }
  .hero-glass { --lb: 40px; }
  #scene { transform-origin: 50% 18%; }
  .hero-copy::before { top: -70px; bottom: 0; right: 0; background: linear-gradient(180deg, rgba(var(--scrim), 0) 0, rgba(var(--scrim), .93) 130px, rgba(var(--scrim), .97) 100%); }
  /* The window becomes a column: the menu turns into a strip along the top. */
  .app { height: auto; grid-template-rows: 42px auto; }
  .a-body { grid-template-columns: minmax(0, 1fr); }
  .a-side { flex-direction: row; gap: 4px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
  .a-side .me, .a-side .label, .a-side .state, .a-nav .n { display: none; }
  .a-nav { width: auto; flex: none; }
  .a-nav[aria-current="page"]::before { display: none; }
  .a-main { max-height: 78vh; padding: 20px 16px 24px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .detail { padding-left: 14px; }
  .why-not { margin-left: 14px; }
  .detail .cols { grid-template-columns: minmax(0, 1fr); }
  .dlg .picks { grid-template-columns: minmax(0, 1fr); }
  .search { width: 100%; margin-left: 0; }
  .search input { width: 100%; }
  .banner .acts { margin-left: 0; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .hero-window { width: calc(100% - 20px); }
  .mode span { display: none; }
  .top-end .btn { display: none; }                 /* the start box right below has the same button */
  .top-in { gap: 12px; }
  .grid-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .row { gap: 10px; padding: 10px 12px; }
  .row .tile { display: none; }
  .row .col.risk .dot { gap: 0; font-size: 0; }   /* on a phone the coloured dot alone carries the risk */
  .a-head .acts { width: 100%; margin-left: 0; }
  .a-head .acts .btn { flex: 1; }
  .tabs { width: 100%; overflow-x: auto; }
  .end-box { padding: 40px 20px; }
}

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