/* UVIRA website (local prototype): one stylesheet for every page.
 *
 * Design rules, so later pages stay in the family:
 *  - Brand: navy #14336B carries actions and type; copper (#8A4B1B, #C98A55 on dark) marks movement only: flight
 *    paths, progress, the stock meter and the 28 % / 72 % brand rule line under the header.
 *  - Type: IBM Plex Sans for everything, IBM Plex Mono for things you might copy or compare (order numbers,
 *    serials, codes, amounts in tables, specs).
 *    Copper is never a section rule, a callout stripe or a label colour (S166): one accent, navy.
 *  - Corners: buttons and inputs 10px (--r-btn), cards and panels 16px (--r-card), small panels inside a section
 *    (steps, notes) 12px (--r-panel-sm), films and pictures 18px (--r-media), chips and badges fully round. Small
 *    thumbnails inside a control may use 6px. Nothing else.
 *  - Pictures: one picture, one place on the selling pages (home, IFC 1.3, Studio, School, Students, Pricing,
 *    Marketplace, Download); the documents may repeat the board render. A Studio picture is one region of the window
 *    (the 3D view, the blocks, one chart) at 16:10, never the whole window below 900 px wide.
 *  - Motion answers an action or tells a story once (the hero); prefers-reduced-motion turns it all off.
 *  - Words: headings in Title Case on the selling pages, sentence case in the documents (S102, kept in S166).
 */

/* ------------------------------------------------------------------------------------------------ fonts */
@font-face { font-family: 'Plex Sans'; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Sans'; src: url('/fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------------------------------------ tokens */
:root {
  --paper: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #EEF2F8;
  --surface-3: #E4EAF3;
  --line: #DCE3EE;
  --line-2: #C3CDDC;
  --ink: #0D1830;
  --ink-2: #384661;
  --ink-3: #56647F;
  --navy: #14336B;
  --navy-600: #1D4688;
  --navy-50: #EAF0FA;
  --navy-100: #D6E2F4;
  --copper: #8A4B1B;
  --copper-deep: #6B3A12;
  --copper-50: #F6EDE4;
  --ok: #166534; --ok-bg: #E6F4EA;
  --warn: #A1460A; --warn-bg: #FCF0E1;
  --bad: #B91C1C; --bad-bg: #FCEBEB;
  --info: #1D4688; --info-bg: #EAF0FA;
  --btn: #14336B; --btn-hover: #1D4688; --btn-ink: #FFFFFF;
  --focus: #2F6FDB;
  --grid: rgba(20, 51, 107, .07);
  --shadow-1: 0 1px 2px rgba(13, 24, 48, .05), 0 4px 14px rgba(20, 51, 107, .06);
  --shadow-2: 0 2px 6px rgba(13, 24, 48, .06), 0 18px 48px rgba(20, 51, 107, .12);
  --r-btn: 10px; --r-card: 16px; --r-panel-sm: 12px; --r-media: 18px; --r-pill: 999px;
  /* A field's resting border: 3:1 or more on white, paper and surface-2 (WCAG 1.4.11). */
  --field-line: #7D8AA0;
  --wrap: 1200px;
  --gutter: 32px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
  color-scheme: light;
}

/* ------------------------------------------------------------------------------------------------ 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; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 'Plex Sans', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--navy-100); }
.mono, code, kbd { font-family: 'Plex Mono', ui-monospace, Consolas, monospace; font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.hidden, [hidden] { display: none !important; }
.sr-only { 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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: var(--r-btn); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.wrap-mid { max-width: calc(980px + 2 * var(--gutter)); }
@media (max-width: 720px) { :root { --gutter: 16px; } body { font-size: 16px; } }

/* ------------------------------------------------------------------------------------------------ prototype notice */
.notice {
  background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 1.4;
  border-bottom: 1px solid var(--line);
}
.notice .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 30px; padding-top: 5px; padding-bottom: 5px; text-align: center; }
.notice b { color: var(--copper); font-weight: 600; }
@media (max-width: 520px) { .notice { font-size: 12px; } .hero h1 { font-size: 33px; } }

/* ------------------------------------------------------------------------------------------------ header */
.sh { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.sh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--copper-deep) 0 28%, var(--navy) 28% 100%); }
.sh-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.sh-logo { display: flex; align-items: center; flex: none; border-radius: var(--r-btn); }
.sh-logo img { height: 38px; width: auto; }
.sh-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.sh-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 8px 12px; border-radius: var(--r-btn); transition: color .15s, background-color .15s; white-space: nowrap; }
.sh-nav a:hover { color: var(--ink); background: var(--surface-2); }
.sh-nav a[aria-current="page"] { color: var(--navy); background: var(--navy-50); }
.sh-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r-btn); border: 1px solid transparent; background: transparent; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; transition: background-color .15s, border-color .15s, transform .1s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:active { transform: scale(.97); }
.icon-btn svg { width: 22px; height: 22px; flex: none; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-pill); background: var(--copper); color: #fff; font-size: 12px; font-weight: 700; line-height: 19px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.sh-account { position: relative; }
.sh-account > button { border: 1px solid var(--line); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--btn-ink); display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-2); padding: 6px; z-index: 50; transform-origin: top right; animation: menuIn .18s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu .who { padding: 10px 12px 8px; border-top: 0; border-bottom: 1px solid var(--line); margin: 0 0 4px; font-size: 14px; }
.menu .who b { display: block; font-weight: 600; }
.menu a, .menu button { display: flex; width: 100%; text-align: left; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-btn); color: var(--ink); text-decoration: none; background: none; border: 0; font-size: 15px; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.added svg { width: 20px; height: 20px; flex: none; }
.sh-menu-btn { display: none; }
.sh-signin { white-space: nowrap; }
.sh-try { margin-right: 4px; }
/* On a small phone an empty cart steps aside (it comes back with the first item); "Try it free" is in the menu there. */
@media (max-width: 420px) { #sh-cart:has(.cart-count[hidden]) { display: none; } }
@media (max-width: 1040px) {
  .sh-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; margin: 0; }
  .sh-nav.open { display: flex; animation: menuIn .18s var(--ease); }
  .sh-nav a { padding: 14px 12px; font-size: 17px; }
  .sh-menu-btn { display: inline-flex; }
}
@media (max-width: 420px) {
  .sh-logo img { height: 30px; }
  .sh-in { gap: 8px; }
  .sh-signin .label { display: none; }
}

/* ------------------------------------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); border: 1.5px solid transparent; background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .12s var(--ease), box-shadow .15s; position: relative; }
.btn:hover { background: var(--btn-hover); color: var(--btn-ink); box-shadow: 0 6px 20px rgba(20, 51, 107, .18); }
.btn:active { transform: translateY(1px) scale(.985); box-shadow: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); box-shadow: none; }
.btn-soft { background: var(--navy-50); color: var(--navy); }
.btn-soft:hover { background: var(--navy-100); color: var(--navy); box-shadow: none; }
.btn-danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); box-shadow: none; }
.btn-danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; gap: 8px; }
@media (max-width: 720px) { .btn-sm { min-height: 44px; } }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn .price { font-weight: 500; font-variant-numeric: tabular-nums; opacity: .9; padding-left: 12px; border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.btn.busy { color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--btn-ink); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-ghost.busy::after, .btn-soft.busy::after, .btn-danger.busy::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; cursor: pointer; }
.link-btn:hover { color: var(--navy-600); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--navy); }
.arrow-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------------------------------------ type helpers */
.display { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; }
.h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.025em; }
.h3 { font-size: 22px; line-height: 1.25; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.kicker { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 14px; }

/* ------------------------------------------------------------------------------------------------ page heads */
.page-head { padding: 56px 0 32px; }
.page-head h1 { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -.028em; }
.page-head .lead { margin-top: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line-2); }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } .page-head { padding: 36px 0 24px; } }

