/* dubtrackr public website: the Control Surface system.
   Served at /assets/site.css after /assets/dubtrackr-fonts.css. Used by /, /servers, /privacy,
   /terms, /support and the shared header and footer of /autoclicker/.
   Every module is a backlit key on one deck: chassis, bezel plates, recessed wells, physical keys,
   an LCD strip display. Dark is the default scene (admins in the evening beside Discord). */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --chassis: #020814;
  --chassis-deep: #01050d;
  --bezel: #0b1a30;
  --bezel-2: #102440;
  --well: #071426;
  --hairline: #1d3555;
  --legend: #f7f9ff;
  --legend-muted: #96a7bc;
  --legend-off: #7f93ad;
  --text-body: #c3cfdd;
  --lcd-text: #cfe3ff;
  --lcd-dim: #7f9cc4;
  --lcd-bg: #06111f;
  --b1: #39a8ff;
  --b2: #4f72f5;
  --b3: #824cf2;
  --backlight: linear-gradient(135deg, #39a8ff 0%, #4f72f5 52%, #824cf2 100%);
  --lit-face: linear-gradient(135deg, #1a6fd6 0%, #4a5ee6 52%, #7040dc 100%);
  --accent: #39a8ff;
  --accent-ink: #7cc3ff;
  --amber: #ffb547;
  --gold: #f5c451;
  --amber-ink: #ffb547;
  --gold-ink: #f5c451;
  --danger: #ff6b6b;
  --focus: #cfe3ff;

  --cap-top: #172b4b;
  --cap-bottom: #0d1c34;
  --cap-edge: rgba(255, 255, 255, .11);
  --cap-lip: rgba(0, 0, 0, .42);
  --drop-near: rgba(0, 0, 0, .62);
  --drop-far: rgba(0, 0, 0, .72);
  --well-shadow: inset 0 2px 5px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .045);
  --plate-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px var(--hairline), 0 18px 40px -22px rgba(0, 0, 0, .9);
  --socket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='.5' y='.5' width='49' height='49' rx='8' fill='%23000' fill-opacity='.32' stroke='%23fff' stroke-opacity='.05'/%3E%3C/svg%3E");
  --socket-sm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52'%3E%3Crect x='.5' y='.5' width='45' height='45' rx='7.5' fill='%23000' fill-opacity='.32' stroke='%23fff' stroke-opacity='.05'/%3E%3C/svg%3E");

  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-legend: "Barlow Condensed", "Barlow", "Segoe UI", system-ui, sans-serif;
  --r-key: 10px;
  --r-key-sm: 8px;
  --r-plate: 8px;
  --header-h: 64px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --press: 120ms;
  --ramp: 180ms;
}

:root[data-theme="light"] {
  color-scheme: light;
  --chassis: #f4f6fa;
  --chassis-deep: #eaeef5;
  --bezel: #ffffff;
  --bezel-2: #fbfcfe;
  --well: #e9edf4;
  --hairline: #d3dbe7;
  --legend: #07111f;
  --legend-muted: #56657c;
  --legend-off: #5a6a81;
  --text-body: #26364d;
  --accent: #1f6fe0;
  --accent-ink: #1a5fc2;
  --amber: #f08a00;
  --gold: #e3b10e;
  --amber-ink: #985600;
  --gold-ink: #7a5f00;
  --danger: #c23b3b;
  --focus: #2459d6;

  --cap-top: #ffffff;
  --cap-bottom: #edf1f7;
  --cap-edge: rgba(255, 255, 255, 1);
  --cap-lip: rgba(18, 36, 66, .13);
  --drop-near: rgba(18, 36, 66, .2);
  --drop-far: rgba(18, 36, 66, .22);
  --well-shadow: inset 0 2px 4px rgba(18, 36, 66, .12), inset 0 0 0 1px rgba(18, 36, 66, .06), 0 1px 0 rgba(255, 255, 255, .9);
  --plate-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px var(--hairline), 0 18px 40px -24px rgba(18, 36, 66, .35);
  --socket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='.5' y='.5' width='49' height='49' rx='8' fill='%2312243f' fill-opacity='.07' stroke='%2312243f' stroke-opacity='.08'/%3E%3C/svg%3E");
  --socket-sm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52'%3E%3Crect x='.5' y='.5' width='45' height='45' rx='7.5' fill='%2312243f' fill-opacity='.07' stroke='%2312243f' stroke-opacity='.08'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-width: 320px;
  background: var(--chassis);
  color: var(--legend);
  font: 400 17px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--legend); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(79, 114, 245, .45); color: #fff; }
