/* pallascode.com: the consultant's patch board. A black board with gold wiring and the Medusa hub up
   top; macOS-native light surfaces below it. State is line form (solid, dashed, pulsing), not hue. */

@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --board: #0b0b0c;
  --board-2: #151517;
  --on-board: #f5f2ea;
  --on-board-2: #a9a399;
  --gold: #d4a537;
  --gold-hi: #e2b84f;
  --gold-text: #87661a;
  --wire: rgb(212 165 55 / 0.6);
  --ground: #f5f5f3;
  --ground-2: #ebebe8;
  --panel: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #5b5b5e;
  --rule: #d6d6d2;
  --red: #b3261e;

  --lettering: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --nav-h: 52px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --period: 3s;        /* one port is live for this long */
  --cycle: 18s;        /* six ports */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #161617;
    --ground-2: #1f1f21;
    --panel: #232325;
    --ink: #ededea;
    --ink-2: #a6a6a3;
    --rule: #39393c;
    --gold-text: #d9b04d;
    --red: #ef7b74;
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--gold);
  scrollbar-color: var(--gold-text) var(--ground);
}

::selection { background: var(--gold); color: #1d1d1f; }

img { max-width: 100%; height: auto; }
a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
code { font: 0.92em var(--mono); background: var(--ground-2); padding: 0.1em 0.35em; border-radius: 4px; }
mark.pending { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); padding: 0 0.25em; border-radius: 3px; }
time { font-variant-numeric: tabular-nums; }

h1, h2, h3 { text-wrap: balance; margin: 0; }
p, ul, ol, dl { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 20; background: var(--gold); color: #1d1d1f; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 8px; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2 * var(--gutter)); }

/* ---------- top bar ---------- */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--nav-h);
  background: rgb(11 11 12 / 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 rgb(212 165 55 / 0.22);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-board); text-decoration: none; font: 600 0.95rem var(--lettering); letter-spacing: 0.14em; white-space: nowrap; }
.primary { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.primary a:not(.btn) { color: var(--on-board); text-decoration: none; font-size: 0.875rem; opacity: 0.86; }
.primary a:not(.btn):hover { opacity: 1; }
@media (max-width: 600px) {
  .primary { gap: 14px; }
  .primary a[href$="#features"] { display: none; }
}
.page-help .top, .page-legal .top, .page-regions .top { background: color-mix(in srgb, var(--ground) 80%, transparent); box-shadow: 0 1px 0 var(--rule); }
.page-help .top :is(.brand, .primary a:not(.btn)), .page-legal .top :is(.brand, .primary a:not(.btn)), .page-regions .top :is(.brand, .primary a:not(.btn)) { color: var(--ink); }
@media (prefers-reduced-transparency: reduce) {
  .top { background: var(--board); backdrop-filter: none; }
  .page-help .top, .page-legal .top, .page-regions .top { background: var(--ground); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #1d1d1f;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease-out, transform 100ms ease-out;
}
.btn:hover { background: var(--gold-hi); }
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 85%, var(--gold)); }
.btn-small { min-height: 32px; padding: 6px 14px; font-size: 0.8125rem; white-space: nowrap; }
.btn-big { min-height: 56px; padding: 16px 34px; font-size: 1.125rem; }
.link-gold { color: var(--gold); font-weight: 500; text-decoration: none; }
.link-gold:hover { text-decoration: underline; }

/* ---------- the board (hero, footer) ---------- */

.board { background: var(--board); color: var(--on-board); }
.board a:not(.btn) { color: var(--gold); }

.hero { padding: calc(var(--nav-h) + clamp(28px, 5vh, 64px)) 0 clamp(40px, 6vh, 72px); }
.hero-slim { padding-bottom: clamp(48px, 8vh, 88px); }
.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; }


.hero h1 {
  max-width: 22ch;
  font: 700 clamp(2rem, 4.2vw, 3.25rem)/1.06 var(--display);
  letter-spacing: -0.025em;
  color: var(--on-board);
}
.hero .lead { max-width: 58ch; margin-top: 22px; color: var(--on-board-2); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 0.875rem; color: var(--on-board-2); }

/* the hub: medallion with a specular glint that follows the pointer (site.js sets --gx/--gy).
   Registering the two properties lets the glint glide instead of jump. */