/* ------------------------------------------------------------------------------------------------ panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-1); }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 20px; margin-bottom: 4px; }
.panel h3 { font-size: 17px; margin-bottom: 4px; }
.panel .sub { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-flat { box-shadow: none; }
.panel-tint { background: var(--surface-2); box-shadow: none; }
@media (max-width: 720px) { .panel { padding: 18px; } }
.divide > * + * { border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------------------------------------ forms */
.form { display: grid; gap: 18px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-2, .form-3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--ink-3); }
/* :where() keeps this rule light, so the hover, focus and invalid rules below win (S166 a11y 1). */
.input, .field input:where(:not([type="checkbox"]):not([type="radio"]):not([type="file"])), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-btn); border: 1.5px solid var(--field-line); background: var(--surface); color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2356647F' stroke-width='2.4' 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 14px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--navy); box-shadow: none; }
.field.invalid input:focus, .field.invalid select:focus, .field.invalid textarea:focus { border-color: var(--bad); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field .hint { font-size: 14px; color: var(--ink-3); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); border-width: 2px; }
.field .err { font-size: 14px; color: var(--bad); font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.check { flex-wrap: wrap; }
.check > span { flex: 1 1 0; min-width: 0; } /* the text beside its box, not under it, on a phone */
.check .err { flex-basis: 100%; padding-left: 32px; font-size: 14px; color: var(--bad); font-weight: 500; }
.field .err[data-fe], .check .err[data-fe] { display: block; }
.radio-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-card); cursor: pointer; transition: border-color .15s, background-color .15s; background: var(--surface); }
.radio-card:hover { border-color: var(--ink-3); }
.radio-card input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.radio-card:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-msg { border-radius: var(--r-card); padding: 12px 14px; font-size: 15px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; animation: msgIn .25s var(--ease); }
.form-msg svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-msg.bad { background: var(--bad-bg); color: var(--bad); }
.form-msg.ok { background: var(--ok-bg); color: var(--ok); }
.form-msg.info { background: var(--info-bg); color: var(--info); }
.form-msg.warn { background: var(--warn-bg); color: var(--warn); }
@keyframes msgIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 80px !important; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 12px; border: 0; background: var(--surface-2); color: var(--ink-2); border-radius: var(--r-btn); font-size: 14px; font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-btn); overflow: hidden; background: var(--surface); }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; font-size: 20px; color: var(--ink); transition: background-color .15s; }
.qty button:hover:not([disabled]) { background: var(--surface-2); }
.qty button[disabled] { color: var(--line-2); cursor: not-allowed; }
.qty output, .qty input { width: 48px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; border: 0 !important; background: transparent; min-height: 0 !important; padding: 0 !important; box-shadow: none !important; }

/* ------------------------------------------------------------------------------------------------ badges, chips */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.copper { background: var(--copper-50); color: var(--copper); }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------------------------------------------ banners */
.banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-card); border: 1px solid transparent; animation: msgIn .3s var(--ease); }
.banner svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.banner h2, .banner h3 { font-size: 17px; margin-bottom: 2px; }
.banner p { font-size: 15px; margin: 0; }
.banner.ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.banner.bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.banner.warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.banner.info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 22%, transparent); }
.banner .grow { flex: 1; min-width: 0; }
.banner .btn { margin-top: 10px; }
.banner p, .banner h2, .banner h3 { color: inherit; }

/* ------------------------------------------------------------------------------------------------ tables */
.tbl-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); } /* relative: a hidden label in a header cell stays inside the scroll box (S170: the page was 366 px wide at 320) */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 13px 16px; vertical-align: top; }
.tbl thead th { font-size: 13.5px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tbody tr + tr td, .tbl tbody tr + tr th { border-top: 1px solid var(--line); }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody th { font-weight: 600; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px 20px; margin: 0; font-size: 15.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.sum { display: grid; gap: 10px; font-size: 15.5px; }
.sum .row { display: flex; justify-content: space-between; gap: 16px; }
.sum .row span:last-child { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sum .sub-row { color: var(--ink-3); font-size: 14.5px; padding-left: 14px; }
.sum .total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-weight: 700; font-size: 19px; }
/* Checkout's "Check your order" before paying: where it goes, who it is billed to, the tax. */
.confirm-order { margin-top: 14px; gap: 8px; font-size: 15px; }
.confirm-order h3 { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.confirm-order p { margin: 0; line-height: 1.5; }

/* ------------------------------------------------------------------------------------------------ skeletons, empty */
.sk { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-btn); min-height: 16px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 14px; margin: 10px 0; }
.sk-block { height: 120px; border-radius: var(--r-card); }
.empty { text-align: center; padding: 48px 20px; }
.empty svg { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--ink-3); }
.empty h2, .empty h3 { font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--ink-2); margin: 0 auto 18px; max-width: 46ch; }

/* ------------------------------------------------------------------------------------------------ FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-weight: 600; font-size: 17.5px; line-height: 1.4; border-radius: var(--r-btn); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy); }
.faq summary .pm { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: transform .25s var(--ease), background-color .2s, border-color .2s; }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--navy); border-color: var(--navy); color: var(--btn-ink); }
.faq .a { padding: 0 4px 22px; color: var(--ink-2); max-width: 72ch; }
.faq details[open] .a { animation: msgIn .3s var(--ease); }

/* ------------------------------------------------------------------------------------------------ timeline */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl li { position: relative; padding: 0 0 22px 40px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: -2px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl .dot { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); display: grid; place-items: center; }
.tl .dot svg { width: 13px; height: 13px; }
.tl li.done .dot { background: var(--navy); border-color: var(--navy); color: var(--btn-ink); }
.tl li.done::before { background: var(--navy); }
.tl li.now .dot { border-color: var(--copper); background: var(--copper-50); }
.tl li.now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.tl li.bad .dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.tl .t { font-weight: 600; }
.tl .d { color: var(--ink-3); font-size: 14px; }
.tl .x { color: var(--ink-2); font-size: 15px; margin-top: 2px; }

/* the shipping progress bar on an order (copper = movement) */
.ship { margin: 8px 0 4px; }
.ship-track { position: relative; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.ship-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--copper-deep), var(--copper)); border-radius: 6px; transition: width 1.2s var(--ease); }
.ship-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.ship-steps span { text-align: center; }
.ship-steps span:first-child { text-align: left; }
.ship-steps span:last-child { text-align: right; }
.ship-steps span.on { color: var(--ink); font-weight: 600; }
.ship-quad { position: absolute; top: -9px; width: 24px; height: 24px; margin-left: -12px; color: var(--copper); transition: left 1.2s var(--ease); }
.ship-wrap { position: relative; padding-top: 10px; }
@media (max-width: 560px) { .ship-steps { font-size: 12px; } .ship-steps span:nth-child(2), .ship-steps span:nth-child(4) { visibility: hidden; } }