:root[data-theme="light"] ::selection { background: rgba(79, 114, 245, .22); color: var(--legend); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #2a4569 var(--chassis-deep); }
:root[data-theme="light"] { scrollbar-color: #b8c4d6 var(--chassis-deep); }
input, textarea { caret-color: var(--accent); }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; border-radius: var(--r-key-sm);
  background: var(--bezel-2); color: var(--legend); font-weight: 600; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 8px 18px -6px rgba(0, 0, 0, .6);
}
.skip-link:focus { top: 12px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.num { font-variant-numeric: tabular-nums; }

.site-wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.band { padding-block: clamp(64px, 7vw, 104px); }
.band + .band, .band--rule { border-top: 1px solid var(--hairline); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; letter-spacing: -.02em; }
.section-head p { margin-top: 16px; color: var(--text-body); font-size: 18px; max-width: 64ch; }

/* ---------- Keycap buttons (every button and button-like link) ---------- */
.key-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--r-key-sm);
  color: var(--legend);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, var(--cap-top), var(--cap-bottom));
  box-shadow:
    inset 0 1px 0 var(--cap-edge),
    inset 0 -2px 0 var(--cap-lip),
    0 1px 0 var(--drop-near),
    0 6px 12px -5px var(--drop-far);
  font: 600 16px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--press) var(--ease-out), box-shadow var(--ramp) var(--ease-out), color var(--ramp);
  -webkit-tap-highlight-color: transparent;
}
.key-btn:hover { color: var(--legend); box-shadow: inset 0 1px 0 var(--cap-edge), inset 0 -2px 0 var(--cap-lip), 0 1px 0 var(--drop-near), 0 9px 16px -6px var(--drop-far); }
.key-btn:active, .key-btn.is-pressing {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 var(--cap-edge), inset 0 -1px 0 var(--cap-lip), 0 0 0 var(--drop-near), 0 2px 5px -3px var(--drop-far);
}
.key-btn .icon { width: 18px; height: 18px; }
.key-btn--lit {
  color: #fff;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 58%),
    var(--lit-face);
  /* A call to action is a key, not a lit state: the key's own neutral depth, no coloured halo. */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 -2px 0 rgba(26, 14, 74, .38),
    0 1px 0 var(--drop-near),
    0 6px 12px -5px var(--drop-far);
}
.key-btn--lit:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -2px 0 rgba(26, 14, 74, .38), 0 1px 0 var(--drop-near), 0 9px 16px -6px var(--drop-far); }
.key-btn--lit:active, .key-btn--lit.is-pressing {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(26, 14, 74, .35), 0 0 0 var(--drop-near), 0 2px 5px -3px var(--drop-far);
}
.key-btn--sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.key-btn--icon { width: 40px; min-height: 40px; padding: 0; }
.key-btn--icon .icon { width: 20px; height: 20px; }
.key-btn[disabled], .key-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.text-link:hover { color: var(--legend); text-decoration: underline; }
.text-link .icon { width: 16px; height: 16px; }

