/* Refresh60 Systems — site styles
   A console-menu look: pinstriped canvas, glossy rounded tiles that pop and glow blue on hover,
   and a clock bar along the bottom of the first screen. Light and dark themes, plus a Lite mode
   that turns animation off. Logo stays black on white (inverted in dark mode). */

:root {
  color-scheme: light;
  --ink: #1b232e;
  --paper: #fff;
  --canvas: #f3f5f8;
  --stripe: rgba(30, 52, 80, .045);
  --sky: #eaf6fc;
  --sky-stripe: rgba(30, 140, 200, .06);
  --line: #dde3e9;
  --tile-border: #cbd4dd;
  --muted: #536070;
  --soft: #7a8694;
  --blue: #1670c0;
  --blue-dark: #0f5799;
  --glow: #34bdee;
  --glow-soft: rgba(52, 189, 238, .38);
  --tile-hi: #fff;
  --tile-lo: #f3f6f9;
  --tile-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 10px 26px -16px rgba(20, 45, 80, .32), 0 2px 4px -2px rgba(20, 45, 80, .08);
  --ring-shadow: 0 0 0 3px var(--glow-soft), 0 14px 32px -14px rgba(22, 112, 192, .45);
  --header-bg: rgba(255, 255, 255, .96);
  --btn2-hi: #fff;
  --btn2-lo: #eef2f6;
  --chip-bg: #e8f5fc;
  --chip-border: #bfe3f5;
  --chip-ink: #0f5799;
  --icon-hi: #fff;
  --icon-lo: #e9f6fd;
  --icon-border: #b9e2f5;
  --nav-hover: #eef8fd;
  --nav-current: #e2f3fc;
  --nav-ring: #a6dcf3;
  --field-bg: #fff;
  --field-border: #aeb9c5;
  --screen-hi: #fbfdff;
  --screen-lo: #f2f6fa;
  --bezel: #fff;
  --grid: #e3e9f0;
  --target: #7d8a99;
  --trace-old: #a9b3bf;
  --pill-bg: rgba(27, 35, 46, .88);
  --pill-ink: #fff;
  --dock: #eef1f5;
  --dock-btn-hi: #fff;
  --dock-btn-lo: #eaeff4;
  --dock-btn-border: #c3cdd8;
  --dock-ink: #6b7889;
  --footer-hi: #f4f6f9;
  --footer-lo: #e8ecf0;
  --badge-ring: #e3f4fc;
  --err-bg: #fdeeec;
  --err-border: #f0b4ad;
  --info-bg: #eaf6fc;
  --info-border: #a6dcf3;
  --g3-hi: #e4eef5;
  --g3-lo: #cfdde8;
  --g4-hi: #fff;
  --g4-lo: #f1f4f7;
  --logo-filter: none;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ui: "M PLUS Rounded 1c", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --band: clamp(64px, 9vw, 116px);
  --r-tile: 22px;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7ecf3;
  --paper: #0d131b;
  --canvas: #111923;
  --stripe: rgba(255, 255, 255, .022);
  --sky: #0e1f2d;
  --sky-stripe: rgba(52, 189, 238, .045);
  --line: #223041;
  --tile-border: #2b394a;
  --muted: #a7b3c1;
  --soft: #8794a3;
  --blue: #5db3f0;
  --blue-dark: #8dcbf6;
  --glow-soft: rgba(52, 189, 238, .32);
  --tile-hi: #19222e;
  --tile-lo: #141c26;
  --tile-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 28px -16px rgba(0, 0, 0, .75);
  --ring-shadow: 0 0 0 3px var(--glow-soft), 0 14px 32px -14px rgba(0, 0, 0, .8);
  --header-bg: rgba(13, 19, 27, .96);
  --btn2-hi: #1f2a37;
  --btn2-lo: #161e29;
  --chip-bg: #0f2738;
  --chip-border: #1f4a66;
  --chip-ink: #8dcbf6;
  --icon-hi: #1c2a39;
  --icon-lo: #132130;
  --icon-border: #2a4a63;
  --nav-hover: #142636;
  --nav-current: #13293b;
  --nav-ring: #2a5574;
  --field-bg: #0f161f;
  --field-border: #3a4a5e;
  --screen-hi: #121b26;
  --screen-lo: #0e151e;
  --bezel: #1a2330;
  --grid: #1d2834;
  --target: #6b7a8c;
  --trace-old: #4f5d6e;
  --pill-bg: rgba(231, 236, 243, .92);
  --pill-ink: #0d131b;
  --dock: #151d28;
  --dock-btn-hi: #232e3c;
  --dock-btn-lo: #18212c;
  --dock-btn-border: #33445a;
  --dock-ink: #9aa8b8;
  --footer-hi: #111821;
  --footer-lo: #0b1118;
  --badge-ring: #12324a;
  --err-bg: #3a1a17;
  --err-border: #7a3329;
  --info-bg: #0f2738;
  --info-border: #1f4a66;
  --g3-hi: #2a3846;
  --g3-lo: #223040;
  --g4-hi: #1a232f;
  --g4-lo: #141c26;
  --logo-filter: invert(1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  font-kerning: normal; -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.55rem + 3.7vw, 4.4rem); font-stretch: 122%; line-height: 1.03; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); font-stretch: 115%; font-weight: 780; line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-family: var(--ui); font-size: 1.2rem; font-weight: 800; line-height: 1.3; }

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.lead { font-size: 1.15em; color: var(--muted); max-width: 56ch; }
.small { font-size: .9375rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-family: var(--ui); font-weight: 700; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* glow ring drawn on a pseudo-element and faded in, so hovering never repaints big shadows */
.glowable { position: relative; isolation: isolate; }
.glowable::before {
  content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: var(--ring-shadow); opacity: 0; transition: opacity .2s ease;
}
.glowable:hover::before, .glowable:focus-visible::before { opacity: 1; }

/* ---------- surfaces ---------- */
.canvas, .band-canvas { background: repeating-linear-gradient(180deg, transparent 0 3px, var(--stripe) 3px 4px), var(--canvas); }
.band { padding: var(--band) 0; }
.band-sky { background: repeating-linear-gradient(180deg, transparent 0 3px, var(--sky-stripe) 3px 4px), var(--sky); }
.band-rule { border-top: 1px solid var(--line); }
.tile { background: linear-gradient(180deg, var(--tile-hi) 0%, var(--tile-hi) 45%, var(--tile-lo) 100%); border: 1.5px solid var(--tile-border); border-radius: var(--r-tile); box-shadow: var(--tile-shadow); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head .lead { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 28px;
  font-family: var(--ui); font-size: 1rem; font-weight: 800; line-height: 1.2; letter-spacing: .01em;
  color: #fff; text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, #2b8bd9 0%, #1670c0 50%, #135fa6 100%);
  border: 1.5px solid #11589a; border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px -8px rgba(22, 112, 192, .65);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
  transition: transform .35s var(--ease-pop);
}
.btn::after { content: ""; position: absolute; z-index: -1; left: 10px; right: 10px; top: 2px; height: 46%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); pointer-events: none; }
.btn::before { content: ""; position: absolute; inset: -1.5px; z-index: -2; border-radius: inherit; box-shadow: var(--ring-shadow); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.btn:hover, .btn:focus-visible { color: #fff; transform: translateY(-1px) scale(1.04); outline: none; text-decoration: none; }
.btn:hover::before, .btn:focus-visible::before { opacity: 1; }
.btn:active { transform: scale(.98); }
.btn-outline, .btn-light {
  color: var(--ink); text-shadow: none;
  background: linear-gradient(180deg, var(--btn2-hi) 0%, var(--btn2-hi) 50%, var(--btn2-lo) 100%);
  border-color: var(--tile-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 12px -8px rgba(20, 45, 80, .35);
}
html[data-theme="dark"] .btn-outline, html[data-theme="dark"] .btn-light { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 12px -8px rgba(0, 0, 0, .6); }
.btn-outline::after, .btn-light::after { display: none; }
.btn-outline:hover, .btn-outline:focus-visible, .btn-light:hover, .btn-light:focus-visible { color: var(--blue-dark); border-color: var(--glow); }
.btn .ext { width: 14px; height: 14px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--line); view-transition-name: site-header; }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: block; flex: none; padding: 6px 0; border-radius: 10px; transition: transform .35s var(--ease-pop); margin-right: auto; }
.brand:hover { transform: scale(1.04); }
.brand img, .footer-logo { filter: var(--logo-filter); }
.brand img { height: 50px; width: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 999px;
  font-family: var(--ui); font-weight: 700; font-size: .98rem;
  color: var(--ink); text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav a:hover { color: var(--blue-dark); background: var(--nav-hover); }
.nav a[aria-current="page"] { color: var(--blue-dark); background: var(--nav-current); box-shadow: inset 0 0 0 1.5px var(--nav-ring); }
.nav .ext { width: 13px; height: 13px; }

.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.tool-btn, .nav-toggle {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  font-family: var(--ui); font-weight: 800; font-size: .95rem; color: var(--ink); cursor: pointer;
  background: linear-gradient(180deg, var(--btn2-hi), var(--btn2-lo)); border: 1.5px solid var(--tile-border); border-radius: 999px;
  transition: transform .3s var(--ease-pop), color .2s ease, border-color .2s ease;
}
.tool-btn .icon { width: 20px; height: 20px; }
.tool-btn:hover, .nav-toggle:hover { transform: scale(1.06); border-color: var(--glow); color: var(--blue-dark); }
.tool-btn[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #2b8bd9, #135fa6); border-color: #11589a; }
.theme-btn .i-sun { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: block; }
html[data-theme="dark"] .theme-btn .i-moon { display: none; }
html[data-theme="dark"] .theme-btn[aria-pressed="true"] { color: var(--ink); background: linear-gradient(180deg, var(--btn2-hi), var(--btn2-lo)); border-color: var(--tile-border); }
.nav-toggle { display: none; padding: 0 18px; }
html:not(.js) .tool-btn { display: none; }

@media (max-width: 1099px) {
  .tool-lite .tool-label { display: none; }
}
@media (max-width: 959px) {
  .brand img { height: 44px; }
  .header-row { min-height: 68px; gap: 10px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 8px);
    background: linear-gradient(180deg, var(--tile-hi), var(--tile-lo)); border: 1.5px solid var(--tile-border); border-radius: var(--r-tile); box-shadow: 0 24px 48px -20px rgba(20, 45, 80, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right;
    transition: opacity .2s ease, transform .35s var(--ease-pop), visibility 0s linear .35s;
  }
  .js .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .35s var(--ease-pop), visibility 0s; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; }
  .js .nav a { display: flex; padding: 14px 16px; font-size: 1.1rem; }
  html:not(.js) .header-row { flex-wrap: wrap; }
  html:not(.js) .nav ul { padding-bottom: 8px; }
}
@media (max-width: 400px) { .brand img { height: 38px; } .tool-btn, .nav-toggle { min-width: 42px; padding: 0 10px; } .nav-toggle { padding: 0 14px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(36px, 6vw, 84px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); } }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; color: var(--ink); }
.hero-note { margin: 22px 0 0; color: var(--muted); font-size: .9375rem; }

.meter { margin: 0; }
.meter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  border: 10px solid var(--bezel); border-radius: 28px;
  background: linear-gradient(180deg, var(--screen-hi) 0%, var(--screen-lo) 100%);
  box-shadow: 0 0 0 1.5px var(--tile-border), 0 26px 50px -26px rgba(20, 45, 80, .45);
  --p: 1;
  contain: paint;
}
.screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen .grid line { stroke: var(--grid); stroke-width: 1; }
.screen .target { stroke: var(--target); stroke-width: 1.5; stroke-dasharray: 5 6; }
.trace-old { fill: none; stroke: var(--trace-old); stroke-width: 2.25; stroke-linejoin: round; }
.trace-glow { fill: none; stroke: var(--glow); stroke-width: 11; stroke-linejoin: round; stroke-linecap: round; opacity: .22; }
.trace-new { fill: none; stroke: #1d8fd6; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
html[data-theme="dark"] .trace-new { stroke: #42b8f0; }
.layer-old { clip-path: inset(0 0 0 calc(var(--p) * 100%)); }
.layer-old-dim { opacity: .3; clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.layer-new { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.screen-label, .screen-corner { position: absolute; left: clamp(10px, 1.6vw, 16px); font-family: var(--ui); font-size: .8125rem; line-height: 1.2; font-weight: 700; }
.screen-label { padding: 4px 10px; border-radius: 999px; background: var(--pill-bg); color: var(--pill-ink); }
.screen-corner { top: clamp(8px, 1.4vw, 14px); color: var(--soft); }
/* the sweep moves with transform only, so the browser never re-lays out the page */
.sweep { position: absolute; inset: 0; pointer-events: none; opacity: 0; transform: translateX(calc(var(--p) * 100%)); }
.sweep::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--glow); box-shadow: 0 0 14px 3px rgba(52, 189, 238, .55); }
.screen.running .sweep { opacity: 1; will-change: transform; }
.readout { display: grid; justify-items: start; line-height: 1; margin: 0; }
.readout-num { font-size: clamp(4.2rem, 1.6rem + 7vw, 8.4rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.04em; line-height: .82; font-variant-numeric: tabular-nums; min-width: 2ch; }
.readout-unit { margin-top: 10px; font-family: var(--ui); font-weight: 800; font-size: 1rem; color: var(--soft); }
.meter figcaption { margin-top: 18px; color: var(--muted); font-size: .9375rem; max-width: 54ch; }
.replay { display: none; font: inherit; font-size: .9375rem; font-weight: 600; margin-left: .35em; padding: 0; border: 0; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.js .replay { display: inline; }
html[data-lite] .replay { display: none; }
@media (max-width: 560px) {
  .meter-row { grid-template-columns: 1fr; }
  .readout { grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 12px; }
  .readout-unit { margin-top: 0; }
}

/* clock bar along the bottom of the first screen */
.dock { position: relative; margin-top: clamp(36px, 6vw, 64px); height: 124px; display: grid; grid-template-columns: clamp(118px, 16vw, 190px) minmax(0, 1fr) clamp(118px, 16vw, 190px); color: var(--dock); }
.dock-cap { position: relative; display: grid; justify-items: center; align-content: start; padding-top: 4px; }
.dock-cap > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dock-cap.right > svg { transform: scaleX(-1); }
.dock-mid { position: relative; background: var(--dock); border-top: 2.5px solid var(--glow); margin-top: 34px; display: grid; justify-items: center; align-content: start; padding-top: 6px; }
.dock-btn { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-decoration: none; font-family: var(--ui); font-size: .8125rem; font-weight: 800; color: var(--muted); transform: translateY(-22px); }
.dock-circle {
  position: relative; isolation: isolate;
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, var(--dock-btn-hi) 0%, var(--dock-btn-hi) 40%, var(--dock-btn-lo) 100%);
  border: 1.5px solid var(--dock-btn-border); color: var(--dock-ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 6px 16px -6px rgba(20, 45, 80, .3);
  transition: transform .35s var(--ease-pop), color .2s ease, border-color .2s ease;
}
html[data-theme="dark"] .dock-circle { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 6px 16px -6px rgba(0, 0, 0, .7); }
.dock-circle::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 50%; box-shadow: var(--ring-shadow); opacity: 0; transition: opacity .2s ease; }
.dock-circle .icon { width: 30px; height: 30px; }
.dock-btn:hover .dock-circle, .dock-btn:focus-visible .dock-circle { transform: scale(1.1); border-color: var(--glow); color: var(--blue); }
.dock-btn:hover .dock-circle::before, .dock-btn:focus-visible .dock-circle::before { opacity: 1; }
.dock-btn:focus-visible { outline: none; }
.dock-btn:hover { color: var(--blue-dark); }
.dock-clock { display: grid; justify-items: center; gap: 2px; font-family: var(--ui); color: var(--soft); text-align: center; }
.dock-time { display: none; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 800; line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.dock-clock.live .dock-time { display: block; }
.dock-time .ampm { font-size: .42em; margin-left: .25em; letter-spacing: .04em; }
.dock-time .colon { display: inline-block; margin: 0 .04em; animation: blink 2s steps(1) infinite; }
.dock-date { font-size: clamp(.9rem, .8rem + .4vw, 1.05rem); font-weight: 700; }
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 480px) { .dock { height: 112px; } .dock-circle { width: 62px; height: 62px; } .dock-circle .icon { width: 26px; height: 26px; } }

/* ---------- service tiles ---------- */
.channels { list-style: none; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.channels-2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .channels-2 { grid-template-columns: repeat(2, 1fr); } }
.channel {
  position: relative; isolation: isolate;
  height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px;
  padding: 22px 22px 20px; color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, var(--tile-hi) 0%, var(--tile-hi) 45%, var(--tile-lo) 100%);
  border: 1.5px solid var(--tile-border); border-radius: var(--r-tile); box-shadow: var(--tile-shadow);
  transition: transform .4s var(--ease-pop), border-color .2s ease;
}
.channel::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; box-shadow: var(--ring-shadow); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.channel:hover, .channel:focus-visible { transform: scale(1.035); border-color: var(--glow); outline: none; color: var(--ink); text-decoration: none; }
.channel:hover::before, .channel:focus-visible::before { opacity: 1; }
.channel:active { transform: scale(.99); }
.ch-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--icon-hi) 0%, var(--icon-lo) 100%); border: 1.5px solid var(--icon-border); color: var(--blue);
}
.channel:hover .ch-icon .icon { animation: nudge .7s var(--ease-pop); }
@keyframes nudge { 0% { transform: rotate(0) scale(1); } 35% { transform: rotate(-10deg) scale(1.12); } 70% { transform: rotate(6deg) scale(1.04); } 100% { transform: none; } }
.ch-title { font-family: var(--ui); font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.ch-desc { margin: 0; color: var(--muted); font-size: .98rem; }
.ch-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.ch-price { font-family: var(--ui); font-weight: 800; font-size: 1.35rem; color: var(--chip-ink); background: var(--chip-bg); border: 1.5px solid var(--chip-border); border-radius: 999px; padding: 2px 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-go { font-family: var(--ui); font-size: .875rem; font-weight: 700; color: var(--soft); transition: color .2s ease; }
.channel:hover .ch-go { color: var(--blue); }
.price-note { margin-top: 22px; color: var(--muted); font-size: .9375rem; max-width: 72ch; }

/* ---------- plans (RefreshedTo60) ---------- */
.plans { display: grid; gap: 20px; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { padding: clamp(24px, 3vw, 34px); }
.plan-name { font-size: 1.3rem; }
.plan-price { margin: 12px 0 10px; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem); font-weight: 800; font-stretch: 122%; line-height: 1; letter-spacing: -0.02em; color: var(--blue-dark); }
.plan-price span { font-family: var(--ui); font-size: .36em; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan .fit { color: var(--muted); font-size: .9375rem; margin: 16px 0 0; }
.steps { list-style: none; counter-reset: step; display: grid; margin-top: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-family: var(--ui); font-weight: 800; font-size: .95rem; color: #fff; background: linear-gradient(180deg, #2b9be0, #1670c0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.rt60-foot { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.rt60-foot p { margin: 0; color: var(--muted); }

/* ---------- process ---------- */
.process { list-style: none; counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process .tile { height: 100%; padding: 24px 22px; counter-increment: step; }
.process .tile::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; font-family: var(--ui); font-weight: 800; font-size: 1.25rem; color: #fff; background: linear-gradient(180deg, #2b9be0, #1670c0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 4px var(--badge-ring); }
.process h3 { margin-bottom: 8px; }
.process p { margin: 0; color: var(--muted); }
.promise { margin-top: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center; padding: 20px 24px; }
.promise .ch-icon { width: 48px; height: 48px; }
.promise strong { display: block; font-family: var(--ui); font-size: 1.1rem; font-weight: 800; }
.promise p { margin: 0; color: var(--muted); }

/* ---------- shop / grades ---------- */
.shop-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .shop-grid { grid-template-columns: 6fr 5fr; } }
.grades { margin: 0; padding: 24px; }
.grade-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grade-bar span { display: grid; place-items: center; min-height: 60px; border-radius: 16px; font-family: var(--ui); font-weight: 800; font-size: 1.5rem; border: 1.5px solid var(--tile-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.grade-bar span:nth-child(1) { background: linear-gradient(180deg, #2b9be0, #1670c0); color: #fff; border-color: #11589a; }
.grade-bar span:nth-child(2) { background: linear-gradient(180deg, #8fd0ef, #5fb3df); color: #0b2c47; border-color: #4ea3d0; }
.grade-bar span:nth-child(3) { background: linear-gradient(180deg, var(--g3-hi), var(--g3-lo)); color: var(--ink); }
.grade-bar span:nth-child(4) { background: linear-gradient(180deg, var(--g4-hi), var(--g4-lo)); color: var(--ink); }
.grade-ends { display: flex; justify-content: space-between; gap: 24px; margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.grade-ends span:last-child { text-align: right; }
.grades figcaption { margin-top: 12px; font-size: .9375rem; color: var(--muted); }

/* ---------- closing call to action ---------- */
.closer { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 44px); }
@media (min-width: 860px) { .closer { grid-template-columns: minmax(0, 1fr) auto; } }
.closer p { margin: 12px 0 0; color: var(--muted); }

/* ---------- inner page header ---------- */
.page-head { padding: clamp(44px, 7vw, 92px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.8rem); margin-bottom: 16px; }
.page-head .lead { margin: 0; }

/* ---------- panels: Q&A and lists ---------- */
.panel { padding: 4px clamp(18px, 3vw, 30px); }
.qa, .ways { margin: 0; }
.qa > div, .ways > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.qa > div:last-child, .ways > div:last-child { border-bottom: 0; }
@media (min-width: 860px) { .qa > div { grid-template-columns: 5fr 7fr; gap: 32px; } .ways > div { grid-template-columns: 4fr 8fr; gap: 32px; } }
.qa dt, .ways dt { font-family: var(--ui); font-weight: 800; font-size: 1.08rem; }
.qa dd, .ways dd { margin: 0; color: var(--muted); }
.ways dd p { margin: 0 0 .6em; }
.ways dd p:last-child { margin-bottom: 0; }
.split { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 960px) { .split { grid-template-columns: 4fr 7fr; align-items: start; } .split .section-head { margin-bottom: 0; } }

/* ---------- about: founder and company ---------- */
.founder { display: grid; gap: clamp(36px, 5vw, 60px); align-items: start; }
@media (min-width: 860px) { .founder { grid-template-columns: minmax(150px, 176px) minmax(0, 1fr); } }
.portrait { position: relative; margin: 0 0 18px; width: min(160px, 46vw); }
@media (min-width: 860px) { .portrait { width: 100%; position: sticky; top: 104px; } }
.portrait-frame { padding: 7px; border-radius: 24px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 17px; }
.portrait figcaption { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); white-space: nowrap; padding: 6px 14px; border-radius: 999px; font-family: var(--ui); font-size: .8125rem; font-weight: 800; color: #fff; background: linear-gradient(180deg, #2b8bd9, #135fa6); box-shadow: 0 0 0 3px var(--paper), 0 8px 18px -8px rgba(22, 112, 192, .6); }
.founder-text h2 { margin-bottom: 6px; }
.founder-text .role { font-family: var(--ui); font-size: 1.1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 24px; }
.founder-text .measure { margin-bottom: clamp(28px, 4vw, 40px); }
.company { list-style: none; display: grid; gap: 18px; }
@media (min-width: 760px) { .company { grid-template-columns: repeat(3, 1fr); } }
.company li { padding: 24px; display: grid; gap: 6px; align-content: start; }
.company .k { font-family: var(--ui); font-size: .95rem; font-weight: 700; color: var(--muted); }
.company .v { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); font-weight: 800; font-stretch: 112%; line-height: 1.25; }

/* ---------- forms (contact and diagnose) ---------- */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; } }
.form { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 36px); }
.form-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--ui); font-weight: 800; }
.field .hint { font-family: var(--font); font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  padding: 12px 16px; min-height: 52px;
  background: var(--field-bg); border: 1.5px solid var(--field-border); border-radius: 14px;
  box-shadow: inset 0 2px 3px rgba(20, 45, 80, .06);
  transition: border-color .2s ease;
}
.field ::placeholder { color: var(--soft); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 48px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--glow); outline-offset: 1px; border-color: var(--glow); }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; cursor: pointer; font-family: var(--ui); font-weight: 700; background: linear-gradient(180deg, var(--btn2-hi), var(--btn2-lo)); border: 1.5px solid var(--tile-border); transition: transform .3s var(--ease-pop), border-color .2s ease; }
.choice span:hover { transform: scale(1.04); border-color: var(--glow); }
.choice input:checked + span { color: #fff; background: linear-gradient(180deg, #2b8bd9, #135fa6); border-color: #11589a; }
.choice input:focus-visible + span { outline: 3px solid var(--glow); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: .9375rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.notice { display: none; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--err-border); background: var(--err-bg); }
.notice p { margin: 0; }
.notice strong { display: block; margin-bottom: 2px; font-family: var(--ui); }
.notice:target, .notice.show { display: block; animation: pop-in .45s var(--ease-pop); }
.notice-info { border-color: var(--info-border); background: var(--info-bg); }
.aside { display: grid; gap: 16px; }
.aside section { padding: 22px 24px; }
.aside h2 { font-family: var(--ui); font-size: 1.15rem; font-stretch: 100%; font-weight: 800; letter-spacing: 0; margin-bottom: 6px; }
.aside p { margin: 0; color: var(--muted); }
.aside .btn { margin-top: 16px; }

/* ---------- diagnose ---------- */
.diag-wrap { display: grid; gap: 22px; max-width: 900px; }
.diag { padding: clamp(22px, 3.5vw, 36px); overflow: hidden; }
.diag-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; min-height: 44px; }
.diag-progress { margin: 0; font-family: var(--ui); font-weight: 700; color: var(--muted); font-size: .95rem; }
.diag-dots { display: flex; gap: 8px; }
.diag-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background-color .3s ease, transform .3s var(--ease-pop); }
.diag-dots span.done { background: var(--blue); }
.diag-dots span.now { background: var(--glow); transform: scale(1.35); }
.diag-back { visibility: hidden; }
@media (max-width: 560px) { .diag-dots { display: none; } .diag-progress { text-align: right; } }
.diag-back.show { visibility: visible; }
.diag-step { transition: opacity .28s var(--ease-out), transform .38s var(--ease-out); }
.diag-step.enter { opacity: 0; transform: translateX(28px); }
.diag-step.enter.back { transform: translateX(-28px); }
.diag-q { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 22px; outline: none; }
.diag-help { margin: -10px 0 20px; color: var(--muted); }
.answers { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.answer {
  position: relative; isolation: isolate; width: 100%; height: 100%; min-height: 84px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 16px 18px; text-align: left; cursor: pointer;
  font: inherit; font-family: var(--ui); font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: var(--ink);
  background: linear-gradient(180deg, var(--tile-hi) 0%, var(--tile-hi) 45%, var(--tile-lo) 100%);
  border: 1.5px solid var(--tile-border); border-radius: 18px; box-shadow: var(--tile-shadow);
  transition: transform .35s var(--ease-pop), border-color .2s ease;
}
.answer::before { content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit; box-shadow: var(--ring-shadow); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.answer:hover, .answer:focus-visible { transform: scale(1.03); border-color: var(--glow); outline: none; }
.answer:hover::before, .answer:focus-visible::before { opacity: 1; }
.answer:active { transform: scale(.98); }
.answer[aria-pressed="true"] { border-color: var(--blue); }
.answer .ch-icon { width: 46px; height: 46px; }
.answer .ch-icon .icon { width: 22px; height: 22px; }

.rec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center; padding: 22px; margin-bottom: 22px; border-radius: 20px; background: var(--info-bg); border: 1.5px solid var(--info-border); }
.rec .ch-icon { width: 64px; height: 64px; }
.rec .ch-icon .icon { width: 30px; height: 30px; }
.rec-label { margin: 0 0 4px; font-family: var(--ui); font-weight: 700; color: var(--muted); font-size: .95rem; }
.rec-name { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin: 0 0 10px; }
.rec .ch-price { display: inline-block; font-size: 1.2rem; }
.rec-why { margin: 0 0 18px; max-width: 64ch; }
.rec-also { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--canvas); color: var(--muted); max-width: 64ch; }
.tips-title { margin-bottom: 10px; }
.tips { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; max-width: 64ch; }
.tips li { position: relative; padding-left: 26px; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 3px var(--badge-ring); }
.answers-recap { margin: 0 0 22px; }
.answers-recap summary { cursor: pointer; font-family: var(--ui); font-weight: 700; color: var(--blue); }
.answers-recap dl { margin: 12px 0 0; display: grid; gap: 6px 16px; grid-template-columns: max-content minmax(0, 1fr); font-size: .95rem; }
.answers-recap dt { color: var(--muted); }
.answers-recap dd { margin: 0; }
.diag-form { scroll-margin-top: 96px; }
.diag-form .lead { margin: 0; font-size: 1rem; }
.noscript-tile { padding: 22px 24px; }

/* ---------- thank-you / 404 ---------- */
.message-page { padding: clamp(64px, 10vw, 140px) 0; }
.message-page h1 { margin-bottom: 20px; }
.message-page .lead { margin-bottom: 32px; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: linear-gradient(180deg, var(--footer-hi) 0%, var(--footer-lo) 100%); border-top: 2.5px solid var(--glow); padding: clamp(44px, 6vw, 64px) 0 30px; font-size: .9375rem; color: var(--muted); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue-dark); text-decoration: underline; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }
.footer-logo { height: 56px; width: auto; margin-bottom: 16px; }
.footer-grid h2 { font-family: var(--ui); font-size: 1rem; font-stretch: 100%; font-weight: 800; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid p { margin: 0 0 8px; }
.legal { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .875rem; }
.legal p { margin: 0; }

.preview-bar { background: #fff6d6; color: #3b3000; border-bottom: 1px solid #ecd889; font-size: .9rem; padding: 8px 0; }

/* ---------- motion ---------- */
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .5s var(--ease-out), transform .65s var(--ease-pop); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.rise { transform: translateY(40px); }
.js .reveal.in { opacity: 1; transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .4s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: scale(.992); } }

/* Lite mode (header button) and the visitor's own reduced-motion setting: no movement at all */
html[data-lite] *, html[data-lite] *::before, html[data-lite] *::after { transition: none !important; animation: none !important; }
html[data-lite] .reveal { opacity: 1 !important; transform: none !important; }
html[data-lite] .btn:hover, html[data-lite] .btn:focus-visible, html[data-lite] .channel:hover, html[data-lite] .channel:focus-visible,
html[data-lite] .answer:hover, html[data-lite] .answer:focus-visible, html[data-lite] .brand:hover, html[data-lite] .tool-btn:hover,
html[data-lite] .nav-toggle:hover, html[data-lite] .choice span:hover, html[data-lite] .dock-btn:hover .dock-circle,
html[data-lite] .dock-btn:focus-visible .dock-circle { transform: none !important; }
html[data-lite] .sweep { display: none; }
html[data-lite]::view-transition-group(*), html[data-lite]::view-transition-old(*), html[data-lite]::view-transition-new(*) { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .hero-meter, .dock, .actions { display: none !important; }
}