/* ------------------------------------------------------------------------------------------------ dialog */
dialog.dlg { border: 1px solid var(--line); border-radius: var(--r-card); padding: 0; max-width: min(480px, calc(100vw - 32px)); width: 100%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
dialog.dlg::backdrop { background: rgba(8, 16, 31, .45); backdrop-filter: blur(2px); }
dialog.dlg[open] { animation: dlgIn .22s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg-body { padding: 24px; display: grid; gap: 14px; }
.dlg-body h2 { font-size: 21px; }
.dlg-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 24px; flex-wrap: wrap; }

/* ------------------------------------------------------------------------------------------------ footer */
.sf { margin-top: 0; background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.sf-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding: 56px 0 40px; }
.sf h2 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
.sf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sf a { color: var(--ink-2); text-decoration: none; }
.sf a:hover { color: var(--navy); text-decoration: underline; }
.sf-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.sf-motto { font-size: 19px; line-height: 1.35; font-weight: 500; color: var(--ink); max-width: 22ch; margin-bottom: 14px; letter-spacing: -.01em; }
.sf-bottom { border-top: 1px solid var(--line); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13.5px; color: var(--ink-3); }
.sf-bottom .test { color: var(--copper); font-weight: 600; }
@media (max-width: 900px) { .sf-top { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .sf-top { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .sf-policies { grid-column: 1 / -1; } .sf-policies ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1100px) and (min-width: 901px) { .sf-top { grid-template-columns: repeat(4, 1fr); } .sf-brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------------------------------------ reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal.pre { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .reveal.pre.in { opacity: 1; transform: none; }
}

/* ================================================================================================ HOME */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--grid) 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: min(640px, calc(100dvh - 160px)); }
.hero h1 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.06; letter-spacing: -.032em; font-weight: 600; }
.hero h1 .ln { display: block; }
.hero .lead { margin-top: 22px; max-width: 44ch; }
.hero .btn-row { margin-top: 32px; }
.stock { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.stock b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.stock a { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  /* The words and the Buy button are readable at once (round 4, Rohit: the first phone screen looked empty for 3 s);
     only the drawing tells its story slowly. */
  .hero h1 .ln { animation: lineIn .6s var(--ease) both; color: var(--ink); }
  .hero h1 .ln:nth-child(1) { animation-delay: .05s; }
  .hero h1 .ln:nth-child(2) { animation-delay: .15s; }
  .hero h1 .ln:nth-child(3) { animation-delay: .25s; }
  .hero .lead, .hero .btn-row, .hero .stock { animation: fadeUp .6s var(--ease) both; animation-delay: .3s; }
  .hero .btn-row { animation-delay: .35s; }
  .hero .stock { animation-delay: .4s; }
}
@keyframes lineIn { from { opacity: .14; transform: translateY(10px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero { padding-top: 32px; }
  .hero-art { order: 2; }
}

/* the hero drawing: board, blocks, flight path (one story, played once) */
.hero-art { position: relative; aspect-ratio: 640 / 560; width: 100%; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.ha-grid line { stroke: var(--line); stroke-width: 1; }
.ha-board-body { fill: var(--surface); stroke: var(--navy); stroke-width: 2; }
.ha-board-detail { fill: none; stroke: var(--navy); stroke-width: 1.4; }
.ha-board-fill { fill: var(--navy-50); stroke: var(--navy); stroke-width: 1.4; }
.ha-chip { fill: var(--navy); }
.ha-hole { fill: var(--paper); stroke: var(--navy); stroke-width: 1.4; }
.ha-label { font: 500 11px 'Plex Mono', monospace; fill: var(--ink-3); }
.ha-label-strong { font: 600 12px 'Plex Sans', sans-serif; fill: var(--ink-2); }
.ha-block rect { fill: var(--surface); stroke: var(--navy); stroke-width: 1.6; }
.ha-block .tab { fill: var(--navy); }
.ha-block text { font: 600 13px 'Plex Sans', sans-serif; fill: var(--ink); }
.ha-block .kind { font: 500 10.5px 'Plex Mono', monospace; fill: var(--ink-3); }
.ha-block.b2 rect { stroke: var(--navy-600); }
.ha-link { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-dasharray: 5 6; }
.ha-path { fill: none; stroke: var(--copper); stroke-width: 2.6; stroke-linecap: round; }
.ha-path-ghost { fill: none; stroke: var(--copper); stroke-width: 1; stroke-dasharray: 2 6; opacity: .45; }
.ha-pad rect { fill: var(--surface); stroke: var(--copper); stroke-width: 1.6; }
.ha-pad .h { font: 700 14px 'Plex Sans', sans-serif; fill: var(--copper); }
.ha-truck { fill: var(--surface-3); stroke: var(--ink-3); stroke-width: 1.2; }
.ha-wheel { fill: var(--ink-3); }
.ha-quad { color: var(--copper); }
.ha-quad .arm { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ha-quad .rotor { fill: none; stroke: currentColor; stroke-width: 1.6; }
.ha-quad .body { fill: currentColor; }
.ha-lock rect, .ha-lock path { fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
.ha-sim { fill: none; stroke: var(--navy-600); stroke-width: 1.6; opacity: .8; }
.ha-tag rect { fill: var(--surface); stroke: var(--line-2); }
.ha-tag text { font: 500 11.5px 'Plex Sans', sans-serif; fill: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .ha-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw var(--dur, 1.2s) var(--ease) forwards; animation-delay: var(--at, 0s); }
  .ha-fade { opacity: 0; animation: fade .6s var(--ease) forwards; animation-delay: var(--at, 0s); }
  .ha-block { opacity: 0; animation: snap .7s var(--ease) forwards; animation-delay: var(--at, 0s); }
  .ha-quad-move { offset-path: var(--route); offset-rotate: 0deg; offset-distance: 0%; opacity: 0; animation: fly 2.1s cubic-bezier(.55, .05, .3, 1) forwards, fade .3s forwards; animation-delay: var(--at), var(--at); }
  .ha-truck-move { animation: drive 2.4s var(--ease) both; animation-delay: var(--at, 0s); }
  .ha-rotor-spin { transform-box: fill-box; transform-origin: center; animation: spin .25s linear infinite; }
  .ha-sim-wave { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1s linear forwards; animation-delay: var(--at, 0s); }
  .ha-blink { animation: blink 1.2s ease-in-out 3; animation-delay: var(--at, 0s); }
}
@media (prefers-reduced-motion: reduce) {
  .ha-quad-move { offset-path: var(--route); offset-distance: 100%; offset-rotate: 0deg; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes snap { 0% { opacity: 0; transform: translate(var(--fx, -40px), var(--fy, 0px)); } 70% { opacity: 1; transform: translate(0, 0); } 82% { transform: translate(calc(var(--fx, -40px) * -0.04), 0); } 100% { opacity: 1; transform: none; } }
@keyframes fly { to { offset-distance: 100%; } }
@keyframes drive { from { transform: translateX(-90px); } to { transform: none; } }
@keyframes blink { 50% { opacity: .35; } }

/* facts band under the hero */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { display: flex; gap: 12px; align-items: center; padding: 22px 20px; font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.facts li + li { border-left: 1px solid var(--line); }
.facts svg { width: 26px; height: 26px; color: var(--navy); flex: none; }
.facts b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .facts ul { grid-template-columns: 1fr 1fr; } .facts li:nth-child(3) { border-left: 0; } .facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 420px) { .facts li { padding: 16px 10px; font-size: 14px; gap: 10px; } .facts svg { width: 22px; height: 22px; } }

/* missions: one large tile, two stacked */
.missions { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-top: 44px; }
.mission { position: relative; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.mission.big { grid-row: span 2; }
.mission .art { flex: 1; min-height: 190px; background: linear-gradient(180deg, var(--navy-50), var(--surface)); display: grid; place-items: center; padding: 18px; }
.mission.big .art { min-height: 360px; }
.mission .art svg { width: 100%; height: 100%; max-height: 380px; }
.mission .cap { padding: 18px 22px 22px; }
.mission h3 { font-size: 19px; margin-bottom: 4px; }
.mission p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.m-ground { stroke: var(--line-2); stroke-width: 1.4; }
.m-path { fill: none; stroke: var(--copper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.m-ghost { fill: none; stroke: var(--copper); stroke-width: 1; stroke-dasharray: 2 6; opacity: .4; }
.m-field { fill: color-mix(in srgb, var(--navy) 6%, transparent); stroke: var(--line-2); stroke-dasharray: 4 5; }
.m-quad { color: var(--copper); }
.m-truck { fill: var(--surface); stroke: var(--ink-3); stroke-width: 1.4; }
.m-text { font: 600 12px 'Plex Mono', monospace; fill: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .loop-on .m-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: drawLoop var(--dur, 6s) var(--ease) infinite; }
  .loop-on .m-move { offset-path: var(--route); offset-rotate: 0deg; animation: moveLoop var(--dur, 6s) var(--ease) infinite; }
  .loop-on .m-drive { animation: driveLoop var(--dur, 6s) linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .m-move { offset-path: var(--route); offset-distance: 100%; offset-rotate: 0deg; } }
@keyframes drawLoop { 0% { stroke-dashoffset: var(--len); } 70%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes moveLoop { 0% { offset-distance: 0%; } 70%, 100% { offset-distance: 100%; } }
@keyframes driveLoop { 0% { transform: translateX(-60px); } 70%, 100% { transform: translateX(0); } }
@media (max-width: 860px) { .missions { grid-template-columns: 1fr; } .mission.big { grid-row: auto; } .mission.big .art { min-height: 260px; } }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-art { grid-template-columns: .9fr 1.1fr; }
.split.art-left > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.wide-art { grid-template-columns: 1fr; gap: 36px; } .split.art-left > :first-child { order: 0; } }
.split h2 + .lead, .stack h2 + .lead { margin-top: 16px; }
.split .btn-row, .stack .btn-row { margin-top: 28px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks svg { width: 20px; height: 20px; flex: none; color: var(--navy); margin-top: 3px; }
.ticks b { color: var(--ink); font-weight: 600; }

/* board drawing (home, product page) */
.board-art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; position: relative; overflow: hidden; }
.board-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.board-art svg { position: relative; width: 100%; height: auto; }

/* FORGE blocks illustration */
.blocks-art { display: grid; gap: 10px; padding: 32px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); position: relative; }
.blk { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-card); border: 1.5px solid var(--line-2); background: var(--surface); position: relative; font-weight: 600; font-size: 15.5px; box-shadow: var(--shadow-1); }
.blk .k { font: 500 12px 'Plex Mono', monospace; color: var(--ink-3); margin-left: auto; white-space: nowrap; }
.blk .g { width: 34px; height: 34px; border-radius: var(--r-btn); display: grid; place-items: center; flex: none; background: var(--navy-50); color: var(--navy); }
.blk .g svg { width: 19px; height: 19px; }
.blk.in1 { margin-left: 0; }
.blk.in2 { margin-left: 28px; }
.blk.in3 { margin-left: 56px; }
.blk.state { border-color: var(--navy); }
.blk.copper { border-color: var(--copper); }
.blk.copper .g { background: var(--copper-50); color: var(--copper); }
.blocks-art .check-line { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 12px 14px; border-radius: var(--r-card); background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: 15px; }
.blocks-art .check-line svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .blocks-art.pre .blk { opacity: 0; transform: translateX(-36px); }
  .blocks-art.pre .check-line { opacity: 0; transform: translateY(8px); }
  .blocks-art.pre.in .blk { animation: blockSnap .7s var(--ease) forwards; animation-delay: calc(var(--i) * .16s); }
  .blocks-art.pre.in .check-line { animation: fadeUp .6s var(--ease) forwards; animation-delay: 1s; }
}
@keyframes blockSnap { 0% { opacity: 0; transform: translateX(-36px); } 70% { opacity: 1; transform: translateX(3px); } 100% { opacity: 1; transform: none; } }
@media (max-width: 480px) { .blk.in3 { margin-left: 28px; } .blk .k { display: none; } .blocks-art { padding: 18px; } }

/* simulation diagram */
.sim-diagram { margin-top: 48px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; }
.sim-node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; text-align: center; box-shadow: var(--shadow-1); }
.sim-node svg { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--navy); }
.sim-node h3 { font-size: 17px; margin-bottom: 4px; }
.sim-node p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.sim-node.locked { border-color: var(--copper); }
.sim-wire { width: 88px; height: 24px; color: var(--navy); }
.sim-wire path { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 4 6; }
@media (prefers-reduced-motion: no-preference) { .sim-wire path { animation: wire 1.2s linear infinite; } }
@keyframes wire { to { stroke-dashoffset: -20; } }
.sim-wire-label { display: block; text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 860px) { .sim-diagram { grid-template-columns: 1fr; } .sim-wire { transform: rotate(90deg); margin: 0 auto; } }

/* flight modes strip */
.modes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.mode { padding: 18px 14px; border-left: 1px solid var(--line); }
.mode:first-child { border-left: 0; }
.mode b { display: block; font: 600 14px 'Plex Mono', monospace; color: var(--navy); margin-bottom: 4px; letter-spacing: .02em; }
.mode span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; display: block; }
.mode.forge { background: var(--copper-50); }
.mode.forge b { color: var(--copper); }
@media (max-width: 1000px) { .modes { grid-template-columns: repeat(4, 1fr); } .mode:nth-child(5) { border-left: 0; } .mode:nth-child(n+5) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .modes { grid-template-columns: repeat(2, 1fr); } .mode:nth-child(odd) { border-left: 0; } .mode:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* pipeline (companion vision) */
.pipe { display: flex; align-items: stretch; gap: 0; margin-top: 8px; flex-wrap: wrap; }
.pipe-step { flex: 1 1 140px; padding: 18px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.pipe-step + .pipe-step { border-left: 0; }
.pipe-step:first-child { border-radius: var(--r-card) 0 0 var(--r-card); }
.pipe-step:last-child { border-radius: 0 var(--r-card) var(--r-card) 0; background: var(--navy-50); }
.pipe-step svg { width: 28px; height: 28px; color: var(--navy); margin-bottom: 10px; }
.pipe-step b { display: block; font-size: 15.5px; }
.pipe-step span { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 640px) { .pipe { flex-direction: column; } .pipe-step + .pipe-step { border-left: 1px solid var(--line); border-top: 0; } .pipe-step:first-child { border-radius: var(--r-card) var(--r-card) 0 0; } .pipe-step:last-child { border-radius: 0 0 var(--r-card) var(--r-card); } }

/* analyse plot */
.plot-art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 20px 14px; }
.plot-art .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }
.plot-art .head b { color: var(--ink); font-size: 15px; }
.plot-art svg { width: 100%; height: auto; }
.pl-grid { stroke: var(--line); stroke-width: 1; }
.pl-set { fill: none; stroke: var(--navy); stroke-width: 2; stroke-dasharray: 6 5; }
.pl-meas { fill: none; stroke: var(--copper); stroke-width: 2.4; stroke-linejoin: round; }
.pl-axis { font: 500 11px 'Plex Mono', monospace; fill: var(--ink-3); }
.legend { display: flex; gap: 18px; font-size: 13.5px; color: var(--ink-2); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .plot-art.pre .pl-meas { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
  .plot-art.pre.in .pl-meas { animation: draw 2.2s var(--ease) forwards .2s; }
}
.exports { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.exports div { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-card); background: var(--surface-2); font-weight: 500; font-size: 15px; }
.exports svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
@media (max-width: 420px) { .exports { grid-template-columns: 1fr; } }
.ai-note { margin-top: 28px; padding: 20px 22px; border-radius: var(--r-card); border: 1px dashed var(--line-2); display: flex; gap: 16px; align-items: flex-start; }
.ai-note svg { width: 28px; height: 28px; color: var(--navy); flex: none; }
.ai-note h3 { font-size: 17px; margin-bottom: 4px; }
.ai-note p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* who it's for: an index list, not cards */
.who { margin-top: 40px; border-top: 1px solid var(--line); }
.who a { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 24px; align-items: center; padding: 26px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .2s, padding .3s var(--ease); }
.who a:hover { background: var(--surface); padding-left: 16px; padding-right: 16px; }
.who h3 { font-size: 24px; letter-spacing: -.02em; }
.who p { margin: 0; color: var(--ink-2); }
.who .go { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background-color .2s, border-color .2s, color .2s, transform .3s var(--ease); }
.who .go svg { width: 18px; height: 18px; }
.who a:hover .go { background: var(--navy); color: var(--btn-ink); border-color: var(--navy); transform: rotate(-45deg); }
@media (max-width: 720px) { .who a { grid-template-columns: 1fr auto; gap: 6px 16px; } .who p { grid-column: 1; grid-row: 2; font-size: 15px; } .who .go { grid-row: 1 / span 2; grid-column: 2; } .who h3 { font-size: 20px; } }

/* price strip */
.price-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; margin-top: 40px; }
.price-strip > div { padding: 26px 24px; }
.price-strip > div + div { border-left: 1px solid var(--line); }
.price-strip .p { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-strip .p small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price-strip .l { font-weight: 600; margin-bottom: 6px; }
.price-strip .s { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.price-strip .feature { background: var(--navy-50); }
@media (max-width: 900px) { .price-strip { grid-template-columns: 1fr 1fr; } .price-strip > div:nth-child(3) { border-left: 0; } .price-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .price-strip { grid-template-columns: 1fr; } .price-strip > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* the closing call (the one deliberate deep-navy block on the page) */
.closing { background: #14336B; color: #fff; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.closing .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.closing h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.03em; color: #fff; }
.closing p { color: #C9D6EE; font-size: 18px; margin-top: 16px; max-width: 44ch; }
.closing .motto { font-size: 15px; color: #E3B58E; margin-top: 28px; font-weight: 500; }
.closing .btn-row { justify-content: flex-end; }
.closing .btn { background: #fff; color: #14336B; }
.closing .btn:hover { background: #EAF0FA; color: #14336B; }
.closing .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.closing .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.closing :focus-visible { outline-color: #fff; }
.closing-path { position: absolute; right: -40px; top: 10px; width: 560px; opacity: .5; pointer-events: none; }
.closing-path path { fill: none; stroke: #C98A55; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 7; }
@media (max-width: 860px) { .closing .wrap { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; } .closing .btn-row { justify-content: flex-start; } .closing-path { width: 360px; } }

/* ================================================================================================ PRODUCT PAGE */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; padding-top: 32px; }
@media (max-width: 960px) { .product { grid-template-columns: 1fr; gap: 28px; } }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .gallery { position: static; } }
.gallery-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); aspect-ratio: 1 / 1; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 28px; position: relative; overflow: hidden; }
.gallery-main::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
/* The picture fills what is left above its caption, so the caption never sits on the picture (round 4, on a phone). */
.gallery-main figure { margin: 0; position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; place-items: center; }
.gallery-main figure svg { width: 100%; height: 100%; }
.gallery-main figure > img { width: auto !important; max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-main figcaption { justify-self: start; font-size: 13.5px; line-height: 1.35; color: var(--ink-3); }
.gallery-main .slide.on { animation: slideIn .45s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumbs button { aspect-ratio: 1 / 1; border-radius: var(--r-card); border: 1.5px solid var(--line); background: var(--surface); padding: 8px; transition: border-color .15s, transform .12s; }
.thumbs button:hover { border-color: var(--ink-3); }
.thumbs button[aria-selected="true"] { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-50); }
.thumbs button:active { transform: scale(.97); }
.thumbs svg { width: 100%; height: 100%; }
.buybox h1 { font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -.03em; }
.buybox .lead { margin-top: 10px; }
.price-big { margin-top: 26px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-big .amt { font-size: 40px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.price-big .incl { color: var(--ink-2); font-weight: 500; }
.price-split { font-size: 14.5px; color: var(--ink-3); margin-top: 4px; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.buy-row .btn { flex: 1 1 160px; }
.added { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 16px; border-radius: var(--r-card); background: var(--ok-bg); color: var(--ok); font-weight: 600; animation: msgIn .3s var(--ease); }
.added a { color: var(--ok); }
.assure { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.assure li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.assure svg { width: 22px; height: 22px; color: var(--navy); flex: none; margin-top: 1px; }
.assure b { color: var(--ink); font-weight: 600; }
.spec-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.spec-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.spec-group h3 { font-size: 16px; margin-bottom: 12px; color: var(--navy); }
.spec-group dl { margin: 0; display: grid; gap: 12px; }
.spec-group dt { font-size: 13.5px; color: var(--ink-3); }
.spec-group dd { margin: 2px 0 0; font-weight: 500; font-size: 15.5px; }
.tbc { color: var(--ink-3); font-weight: 400; font-style: normal; border-bottom: 1px dotted var(--line-2); }
@media (max-width: 900px) { .spec-groups { grid-template-columns: 1fr; } }
.box-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; list-style: none; padding: 0; }
.box-list li { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 15.5px; }
.box-list svg { width: 24px; height: 24px; color: var(--navy); flex: none; }
.steps-h { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps-h li { padding: 0 18px 0 0; position: relative; }
.steps-h li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 600; font-size: 15px; margin-bottom: 14px; background: var(--paper); position: relative; z-index: 1; }
.steps-h li::after { content: ""; position: absolute; left: 34px; right: 0; top: 17px; height: 1.5px; background: var(--line-2); }
.steps-h li:last-child::after { display: none; }
.steps-h b { display: block; margin-bottom: 4px; }
.steps-h span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .steps-h { grid-template-columns: 1fr; gap: 18px; } .steps-h li { padding: 0 0 0 52px; } .steps-h li::before { position: absolute; left: 0; top: -4px; } .steps-h li::after { display: none; } }

/* ================================================================================================ STUDIO PAGE */
.feature-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.studio-shot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-2); overflow: hidden; }
.studio-shot .bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--ink-3); }
.studio-shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.studio-shot .bar span { margin-left: 8px; }
.feat { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.feat:first-of-type { border-top: 0; }
.feat h2 { font-size: 30px; letter-spacing: -.025em; }
.feat .icon { width: 48px; height: 48px; border-radius: var(--r-card); background: var(--navy-50); color: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.feat .icon svg { width: 26px; height: 26px; }
.feat-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.feat-body .lead { grid-column: 1 / -1; margin: 0; }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; } .feat-body { grid-template-columns: 1fr; gap: 20px; } }
.update-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.update-choices div { padding: 14px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; }
.update-choices b { display: block; margin-bottom: 2px; font-size: 15px; }
@media (max-width: 760px) { .update-choices { grid-template-columns: 1fr 1fr; } }
.dl { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .dl { grid-template-columns: 1fr; } }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-2); }
.dl-card .ver { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.dl-card .meta { color: var(--ink-3); font-size: 14.5px; margin-top: 4px; }
.dl-card ul { margin: 18px 0 0; padding-left: 20px; color: var(--ink-2); }
.dl-steps { margin: 10px 0 0; padding-left: 22px; color: var(--ink-2); display: grid; gap: 6px; }
.dl-card li { margin: 6px 0; }
.dl-card .sha { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.needs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.needs li { display: flex; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.needs svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; margin-top: 2px; }

/* ================================================================================================ PRICING */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 22px; display: flex; flex-direction: column; }
.plan.hw { border-color: var(--navy); box-shadow: var(--shadow-2); }
.plan h2 { font-size: 18px; }
.plan .who-for { font-size: 14px; color: var(--ink-3); margin-top: 4px; min-height: 42px; }
.plan .amt { font-size: 36px; font-weight: 600; letter-spacing: -.025em; margin-top: 18px; font-variant-numeric: tabular-nums; }
.plan .amt small { white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .split-gst { font-size: 13.5px; color: var(--ink-3); min-height: 40px; margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 18px; height: 18px; color: var(--navy); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
@media (max-width: 1060px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.lockgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.lockgrid .panel h2, .lockgrid .panel h3 { display: flex; gap: 10px; align-items: center; font-size: 18px; margin-bottom: 14px; }
.lockgrid > .panel, .grid-2 > .panel { margin-top: 0; }
.lockgrid .panel h2 svg, .lockgrid .panel h3 svg { width: 22px; height: 22px; flex: none; }
.lockgrid ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; }
@media (max-width: 760px) { .lockgrid { grid-template-columns: 1fr; } }
.cmp-tbl td:not(:first-child), .cmp-tbl th:not(:first-child) { text-align: center; }
.cmp-tbl .yes svg { width: 18px; height: 18px; color: var(--ok); margin: 0 auto; }
.cmp-tbl .no { color: var(--ink-3); }

/* ================================================================================================ STUDENTS */
.path-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: p; }
.path-steps li { padding: 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.path-steps li::before { counter-increment: p; content: counter(p); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--btn-ink); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.path-steps b { display: block; margin-bottom: 4px; }
.path-steps span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .path-steps { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: var(--r-card); background: var(--surface-2); width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 10px 16px; border-radius: var(--r-btn); font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 -3px 0 var(--navy), var(--shadow-1); }
.tab-panel { animation: msgIn .3s var(--ease); }
.drop { border: 2px dashed var(--line-2); border-radius: var(--r-card); padding: 22px; text-align: center; background: var(--surface-2); transition: border-color .2s, background-color .2s; cursor: pointer; display: block; }
.drop:hover, .drop.over { border-color: var(--navy); background: var(--navy-50); }
.drop svg { width: 32px; height: 32px; color: var(--navy); margin: 0 auto 8px; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.id-preview { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.id-preview img { width: 120px; height: 76px; object-fit: cover; border-radius: var(--r-btn); border: 1px solid var(--line); }
.status-card { display: flex; gap: 18px; align-items: center; }
.status-card .ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-3); }
.status-card .ring svg { width: 28px; height: 28px; }
.status-card.ok .ring { background: var(--ok-bg); color: var(--ok); }
.status-card.warn .ring { background: var(--warn-bg); color: var(--warn); }
.status-card.bad .ring { background: var(--bad-bg); color: var(--bad); }
.status-card h2 { font-size: 20px; }

/* ================================================================================================ CART / CHECKOUT */
.shop { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .shop { grid-template-columns: 1fr; } }
.shop-side { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .shop-side { position: static; } }
.line-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 20px 0; }
.line-item + .line-item { border-top: 1px solid var(--line); }
.line-item .thumb { width: 96px; height: 96px; border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--line); padding: 8px; }
.line-item h3 { font-size: 17px; }
.line-item .meta { color: var(--ink-3); font-size: 14.5px; margin-top: 2px; }
.line-item .ctrl { display: flex; gap: 14px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.line-item .lt { font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 560px) { .line-item { grid-template-columns: 64px 1fr; } .line-item .thumb { width: 64px; height: 64px; } .line-item .lt { grid-column: 2; text-align: left; } }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pay-methods span { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: var(--r-btn); background: var(--surface-2); color: var(--ink-2); }
.pay-methods svg { width: 16px; height: 16px; }
.secure { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-3); margin-top: 14px; }
.secure svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.addr-list { display: grid; gap: 10px; }
.addr-list .radio-card span { font-size: 15px; line-height: 1.45; }
.addr-list .radio-card b { display: block; }
.gst-box { border-top: 1px solid var(--line); padding-top: 18px; }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease), opacity .3s; opacity: 0; }
.collapse > div { overflow: hidden; }
.collapse.open { grid-template-rows: 1fr; opacity: 1; }
.collapse.open > div { overflow: visible; }
.step-title { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.step-title .n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--btn-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.step-title h2 { font-size: 20px; }

/* ================================================================================================ ACCOUNT */
.acct { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 40px; padding-bottom: 80px; }
.acct-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.acct-nav .who { padding: 4px 12px 16px; margin: 0; border: 0; }
.fc-row .slot:empty { display: none; }
.acct-nav .who b { display: block; font-size: 16px; }
.acct-nav .who span { font-size: 14px; color: var(--ink-3); overflow-wrap: anywhere; }
.acct-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acct-nav a { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: var(--r-btn); color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15.5px; transition: background-color .15s, color .15s; white-space: nowrap; }
.acct-nav a svg { width: 20px; height: 20px; flex: none; }
.acct-nav a:hover { background: var(--surface); color: var(--ink); }
.acct-nav a[aria-current="page"] { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-1); }
.acct-main { min-width: 0; }
.acct-main > h1 { font-size: 32px; letter-spacing: -.025em; margin-bottom: 6px; }
.acct-main > .lead { margin-bottom: 28px; font-size: 17px; }
@media (max-width: 900px) {
  .acct { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .acct-nav { min-width: 0; }
  .acct-nav { position: static; margin: 0 calc(-1 * var(--gutter)); }
  .acct-nav .who { display: none; }
  .acct-nav ul { display: flex; overflow-x: auto; gap: 6px; padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .acct-nav ul::-webkit-scrollbar { display: none; }
  .acct-nav a { padding: 9px 14px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; }
  .acct-nav a[aria-current="page"] { border-color: var(--navy); }
  .acct-nav a svg { display: none; }
}
.plan-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.days-ring { width: 104px; height: 104px; position: relative; }
.days-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.days-ring circle { fill: none; stroke-width: 8; }
.days-ring .bg { stroke: var(--surface-3); }
.days-ring .fg { stroke: var(--copper); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.days-ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.05; }
.days-ring .lbl b { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; display: block; }
.days-ring .lbl span { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) { .plan-card { grid-template-columns: auto 1fr; } .plan-card .btn-row { grid-column: 1 / -1; } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 16px 4px; color: var(--ink); text-decoration: none; border-radius: var(--r-btn); transition: background-color .15s; }
.order-row:hover { background: var(--surface-2); }
.order-row + .order-row { border-top: 1px solid var(--line); }
.order-row .id { font-family: 'Plex Mono', monospace; font-weight: 500; }
.order-row .what { color: var(--ink-3); font-size: 14.5px; }
.order-row .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .order-row { grid-template-columns: 1fr auto; } .order-row .badge { grid-column: 1; justify-self: start; } .order-row .amt { grid-row: 1; grid-column: 2; } }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick a { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .15s, transform .15s var(--ease); }
.quick a:hover { border-color: var(--navy); transform: translateY(-2px); }
.quick svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .quick { grid-template-columns: 1fr; } }
.fc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 0; }
.fc-row + .fc-row { border-top: 1px solid var(--line); }
.fc-row .ic { width: 52px; height: 52px; border-radius: var(--r-card); background: var(--navy-50); display: grid; place-items: center; color: var(--navy); }
.fc-row .ic svg { width: 30px; height: 30px; }
.fc-row .serial { font-family: 'Plex Mono', monospace; font-weight: 500; font-size: 17px; }
@media (max-width: 600px) { .fc-row { grid-template-columns: auto 1fr; } .fc-row .btn-row { grid-column: 1 / -1; } }
/* A board's card on the account page (S129): the same details and codes as the card in the box. */
.fc-card { margin-top: 14px; padding: 16px; border-radius: var(--r-card); background: var(--surface-2); display: grid; gap: 12px; animation: msgIn .25s var(--ease); }
.fc-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.fc-card dt { font-weight: 600; color: var(--ink-2); }
.fc-card dd { margin: 0; overflow-wrap: anywhere; }
.fc-card-qrs { display: flex; flex-wrap: wrap; gap: 20px; }
.fc-card-qr { margin: 0; width: 132px; text-align: center; }
.fc-card-qr svg { width: 132px; height: 132px; background: #fff; padding: 6px; border-radius: var(--r-btn); }
.fc-card-qr figcaption { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.fc-card p { margin: 0; }
.fc-card dd .btn { margin-left: 8px; padding: 2px 10px; min-height: 0; vertical-align: middle; }
.fc-card-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
/* A phone cannot scan a code on its own screen: the name and password above are what it uses. */
@media (max-width: 600px) { .fc-card-qrs { display: none; } }
details.fc-add > summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details.fc-add[open] > summary { margin-bottom: 12px; }
/* Printing a board's Wi-Fi card on the account page: the card alone. Only on a page that shows one (2026-10-16: on
   every page it also blanked the admin page's printed board card). */
@media print { body:has(.fc-card) * { visibility: hidden; } body:has(.fc-card) .fc-card, body:has(.fc-card) .fc-card * { visibility: visible; } .fc-card { position: absolute; inset: 0 auto auto 0; background: #fff; } .fc-card .btn-row, .fc-card [data-copy] { display: none; } }
.inline-form { margin-top: 14px; padding: 16px; border-radius: var(--r-card); background: var(--surface-2); display: grid; gap: 12px; animation: msgIn .25s var(--ease); }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; }
.history li + li { border-top: 1px solid var(--line); }
.history i { width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.history i.trial { background: var(--ink-3); }
.history i.fc { background: var(--copper); }
.history i.student { background: var(--ok); }
.history .w { font-size: 14px; color: var(--ink-3); text-align: right; }
.onoff { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.onoff > div { padding: 18px; }
.onoff > div + div { border-left: 1px solid var(--line); }
.onoff h3 { font-size: 15px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.onoff h3 svg { width: 18px; height: 18px; }
.onoff ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 6px; }
@media (max-width: 640px) { .onoff { grid-template-columns: 1fr; } .onoff > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.device { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 0; }
.device + .device { border-top: 1px solid var(--line); }
.device .ic { width: 46px; height: 46px; border-radius: var(--r-card); background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.device .ic svg { width: 24px; height: 24px; }
.device b { display: block; }
.device span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 520px) { .device { grid-template-columns: auto 1fr; } .device .btn { grid-column: 1 / -1; } }
.renew-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.renew-opt { position: relative; display: block; cursor: pointer; }
.renew-opt input { position: absolute; opacity: 0; }
.renew-opt .box { display: block; padding: 18px 16px; border-radius: var(--r-card); border: 1.5px solid var(--line-2); background: var(--surface); transition: border-color .15s, background-color .15s, transform .15s var(--ease); height: 100%; }
.renew-opt:hover .box { border-color: var(--ink-3); }
.renew-opt input:checked + .box { border-color: var(--navy); background: var(--navy-50); transform: translateY(-2px); }
.renew-opt input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 2px; }
.renew-opt .m { font-size: 26px; font-weight: 600; display: block; letter-spacing: -.02em; }
.renew-opt .m small { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.renew-opt .p { font-weight: 600; margin-top: 6px; display: block; font-variant-numeric: tabular-nums; }
.renew-opt .d { font-size: 13.5px; color: var(--ink-3); display: block; margin-top: 2px; }
@media (max-width: 480px) { .renew-opts { grid-template-columns: 1fr; } }
.renew-opt .t { font-size: 17px; font-weight: 600; display: block; }
.people { display: flex; align-items: center; gap: 10px; }
.people input { width: 84px; text-align: center; font-variant-numeric: tabular-nums; }
.people .btn { min-width: 44px; padding-inline: 0; }
.ends { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px; border-radius: var(--r-card); background: var(--surface-2); }
.ends .from, .ends .to { display: grid; }
.ends .from span, .ends .to span { font-size: 13.5px; color: var(--ink-3); }
.ends b { font-size: 18px; }
.ends .to b { color: var(--navy); }
.ends svg { width: 24px; height: 24px; color: var(--copper); }

/* ================================================================================================ AUTH */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100dvh - 140px); }
/* A light panel with the board the account is about (S166 taste 9: the site is light only; no dark panel, dot grid
   or washed-out film still). Its words are read by screen readers too (S166 a11y R11). */
.auth-side { background: var(--navy-50); color: var(--ink); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 56px; }
.auth-side .auth-h { font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; max-width: 16ch; color: var(--ink); margin: 0; text-wrap: balance; }
.auth-side p { color: var(--ink-2); margin-top: 12px; max-width: 40ch; }
.auth-side .motto { color: var(--navy); font-size: 15px; margin-top: 24px; font-weight: 600; }
.auth-side .auth-pic { position: static; width: 68%; max-width: 400px; height: auto; object-fit: contain; margin: -24px auto 0; display: block; filter: drop-shadow(0 26px 34px rgba(13, 24, 48, .16)); }
.auth-main { display: grid; place-items: center; padding: 56px var(--gutter); }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 32px; letter-spacing: -.025em; }
.auth-box .lead { font-size: 16.5px; margin-top: 8px; margin-bottom: 28px; }
.auth-box .alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding-top: 40px; place-items: start center; } }
.big-icon { width: 64px; height: 64px; border-radius: var(--r-card); display: grid; place-items: center; margin-bottom: 20px; background: var(--navy-50); color: var(--navy); }
.big-icon svg { width: 32px; height: 32px; }
.big-icon.ok { background: var(--ok-bg); color: var(--ok); }
.big-icon.bad { background: var(--bad-bg); color: var(--bad); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.strength i { height: 4px; border-radius: 2px; background: var(--surface-3); transition: background-color .3s; }
.strength[data-s="1"] i:nth-child(-n+1) { background: var(--bad); }
.strength[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-s="3"] i:nth-child(-n+3) { background: var(--navy-600); }
.strength[data-s="4"] i { background: var(--ok); }

/* ================================================================================================ TRACK, SUPPORT, LEGAL, 404 */
.track-form { display: grid; grid-template-columns: 1fr 200px auto; gap: 14px; align-items: end; }
@media (max-width: 720px) { .track-form { grid-template-columns: 1fr; } }
.events { list-style: none; padding: 0; margin: 0; }
.events li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px 0; font-size: 15px; }
.events li + li { border-top: 1px dashed var(--line); }
.events time { color: var(--ink-3); font-size: 14px; }
@media (max-width: 520px) { .events li { grid-template-columns: 1fr; gap: 2px; } }
.support-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .support-grid { grid-template-columns: 1fr; } }
.faq-search { position: relative; margin-bottom: 20px; }
.faq-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.faq-search input { padding-left: 44px !important; }
.contact-facts { display: grid; gap: 14px; margin-top: 20px; }
.contact-facts div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.contact-facts svg { width: 20px; height: 20px; color: var(--navy); flex: none; margin-top: 2px; }
.contact-facts b { color: var(--ink); display: block; }
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 96px; align-items: start; }
.legal nav { position: sticky; top: calc(var(--header-h) + 20px); }
.legal nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal nav a { display: block; padding: 9px 12px; border-radius: var(--r-btn); color: var(--ink-2); text-decoration: none; font-size: 15px; }
.legal nav a:hover { background: var(--surface); color: var(--ink); }
.legal nav a[aria-current="page"] { background: var(--surface); color: var(--navy); font-weight: 600; box-shadow: var(--shadow-1); }
.legal article h1 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.028em; }
.draft { display: inline-flex; gap: 8px; align-items: center; margin: 16px 0 8px; padding: 8px 12px; border-radius: var(--r-btn); background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 600; }
.draft svg { width: 18px; height: 18px; }
.legal .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 28px; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; } .legal nav { position: static; } .legal nav ul { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; } .legal nav a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); } }
/* The side gutter stays: .nf comes after .wrap, so it sets both paddings (S166 taste 11). */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.nf .nf-pic { width: min(280px, 70%); height: auto; opacity: .5; margin: 0 auto 24px; display: block; }
.nf h1 { font-size: 36px; letter-spacing: -.025em; }
.nf p { color: var(--ink-2); margin: 12px auto 24px; max-width: 46ch; }
.nf .btn-row { justify-content: center; }