/* ---------- Status tags (the only pills) and LEDs ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 22px; padding: 0 9px; border-radius: 999px;
  font: 700 12px/1 var(--font-legend); letter-spacing: .04em; text-transform: uppercase;
  color: var(--legend-muted);
  box-shadow: inset 0 0 0 1px var(--hairline);
  white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--live { color: var(--accent-ink); }
.tag--beta { color: #a99bff; }
.tag--setup { color: var(--amber-ink); }
.tag--soon { color: var(--legend-off); }
.tag--soon::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.tag--premium { color: var(--gold-ink); }
:root[data-theme="light"] .tag--beta { color: #5b45c9; }

.led {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 6px 1px color-mix(in srgb, var(--accent) 60%, transparent);
}
.led--setup { background: var(--amber); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 7px 1px rgba(255, 181, 71, .55); }
.led--premium { background: var(--gold); box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 7px 1px rgba(245, 196, 81, .55); }
.led--beta { background: transparent; box-shadow: inset 0 0 0 1.5px #a99bff; }
.led--off { background: #26364f; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .6); }
:root[data-theme="light"] .led--off { background: #c5cfdd; }
:root[data-theme="light"] .led--beta { box-shadow: inset 0 0 0 1.5px #5b45c9; }

/* ---------- Header: the top bezel ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, var(--bezel-2), var(--bezel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), inset 0 -1px 0 var(--hairline), 0 10px 24px -18px rgba(0, 0, 0, .9);
}
:root[data-theme="light"] .site-header { box-shadow: inset 0 -1px 0 var(--hairline), 0 10px 24px -20px rgba(18, 36, 66, .35); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.site-brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: var(--legend); text-decoration: none;
  font: 700 23px/1 var(--font); letter-spacing: -.03em; text-transform: lowercase;
}
.site-brand:hover { color: var(--legend); }
.site-brand__mark { width: 34px; height: 34px; }
.site-brand__mark--light { display: none; }
:root[data-theme="light"] .site-brand__mark--dark { display: none; }
:root[data-theme="light"] .site-brand__mark--light { display: block; }
/* The lowercase wordmark keeps the logo's gradient on "trackr"; it is the brand lockup, not emphasis. */
.wordmark__accent {
  background: linear-gradient(135deg, #3b9cff, #5964f1 55%, #8b4cf0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .wordmark__accent { background-image: linear-gradient(135deg, #2184ee, #4e5be3 55%, #7a42d7); }

.site-nav { margin-left: 8px; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--r-key-sm);
  color: var(--legend-muted); font-weight: 600; font-size: 15px; text-decoration: none;
}
.site-nav a:hover { color: var(--legend); background: color-mix(in srgb, var(--well) 70%, transparent); }
.site-nav a[aria-current="page"] { color: var(--legend); }
.site-nav a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.site-nav .icon { width: 14px; height: 14px; opacity: .7; }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.account { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.account__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--well); box-shadow: 0 0 0 2px var(--bezel), 0 0 0 3px var(--hairline); object-fit: cover; }
.account__name { font-weight: 600; font-size: 15px; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__skeleton { width: 120px; height: 14px; border-radius: 4px; background: var(--well); }

@media (max-width: 900px) {
  .site-header__inner { gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    margin: 0; padding: 12px var(--gutter) 20px;
    background: var(--bezel);
    box-shadow: inset 0 -1px 0 var(--hairline), 0 24px 40px -20px rgba(0, 0, 0, .8);
    display: none;
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { min-height: 48px; font-size: 17px; padding: 0 12px; }
  .account__name { display: none; }
}
@media (max-width: 420px) {
  .site-brand__word { display: none; }
  .site-actions .key-btn--sm { padding: 0 12px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--chassis-deep);
  box-shadow: inset 0 1px 0 var(--hairline);
  padding: 64px 0 40px;
  color: var(--legend-muted);
  font-size: 15px;
}
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.site-footer__about p { margin-top: 16px; max-width: 34ch; line-height: 1.55; }
.site-footer h2 { font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--legend); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--legend-muted); text-decoration: none; }
.site-footer li a:hover { color: var(--legend); text-decoration: underline; }
.site-footer li .icon { width: 14px; height: 14px; }
.site-footer__base { margin-top: 48px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Plates (bezel panels) ---------- */
.plate {
  position: relative;
  background: linear-gradient(180deg, var(--bezel-2), var(--bezel));
  border-radius: var(--r-plate);
  box-shadow: var(--plate-shadow);
}

/* ---------- Hero ---------- */
.lead { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.lead__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 4vw, 72px); align-items: center; }
.lead__copy { max-width: 600px; }
.lead h1 { font-size: clamp(42px, 4.9vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
.lead__lede { margin-top: 24px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--text-body); max-width: 52ch; }
.lead__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.lead__note { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--legend-muted); font-size: 15px; }
@media (max-width: 1180px) {
  .lead__grid { grid-template-columns: minmax(0, 1fr); }
  .lead__copy { max-width: 720px; }
  .lead__deck { justify-self: center; }
}

/* ---------- The deck ---------- */
.deck-wrap { width: max-content; max-width: 100%; }
.deck {
  --key: 50px;
  --gap: 6px;
  --pitch: calc(var(--key) + var(--gap));
  position: relative;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--bezel-2), var(--bezel) 60%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 0 0 1px var(--hairline),
    0 2px 0 rgba(0, 0, 0, .5),
    0 40px 70px -30px rgba(0, 0, 0, .95),
    0 12px 24px -12px rgba(0, 0, 0, .7);
}
:root[data-theme="light"] .deck { box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px var(--hairline), 0 2px 0 rgba(18, 36, 66, .08), 0 40px 70px -34px rgba(18, 36, 66, .4), 0 12px 24px -14px rgba(18, 36, 66, .25); }