@property --gx { syntax: "<percentage>"; inherits: true; initial-value: 68%; }
@property --gy { syntax: "<percentage>"; inherits: true; initial-value: 24%; }
.hub {
  --gx: 68%;
  --gy: 24%;
  position: relative;
  width: 256px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 8px 0 0;
}
.hub .medallion { width: 100%; filter: drop-shadow(0 22px 36px rgb(0 0 0 / 0.7)); }
.hub .glint {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* color-dodge is the metal: the gold under the light goes to white, the black enamel stays black */
  background: radial-gradient(circle at var(--gx) var(--gy), rgb(255 255 255 / 0.8) 0, rgb(255 255 255 / 0.45) 7%, rgb(255 255 255 / 0.14) 18%, transparent 40%);
  mix-blend-mode: color-dodge;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) { .hub { transition: --gx 140ms ease-out, --gy 140ms ease-out; } }
.hub.small { width: 140px; }
.hero h1.lettering { margin-top: 22px; font: 600 clamp(1.5rem, 3vw, 2.25rem) var(--lettering); letter-spacing: 0.3em; margin-left: 0.3em; color: var(--gold); }

/* the patch board */
.patchboard {
  position: relative;
  width: min(1120px, 100%);
  aspect-ratio: 1120 / 440; /* same ratio as BOARD in pages.mjs: ports and wires share one grid */
  margin: clamp(24px, 4vh, 40px) 0 3.4em;
}
.patchboard .wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.patchboard .hub { position: absolute; left: 50%; top: 50%; width: 22.14%; transform: translate(-50%, -50%); margin: 0; }
.patchboard .hub .medallion { filter: drop-shadow(0 14px 26px rgb(0 0 0 / 0.6)); }
.ports { list-style: none; margin: 0; padding: 0; }
.port {
  position: absolute;
  width: 22.32%;
  min-height: 64px;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  row-gap: 2px;
  padding: 11px 16px;
  text-align: left;
  background: var(--board-2);
  border: 1px solid rgb(212 165 55 / 0.28);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.45);
  font-size: 0.875rem; /* one size for every port label; rank is weight and tint */
  line-height: 1.3;
  container-type: inline-size;
}
/* the live port's gold rim and glow, a layer whose opacity is the only thing the cycle animates */
.port-glow { position: absolute; inset: -1px; border-radius: 10px; border: 1px solid var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 28px rgb(212 165 55 / 0.28); opacity: 0; pointer-events: none; }
.port-r { text-align: right; grid-template-columns: auto 1fr; }
.port-name { grid-column: 1; grid-row: 1; font-weight: 600; color: var(--on-board); white-space: nowrap; }
.port-signin { grid-row: 2; grid-column: 1 / -1; color: var(--on-board-2); }
.port-r .port-name { grid-column: 2; }
.port-state { grid-column: 2; grid-row: 1; display: grid; align-items: center; color: var(--on-board-2); white-space: nowrap; }
.port-r .port-state { grid-column: 1; }
.port-state > span { grid-area: 1 / 1; display: flex; align-items: center; }
.port-state .st-on, .port-state .st-auth { color: var(--gold); opacity: 0; }
.port-state .st-on time { margin-left: 0.35em; }
.port-state .st-idle { opacity: 0.75; }
/* state is form: hollow = ready, dotted ring = signing in, filled = connected */
.port-state > span::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex: none;
}
.port-state .st-auth::before { border-style: dotted; border-width: 2px; }
.port-state .st-on::before { background: currentColor; box-shadow: 0 0 0 3px rgb(212 165 55 / 0.22); }
.port-signin { transition: color 300ms ease-out; }
/* a narrow port (a squeezed desktop window) has no room for name and state side by side: the state
   takes its own line under the sign-in method instead of running out of the box */