/* ================================================================================================ DEV TOOL PAGE */
.dev-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0 8px; }
.dev-head h1 { font-size: 28px; }
.dev-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 64px; }
.dev-grid .panel { padding: 20px; }
.dev .tbl { font-size: 14px; }
.dev .tbl td, .dev .tbl th { padding: 10px 12px; }
.dev .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dev .btn-sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.dev-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.dev-row .field { flex: 1 1 200px; }
.outbox-list { display: grid; gap: 0; max-height: 520px; overflow: auto; }
.outbox-list > div { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; padding: 10px 4px; align-items: start; font-size: 14px; }
.outbox-list > div + div { border-top: 1px solid var(--line); }
.outbox-list .k { font: 600 11.5px 'Plex Mono', monospace; padding: 3px 6px; border-radius: 6px; background: var(--surface-2); text-align: center; }
.outbox-list .k.sms { background: var(--copper-50); color: var(--copper); }
.outbox-list .to { color: var(--ink-3); font-size: 13px; }
.outbox-list time { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.dev-id { max-width: 240px; border-radius: var(--r-btn); border: 1px solid var(--line); }
@media (max-width: 600px) { .dev .device { grid-template-columns: minmax(0, 1fr); } .dev-id { max-width: 100%; } }
@media (max-width: 600px) { .outbox-list > div { grid-template-columns: 44px 1fr; } .outbox-list time { grid-column: 2; } }

/* topic chips that filter (support page) */
button.chip { cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
button.chip:hover { border-color: var(--ink-3); color: var(--ink); }
button.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--btn-ink); }

