/* Tide Client website.
 *
 * Deep water and a lifebuoy: a blue that is a colour, not black, and one
 * orange kept for the things that cost money or start a download. One
 * typeface (Archivo), whose width does the shouting: wide and heavy for
 * headings, normal width for reading. Behind it all, the sea (ocean.js):
 * light, fish and the odd visitor, there to look at and nothing more. */

:root {
  --trench: #061826;
  --trench-2: #0a2233;
  --hull: #0d2a3d;
  --hull-a: rgba(13, 42, 61, 0.86);
  --hull-2: #12344a;
  --line: #1f4459;
  --line-2: #2c5a73;
  --foam: #e8f1f2;
  --mist: #9db7c4;
  --mist-2: #74929f;
  /* The button colour: the visitor can change it (the palette button). */
  --buoy: #ff7a3d;
  --buoy-2: #ff935f;
  --buoy-top: #ff8a52;
  --buoy-edge: #ff9a68;
  --buoy-ink: #2a0e02;
  --buoy-rgb: 255, 122, 61;
  /* Blue, for the logo, links and the quieter glows. */
  --glass: #5cc6f2;
  --glass-rgb: 92, 198, 242;
  --good: #6fd3a0;
  --bad: #ff8d86;

  --wide: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --r: 6px;
  --r-lg: 10px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Older names, still used by the owner page. */
  --text: var(--foam);
  --text-2: var(--mist);
  --text-3: var(--mist-2);
  --line-strong: var(--line-2);
  --g1: var(--glass);
  --g2: var(--glass);
  --g3: var(--glass);
  --ink: var(--buoy-ink);
  --display: var(--wide);
}

* { box-sizing: border-box; }
html { background: var(--trench); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  font: 400 17px/1.6 var(--font);
  font-variation-settings: "wdth" 100;
  background:
    linear-gradient(180deg, var(--trench-2) 0, var(--trench) 640px) no-repeat,
    var(--trench);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--buoy); color: var(--buoy-ink); }
a { color: inherit; }
img, svg, canvas { display: block; }
h1, h2, h3 { margin: 0; font-family: var(--wide); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--buoy); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--buoy); color: var(--buoy-ink); padding: 8px 14px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
#ocean { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: none; }
body.has-sea #ocean { display: block; }
.top, main, .foot { position: relative; z-index: 1; }
main { min-height: 70vh; }
main:focus, main:focus-visible { outline: none; }

/* Type: one family, three widths. */
.h-xl { font-size: clamp(42px, 6vw, 82px); font-variation-settings: "wdth" 116; font-weight: 850; line-height: 0.95; letter-spacing: -0.025em; }
.h-l { font-size: clamp(34px, 4.6vw, 58px); font-variation-settings: "wdth" 120; font-weight: 820; line-height: 1; letter-spacing: -0.02em; }
.h-m { font-size: clamp(24px, 2.6vw, 32px); font-variation-settings: "wdth" 112; font-weight: 780; }
.h-s { font-size: 19px; font-variation-settings: "wdth" 106; font-weight: 720; line-height: 1.25; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--mist); max-width: 34em; }
.muted { color: var(--mist); }
.small { font-size: 14.5px; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }

/* ---- frame ---------------------------------------------------------------------- */

.wrap { width: min(var(--max), 100%); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { width: min(760px, 100%); }
.page { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 120px); }
.page-head { margin-bottom: clamp(32px, 5vw, 56px); }
.page-head .lede { margin-top: 18px; }