.lcd {
  position: relative;
  overflow: hidden;
  contain: inline-size; /* the strip never sizes the deck: a long name must not reflow the keys under the pointer */
  min-height: 136px;
  padding: 12px 16px 12px;
  border-radius: 6px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(80, 130, 220, .14), rgba(80, 130, 220, 0) 55%),
    var(--lcd-bg);
  color: var(--lcd-text);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(120, 160, 220, .14), 0 1px 0 rgba(255, 255, 255, .07);
  text-shadow: 0 0 10px rgba(120, 175, 255, .28);
  font-variant-numeric: tabular-nums;
}
.lcd::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .028) 0 1px, rgba(255, 255, 255, 0) 1px 3px);
}
:root[data-theme="light"] .lcd { box-shadow: inset 0 2px 8px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(120, 160, 220, .14), 0 1px 0 #fff; }
/* The readout rides the command line, right-aligned: the name above it stands alone. */
.lcd__readout { margin-left: auto; min-width: 0; display: flex; gap: 12px; overflow: hidden; white-space: nowrap; font: 700 12px/1 var(--font-legend); letter-spacing: .04em; text-transform: uppercase; color: var(--lcd-dim); }
.lcd__flag--count, .lcd__flag--bank { color: var(--lcd-dim); }
.lcd__flag--bank { overflow: hidden; text-overflow: ellipsis; }
.lcd__flag--live { color: #7cc8ff; }
.lcd__flag--beta { color: #b8adff; }
.lcd__flag--setup { color: #ffc56e; }
.lcd__flag--soon { color: var(--lcd-dim); }
.lcd__flag--premium { color: #f7d277; }
.lcd__flag--on { color: #fff; }
.lcd__name { margin-top: 2px; font: 600 22px/1.15 var(--font); letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd__desc {
  margin-top: 4px; font-size: 15px; line-height: 1.4; color: #a9c2e4; min-height: 2.8em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lcd__cmd { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-height: 22px; font-size: 15px; white-space: nowrap; }
.lcd__cmd-label { font: 700 12px/1 var(--font-legend); letter-spacing: .04em; text-transform: uppercase; color: var(--lcd-dim); }
.lcd__cmd-text { font-weight: 600; color: #e6f0ff; }
.lcd__cmd-text.is-dash { font-weight: 500; color: #a9c2e4; }
.lcd__more { display: inline-flex; align-items: center; gap: 4px; color: #9fd0ff; font: 600 14px/1 var(--font); text-decoration: none; position: relative; z-index: 1; }
.lcd__more:hover { color: #fff; text-decoration: underline; }
.lcd__more .icon { width: 14px; height: 14px; }
.lcd__more[hidden] { display: none; }
.lcd.is-ticking .lcd__tick { animation: lcd-tick 160ms steps(3, end); }
@keyframes lcd-tick { from { opacity: .15; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.deck__banks { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-top: 10px; width: calc(9 * var(--pitch) - 2 * var(--gap) + 40px); max-width: 100%; }
.bank-stack { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; width: calc(3 * var(--pitch) - var(--gap) + 16px); }
.bank {
  padding: 6px 8px 8px;
  border-radius: var(--r-plate);
  background: var(--well);
  box-shadow: var(--well-shadow);
}
.bank__label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 12px; margin: 0 2px 6px;
  font: 700 11px/1 var(--font-legend); letter-spacing: .04em; text-transform: uppercase;
  color: var(--legend-muted);
  white-space: nowrap;
}
.bank__label .num { color: var(--legend-off); font-weight: 600; }
.bank__keys {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), var(--key));
  grid-auto-rows: var(--key);
  grid-auto-flow: row;
  gap: var(--gap);
  background-image: var(--socket);
  background-size: var(--pitch) var(--pitch);
}
/* site-deck.js gives each key the span that ends its row flush with the bank (--span-sm on phones). */
.bank__keys > .key { width: auto; grid-column: span var(--span, 1); }
.deck__foot { contain: inline-size; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 10px 4px 0; font: 600 12px/1.2 var(--font-legend); letter-spacing: .04em; text-transform: uppercase; color: var(--legend-muted); }
.deck__foot span { display: inline-flex; align-items: center; gap: 6px; }
.deck__foot .etch-mini { font: 700 9px/1 var(--font-legend); padding: 3px 4px; border-radius: 3px; color: var(--legend-off); box-shadow: inset 0 0 0 1px var(--hairline); }
.deck-caption { margin-top: 14px; max-width: 556px; color: var(--legend-muted); font-size: 14px; line-height: 1.5; }

/* The key: a physical cap with a stroke icon, a condensed legend and a backlight. */
.key {
  position: relative;
  width: var(--key); height: var(--key);
  margin: 0; padding: 5px 3px 5px;
  border: 0; border-radius: var(--r-key-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--legend-off);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, var(--cap-top), var(--cap-bottom));
  box-shadow:
    inset 0 1px 0 var(--cap-edge),
    inset 0 -2px 0 var(--cap-lip),
    0 1px 0 var(--drop-near),
    0 5px 9px -3px var(--drop-far);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--press) var(--ease-out), box-shadow var(--ramp) var(--ease-out), color var(--ramp) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.key::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(90% 75% at 50% 18%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 62%),
    var(--lit-face);
  opacity: 0;
  transition: opacity var(--ramp) var(--ease-out);
}
.key > * { position: relative; }
.key__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.key__mask { width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat; }
.key__legend {
  max-width: 100%;
  font: 600 9px/1.05 var(--font-legend); letter-spacing: .04em; text-transform: uppercase;
  text-align: center; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.key--wide { width: calc(var(--key) * 2 + var(--gap)); grid-column: span 2; border-radius: var(--r-key); flex-direction: row; gap: 8px; padding: 5px 10px; }
.key--wide .key__icon, .key--wide .key__mask { width: 22px; height: 22px; }
.key--wide .key__legend { font-size: 10px; text-align: left; }
.key__leds { position: absolute; top: 5px; right: 5px; display: flex; gap: 3px; }
.key__leds .led { width: 5px; height: 5px; }
.key__etch {
  font: 700 10px/1 var(--font-legend); letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .2); text-shadow: 0 1px 0 rgba(0, 0, 0, .7);
}
:root[data-theme="light"] .key__etch { color: rgba(18, 36, 66, .32); text-shadow: 0 1px 0 #fff; }
.key--soon { cursor: default; }

.key:hover, .key:focus-visible, .key.is-lit, .key[aria-pressed="true"] {
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 0 rgba(26, 14, 74, .4),
    0 1px 0 rgba(0, 0, 0, .5),
    0 6px 14px -4px rgba(79, 114, 245, .78),
    0 2px 18px -2px rgba(57, 168, 255, .38);
}
.key:hover::before, .key:focus-visible::before, .key.is-lit::before, .key[aria-pressed="true"]::before { opacity: 1; }
.key--soon:hover, .key--soon:focus-visible, .key--soon.is-lit {
  color: var(--legend-off);
  box-shadow: inset 0 1px 0 var(--cap-edge), inset 0 -2px 0 var(--cap-lip), 0 1px 0 var(--drop-near), 0 5px 9px -3px var(--drop-far), 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.key--soon:hover::before, .key--soon:focus-visible::before, .key--soon.is-lit::before { opacity: 0; }
.key--soon:hover .key__etch, .key--soon:focus-visible .key__etch, .key--soon.is-lit .key__etch { color: var(--lcd-dim); }
.key:active, .key.is-pressing {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -1px 0 rgba(26, 14, 74, .35),
    0 0 0 rgba(0, 0, 0, .5),
    0 2px 10px -3px rgba(79, 114, 245, .7);
}
.key--soon:active, .key--soon.is-pressing { box-shadow: inset 0 1px 0 var(--cap-edge), inset 0 -1px 0 var(--cap-lip), 0 2px 4px -2px var(--drop-far); }
.key:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

@media (max-width: 600px) {
  .deck { --key: 46px; --gap: 6px; padding: 10px; }
  .bank__keys { grid-template-columns: repeat(var(--cols-sm, 6), var(--key)); background-image: var(--socket-sm); }
  .bank__keys > .key { grid-column: span var(--span-sm, 1); }
  .bank-stack { display: contents; }
  .key__legend { font-size: 8.5px; }
  .key--wide { padding: 5px 7px; gap: 6px; }
  .key--wide .key__legend { font-size: 9px; }
  .lcd { position: sticky; top: calc(var(--header-h) + 8px); z-index: 2; min-height: 148px; padding: 12px 14px; }
  .lcd__name { font-size: 20px; }
  .lcd__desc { font-size: 14px; }
  .lcd__flag--bank { display: none; }
  .deck-wrap { width: 100%; }
  .deck__banks { width: auto; }
}

/* ---------- Module sheets: every bank, every module ---------- */
.sheets { display: grid; gap: clamp(48px, 6vw, 80px); }
.sheet { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px clamp(32px, 4vw, 64px); align-items: start; scroll-margin-top: calc(var(--header-h) + 16px); }
.sheet__head { position: sticky; top: calc(var(--header-h) + 24px); }
.sheet__head h3 { font-size: 26px; letter-spacing: -.01em; }
.sheet__count { margin-top: 8px; color: var(--legend-muted); font-size: 15px; }
.sheet__plate { --key: 30px; --gap: 5px; --pitch: calc(var(--key) + var(--gap)); display: inline-block; margin-top: 20px; }
.sheet__plate .key { padding: 0; }
.sheet__plate .key__icon, .sheet__plate .key__mask { width: 16px; height: 16px; }
.sheet__plate .key__etch { font-size: 7px; }
.sheet__plate .key__leds { top: 3px; right: 3px; }
.sheet__plate .key__leds .led { width: 4px; height: 4px; }
.sheet__blurb { margin-top: 12px; color: var(--text-body); font-size: 16px; line-height: 1.55; max-width: 34ch; }
.sheet__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.module {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px;
  padding: 18px 0 20px;
  box-shadow: inset 0 1px 0 var(--hairline);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.module__key {
  --key: 44px;
  width: 44px; height: 44px; padding: 0; pointer-events: none; cursor: default;
}
.module__key .key__icon, .module__key .key__mask { width: 20px; height: 20px; }
.module:hover .module__key, .module:target .module__key { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(26, 14, 74, .4), 0 1px 0 rgba(0, 0, 0, .5), 0 6px 14px -4px rgba(79, 114, 245, .78), 0 2px 18px -2px rgba(57, 168, 255, .38); }
.module:hover .module__key::before, .module:target .module__key::before { opacity: 1; }
.module:hover .module__key.key--soon, .module:target .module__key.key--soon { color: var(--legend-off); box-shadow: inset 0 1px 0 var(--cap-edge), inset 0 -2px 0 var(--cap-lip), 0 1px 0 var(--drop-near), 0 5px 9px -3px var(--drop-far); }
.module:hover .module__key.key--soon::before, .module:target .module__key.key--soon::before { opacity: 0; }
.module:target { box-shadow: inset 0 1px 0 var(--hairline), inset 0 -1px 0 color-mix(in srgb, var(--accent) 55%, transparent); }
.module__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.module h4 { font-size: 19px; font-weight: 700; letter-spacing: -.005em; }
.module h4 a { color: var(--legend); text-decoration: none; }
.module h4 a:hover { text-decoration: underline; }
.module__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.module__desc { margin-top: 6px; color: var(--text-body); font-size: 16px; line-height: 1.5; }
.module__cmd { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--legend-muted); font-size: 14px; }
.cmd {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 5px;
  background: var(--lcd-bg); color: var(--lcd-text);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(120, 160, 220, .14);
  font: 600 14px/1 var(--font); letter-spacing: .005em; white-space: nowrap;
}
@media (max-width: 1080px) { .sheet__list { grid-template-columns: minmax(0, 1fr); } }
.sheet__plate .key.is-lit { color: #fff; }
.sheet__toggle { display: none; }
@media (max-width: 800px) {
  .sheet { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sheet__head { position: static; }
  .sheet__plate { display: none; }
  .sheet__blurb { max-width: 60ch; }
  /* On a phone each bank folds to its plate: the plate is the index, the button opens the rows. */
  .sheets.is-collapsible .sheet__plate { --key: 40px; --gap: 6px; display: block; width: fit-content; margin-top: 16px; }
  .sheets.is-collapsible .sheet__plate .key__icon, .sheets.is-collapsible .sheet__plate .key__mask { width: 18px; height: 18px; }
  .sheets.is-collapsible .sheet__toggle { display: flex; width: fit-content; margin-top: 16px; }
  .sheets.is-collapsible .sheet.is-collapsed .sheet__list { display: none; }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.1fr); gap: 16px; align-items: stretch; }
.step { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.step__num {
  display: inline-grid; place-items: center; width: 40px; height: 32px; border-radius: 5px;
  background: var(--lcd-bg); color: var(--lcd-text);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(120, 160, 220, .14);
  font: 600 18px/1 var(--font);
}
.step h3 { font-size: 22px; }
.step p { color: var(--text-body); font-size: 16px; line-height: 1.55; }
.step__action { margin-top: auto; padding-top: 8px; }
.step__keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; --key: 54px; --gap: 10px; }
.step__keys .key--wide { width: 156px; height: 56px; border-radius: var(--r-key); }
.step__keys .key__legend { font-size: 12px; }
.step__keys .key__icon, .step__keys .key__mask { width: 22px; height: 22px; }
.invite-note {
  margin-top: 16px; padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  border-radius: var(--r-plate);
  background: var(--well); box-shadow: var(--well-shadow);
  color: var(--text-body); font-size: 16px;
}
.invite-note strong { color: var(--legend); font-weight: 600; }
@media (max-width: 1080px) { .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .step--deck { grid-column: 1 / -1; } }
@media (max-width: 640px) { .steps { grid-template-columns: minmax(0, 1fr); } .step__keys .key--wide { width: calc(50% - 5px); } .invite-note { align-items: flex-start; } .invite-note .led { margin-top: 8px; } }

/* ---------- Commands: an LCD readout ---------- */
.readout {
  border-radius: 10px; padding: 8px;
  background: linear-gradient(180deg, var(--bezel-2), var(--bezel));
  box-shadow: var(--plate-shadow);
}
.readout__screen {
  border-radius: 6px; overflow: hidden;
  background: var(--lcd-bg); color: var(--lcd-text);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(120, 160, 220, .14);
}
.cmd-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmd-table caption { text-align: left; padding: 14px 18px 10px; font: 700 12px/1 var(--font-legend); letter-spacing: .04em; text-transform: uppercase; color: var(--lcd-dim); }
.cmd-table th { text-align: left; padding: 10px 18px; font: 700 12px/1 var(--font-legend); letter-spacing: .04em; text-transform: uppercase; color: var(--lcd-dim); border-bottom: 1px solid rgba(120, 160, 220, .16); }
.cmd-table td { padding: 12px 18px; border-bottom: 1px solid rgba(120, 160, 220, .09); vertical-align: top; color: #a9c2e4; line-height: 1.45; }
.cmd-table tr:last-child td { border-bottom: 0; }
.cmd-table td:first-child { color: #eef5ff; font-weight: 600; white-space: nowrap; }
.cmd-table td.who { white-space: nowrap; }
.cmd-table tbody tr:hover td { background: rgba(80, 130, 220, .06); }
.readout__foot { padding: 12px 10px 4px; color: var(--legend-muted); font-size: 15px; }
@media (max-width: 760px) {
  .cmd-table thead { display: none; }
  .cmd-table, .cmd-table tbody, .cmd-table tr, .cmd-table td { display: block; }
  .cmd-table tr { padding: 12px 16px; border-bottom: 1px solid rgba(120, 160, 220, .1); }
  .cmd-table td { padding: 2px 0; border: 0; }
  .cmd-table td:first-child { font-size: 17px; }
  .cmd-table td.mod, .cmd-table td.who { display: inline; font-size: 13px; color: var(--lcd-dim); }
  .cmd-table td.mod::after { content: " · "; }
}

/* ---------- Free core, Premium soon ---------- */
.tiers { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.tier { padding: clamp(24px, 3vw, 36px); }
.tier h3 { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.tier p { margin-top: 12px; color: var(--text-body); font-size: 17px; line-height: 1.55; max-width: 52ch; }
.tier__readout {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 20px; padding: 12px 16px; border-radius: 6px;
  background: var(--lcd-bg); color: var(--lcd-text);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(120, 160, 220, .14);
}
.tier__readout strong { font: 600 36px/1 var(--font); }
.tier__readout span { font: 700 13px/1 var(--font-legend); letter-spacing: .04em; text-transform: uppercase; color: var(--lcd-dim); }
.tier__keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; --key: 54px; --gap: 10px; }
.tier__keys .key { width: 64px; height: 64px; }
.tier__keys .key__legend { font-size: 10px; }
.tier__fine { margin-top: 16px !important; font-size: 15px !important; color: var(--legend-muted) !important; }
@media (max-width: 860px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Network ---------- */
.products { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.product { padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.product__badge {
  width: 64px; height: 64px; border-radius: var(--r-key);
  display: grid; place-items: center; color: var(--legend);
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, 0) 44%), linear-gradient(180deg, var(--cap-top), var(--cap-bottom));
  box-shadow: inset 0 1px 0 var(--cap-edge), inset 0 -2px 0 var(--cap-lip), 0 1px 0 var(--drop-near), 0 6px 12px -4px var(--drop-far);
}
.product__badge .icon { width: 28px; height: 28px; }
.product h3 { font-size: 24px; }
.product p { margin-top: 10px; color: var(--text-body); font-size: 17px; line-height: 1.55; }
.product .text-link { margin-top: 16px; }
@media (max-width: 860px) { .products { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .product { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Closing panel ---------- */
.closer { padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.closer h2 { font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -.02em; }
.closer p { margin-top: 10px; color: var(--text-body); font-size: 18px; }
.closer__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- /servers ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 32px; }
.page-head h1 { font-size: clamp(38px, 4.2vw, 56px); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; }
.page-head p { margin-top: 14px; max-width: 62ch; color: var(--text-body); font-size: 18px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.field-well {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  border-radius: var(--r-key-sm); background: var(--well); box-shadow: var(--well-shadow);
  color: var(--legend-muted);
}
.field-well:focus-within { box-shadow: var(--well-shadow), 0 0 0 2px var(--focus); }
.field-well input { width: min(340px, 60vw); min-height: 46px; border: 0; background: transparent; color: var(--legend); outline: none; font-size: 16px; }
.field-well input::placeholder { color: var(--legend-off); opacity: 1; }
.toolbar__count { color: var(--legend-muted); font-size: 15px; }
.server-grid > li { display: grid; }
.server-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.server {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 16px 16px 16px 16px; min-height: 96px;
  border-radius: var(--r-key);
  color: var(--legend); text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 40%), linear-gradient(180deg, var(--bezel-2), var(--bezel));
  box-shadow: inset 0 1px 0 var(--cap-edge), inset 0 0 0 1px var(--hairline), inset 0 -2px 0 var(--cap-lip), 0 1px 0 var(--drop-near), 0 8px 16px -8px var(--drop-far);
  transition: transform var(--press) var(--ease-out), box-shadow var(--ramp) var(--ease-out);
}
.server:hover { color: var(--legend); box-shadow: inset 0 1px 0 var(--cap-edge), inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, var(--hairline)), inset 0 -2px 0 var(--cap-lip), 0 1px 0 var(--drop-near), 0 10px 22px -8px rgba(79, 114, 245, .45); }
.server:active { transform: translateY(2px); box-shadow: inset 0 1px 0 var(--cap-edge), inset 0 0 0 1px var(--hairline), inset 0 -1px 0 var(--cap-lip), 0 2px 6px -3px var(--drop-far); }
.server__icon {
  width: 60px; height: 60px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: var(--well); box-shadow: var(--well-shadow);
  font: 700 20px/1 var(--font); color: var(--legend-muted); letter-spacing: .02em;
}
.server__icon img { width: 100%; height: 100%; object-fit: cover; }
.server__name { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; color: var(--legend-muted); font-size: 14px; }
.server__state { display: inline-flex; align-items: center; gap: 7px; }
.server__go { color: var(--legend-off); }
.server:hover .server__go { color: var(--accent-ink); }
.server--skeleton { pointer-events: none; }
.skeleton-bar { display: block; height: 12px; border-radius: 4px; background: var(--well); box-shadow: var(--well-shadow); }
@media (prefers-reduced-motion: no-preference) {
  .server--skeleton .server__icon, .server--skeleton .skeleton-bar { animation: skeleton-pulse 1.4s ease-in-out infinite; }
}
@keyframes skeleton-pulse { 50% { opacity: .5; } }
.state-panel { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 40px); }
.state-panel__screen {
  padding: 20px; border-radius: 6px; min-height: 120px; display: grid; align-content: center; gap: 8px;
  background: var(--lcd-bg); color: var(--lcd-text);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(120, 160, 220, .14);
}
.state-panel__screen strong { font: 600 40px/1 var(--font); }
.state-panel__screen span { font: 700 13px/1.2 var(--font-legend); letter-spacing: .04em; text-transform: uppercase; color: var(--lcd-dim); }
.state-panel h2 { font-size: clamp(26px, 2.6vw, 34px); }
.state-panel p { margin-top: 12px; color: var(--text-body); max-width: 60ch; }
.state-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.state-panel--error .state-panel__screen strong { color: #ffb3b3; }
@media (max-width: 760px) { .state-panel { grid-template-columns: minmax(0, 1fr); } }
.page-foot-note { margin: 32px 0 0; color: var(--legend-muted); font-size: 15px; }
.page-main { padding-bottom: clamp(64px, 8vw, 112px); }

/* ---------- Read pages: privacy, terms, support ---------- */
.read { display: grid; grid-template-columns: 220px minmax(0, 62ch); gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(64px, 8vw, 112px); }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.toc__title { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 2px; box-shadow: inset 1px 0 0 var(--hairline); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--legend-muted); text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a:hover { color: var(--legend); box-shadow: inset 2px 0 0 var(--accent); }
.doc h2 { margin-top: 48px; font-size: 26px; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc { font-size: 18px; }
.doc p, .doc li { color: var(--text-body); font-size: 18px; line-height: 1.7; }
.doc p + p { margin-top: 16px; }
.doc h2 + p, .doc h2 + ul { margin-top: 14px; }
.doc ul + p { margin-top: 16px; }
.doc ul { margin-top: 14px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.doc a { color: var(--accent-ink); }
.doc strong { color: var(--legend); font-weight: 600; }
.notice-plate { margin-top: 28px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.notice-plate .led { margin-top: 9px; }
.notice-plate p { color: var(--text-body); font-size: 17px; line-height: 1.6; }
.notice-plate strong { color: var(--legend); }
@media (max-width: 900px) {
  .read { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 16px 18px; border-radius: var(--r-plate); background: var(--well); box-shadow: var(--well-shadow); }
}

/* Support */
.support-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
.support-side { display: grid; gap: 16px; }
.support-card { padding: 24px; }
.support-card h2 { font-size: 22px; }
.support-card p { margin-top: 10px; color: var(--text-body); font-size: 16px; line-height: 1.55; }
.support-card .key-btn, .support-card .text-link { margin-top: 16px; }
.form-plate { padding: clamp(24px, 3vw, 36px); }
.form-plate h2 { font-size: 26px; }
.form-plate > p { margin-top: 10px; color: var(--text-body); font-size: 16px; }
.form-field { margin-top: 22px; }
.form-field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 16px; }
.form-field select, .form-field textarea {
  width: 100%; border: 0; border-radius: var(--r-key-sm);
  background: var(--well); color: var(--legend); box-shadow: var(--well-shadow);
  padding: 13px 14px; font-size: 16px; line-height: 1.5;
}
.form-field select { min-height: 50px; appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2396a7bc' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field select:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-field textarea::placeholder { color: var(--legend-off); opacity: 1; }
.form-hint { margin-top: 8px; color: var(--legend-muted); font-size: 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-status { color: var(--text-body); font-size: 16px; min-height: 1.5em; }
@media (max-width: 900px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}