@container (max-width: 270px) {
  .port-state, .port-r .port-state { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
  .port-r .port-state > span { justify-content: flex-end; }
}

.wire { fill: none; stroke: var(--wire); stroke-width: 1.25; stroke-dasharray: 3 7; stroke-linecap: round; }
.jack { fill: var(--board); stroke: var(--wire); stroke-width: 1.25; }
.auth { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.6 2.4; stroke-dashoffset: 0; opacity: 0; }
.pulse { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; filter: drop-shadow(0 0 6px rgb(212 165 55 / 0.55)); }

.log { position: absolute; left: 0; right: 0; top: 100%; height: 1.6em; margin: 24px 0 0; font-size: 0.8125rem; color: var(--on-board-2); text-align: center; }
.log span { position: absolute; inset: 0; opacity: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log b { color: var(--gold); font-weight: 600; }

/* the switch: each port is live for one period, in turn. Pure CSS; --i is the port's index. The
   cycle runs two laps, then site.js settles the board on the first port (.settled); it also pauses
   while the board is off screen (.paused). States never overlap: each one fades out before the next
   fades in. */
@media (prefers-reduced-motion: no-preference) {
  .auth, .pulse, .port-glow, .port .st-on, .port .st-auth, .port .st-idle, .port .port-signin, .log span { animation-duration: var(--cycle); animation-timing-function: linear; animation-iteration-count: 2; animation-delay: calc(var(--i) * var(--period)); }
  .auth { animation-name: auth; }
  .pulse { animation-name: pulse; }
  .port-glow { animation-name: show-live; }
  .port .st-auth { animation-name: show-auth; }
  .port .st-on { animation-name: show-on; }
  .port .st-idle { animation-name: hide-idle; }
  .port .port-signin { animation-name: signin-lit; }
  .log span { animation-name: show-on; }
  .patchboard.paused *, .patchboard.paused .port::before { animation-play-state: paused; }
  .patchboard.settled *, .patchboard.settled .port::before { animation: none; }
  /* signing in: dots travel toward the hub */
  @keyframes auth {
    0% { opacity: 1; stroke-dashoffset: 30; }
    5% { opacity: 1; stroke-dashoffset: 0; }
    5.5%, 100% { opacity: 0; stroke-dashoffset: 0; }
  }
  /* connected: the wire turns solid from the port to the hub */
  @keyframes pulse {
    0%, 5% { opacity: 1; stroke-dashoffset: 100; }
    7% { stroke-dashoffset: 0; }
    15.5% { opacity: 1; stroke-dashoffset: 0; }
    16.66% { opacity: 0; stroke-dashoffset: 0; }
    100% { opacity: 0; stroke-dashoffset: 100; }
  }
  @keyframes show-live { 0% { opacity: 0; } 1% { opacity: 1; } 15.5% { opacity: 1; } 16.66%, 100% { opacity: 0; } }
  @keyframes hide-idle { 0% { opacity: 0.75; } 0.5% { opacity: 0; } 16.1% { opacity: 0; } 16.66%, 100% { opacity: 0.75; } }
  @keyframes show-auth { 0%, 0.6% { opacity: 0; } 1.1% { opacity: 1; } 5% { opacity: 1; } 5.4%, 100% { opacity: 0; } }
  @keyframes show-on { 0%, 5.5% { opacity: 0; } 6% { opacity: 1; } 15.5% { opacity: 1; } 16%, 100% { opacity: 0; } }
  @keyframes signin-lit { 0% { color: var(--on-board-2); } 1% { color: var(--on-board); } 5% { color: var(--on-board); } 5.5%, 100% { color: var(--on-board-2); } }
}
/* without motion, or once the cycle has settled, the first port is connected and stays so */
@media (prefers-reduced-motion: reduce) {
  .pulse[style="--i:0"] { opacity: 1; stroke-dashoffset: 0; }
  .port[style^="--i:0"] .port-glow { opacity: 1; }
  .port[style^="--i:0"] .st-on { opacity: 1; }
  .port[style^="--i:0"] .st-idle { opacity: 0; }
  .port[style^="--i:0"]::before { border-top-style: solid; border-top-color: var(--gold); }
  .log span[style="--i:0"] { opacity: 1; }
}
.patchboard.settled .pulse[style="--i:0"] { opacity: 1; stroke-dashoffset: 0; }
.patchboard.settled .port[style^="--i:0"] .port-glow { opacity: 1; }
.patchboard.settled .port[style^="--i:0"] .st-on { opacity: 1; }
.patchboard.settled .port[style^="--i:0"] .st-idle { opacity: 0; }
.patchboard.settled .port[style^="--i:0"]::before { border-top-style: solid; border-top-color: var(--gold); }
.patchboard.settled .log span[style="--i:0"] { opacity: 1; }
  .port[style^="--i:0"]::before { border-top-style: solid; border-top-color: var(--gold); }
}

/* the Pallas Code mark (Athena, owl, olive, shield): the company's own face on the home page and footer */
.company-mark { width: clamp(200px, 30vw, 300px); height: auto; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.6)); }
.foot-mark { width: 75px; height: auto; }
.app-icon { width: 112px; margin-bottom: 26px; filter: drop-shadow(0 16px 28px rgb(0 0 0 / 0.6)); }

/* ---------- light pages ---------- */