/* A section on a spec sheet: its name on the left, its content on the right. */
.sheet { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 48px; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.sheet__name { position: sticky; top: 96px; align-self: start; }
.sheet__name p { margin-top: 12px; color: var(--mist); max-width: 22em; }
@media (max-width: 860px) { .sheet { grid-template-columns: 1fr; } .sheet__name { position: static; } }

/* ---- header ------------------------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 30 !important;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--gutter);
  background: rgba(6, 24, 38, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand svg { filter: drop-shadow(0 0 8px rgba(var(--glass-rgb), 0.45)); }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--foam); font: 800 19px/1 var(--wide); font-variation-settings: "wdth" 118; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { position: relative; padding: 8px 12px; text-decoration: none; color: var(--mist); font-weight: 560; font-size: 15.5px; border-radius: var(--r); }
.nav a:hover { color: var(--foam); }
.nav a.is-active { color: var(--foam); }
.nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--buoy); box-shadow: 0 0 10px 1px rgba(var(--buoy-rgb), 0.7); }
.top__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--mist); cursor: pointer; }
.icon-btn:hover { color: var(--foam); border-color: rgba(var(--glass-rgb), 0.6); box-shadow: 0 0 16px rgba(var(--glass-rgb), 0.25); }
/* The button colour picker. */
.picker { position: relative; }
.picker__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: grid; gap: 2px; min-width: 190px; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--trench-2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.picker__menu[hidden] { display: none; }
.picker__menu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: var(--r); background: none; color: var(--mist); font-weight: 600; text-align: left; cursor: pointer; }
.picker__menu button:hover { background: var(--hull); color: var(--foam); }
.picker__menu button[aria-checked="true"] { color: var(--foam); background: var(--hull); }
.picker__menu i { width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: 0 0 10px rgba(255, 255, 255, 0.15); }
.picker__menu button[aria-checked="true"] i { outline: 2px solid var(--foam); outline-offset: 2px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: var(--trench); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { color: var(--buoy); }
  .top { gap: 12px; justify-content: space-between; }
}
@media (max-width: 420px) { .top__tools .top__cta { display: none; } }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--hull); color: var(--foam);
  font: 650 15.5px/1 var(--font); font-variation-settings: "wdth" 104;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.2s, transform 0.08s;
}
.btn:hover { background: var(--hull-2); border-color: var(--mist-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn:hover:not([disabled]) { box-shadow: 0 0 0 1px rgba(var(--glass-rgb), 0.25), 0 0 22px rgba(var(--glass-rgb), 0.22); border-color: rgba(var(--glass-rgb), 0.6); }
/* Buy and download buttons glow, like a lifebuoy under a light. */
.btn--buoy, .btn--glow {
  background: linear-gradient(180deg, var(--buoy-top), var(--buoy));
  border-color: var(--buoy-edge); color: var(--buoy-ink); font-weight: 750;
  box-shadow: 0 0 0 1px rgba(var(--buoy-rgb), 0.35), 0 6px 22px -4px rgba(var(--buoy-rgb), 0.65), 0 0 28px rgba(var(--buoy-rgb), 0.28);
}
.btn--buoy:hover:not([disabled]), .btn--glow:hover:not([disabled]) {
  background: linear-gradient(180deg, var(--buoy-2), var(--buoy-top)); border-color: var(--buoy-2);
  box-shadow: 0 0 0 1px rgba(var(--buoy-rgb), 0.5), 0 8px 30px -4px rgba(var(--buoy-rgb), 0.8), 0 0 44px rgba(var(--buoy-rgb), 0.42);
}
.btn--buoy[disabled], .btn--glow[disabled] { box-shadow: none; }
.btn--quiet, .btn--ghost { background: transparent; }
.btn--big { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn--small { min-height: 36px; padding: 0 13px; font-size: 14.5px; }
.btn--wide { width: 100%; }
.link { color: var(--glass); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--foam); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- home ---------------------------------------------------------------------------- */

.hero { position: relative; padding: clamp(64px, 10vw, 150px) 0 clamp(64px, 9vw, 120px); }
.hero__text { max-width: 820px; }
.hero__text .lede { margin-top: 24px; }
.hero__text .row { margin-top: 34px; }
.hero__facts { margin-top: 28px; color: var(--mist-2); font-size: 15px; }

/* What it does: rows, not boxes. */
.specs { list-style: none; margin: 0; padding: 0; }
.specs li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.specs li:first-child { padding-top: 0; }
.specs h3 { font-size: 20px; font-variation-settings: "wdth" 110; font-weight: 760; line-height: 1.25; }
.specs p { color: var(--mist); }
@media (max-width: 640px) { .specs li { grid-template-columns: 1fr; } }

.versions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.versions span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 4px; font-size: 13.5px; color: var(--mist); font-variant-numeric: tabular-nums; }

/* Premium, on the home page: a ticket. */
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--hull-a); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(var(--buoy-rgb), 0.08), 0 24px 60px -20px rgba(var(--buoy-rgb), 0.28); }
.ticket ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticket li { padding-left: 22px; position: relative; color: var(--mist); }
.ticket li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--buoy); }
.ticket__price { text-align: right; }
.ticket__price strong { display: block; font: 850 52px/1 var(--wide); font-variation-settings: "wdth" 120; letter-spacing: -0.02em; margin-bottom: 14px; }
@media (max-width: 720px) { .ticket { grid-template-columns: 1fr; } .ticket__price { text-align: left; } }

