/* PiratProxies. The visual language comes from nautical charts: pale water,
   ink-blue line work, buff land, and chart magenta for anything you act on. */
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/static/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/static/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0e2a47;
  --ink-soft: #3c566f;
  --deep: #0a2038;
  --water: #e1edf3;
  --foam: #eef5f9;
  --shoal: #c7dce8;
  --paper: #fcfeff;
  --line: #a6bfce;
  --hair: #cfdde6;
  --magenta: #b4186f;
  --magenta-deep: #8c1056;
  --pink: #f487b9;
  --buff: #f3e3a8;
  --green: #17694e;
  --red: #a32a1f;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --r1: 6px;
  --r2: 12px;
  --float: 0 1px 0 rgba(14, 42, 71, 0.05), 0 16px 40px -16px rgba(14, 42, 71, 0.38);
  --ease: 0.16s cubic-bezier(0.3, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--water); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--magenta-deep); text-underline-offset: 0.18em; text-decoration-thickness: 1px; transition: color var(--ease); }
a:hover { color: var(--magenta); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--buff); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; margin: 0 0 0.45em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-top: 1.6em; }
h3 { font-size: 1.45rem; font-weight: 600; margin-top: 1.4em; }
h2 a, h3 a, th a { color: inherit; text-decoration: none; }
h2 a:hover, h3 a:hover, th a:hover { color: var(--magenta-deep); text-decoration: underline; text-decoration-thickness: 2px; }
section > h2:first-child, .wrap > h2:first-child, div > h2:first-child, form > h2:first-child, article > h2:first-child, li > h2:first-child, li > h3:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
code, .line, pre { font-family: var(--mono); font-size: 0.875rem; }
p code, li code, td code, dd code, th code { background: var(--foam); border: 1px solid var(--hair); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.lead { font-size: 1.2rem; line-height: 1.45; max-width: 50ch; }
.muted, .hint, .sub { color: var(--ink-soft); }
.hint { font-size: 0.9rem; margin-top: 0.35em; }
.sub { display: block; font-size: 0.875rem; font-weight: 400; }
.measure { max-width: 68ch; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--red); }
.pos { color: var(--green); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 60; border-radius: var(--r1); }
.skip:focus { left: 8px; }
.icon { flex: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.pad { padding-top: clamp(32px, 5.5vw, 64px); padding-bottom: clamp(32px, 5.5vw, 64px); }
.narrow-left { max-width: 860px; margin-left: max(0px, calc((100% - 1180px) / 2)); }
.band { background: var(--paper); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.section-head { margin-bottom: 22px; }
.section-head h2 { margin: 0 0 6px; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; align-items: start; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(252, 254, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--hair); transition: box-shadow var(--ease); }
.site-head.scrolled { box-shadow: 0 8px 24px -18px rgba(14, 42, 71, 0.55); }
.head-row { display: flex; align-items: center; gap: 10px 26px; padding-top: 10px; padding-bottom: 10px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 700; font-size: 1.65rem; line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.mark { color: var(--ink); flex: none; transition: transform var(--ease); transform-origin: 40% 90%; }
.mark .cuff { fill: var(--magenta); }
.brand:hover .mark { transform: rotate(-8deg); }
.brand small { font-family: var(--body); font-size: 0.78rem; font-weight: 600; background: var(--ink); color: #fff; padding: 2px 7px; border-radius: 4px; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 2px 4px; flex: 1; flex-wrap: wrap; }
.main-nav > a, .menu-trigger { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: var(--r1); transition: background var(--ease), color var(--ease); }
.main-nav > a:hover, .menu-trigger:hover, .menu.open .menu-trigger { background: var(--water); color: var(--ink); }
.main-nav > a[aria-current="page"] { color: var(--magenta-deep); background: transparent; box-shadow: inset 0 -2px 0 var(--magenta); border-radius: 0; }
.menu-trigger svg { transition: transform var(--ease); }
.menu.open .menu-trigger svg { transform: rotate(180deg); }
.menu { position: relative; }
.menu-panel { display: none; position: absolute; top: calc(100% + 10px); left: -12px; width: min(620px, 92vw); background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); box-shadow: var(--float); padding: 10px; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu.open .menu-panel { display: grid; animation: drop 0.16s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.menu-panel a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; transition: background var(--ease); }
.menu-panel a:hover { background: var(--water); }
.menu-panel .icon { color: var(--magenta); }
.menu-panel strong { display: block; font-weight: 600; line-height: 1.2; }
.menu-panel small { color: var(--ink-soft); font-size: 0.875rem; }
.head-end { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.head-end form { margin: 0; }
.head-end > a:not(.btn):not(.balance) { color: var(--ink); font-weight: 500; text-decoration: none; }
.head-end > a:not(.btn):not(.balance):hover { text-decoration: underline; }
.balance { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; padding: 3px 12px; border-radius: 999px; background: var(--buff); transition: box-shadow var(--ease); }
.balance:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.count { display: inline-block; font-family: var(--body); font-size: 0.78rem; font-weight: 600; line-height: 1; background: var(--magenta); color: #fff; padding: 3px 7px; border-radius: 999px; margin-left: 6px; }
.admin .main-nav > a { padding: 8px 9px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--hair); border-radius: var(--r1); padding: 8px; color: var(--ink); cursor: pointer; }

/* ---------- buttons and forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; line-height: 1.2; padding: 11px 18px; border: 2px solid var(--magenta); border-radius: var(--r1); background: var(--magenta); color: #fff; text-decoration: none; cursor: pointer; transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease); }
.btn:hover { background: var(--magenta-deep); border-color: var(--magenta-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 16px -10px var(--magenta-deep); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; box-shadow: 0 8px 16px -10px var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--buff); border-color: var(--buff); color: var(--ink); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn.outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.btn.small { padding: 6px 12px; font-size: 0.95rem; }
.btn.big { padding: 14px 24px; font-size: 1.1rem; }
.btn.wide { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
button.link { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; font-weight: 500; }
.actions { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
label { display: block; font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 5px; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r1); padding: 9px 11px; min-height: 44px; transition: border-color var(--ease), box-shadow var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-soft); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(180, 24, 111, 0.22); }
textarea { resize: vertical; }
textarea[readonly] { font-family: var(--mono); font-size: 0.875rem; line-height: 1.6; white-space: pre; overflow: auto; }
input::placeholder, textarea::placeholder { color: #7790a3; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--magenta); width: 18px; height: 18px; }
.narrow-input { max-width: 6.5em; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-family: var(--display); font-weight: 600; font-size: 1.45rem; padding: 0; margin-bottom: 8px; }
.stack > * + * { margin-top: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 0 0 8px; }
.inline-form label { flex: 1 1 180px; max-width: 320px; }
.inline-form > p { flex-basis: 100%; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin: 16px 0; }

.flash { border-left: 5px solid var(--green); background: var(--paper); padding: 11px 14px; margin: 16px 0; overflow-wrap: anywhere; border-radius: 0 var(--r1) var(--r1) 0; }
.flash.error { border-left-color: var(--red); }
.notice { background: #fbf3d2; border: 1px solid #e3cf7f; border-radius: var(--r1); padding: 12px 14px; margin: 0 0 20px; }
.notice > :last-child { margin-bottom: 0; }
ul.plain, ul.plainlist { list-style: none; padding: 0; margin: 0 0 1em; }
ul.plainlist li { padding-left: 18px; position: relative; margin-bottom: 8px; }
ul.plainlist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--magenta); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--water); }
.chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart .graticule path { stroke: var(--line); stroke-width: 1; opacity: 0.4; fill: none; }
.chart .contours path { fill: none; stroke: #8fb1c5; stroke-width: 1.4; opacity: 0.75; }
.chart .contours .shoal { fill: var(--shoal); stroke: #7ea6bd; stroke-dasharray: 2 5; }
.chart .contours .land { fill: var(--buff); stroke: var(--ink); stroke-width: 1.5; opacity: 1; }
.chart .soundings text { font-family: var(--body); font-style: italic; font-size: 15px; fill: var(--ink); opacity: 0.3; }
.chart .course { fill: none; stroke: var(--magenta); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart .waypoints circle { fill: var(--paper); stroke: var(--magenta); stroke-width: 3; }
.chart .waypoints .exit { fill: var(--magenta); }
@media (prefers-reduced-motion: no-preference) {
  .chart .course { animation: plot 1.8s cubic-bezier(0.6, 0, 0.2, 1) 0.2s both; }
  .chart .waypoints circle { animation: mark 0.3s ease-out both; }
  .chart .waypoints circle:nth-child(1) { animation-delay: 0.7s; }
  .chart .waypoints circle:nth-child(2) { animation-delay: 1.3s; }
  .chart .waypoints circle:nth-child(3) { animation-delay: 2s; }
}
@keyframes plot { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mark { from { opacity: 0; } to { opacity: 1; } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(84px, 12vw, 150px); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 0.94; max-width: 13ch; }
.hero .lead { margin-bottom: 1.3em; }
.hero-note { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: 0.95rem; margin: 18px 0 0; }

/* Chart-inset frame: the double neatline drawn around map insets. */
.builder, .auth-card { background: var(--paper); border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; padding: clamp(16px, 3vw, 26px); margin: 5px; box-shadow: 0 24px 48px -28px rgba(14, 42, 71, 0.6); }
.builder > * + * { margin-top: 14px; }
.builder-title { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; margin: 0; }
.line { display: block; background: var(--ink); color: #eaf4f9; padding: 12px 14px; border-radius: var(--r1); overflow-wrap: anywhere; min-height: 3.4em; line-height: 1.5; }

.facts-band { background: var(--ink); color: #fff; }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin: 0; }
.facts-row > div { padding: 22px 20px 20px 0; display: flex; flex-direction: column-reverse; }
.facts-row > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.facts-row dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.facts-row dt { color: #b9cfde; font-size: 0.95rem; margin-top: 4px; }

/* ---------- tables ---------- */
.table-wrap { position: relative; overflow-x: auto; margin: 0 0 20px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--hair); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); background: var(--foam); white-space: nowrap; vertical-align: bottom; }
tbody th { font-weight: 600; }
tbody tr { transition: background var(--ease); }
table.prices tbody tr:hover, table.data tbody tr:hover { background: var(--foam); }
table.prices tbody th { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; white-space: nowrap; }
table.prices tbody th a { display: inline-flex; align-items: center; gap: 10px; }
table.prices tbody th .icon { color: var(--magenta); }
table.prices td { vertical-align: middle; }
table.prices td.num strong { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1; }
table.prices.grid td.num { font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
table.prices td.act { text-align: right; white-space: nowrap; }
table.data td code { white-space: nowrap; }
table.spec th { width: 34%; font-weight: 500; color: var(--ink-soft); }
table.spec thead th { width: auto; }
table.data th a { font-weight: 600; color: var(--magenta-deep); text-decoration: underline; }
td.usage { min-width: 220px; }
progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; background: var(--shoal); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--shoal); }
progress::-webkit-progress-value { background: var(--magenta); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--magenta); border-radius: 999px; }
.usage-text { display: block; font-size: 0.9rem; color: var(--ink-soft); margin-top: 5px; }
.usage.big .usage-text { font-size: 1rem; color: var(--ink); }

.tag { display: inline-block; font-size: 0.82rem; font-weight: 600; line-height: 1.2; padding: 4px 9px; border-radius: 999px; white-space: nowrap; color: var(--ink-soft); background: var(--water); }
.tag-active, .tag-fulfilled, .tag-finished { color: #0d4a36; background: #d2ecdf; }
.tag-failed, .tag-cancelled, .tag-refunded { color: #7b1d14; background: #f6d9d5; }
.tag-review, .tag-partially_paid, .tag-processing, .tag-confirming, .tag-confirmed, .tag-sending { color: #5c4a05; background: var(--buff); }
.state { display: inline-block; padding-left: 18px; position: relative; font-size: 0.95rem; }
.state::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.state.done::before { background: var(--green); }
.state.todo::before { background: #d19a00; }

/* ---------- landing sections ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.steps li { counter-increment: step; margin: 0; position: relative; padding-top: 14px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--magenta); display: block; }
.steps h3 { margin-top: 0.2em; }
.steps p { margin: 0; color: var(--ink-soft); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); overflow: hidden; }
.rules > div { padding: 22px 22px 20px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin: 0 -1px -1px 0; transition: background var(--ease); }
.rules > div:hover { background: var(--foam); }
.rules .icon { color: var(--magenta); margin-bottom: 10px; display: block; }
.rules dt { font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.1; margin-bottom: 6px; }
.rules dd { margin: 0; color: var(--ink-soft); }
.country-cloud { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.country-cloud li { margin: 0; }
.country-cloud a { display: block; padding: 6px 12px; background: var(--paper); border: 1px solid var(--hair); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.95rem; transition: border-color var(--ease), color var(--ease), transform var(--ease); }
.country-cloud a:hover { border-color: var(--magenta); color: var(--magenta-deep); transform: translateY(-1px); }
.faq details, details { border-bottom: 1px solid var(--hair); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
summary { cursor: pointer; font-weight: 600; font-size: 1.12rem; padding: 15px 30px 15px 0; position: relative; list-style: none; transition: color var(--ease); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--magenta); border-bottom: 2px solid var(--magenta); transform: translateY(-70%) rotate(45deg); transition: transform var(--ease); }
details[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
summary:hover { color: var(--magenta-deep); }
details p { max-width: 68ch; color: var(--ink-soft); }
.calc { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); padding: 18px 20px; margin: 0 0 16px; }
.calc h3 { margin-top: 0; }
.calc .row3 { margin-bottom: 0; }
.calc .gb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; align-items: end; }
.calc .gb-row .quick { grid-column: 1 / -1; margin: 0; }
.calc-out { margin: 0; }
.calc-out output, .total output, .bignum { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.bignum { font-size: 4rem; margin-bottom: 6px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 8px 28px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.ticks .icon { color: var(--green); margin-top: 2px; }
.cta-band { background: var(--ink); color: #fff; background-image: radial-gradient(120% 140% at 100% 100%, rgba(180, 24, 111, 0.35), transparent 55%); }
.cta-row { display: flex; gap: 20px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(36px, 6vw, 64px); }
.cta-row h2 { margin: 0 0 6px; font-size: clamp(2rem, 4.4vw, 3rem); }
.cta-row p { margin: 0; color: #c9d9e5; max-width: 52ch; }
.cta-row .actions { margin: 0; }

/* ---------- code ---------- */
.tabs, .code { position: relative; background: var(--deep); color: #e4eff6; border-radius: var(--r2); overflow: hidden; min-width: 0; }
.tab-list { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.tab-list button { font: inherit; font-size: 0.92rem; font-weight: 600; color: #a9c0d1; background: none; border: 0; padding: 8px 14px; border-radius: 6px 6px 0 0; cursor: pointer; border-bottom: 2px solid transparent; transition: color var(--ease); }
.tab-list button:hover { color: #fff; }
.tab-list button[aria-selected="true"] { color: #fff; border-bottom-color: var(--pink); }
.tab-panel { position: relative; }
.js .tab-panel[hidden] { display: none; }
pre { margin: 0; padding: 18px 20px; overflow-x: auto; line-height: 1.65; tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.code pre, .tab-panel pre { padding-right: 86px; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
.tabs .copy, .code .copy { position: absolute; right: 10px; top: 10px; background: rgba(255, 255, 255, 0.08); color: #dbe8f0; border-color: rgba(255, 255, 255, 0.25); }
.tabs .copy:hover, .code .copy:hover { background: #fff; color: var(--ink); }
.code { margin: 0 0 20px; }

/* ---------- product pages ---------- */
.product-hero { background: var(--foam); border-bottom: 1px solid var(--hair); }
.product-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr); gap: 28px 56px; align-items: center; }
.product-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 0.95; }
.price-card { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); padding: 22px; box-shadow: var(--float); }
.price-big { font-family: var(--display); font-weight: 700; font-size: 3.8rem; line-height: 0.95; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.price-big small { display: block; font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--ink-soft); margin-top: 4px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 44px; }
.points li { margin: 0; border-top: 2px solid var(--ink); padding-top: 14px; }
.points h2 { font-size: 1.55rem; font-weight: 600; margin: 0 0 6px; }
.points p { margin: 0; color: var(--ink-soft); }
.uses, .other { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.uses li { margin: 0; background: var(--water); border-radius: var(--r2); padding: 18px 20px; transition: transform var(--ease); }
.wrap > .uses li { background: var(--paper); border: 1px solid var(--hair); }
.uses li:hover { transform: translateY(-2px); }
.uses h2, .uses h3 { font-size: 1.4rem; font-weight: 600; margin: 0 0 4px; }
.uses p { margin: 0; color: var(--ink-soft); }
.other li { margin: 0; }
.other a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); color: var(--ink); text-decoration: none; transition: border-color var(--ease), transform var(--ease); }
.other a:hover { border-color: var(--magenta); transform: translateY(-2px); }
.other .icon { color: var(--magenta); }
.other strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.other small { color: var(--ink-soft); }
.prose-wide { max-width: 70ch; }
.prose-wide h2 { font-size: 1.6rem; margin-top: 1.4em; }

/* ---------- locations, docs, contact, status ---------- */
.locations { columns: 4 220px; column-gap: 36px; margin-bottom: 20px; }
.loc-group { break-inside: avoid; margin-bottom: 18px; }
.loc-group h2 { font-size: 1.3rem; color: var(--magenta); margin: 0 0 4px; border-bottom: 1px solid var(--hair); padding-bottom: 2px; }
.loc-group ul { list-style: none; padding: 0; margin: 0; }
.loc-group li { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 3px 0; }
.loc-group a { color: var(--ink); text-decoration: none; }
.loc-group a:hover { color: var(--magenta-deep); text-decoration: underline; }
.loc-group small { color: var(--ink-soft); white-space: nowrap; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px 56px; align-items: start; }
.docs-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: var(--r1); border-left: 3px solid transparent; transition: background var(--ease); }
.docs-nav a:hover { background: var(--foam); }
.docs-nav a[aria-current="page"] { border-left-color: var(--magenta); background: var(--paper); font-weight: 600; border-radius: 0 var(--r1) var(--r1) 0; }
.docs-body { max-width: 780px; min-width: 0; }
.docs-body h2 { font-size: 1.7rem; margin-top: 1.5em; }
.doc-steps { list-style: none; counter-reset: d; padding: 0; margin: 0 0 8px; }
.doc-steps > li { counter-increment: d; position: relative; padding: 0 0 6px 54px; margin: 0 0 14px; }
.doc-steps > li::before { content: counter(d); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.4rem; display: grid; place-items: center; }
.doc-steps h2 { margin: 0 0 4px; font-size: 1.5rem; }
.docs-help { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hair); color: var(--ink-soft); }
.contact { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.contact li { display: flex; gap: 16px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); padding: 20px; margin: 0; }
.contact .icon { color: var(--magenta); margin-top: 4px; }
.contact h2 { font-size: 1.5rem; margin: 0 0 4px; }
.contact p { margin: 0 0 8px; }
.status-now { font-family: var(--display); font-weight: 700; font-size: 2rem; display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.status-now i, .status-pill i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); flex: none; }
.s-ok i { background: #1d9a6c; box-shadow: 0 0 0 4px rgba(29, 154, 108, 0.2); }
.s-degraded i { background: #d19a00; box-shadow: 0 0 0 4px rgba(209, 154, 0, 0.2); }
.s-down i { background: var(--red); box-shadow: 0 0 0 4px rgba(163, 42, 31, 0.2); }
.days { list-style: none; padding: 0; margin: 18px 0 6px; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.days li { height: 38px; border-radius: 3px; background: var(--shoal); margin: 0; }
.days li.ok { background: #1d9a6c; }
.days li.part { background: #d19a00; }
.days li.bad { background: var(--red); }

/* ---------- dashboard ---------- */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.title-row h1 { margin: 0; }
.crumb { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 10px; }
.crumb a { color: var(--ink-soft); }
.empty { background: var(--paper); border: 1.5px dashed var(--line); border-radius: var(--r2); padding: 28px; max-width: 560px; }
.empty h2 { margin-top: 0; }
.facts { display: flex; gap: 14px 40px; flex-wrap: wrap; margin: 0 0 22px; }
.facts dt { font-size: 0.9rem; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 600; font-size: 1.1rem; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; margin-bottom: 12px; }
.creds { margin: 0 0 8px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); overflow: hidden; }
.creds > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--hair); }
.creds > div:last-child { border-bottom: 0; }
.creds dt { color: var(--ink-soft); font-size: 0.95rem; }
.creds dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.creds code { overflow-wrap: anywhere; font-weight: 500; background: none; border: 0; padding: 0; }
.copy, .chip { font: inherit; font-size: 0.85rem; font-weight: 600; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--r1); padding: 4px 10px; cursor: pointer; flex: none; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.copy:hover, .chip:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.gen-controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
.gen textarea { background: var(--deep); color: #e4eff6; border-color: var(--deep); border-radius: var(--r2); padding: 14px 16px; }
.gen .actions { margin-top: 12px; }
#test-result { font-weight: 600; }

.buy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 28px 44px; align-items: start; }
.choices { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); overflow: hidden; }
.choices legend { float: left; width: 100%; padding: 14px 16px 10px; margin: 0; border-bottom: 1px solid var(--hair); }
.choice { clear: both; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--hair); cursor: pointer; font-weight: 400; transition: background var(--ease), box-shadow var(--ease); }
.choice:last-of-type { border-bottom: 0; }
.choice:hover { background: var(--foam); }
.choice input { width: 20px; height: 20px; margin: 0; }
.choice:has(input:checked) { background: #fff; box-shadow: inset 5px 0 0 var(--magenta); }
.choice-body strong { display: block; font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1.1; }
.choice-body span { color: var(--ink-soft); font-size: 0.95rem; }
.choice-price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-align: right; line-height: 1; white-space: nowrap; }
.choice-price small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); margin-top: 3px; }
.buy-side { position: sticky; top: 88px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); padding: 22px; box-shadow: var(--float); }
.buy-side fieldset > label + label { margin-top: 14px; }
.total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--hair); padding-top: 14px; margin: 6px 0 16px; }
.pay-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 8px 0 12px; }
.pay-options form { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); padding: 20px; }
.pay-options h2 { font-size: 1.5rem; margin-top: 0; }

/* ---------- sign-in pages ---------- */
.auth-wrap { display: flex; justify-content: center; padding-top: clamp(28px, 7vw, 72px); padding-bottom: 40px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card h1 { font-size: 2.3rem; }
.auth-foot { margin: 20px 0 0; font-size: 0.95rem; line-height: 1.8; }

/* ---------- long-form pages ---------- */
.prose { max-width: 780px; margin-left: max(0px, calc((100% - 1180px) / 2)); }
.prose h2 { font-size: 1.55rem; margin-top: 1.5em; }

/* ---------- footer ---------- */
.site-foot { background: var(--paper); border-top: 1px solid var(--hair); font-size: 0.97rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px 32px; padding: 44px 0 30px; }
.foot-brand p { color: var(--ink-soft); max-width: 30ch; margin: 12px 0 14px; }
.site-foot nav { display: flex; flex-direction: column; gap: 7px; }
.site-foot nav h2 { font-family: var(--body); font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 4px; letter-spacing: 0; }
.site-foot nav a { color: var(--ink); text-decoration: none; }
.site-foot nav a:hover { color: var(--magenta-deep); text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 16px 0 20px; border-top: 1px solid var(--hair); color: var(--ink-soft); }
.foot-base p { margin: 0; }
.site-foot.slim .foot-base { border-top: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 11px; border: 1px solid var(--hair); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: border-color var(--ease); }
.status-pill:hover { border-color: var(--ink); color: var(--ink); }
.status-pill i { width: 9px; height: 9px; box-shadow: none; }

/* ---------- support chat ---------- */
.chat { position: fixed; right: 0; bottom: 22px; z-index: 50; }
/* The launcher is a pennant flying from the right edge of the screen. */
.chat-tab { display: flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 18px 12px 30px; clip-path: polygon(16px 50%, 0 0, 100% 0, 100% 100%, 0 100%); transition: padding var(--ease), background var(--ease); position: relative; }
.chat-tab:hover { color: #fff; background: var(--magenta); padding-right: 26px; }
.chat-badge { min-width: 20px; height: 20px; border-radius: 999px; background: var(--pink); color: var(--ink); font-size: 0.78rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.chat.open .chat-tab { display: none; }
.chat-panel { position: fixed; right: 18px; bottom: 18px; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); background: var(--paper); border-radius: 16px 16px 6px 16px; box-shadow: 0 2px 0 rgba(14, 42, 71, 0.06), 0 28px 70px -20px rgba(14, 42, 71, 0.6); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hair); animation: rise 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.chat-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: #fff; padding: 14px 14px 14px 18px; }
.chat-panel > header strong { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.chat-presence { display: block; font-size: 0.85rem; color: #b9cfde; margin-top: 2px; }
.chat-presence.on::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4fd09c; margin-right: 6px; }
.chat-close { background: none; border: 0; color: #fff; padding: 8px; border-radius: var(--r1); cursor: pointer; display: grid; transition: background var(--ease); }
.chat-close:hover { background: rgba(255, 255, 255, 0.14); }
.chat-log { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; background: var(--foam); }
.chat-log li { margin: 0; max-width: 86%; }
.chat-log .m { padding: 9px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; font-size: 0.98rem; }
.chat-log .you { align-self: flex-end; }
.chat-log .you .m { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.chat-log .team .m { background: var(--paper); border: 1px solid var(--hair); border-bottom-left-radius: 4px; }
.chat-log .auto .m { background: #fbf3d2; border: 1px solid #e3cf7f; border-bottom-left-radius: 4px; }
.chat-log small { display: block; font-size: 0.75rem; color: var(--ink-soft); margin: 3px 4px 0; }
.chat-log .you small { text-align: right; }
.chat-log .note { align-self: center; max-width: 100%; text-align: center; color: var(--ink-soft); font-size: 0.88rem; padding: 4px 8px; }
.chat-log .intro { max-width: 100%; }
.chat-log .intro p { margin: 0 0 10px; font-size: 0.98rem; }
.chat-quick { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.chat-quick button { font: inherit; font-size: 0.93rem; text-align: left; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: border-color var(--ease), color var(--ease); }
.chat-quick button:hover { border-color: var(--magenta); color: var(--magenta-deep); }
.chat-email { max-width: 100%; background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; padding: 12px; }
.chat-email p { margin: 0 0 8px; font-size: 0.92rem; }
.chat-email form { display: flex; gap: 6px; }
.chat-email input { margin: 0; min-height: 38px; padding: 6px 10px; font-size: 0.95rem; }
.chat-email button { flex: none; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--hair); background: var(--paper); }
.chat-form textarea { margin: 0; min-height: 44px; max-height: 130px; resize: none; border-radius: 14px; padding: 10px 14px; line-height: 1.35; }
.chat-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--magenta); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background var(--ease), transform var(--ease); }
.chat-send:hover { background: var(--magenta-deep); transform: scale(1.06); }
.chat-send[disabled] { opacity: 0.5; cursor: default; transform: none; }
.chat-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat-error { color: var(--red); font-size: 0.88rem; padding: 0 14px 8px; margin: 0; background: var(--paper); }

/* ---------- admin ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); padding: 16px 18px; }
.stat span { display: block; color: var(--ink-soft); font-size: 0.95rem; }
.stat strong { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1.05; }
.stat small { color: var(--ink-soft); }
.alerts { list-style: none; padding: 0; margin: 0 0 20px; }
.alerts li { display: flex; justify-content: space-between; gap: 14px; align-items: center; background: var(--paper); border-left: 5px solid #d19a00; border-radius: 0 var(--r1) var(--r1) 0; padding: 10px 14px; margin-bottom: 8px; }
.alerts li.alert { border-left-color: var(--red); }
.alerts form { margin: 0; flex: none; }
.checks { list-style: none; padding: 0; }
.checks li { padding: 8px 0 8px 30px; border-bottom: 1px solid var(--hair); position: relative; margin: 0; }
.checks li::before { position: absolute; left: 4px; font-weight: 700; }
.checks .done::before { content: "\2713"; color: var(--green); }
.checks .todo::before { content: "!"; color: var(--red); }
.filters { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.filters a[aria-current="page"] { font-weight: 600; color: var(--ink); text-decoration-thickness: 3px; text-decoration-color: var(--magenta); }
.review { margin-top: 10px; padding: 12px; background: var(--water); border-radius: var(--r1); font-weight: 400; }
.inbox { list-style: none; padding: 0; margin: 0 0 16px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r2); overflow: hidden; }
.inbox li { margin: 0; border-bottom: 1px solid var(--hair); }
.inbox li:last-child { border-bottom: 0; }
.inbox a { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 6px 18px; align-items: baseline; padding: 14px 16px; color: var(--ink); text-decoration: none; transition: background var(--ease); }
.inbox a:hover { background: var(--foam); }
.inbox .unread a { box-shadow: inset 4px 0 0 var(--magenta); }
.inbox-who { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox .unread .inbox-last { color: var(--ink); font-weight: 500; }
.inbox-last { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-when { color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; }
.thread { list-style: none; padding: 16px; margin: 0 0 18px; background: var(--foam); border: 1px solid var(--hair); border-radius: var(--r2); display: flex; flex-direction: column; gap: 10px; max-height: 62vh; overflow-y: auto; }
.thread .msg { margin: 0; max-width: 80%; }
.thread .msg p { margin: 0; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread .from-them p { background: var(--paper); border: 1px solid var(--hair); border-bottom-left-radius: 4px; }
.thread .from-team { align-self: flex-end; }
.thread .from-team p { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.thread time { display: block; font-size: 0.78rem; color: var(--ink-soft); margin: 3px 4px 0; }
.thread .from-team time { text-align: right; }
.reply textarea.plain { min-height: 110px; }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-grid; }
  .js .main-nav { display: none; order: 5; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
  .js .nav-open .main-nav { display: flex; }
  .js .head-row { flex-wrap: wrap; }
  .js .head-end { order: 2; margin-left: auto; }
  .js .nav-toggle { order: 3; margin-left: 0; }
  .main-nav > a, .menu-trigger { padding: 10px 12px; }
  .menu-panel { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 6px 10px; grid-template-columns: 1fr; background: transparent; }
  .head-row { flex-wrap: wrap; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .docs-nav a { border-left: 0; border-bottom: 3px solid transparent; }
  .docs-nav a[aria-current="page"] { border-bottom-color: var(--magenta); border-radius: var(--r1) var(--r1) 0 0; }
}
@media (max-width: 860px) {
  .chart .soundings, .chart .course, .chart .waypoints { display: none; }
  .hero-grid, .buy, .plan-grid, .pay-options, .steps, .stat-row, .split, .product-head, .points { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-side { position: static; }
  .row3 { grid-template-columns: minmax(0, 1fr); }
  .head-end .signin { display: none; }
  .inbox a { grid-template-columns: minmax(0, 1fr) auto; }
  .inbox-last { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  /* The price list becomes a stack of rows: name and price, then the description. */
  table.prices:not(.grid) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.prices:not(.grid), table.prices:not(.grid) tbody { display: block; }
  table.prices:not(.grid) tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
  table.prices:not(.grid) tr:last-child { border-bottom: 0; }
  table.prices:not(.grid) th, table.prices:not(.grid) td { padding: 0; border: 0; }
  table.prices:not(.grid) tbody th { white-space: normal; }
  table.prices:not(.grid) td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--ink-soft); }
  table.prices:not(.grid) td.num { grid-column: 2; grid-row: 1; }
  table.prices:not(.grid) td.act { grid-column: 1 / -1; text-align: left; margin-top: 4px; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-row > div { padding: 16px 12px 14px 0; }
  .facts-row > div + div { padding-left: 16px; }
  .facts-row > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts-row > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .foot-grid { padding-top: 32px; }
  .days { gap: 2px; }
  .chat { bottom: 14px; }
  .chat-tab { padding: 11px 14px 11px 26px; }
  .chat-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: min(74vh, 600px); border-radius: 16px; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .creds > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .choice { grid-template-columns: auto minmax(0, 1fr); }
  .choice-price { grid-column: 2; text-align: left; }
  .choice-price small { display: inline; margin-left: 6px; }
  th, td { padding: 10px 12px; }
  .head-end .btn.small { padding: 6px 10px; }
  .brand { font-size: 1.4rem; }
  .head-row { gap: 10px 12px; }
  .head-end { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