/* reduced motion: nothing moves on its own; state changes are instant */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* print: only invoices print nicely; everything else stays readable */
@media print { .sh, .sf, .notice { display: none; } body { background: #fff; } }

/* account › AI apps (account-ai-apps.js) */
.ai-steps { margin: 4px 0 0; padding-left: 22px; color: var(--ink-2); }
.ai-steps li + li { margin-top: 10px; }
.ai-address { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.ai-address code { padding: 8px 12px; border-radius: var(--r-btn); background: var(--surface-2); color: var(--ink); font-size: 14px; word-break: break-all; user-select: all; }
.ai-studio { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface-2); color: var(--ink-2); }
.ai-studio svg { width: 20px; height: 20px; flex: none; }
.ai-studio.ok { color: var(--ink); }
.ai-studio.ok svg { color: var(--ok); }
.sub-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 0; }
.sub-facts dt { color: var(--ink-3); }
.sub-facts dd { margin: 0; font-weight: 600; }
.members { list-style: none; padding: 0; margin: 0; }
.members li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.add-m { display: flex; gap: 10px; margin-top: 12px; }
.add-m input { flex: 1; min-width: 0; }
.empty .empty-board { width: 160px; height: auto; margin: 0 auto 6px; display: block; }
/* A full-width button wraps its words on a narrow phone instead of widening the page. */
.btn-block { white-space: normal; text-align: center; line-height: 1.3; max-width: 100%; }
#sf-test a { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------------------------------------ what's new (S86) */
.rel-page { padding-bottom: 80px; }
.rel-panel { margin-top: 22px; }
.rel-lead { color: var(--ink-2); max-width: 680px; margin: 0 0 24px; }
.rel-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 8px; padding: 0 6px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.tabs button[aria-selected="true"] .rel-count { background: var(--navy); color: var(--btn-ink); }
.rel-list { list-style: none; margin: 0; padding: 0; }
.rel { position: relative; padding: 0 0 18px 34px; }
.rel::before { content: ""; position: absolute; left: 7px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.rel:last-child::before { display: none; }
.rel::after { content: ""; position: absolute; left: 0; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.rel-new::after { border-color: var(--copper); background: var(--copper-50); box-shadow: inset 0 0 0 3px var(--surface); }
.rel > * { background: var(--surface); }
.rel-head, .rel-notes, .rel-none, .rel-extra { margin: 0; padding: 0 22px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.rel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 18px; padding-bottom: 8px; border-top: 1px solid var(--line); border-radius: var(--r-card) var(--r-card) 0 0; }
.rel > :last-child { padding-bottom: 18px; border-bottom: 1px solid var(--line); border-radius: 0 0 var(--r-card) var(--r-card); }
.rel-new .rel-head, .rel-new > * { border-color: var(--line-2); }
.rel-ver { font-size: 18px; margin: 0; letter-spacing: -.01em; }
.rel-facts { color: var(--ink-3); font-size: 14px; }
.rel-notes { list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: 15.5px; }
.rel-notes li { position: relative; padding-left: 18px; }
.rel-notes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--navy-100); border: 1px solid var(--navy-600); }
.rel-none { color: var(--ink-3); font-size: 15px; }
.rel-extra { color: var(--ink-2); font-size: 15px; padding-top: 10px; }
.rel-empty { padding: 28px 22px; border: 1px dashed var(--line-2); border-radius: var(--r-card); color: var(--ink-2); background: var(--surface); }
@media (max-width: 720px) {
  /* All three kinds in view on a phone: no tab hidden off the side. */
  #rel-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  #rel-tabs button { white-space: normal; padding: 8px 6px; font-size: 14px; line-height: 1.25; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  #rel-tabs .rel-count { margin-left: 0; }
  .rel { padding-left: 26px; }
  .rel::after { width: 14px; height: 14px; }
  .rel::before { left: 6px; }
  .rel-head, .rel-notes, .rel-none, .rel-extra { padding-left: 16px; padding-right: 16px; }
}

/* S160: the phone header's action in the menu (W01), the slim header (W35, W38), the footer's policies (W32). */
.sh-nav .sh-nav-try { display: none; }
@media (max-width: 479px) {
  .sh-try { display: none; }
  .sh-nav .sh-nav-try { display: block; font-weight: 600; color: var(--navy); }
}
.sh-slim { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
@media (max-width: 420px) { .sh-slim { margin-left: 8px; padding-left: 8px; font-size: 14px; } }
/* 320 px (400 % zoom): the slim header's words step aside so the cart and account stay on screen (S166 a11y R2). */
@media (max-width: 359px) { .sh-slim { display: none; } }
/* The footer's policies: a plain heading and list on a computer, folded on a phone (site.js); the + and the minus
   sit outside the heading, so they are not part of its name (S166 a11y R10). */
details.sf-policies > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
details.sf-policies > summary::-webkit-details-marker { display: none; }
details.sf-policies > summary h2 { margin-bottom: 0; }
.sf-policies .sf-pm::before { content: '+'; color: var(--ink-3); font-weight: 600; }
details.sf-policies[open] .sf-pm::before { content: '\2212'; }

/* A paid board order: the two next things to do (S160 W16). */
.next-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.next-steps a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); color: inherit; text-decoration: none; }
.next-steps a:hover { border-color: var(--navy-100); }
.next-steps a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.next-steps b { font-weight: 600; }
.next-steps span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) { .next-steps { grid-template-columns: 1fr; } }

/* S180: buying is one tap from every page: "Buy" beside "Try it free" in the header (kept on a phone, where "Try it free"
   moves into the menu), and "Buy the flight controller" second in the phone menu. */
.sh-buy { margin-right: 4px; }
.sh-nav .sh-nav-buy { display: none; }
@media (max-width: 479px) {
  .sh-buy { padding-left: 14px; padding-right: 14px; }
  .sh-nav .sh-nav-buy { display: block; font-weight: 600; color: var(--navy); }
}
@media (max-width: 359px) { .sh-buy { display: none; } }

/* S186: a film that a phone refused to start, standing behind its looping picture (js/film.js loopPicture). */
video.film-off { display: none !important; }