/* ---- news ------------------------------------------------------------------------- */

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 6px 28px; padding: 22px 0; text-decoration: none; }
.news-list a:hover h3 { color: var(--buoy-2); }
.news-list time { color: var(--mist-2); font-size: 14.5px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.news-list h3 { font-size: 21px; font-variation-settings: "wdth" 108; font-weight: 740; line-height: 1.25; }
.news-list p { margin-top: 6px; color: var(--mist); max-width: 46em; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 13px; font-weight: 650; color: var(--mist); border: 1px solid var(--line-2); white-space: nowrap; align-self: start; }
.tag--update { color: var(--glass); border-color: rgba(var(--glass-rgb), 0.45); }
.tag--premium { color: var(--buoy-2); border-color: rgba(var(--buoy-rgb), 0.5); }
.tag--event { color: #f6d27a; border-color: rgba(246, 210, 122, 0.45); }
@media (max-width: 640px) { .news-list a { grid-template-columns: 1fr; } .news-list .tag { justify-self: start; } }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; padding: 10px 14px 12px; border: 0; background: none; color: var(--mist); font-weight: 600; cursor: pointer; }
.tabs button:hover { color: var(--foam); }
.tabs button.is-on { color: var(--foam); }
.tabs button.is-on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--buoy); box-shadow: 0 0 10px 1px rgba(var(--buoy-rgb), 0.7); }

.article { max-width: 720px; }
.article .back { display: inline-block; margin-bottom: 28px; color: var(--mist); text-decoration: none; }
.article .back:hover { color: var(--foam); }
.article .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; color: var(--mist-2); font-size: 15px; }
.prose { margin-top: 32px; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; font-variation-settings: "wdth" 112; margin-top: 1.8em; }
.prose h3 { font-size: 20px; font-variation-settings: "wdth" 108; margin-top: 1.6em; }
.prose a { color: var(--glass); }
.prose code { font-size: 0.9em; background: var(--hull); padding: 1px 6px; border-radius: 4px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }

/* ---- cosmetics shop -------------------------------------------------------------------- */