.page { position: relative; padding: clamp(72px, 10vw, 120px) 0; }
.page + .page { border-top: 1px solid var(--rule); }
.page:nth-child(even of .page) { background: var(--panel); }

.page h2 { font: 600 clamp(1.45rem, 2.6vw, 2.1rem)/1.18 var(--lettering); letter-spacing: 0.03em; color: var(--ink); }
.page h1 { font: 700 clamp(2rem, 4.4vw, 3.25rem)/1.08 var(--display); letter-spacing: -0.025em; }
.page .lead { max-width: 62ch; margin-top: 16px; font-size: 1.1875rem; color: var(--ink-2); }
.fine { margin-top: 28px; font-size: 0.8125rem; color: var(--ink-2); max-width: 80ch; }

/* the app, next to its honest spec sheet */
.datapage-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.holder { margin: 0; padding: clamp(18px, 3vw, 28px); background: var(--ground-2); border: 1px solid var(--rule); border-radius: var(--radius); }
.holder figcaption { margin-top: 14px; font-size: 0.8125rem; color: var(--ink-2); }
.data h2 { margin-bottom: 16px; }
.data .lead { margin: 0 0 clamp(36px, 5vw, 48px); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.fields > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.fields dt { font-size: 0.8125rem; color: var(--ink-2); }
.fields dd { margin: 2px 0 0; font-size: 1.0625rem; font-weight: 500; }

/* the menu bar menu, drawn the way macOS draws it */
.mock { max-width: 360px; margin-inline: auto; font: 13px/1.35 var(--sans); color: #1d1d1f; }
.mock-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; height: 26px; padding: 0 12px; background: rgb(246 246 246 / 0.86); border-radius: 8px 8px 0 0; font-size: 12px; }
.mock-bar img { border-radius: 50%; outline: 2px solid rgb(0 0 0 / 0.08); }
.mock-menu { margin: 6px 0 0 auto; width: 300px; max-width: 100%; padding: 6px; background: rgb(246 246 246 / 0.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 10px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.22), 0 0 0 0.5px rgb(0 0 0 / 0.18); }
.mock-head { padding: 4px 10px 6px; color: #5d5d62; font-size: 12px; }
.mock ul { list-style: none; padding: 0; margin: 0; }
.mock li { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; padding: 5px 10px; border-radius: 5px; }
.mock li.on { background: #2f5d8a; color: #fff; }
.mock .dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; border: 1px solid #a1a1a6; }
.mock li.on .dot { background: #34c759; border-color: #34c759; }
.mock .name { font-weight: 500; }
.mock .kind { grid-column: 2; font-size: 11px; color: #5d5d62; }
.mock li.on .kind { color: rgb(255 255 255 / 0.8); }
.mock li.off { opacity: 0.45; }
.mock-traffic { display: flex; gap: 14px; padding: 6px 10px; color: #5d5d62; font: 11px var(--mono); }
.mock-item { padding: 5px 10px; }
.mock-sep { margin: 4px 0; border: 0; border-top: 0.5px solid #d2d2d7; }

/* compatibility: the ports, as a ruled table */
.ports-table { margin-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--rule); }
.ports-table > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ports-table dt { font-weight: 600; }
.ports-table dd { margin: 0; color: var(--ink-2); }

/* features: grouped inset lists, the way System Settings groups rows */
.feature-groups { margin-top: clamp(28px, 4vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 40px); align-items: start; }
.feature-group:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.feature-group:nth-child(3) { grid-column: 1; }
.feature-group h3 { margin: 0 0 8px 16px; font: 600 0.8125rem var(--sans); color: var(--ink-2); }
.inset { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.page:nth-child(even of .page) .inset { background: var(--ground); }
.inset > div { padding: 14px 16px; }
.inset > div + div { border-top: 1px solid var(--rule); }
.inset dt { font-weight: 600; }
.inset dd { margin: 3px 0 0; color: var(--ink-2); font-size: 0.9375rem; max-width: 64ch; }

/* pricing: two plan sheets */
.offer { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 14px 18px; max-width: 760px; background: color-mix(in srgb, var(--gold) 12%, transparent); border-radius: 10px; }
.offer p { color: var(--ink); font-size: 0.9375rem; }
.tag { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: #1d1d1f; font: 700 0.875rem var(--sans); font-variant-numeric: tabular-nums; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); margin-top: 40px; max-width: 900px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3.5vw, 36px); background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 12px 28px rgb(29 29 31 / 0.08), 0 1px 2px rgb(29 29 31 / 0.06); }
.page:nth-child(even of .page) .plan { background: var(--ground); }
.plan h3 { font: 700 1.5rem var(--display); letter-spacing: -0.015em; }
.plan-desc { margin-top: 8px; color: var(--ink-2); min-height: 3.1em; }
.price { margin-top: 22px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.amount { font: 700 3rem/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.price.has-offer .amount { font-size: 1.5rem; color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.per { color: var(--ink-2); font-size: 0.9375rem; }
.price-offer { min-height: 1.6em; margin-top: 6px; font-weight: 600; color: var(--gold-text); }
.price-offer strong { display: block; font-size: 2.4rem; letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 6px; }
.seats { margin: 10px 0 0; display: flex; align-items: center; gap: 10px; }
.seats select { min-height: 36px; padding: 4px 30px 4px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235b5b5e' stroke-width='1.5'/%3E%3C/svg%3E") right 11px center no-repeat; color: var(--ink); font: 500 1rem var(--sans); appearance: none; font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: auto; }
/* buttons sit on the card bottom, level across plans whatever is above them */
.plan .price-offer, .plan .seats { margin-bottom: 26px; }
.checkout-error { margin-top: 22px; padding: 12px 16px; border-radius: 8px; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); max-width: 900px; }
.pricing-notes { margin-top: 40px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; max-width: 900px; color: var(--ink-2); font-size: 0.9375rem; }
.pricing-notes li { padding-top: 12px; border-top: 1px solid var(--rule); }

/* why Pallas: the medallion beside its own story */
.why-grid { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px clamp(28px, 4vw, 48px); align-items: center; max-width: 880px; }
.why-grid:has(.why-painting) { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); max-width: 960px; }
.why-medallion { width: 128px; filter: drop-shadow(0 10px 18px rgb(29 29 31 / 0.25)); }
.why-painting { margin: 0; }
.why-painting img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 16px 36px rgb(29 29 31 / 0.22), 0 1px 2px rgb(29 29 31 / 0.12); }
.why-painting figcaption { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); }
.why p { margin-top: 12px; max-width: 62ch; color: var(--ink-2); }
@media (max-width: 640px) {
  .why-grid, .why-grid:has(.why-painting) { grid-template-columns: 1fr; justify-items: start; }
  .why-medallion { width: 96px; }
  .why-painting { max-width: 260px; }
}

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq h2 { margin-bottom: 28px; }
.faq summary { position: relative; padding: 20px 40px 20px 0; font-size: 1.125rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border: solid var(--gold-text); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* reading pages: help, legal, download */
.prose { max-width: 68ch; }
.prose h2 { margin: 56px 0 16px; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.prose > h2:first-child, .prose section:first-child h2 { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--gold-text); }
.prose section { scroll-margin-top: calc(var(--nav-h) + 20px); }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1d1d1f; font: 700 0.85rem var(--sans); font-variant-numeric: tabular-nums; }

.intel { margin: 32px 0 8px; padding: 22px; background: var(--ground-2); border-radius: var(--radius); }
.intel p { margin: 0; }

.page-help .page, .page-legal .page, .page-regions .page { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 96px)); }
.help-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 72px); }
.help-head { grid-column: 1 / -1; margin-bottom: 24px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.toc-title { font-size: 0.8125rem; color: var(--ink-2); margin-bottom: 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.toc a:hover, .toc a[aria-current="true"] { border-left-color: var(--gold); color: var(--gold-text); font-weight: 600; }

.draft { margin: 22px 0 32px; padding: 12px 16px; border-radius: 10px; background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); font-size: 0.9375rem; }

.region-group { margin-top: 40px; }
.region-group h2 { font-size: 1.1rem; margin-bottom: 12px; }
.region-group ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 24px; }
.region-group a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.region-group a:hover { color: var(--gold-text); }

/* footer: the back of the board */
.foot { padding: 72px 0 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.foot-id img { margin-bottom: 12px; }
.foot-name { font: 600 1.05rem var(--lettering); letter-spacing: 0.2em; color: var(--gold); margin-bottom: 8px; }
.foot-id p { color: var(--on-board-2); font-size: 0.9375rem; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.foot-links a { color: var(--on-board) !important; text-decoration: none; font-size: 0.9375rem; opacity: 0.85; }
.foot-links a:hover { opacity: 1; text-decoration: underline; }
.foot-region a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-board) !important; text-decoration: none; font-size: 0.9375rem; }
.globe { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.foot-legal { margin-top: 48px; padding-top: 18px; border-top: 1px solid rgb(212 165 55 / 0.22); color: var(--on-board-2); font-size: 0.75rem; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .datapage-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-id { grid-column: 1 / -1; }
  .help-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .port { font-size: 0.8125rem; padding: 9px 12px; }
  .patchboard .hub { width: 23%; }
}
/* phones: the board unrolls, the medallion on top and the six ports as a list below it */
@media (max-width: 720px) {
  .patchboard { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; margin-bottom: 0; }
  .patchboard .wires { display: none; }
  .patchboard .hub { position: relative; left: auto; top: auto; width: 180px; transform: none; margin-bottom: 8px; }
  /* the spine: one wire down from the medallion, a short jack into each port */
  .ports { position: relative; display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; margin-top: 28px; padding-left: 34px; }
  /* from the foot of the medallion, across to the left rail and down it */
  .ports::before { content: ""; position: absolute; left: 11px; top: -30px; bottom: 32px; width: calc(50% - 11px); border-left: 1.25px dashed var(--wire); border-top: 1.25px dashed var(--wire); border-top-left-radius: 10px; }
  .ports::after { content: ""; position: absolute; left: calc(50% - 4px); top: -34px; width: 6px; height: 6px; border-radius: 50%; background: var(--board); border: 1.25px solid var(--wire); }
  .port, .port-r { position: relative; left: auto !important; top: auto !important; transform: none; width: auto; text-align: left; grid-template-columns: 1fr auto; font-size: 0.875rem; padding: 11px 14px; }
  .port::before { content: ""; position: absolute; left: -23px; top: 50%; width: 22px; border-top: 1.25px dashed var(--wire); }
  .port::after { content: none; }
  .port-r .port-name { grid-column: 1; }
  .port-r .port-state { grid-column: 2; }
  /* the three states share one cell as wide as the longest; pin each to the right edge of the card */
  .port-state > span { justify-content: flex-end; }
  .log { position: relative; top: auto; margin-top: 16px; width: 100%; }
  @media (prefers-reduced-motion: no-preference) {
    .port::before { animation: jack-live var(--cycle) linear 2; animation-delay: calc(var(--i) * var(--period)); }
    @keyframes jack-live { 0% { border-top-color: var(--wire); border-top-style: dashed; } 1% { border-top-color: var(--gold); border-top-style: dotted; } 5.5% { border-top-style: solid; border-top-color: var(--gold); } 15.5% { border-top-style: solid; border-top-color: var(--gold); } 16.66%, 100% { border-top-color: var(--wire); border-top-style: dashed; } }
  }
}
@media (max-width: 640px) {
  .plans, .pricing-notes, .feature-groups { grid-template-columns: 1fr; }
  .feature-group:nth-child(2), .feature-group:nth-child(3) { grid-column: auto; grid-row: auto; }
  .fields { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .ports-table > div { grid-template-columns: 1fr; }
  .offer { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-contrast: more) {
  :root { --ink-2: var(--ink); --rule: var(--ink-2); --on-board-2: var(--on-board); --wire: var(--gold); }
}

/* pre-launch waitlist (src/pages.mjs → waitlist) */
.waitlist { background: var(--panel); border-top: 1px solid var(--rule); }
.waitlist-form { margin-top: 24px; }
.wl-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wl-row input[type="email"] { flex: 1 1 260px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--rule); border-radius: 999px; font: inherit; background: var(--ground); color: var(--ink); }
.wl-row input[type="email"]:focus, .wl-beta input:focus, .wl-beta select:focus, .wl-beta textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.wl-beta { margin: 20px 0 0; padding: 18px 20px 6px; border: 1px solid var(--rule); border-radius: 12px; }
.wl-beta legend { padding: 0 6px; font-weight: 600; }
.wl-beta p { display: grid; gap: 6px; margin: 0 0 14px; }
.wl-beta input, .wl-beta select, .wl-beta textarea { min-height: 40px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px; font: inherit; background: var(--ground); color: var(--ink); }
.wl-status { min-height: 1.4em; margin: 14px 0 0; font-weight: 500; }
.wl-status.ok { color: var(--gold-text); }
.wl-status.err { color: var(--red); }
.waitlist .fine { margin-top: 10px; color: var(--ink-2); font-size: 0.875rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .wl-row .btn { flex: 1 1 100%; } }