.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.item {
  position: relative; display: flex; flex-direction: column; text-align: left;
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--hull-a); color: var(--foam); cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.2s;
}
.item:hover { border-color: rgba(var(--glass-rgb), 0.7); box-shadow: 0 0 0 1px rgba(var(--glass-rgb), 0.3), 0 18px 50px -18px rgba(var(--glass-rgb), 0.45); }
.item__art { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.05; background: radial-gradient(70% 60% at 50% 42%, #1a4560 0, var(--hull) 72%); }
.item__art canvas { height: 76%; width: auto; image-rendering: pixelated; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45)); }
.item__body { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.item__name { font: 740 18px/1.2 var(--wide); font-variation-settings: "wdth" 108; }
.item__kind { display: block; margin-top: 3px; font-size: 14px; color: var(--mist-2); }
.item__price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item__price.is-soon { color: var(--mist-2); font-weight: 500; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.steps li { padding: 22px 24px 4px 0; counter-increment: step; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font: 850 34px/1 var(--wide); font-variation-settings: "wdth" 120; color: var(--buoy); margin-bottom: 12px; }
.steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--mist); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ---- the cosmetic viewer (pops out from the shop) ----------------------------------------- */

.viewer {
  position: fixed; inset: 0; z-index: 60;
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  background: var(--trench);
  animation: viewer-in 0.22s var(--ease);
}
@keyframes viewer-in { from { opacity: 0; transform: scale(0.985); } }
.viewer__stage { position: relative; min-height: 0; border-right: 1px solid var(--line); }
.viewer__stage .stage { position: absolute; inset: 0; }
.viewer__panel { position: relative; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 28px 28px 32px; background: var(--trench-2); }
.viewer__close { position: absolute; top: 18px; right: 18px; }
.viewer__kind { color: var(--mist-2); font-size: 15px; }
.viewer__name { margin: 6px 48px 0 0; font-size: clamp(30px, 3vw, 40px); font-variation-settings: "wdth" 118; font-weight: 840; line-height: 1; letter-spacing: -0.015em; }
.viewer__price { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 14px; }
.viewer__price strong { font: 850 34px/1 var(--wide); font-variation-settings: "wdth" 116; font-variant-numeric: tabular-nums; }
.viewer__price span { color: var(--mist-2); font-size: 15px; }
.viewer__desc { margin-top: 20px; color: var(--mist); }
.viewer__block { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.viewer__block h3 { font-size: 15px; font-variation-settings: "wdth" 104; font-weight: 700; margin-bottom: 12px; color: var(--foam); }
.flat { display: flex; gap: 12px; align-items: flex-end; }
.flat figure { margin: 0; }
.flat canvas { height: 96px; width: auto; image-rendering: pixelated; background: var(--hull); border-radius: 4px; padding: 6px; }
.flat figcaption { margin-top: 6px; font-size: 13.5px; color: var(--mist-2); }
.skin-form { display: flex; gap: 8px; }
.skin-form input { flex: 1; min-width: 0; }
.skin-note { margin-top: 8px; font-size: 14px; color: var(--mist-2); min-height: 1.4em; }
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.more button { display: grid; place-items: center; aspect-ratio: 1; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--hull); cursor: pointer; }
.more button.is-on { border-color: var(--buoy); }
.more canvas { height: 100%; width: auto; image-rendering: pixelated; }
.faq-mini dt { font-weight: 650; margin-top: 12px; }
.faq-mini dd { margin: 2px 0 0; color: var(--mist); font-size: 15px; }

/* The bar along the bottom of the stage: what the player is doing. */
.scenes { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; pointer-events: none; }
.scenes > * { pointer-events: auto; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; border-radius: 8px; background: rgba(6, 24, 38, 0.82); border: 1px solid var(--line); }
.seg button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--mist); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.seg button:hover { color: var(--foam); }
.seg button.is-on { background: var(--foam); color: var(--trench); box-shadow: 0 0 16px rgba(232, 241, 242, 0.45); }
.seg button[disabled] { opacity: 0.4; cursor: not-allowed; }
.zoom { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(6, 24, 38, 0.82); border: 1px solid var(--line); }
.zoom button { width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--foam); font-size: 18px; cursor: pointer; }
.zoom button:hover { background: var(--hull-2); }
.stage__hint { position: absolute; top: 16px; left: 16px; font-size: 13.5px; color: rgba(232, 241, 242, 0.7); pointer-events: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .stage__3d { cursor: grab; touch-action: none; }
.stage .stage__3d:active { cursor: grabbing; }
.stage__fail { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--mist); }

@media (max-width: 900px) {
  .viewer { grid-template-columns: 1fr; grid-template-rows: 56vh minmax(0, 1fr); }
  .viewer__stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .viewer__panel { padding: 22px var(--gutter) 28px; }
  .scenes { left: 10px; right: 10px; bottom: 10px; }
  .seg button { padding: 0 10px; font-size: 13.5px; flex: none; }
  .scenes { flex-wrap: nowrap; }
  .scenes .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .scenes .seg::-webkit-scrollbar { display: none; }
  .scenes .zoom { display: none; }
}

/* ---- Premium ---------------------------------------------------------------------------- */

.premium { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.price-card { position: sticky; top: 96px; padding: 28px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--hull-a); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 24px 70px -24px rgba(var(--buoy-rgb), 0.35); }
.price-card .big { font: 850 60px/1 var(--wide); font-variation-settings: "wdth" 120; letter-spacing: -0.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.price-card .field { margin-top: 20px; }
.price-card .fine { margin-top: 14px; font-size: 14px; color: var(--mist-2); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 15px 12px 15px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-size: 15px; color: var(--mist-2); font-weight: 600; border-bottom-color: var(--line-2); }
.compare td:nth-child(2), .compare th:nth-child(2) { width: 22%; }
.compare td:nth-child(3), .compare th:nth-child(3) { width: 32%; }
.compare td:nth-child(3) { color: var(--foam); font-weight: 650; }
.compare td:nth-child(2) { color: var(--mist); }
.compare .no { color: var(--mist-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 0; cursor: pointer; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--buoy); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--mist); max-width: 40em; }
@media (max-width: 960px) { .premium { grid-template-columns: 1fr; } .price-card { position: static; } }

/* ---- forms, keys, notices ------------------------------------------------------------------- */

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 15px; font-weight: 600; color: var(--foam); }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 13px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--trench); color: var(--foam); font: 400 16px/1.4 var(--font);
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--mist-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--buoy); }
input[type="checkbox"], input[type="range"] { width: auto; min-height: 0; }

.panel { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--hull-a); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel + .panel { margin-top: 18px; }
.key-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--trench); }
.key-box code { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; font: 600 15px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--glass); }
.order-code { font-family: ui-monospace, Consolas, monospace; color: var(--foam); }
.error-text { color: var(--bad); margin-top: 12px; }
.notice { padding: 16px 18px; border-left: 3px solid var(--buoy); background: var(--hull); border-radius: 0 var(--r) var(--r) 0; }
.spinner { width: 28px; height: 28px; margin: 28px 0; border: 3px solid var(--line-2); border-top-color: var(--buoy); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 28px 0; color: var(--mist); }

.thanks { max-width: 760px; }
.thanks .h-l { margin-top: 8px; }
.thanks .lede { margin-top: 16px; }

.dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.dl .version { font: 850 64px/1 var(--wide); font-variation-settings: "wdth" 120; letter-spacing: -0.02em; margin: 8px 0 12px; }
.dl dl { margin: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px 18px; }
.dl dt { color: var(--mist-2); }
.dl dd { margin: 0; }
@media (max-width: 760px) { .dl { grid-template-columns: 1fr; } .dl dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }

.legal h2 { font-size: 22px; font-variation-settings: "wdth" 110; margin-top: 34px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--mist); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--foam); }

/* ---- footer, toasts ---------------------------------------------------------------------- */

.foot { border-top: 1px solid var(--line); background: rgba(4, 18, 28, 0.7); padding: 44px var(--gutter) 36px; }
.foot__inner { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; }
.foot__about p { margin-top: 12px; color: var(--mist); max-width: 30em; font-size: 15px; }
.foot__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 36px; align-content: start; }
.foot__nav a { color: var(--mist); text-decoration: none; font-size: 15px; }
.foot__nav a:hover { color: var(--foam); }
.copyright { width: min(var(--max), 100%); margin: 32px auto 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--mist-2); font-size: 13.5px; }
@media (max-width: 640px) { .foot__inner { grid-template-columns: 1fr; } }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { padding: 14px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--buoy); border-radius: var(--r); background: var(--hull); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.toast strong { display: block; }
.toast span { display: block; color: var(--mist); font-size: 15px; margin-top: 2px; }

/* ---- shared with the owner page --------------------------------------------------------------- */

.glass { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--hull-a); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip { display: inline-block; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line-2); font-size: 13px; color: var(--mist); }
.eyebrow { display: block; color: var(--mist-2); font-size: 15px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 40px; height: 22px; border-radius: 11px; background: var(--line-2); transition: background 0.15s; flex: none; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--foam); transition: transform 0.15s; }
.switch input:checked + .switch__track { background: var(--buoy); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--buoy); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- button colours ------------------------------------------------------------------- */

:root[data-palette="lagoon"] { --buoy: #2f9cf6; --buoy-2: #6cc4fb; --buoy-top: #5bbcfa; --buoy-edge: #7ed0fb; --buoy-ink: #02182b; --buoy-rgb: 47, 156, 246; }
:root[data-palette="coral"]  { --buoy: #f0506e; --buoy-2: #ff8aa0; --buoy-top: #ff7891; --buoy-edge: #ff9caf; --buoy-ink: #2b0510; --buoy-rgb: 240, 80, 110; }
:root[data-palette="kelp"]   { --buoy: #3cc07f; --buoy-2: #8be39a; --buoy-top: #7fdc8c; --buoy-edge: #a6ee9c; --buoy-ink: #04230f; --buoy-rgb: 60, 192, 127; }
:root[data-palette="sunset"] { --buoy: #f5a30b; --buoy-2: #ffd36e; --buoy-top: #ffcb57; --buoy-edge: #ffdf8f; --buoy-ink: #2b1700; --buoy-rgb: 245, 163, 11; }
:root[data-palette="aurora"] { --buoy: #8b5cf6; --buoy-2: #b9a3fc; --buoy-top: #ad92fb; --buoy-edge: #c8b8fd; --buoy-ink: #ffffff; --buoy-rgb: 139, 92, 246; }
:root[data-palette="pearl"]  { --buoy: #d5dee4; --buoy-2: #ffffff; --buoy-top: #ffffff; --buoy-edge: #ffffff; --buoy-ink: #061826; --buoy-rgb: 220, 232, 240; }
