/* ==========================================================================
   FlowVDS — FLOW DIGITAL – FZCO
   Implements design_handoff_flowvds. Token values are taken from the handoff
   and are exact; do not "tidy" them.
   ========================================================================== */

:root {
  /* Color ------------------------------------------------------------ */
  --canvas:        #F6F6F3;
  --surface:       #FFFFFF;
  --ink:           #101315;
  --ink-deep:      #0A0C0D;
  --body:          #43484D;
  --muted:         #6B7077;
  --faint:         #9AA0A6;

  /* From assets/logo-mark.svg — the logo is the source of the brand blue. */
  --accent:        #2A47D8;
  --accent-link:   #2138B4;
  --accent-tint:   #EBEEFC;
  --accent-select: #D5DCF9;
  --terminal-link: #8098FF;
  /* The brand blue is too dark to read on the ink surfaces — 2.66:1. Use this
     wherever the accent lands on #101315. */
  --accent-on-ink: #8FADFF;
  --success:       #12A150;

  --border:        #E2E2DC;
  --border-strong: #D6D6CE;
  --rule-light:    #EDEDE7;
  --rule-lighter:  #EFEFEA;
  --chip-bg:       #F2F2ED;
  --row-active:    #F0F1F4;
  --table-head:    #FAFAF7;

  --dark-muted:    #A7AEB4;
  --dark-faint:    #7B838B;
  --dark-rule:     #22272B;
  --dark-dots:     #3A4046;
  --dark-text:     #EDEFF1;

  --meter-idle:    #C9CBCF;
  --meter-track:   #EDEDE7;

  /* Type ------------------------------------------------------------- */
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape ------------------------------------------------------------ */
  --wrap: 1200px;
  --gutter: 32px;
  --nav-h: 68px;

  --shadow-hero:  0 24px 60px -30px rgba(16, 19, 21, .55);
  --shadow-panel: 0 40px 90px -50px rgba(0, 0, 0, .9);
  --flag-ring:    0 0 0 1px rgba(16, 19, 21, .12);

  /* Aliases kept so the inner pages' inline styles resolve against the
     handoff palette instead of falling back to unset custom properties. */
  --text:    var(--ink);
  --text-2:  var(--body);
  --line:    var(--border);
  --paper:   var(--surface);
  --paper-2: var(--canvas);
  --paper-3: var(--chip-bg);
  --brand:   var(--accent);
}

/* ---------------------------------------------------------------- base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent-select); }

a { color: var(--accent-link); text-decoration: none; }
a:hover { color: var(--ink); }

img, svg { display: block; max-width: 100%; }
svg { flex: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 { font-size: 44px; line-height: 1.06; letter-spacing: -.032em; }
h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; }
h3 { font-size: 17px; letter-spacing: -.015em; }
p { margin: 0; }

/* Inner-page intro paragraph. */
.lead {
  margin-top: 16px; font-size: 17px; line-height: 1.6;
  color: var(--body); max-width: 68ch; text-wrap: pretty;
}
.section-head { margin-bottom: 32px; max-width: 640px; }
.section-head .lead { max-width: none; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

input, button, select, textarea { font-family: inherit; }
button { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

@keyframes fvBlink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@keyframes fvRise  { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.mono { font-family: var(--mono); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--canvas); padding: 10px 16px;
  border-radius: 6px; font-size: 14px; font-weight: 500; transition: top .15s;
}
.skip:focus { top: 14px; color: var(--canvas); }

/* -------------------------------------------------------------- layout */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.section { border-bottom: 1px solid var(--border); }
.section > .wrap { padding-top: 88px; padding-bottom: 88px; }
.section.on-surface { background: var(--surface); }
.section.on-ink { background: var(--ink); }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.on-ink .eyebrow { color: var(--dark-faint); }

.section-h2 {
  margin-top: 14px; font-size: 40px; line-height: 1.1; letter-spacing: -.03em;
}
.on-ink .section-h2 { color: var(--canvas); }

.section-lead {
  margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--body);
  text-wrap: pretty;
}
.on-ink .section-lead { color: var(--dark-muted); }

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.section-head-col { max-width: 600px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500; padding: 14px 22px; border-radius: 7px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn-sm { font-size: 13px; padding: 8px 12px; border-radius: 6px; }
.btn-block { display: flex; width: 100%; }

/* Plan CTA fully inverts on hover. */
.btn-plan { margin-top: 22px; font-size: 15px; padding: 12px 16px; }
.btn-plan:hover { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 243, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

/* Mark and wordmark are one lockup at three sizes: 26 header, 24 footer,
   21 control-panel sidebar. Weight and tracking match the delivered logo,
   which sets FlowVDS in a single bold weight rather than a two-tone split. */
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-word { font-weight: 700; letter-spacing: -.018em; }
.brand-word-26 { font-size: 18px; }
.brand-word-24 { font-size: 17px; }
.brand-word-21 { font-size: 15px; }

.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav a { font-size: 14px; color: var(--body); }
.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-signin { font-size: 14px; color: var(--body); padding: 8px 12px; }
.header-cta { font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 6px; }

.nav-toggle {
  display: none; width: 40px; height: 40px; background: transparent;
  border: 1px solid var(--border-strong); border-radius: 6px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 15px; height: 1.5px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--border); background: var(--canvas); padding: 8px var(--gutter) 20px; }
.mobile-nav nav { display: grid; }
.mobile-nav nav a { padding: 13px 0; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-nav-actions { display: grid; gap: 10px; margin-top: 18px; }

@media (max-width: 1000px) { .primary-nav, .header-actions { display: none; } .nav-toggle { display: flex; } }

/* ---------------------------------------------------------------- hero */

/* The hero owns its own vertical rhythm (96/88), so cancel the section's. */
.hero > .wrap { padding-top: 0; padding-bottom: 0; }

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px;
  align-items: center; padding: 96px 0 88px;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: 100px; padding: 6px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--body);
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: block; flex: none; }
.dot-ok { background: var(--success); }
.dot-idle { background: var(--faint); }

.hero h1 {
  margin-top: 22px; font-size: 60px; line-height: 1.02;
  letter-spacing: -.035em; text-wrap: balance;
}
.hero-lead {
  margin-top: 24px; font-size: 19px; line-height: 1.55;
  color: var(--body); max-width: 520px; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .rule { width: 1px; background: var(--border); align-self: stretch; }
.hero-stat-value {
  font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -.02em;
}
.hero-stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* terminal card */
.term-card {
  background: var(--ink); border-radius: 12px; padding: 14px;
  box-shadow: var(--shadow-hero);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 6px 8px 14px; }
.term-bar b { width: 10px; height: 10px; border-radius: 50%; background: var(--dark-dots); display: block; }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: #8F979E; }

.term-body {
  background: var(--ink-deep); border-radius: 8px; padding: 20px;
  font-family: var(--mono); font-size: 13px; line-height: 1.85;
  overflow-x: auto;
}
.term-body div { color: var(--dark-faint); white-space: pre; }
.term-body .cmd { color: var(--dark-text); }
.term-body .ok { color: var(--success); }
.term-body .host { color: var(--terminal-link); }
.term-body .gap { margin-top: 10px; }
.caret {
  display: inline-block; width: 8px; height: 15px; background: var(--dark-text);
  margin-left: 4px; vertical-align: -3px; animation: fvBlink 1.1s steps(1) infinite;
}

.term-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--dark-rule); margin-top: 14px; border-radius: 8px; overflow: hidden;
}
.term-facts > div { background: var(--ink); padding: 14px 16px; }
.term-facts dt { font-family: var(--mono); font-size: 11px; color: var(--dark-faint); letter-spacing: .06em; }
.term-facts dd { margin: 5px 0 0; font-size: 14px; color: var(--dark-text); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 64px 0 60px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 17px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 34px; letter-spacing: -.03em; }
  .hero-stats { gap: 20px; }
  .hero-stats .rule { display: none; }
}

/* --------------------------------------------------------------- plans */

.billing-toggle {
  display: inline-flex; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 4px; gap: 4px;
}
.billing-toggle button {
  font-size: 14px; font-weight: 500; padding: 9px 15px; border: 0;
  border-radius: 5px; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--body);
  transition: background-color .15s, color .15s;
}
.billing-toggle button.is-active { background: var(--ink); color: var(--canvas); }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }

.plan-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px; display: flex; flex-direction: column;
  transition: border-color .15s;
}
.plan-card:hover { border-color: var(--ink); }

.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-id { display: flex; align-items: center; gap: 11px; }
.plan-tile {
  width: 34px; height: 34px; border-radius: 8px; background: var(--chip-bg);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.plan-card h3 { font-size: 20px; letter-spacing: -.02em; }
.plan-vcpu { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .05em; }

.plan-blurb {
  margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted);
  min-height: 42px; text-wrap: pretty;
}

.plan-popular {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 12px; font-weight: 500; color: var(--accent-link);
  background: var(--accent-tint); border-radius: 5px; padding: 5px 9px;
  align-self: flex-start;
}

.plan-price {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule-light);
  display: flex; align-items: baseline; gap: 8px;
}
.plan-price .from, .plan-price .per { font-size: 15px; color: var(--muted); }
.plan-price .amount {
  font-family: var(--mono); font-size: 34px; font-weight: 500; letter-spacing: -.03em;
}
.plan-note { margin-top: 6px; font-size: 13px; color: var(--muted); }

.plan-specs {
  margin-top: 20px; display: flex; flex-direction: column; gap: 1px;
  background: var(--rule-light); border: 1px solid var(--rule-light);
  border-radius: 8px; overflow: hidden;
}
.plan-specs > div {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); padding: 10px 13px;
}
.plan-specs dt { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.plan-specs dd { margin: 0; font-family: var(--mono); font-size: 13px; }

.plan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  color: var(--body); background: var(--chip-bg); border-radius: 5px; padding: 5px 9px;
}

.plan-footnote {
  margin-top: 26px; font-size: 13px; color: var(--muted);
  max-width: 760px; text-wrap: pretty;
}

@media (max-width: 1040px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .plan-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ platform */

.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; margin-top: 44px;
}
.feature { background: var(--surface); padding: 28px 24px; min-height: 190px; }
.feature .no { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .08em; }
.feature h3 { margin-top: 16px; font-size: 17px; letter-spacing: -.015em; }
.feature p { margin-top: 9px; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

@media (max-width: 1040px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .feature-grid { grid-template-columns: 1fr; } .feature { min-height: 0; } }

/* =========================================================================
   Section 5 — AI workloads.
   Its own layout system: a 148px editorial gutter grid on a dark band. This
   is the page's one structural interruption. Do not turn it into cards.
   ========================================================================= */

.ai {
  background: var(--ink);
  color: var(--canvas);
  --ai-lead:  #C7CDD2;  /* 26px statement line */
  --ai-body:  #8F979E;  /* body copy */
  --ai-rule:  #2C3237;  /* hairline rules */
  --ai-rule2: #1D2226;  /* table row rules */
  --ai-link:  #8FADFF;
  --ai-link-underline: #3A4A6B;
}
.ai > .wrap { padding: 104px 32px 96px; }

.ai-block { display: grid; grid-template-columns: 148px 1fr; gap: 40px; align-items: start; }
.ai-block-2 { margin-top: 64px; }
.ai-block-3, .ai-block-4 { margin-top: 72px; }

.ai-gutter {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dark-faint);
}
/* Sits on the H2's first baseline. */
.ai-gutter-h2 { padding-top: 9px; }
.ai-gutter-stack { padding-top: 2px; }

.ai-h2 {
  font-size: 52px; line-height: 1.05; letter-spacing: -.035em; font-weight: 600;
  max-width: 820px; color: var(--canvas); text-wrap: balance;
}
/* The light weight at this size is the point. Do not bold it. */
.ai-statement {
  margin-top: 28px; font-size: 26px; line-height: 1.45; font-weight: 400;
  letter-spacing: -.015em; color: var(--ai-lead); max-width: 760px; text-wrap: pretty;
}

.ai-args { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ai-arg { border-top: 1px solid var(--ai-rule); padding-top: 18px; }
/* Two classes deep on purpose: `.ai-arg p` below is (0,1,1) and would
   otherwise repaint this numeral in body grey. */
.ai-arg .ai-arg-no { font-family: var(--mono); font-size: 11px; color: var(--accent-on-ink); letter-spacing: .06em; }
.ai-arg h3 {
  margin-top: 14px; font-size: 18px; font-weight: 600;
  letter-spacing: -.015em; color: var(--canvas);
}
.ai-arg p { margin-top: 9px; font-size: 15px; line-height: 1.65; color: var(--ai-body); text-wrap: pretty; }

/* Colophon line: names separated by hairline rules, suppressed on the last. */
.ai-colophon { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0; row-gap: 10px; }
.ai-colophon span {
  position: relative; font-size: 19px; font-weight: 500; letter-spacing: -.015em;
  color: var(--dark-text); padding-right: 18px; margin-right: 18px;
}
.ai-colophon span::after {
  content: ""; position: absolute; right: 0; top: .28em; bottom: .18em;
  width: 1px; background: var(--ai-rule);
}
.ai-colophon span:last-child { padding-right: 0; margin-right: 0; }
.ai-colophon span:last-child::after { display: none; }

.ai-caption {
  margin-top: 20px; font-size: 15px; line-height: 1.65;
  color: var(--ai-body); max-width: 640px; text-wrap: pretty;
}
.ai-method {
  margin-top: 14px; font-size: 13px; line-height: 1.65;
  color: var(--ai-body); text-wrap: pretty;
}

.ai-h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--canvas); }
.ai-body {
  margin-top: 12px; font-size: 16px; line-height: 1.65;
  color: var(--ai-body); max-width: 700px; text-wrap: pretty;
}
.ai-closing { margin-top: 24px; font-size: 15px; }
.ai-link { color: var(--ai-link); border-bottom: 1px solid var(--ai-link-underline); }
.ai-link:hover { color: #fff; border-bottom-color: currentColor; }

/* A real datasheet, not a card grid. */
.ai-table { margin-top: 28px; }
.ai-tr {
  display: grid; grid-template-columns: 1.1fr .7fr .9fr 1.5fr .7fr; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--ai-rule2); align-items: baseline;
}
.ai-th {
  padding: 0 0 11px; border-bottom: 1px solid var(--ai-rule);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--dark-faint);
}
.ai-tr .right { text-align: right; }
.ai-td-plan { font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--canvas); }
.ai-td-ram { font-family: var(--mono); font-size: 14px; color: var(--ai-body); }
.ai-td-model { font-size: 15px; color: var(--ai-lead); }
.ai-td-examples { font-size: 14.5px; line-height: 1.55; color: var(--ai-body); }
.ai-td-speed {
  font-family: var(--mono); font-size: 19px; font-weight: 500;
  color: var(--canvas); letter-spacing: -.02em;
}

@media (max-width: 1000px) {
  .ai-block { grid-template-columns: 1fr; gap: 20px; }
  .ai-gutter-h2, .ai-gutter-stack { padding-top: 0; }
  .ai-h2 { font-size: 40px; }
  .ai-statement { font-size: 22px; }
  .ai-args { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .ai > .wrap { padding: 72px 24px 64px; }
  .ai-h2 { font-size: 32px; }
  .ai-statement { font-size: 19px; }
  /* The datasheet reflows to stacked records rather than scrolling sideways. */
  .ai-tr { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .ai-th { display: none; }
  .ai-tr .right { text-align: left; }
  .ai-td-ram::before { content: "Memory · "; color: var(--dark-faint); }
  .ai-td-model::before { content: "Model class · "; color: var(--dark-faint); }
  .ai-td-speed::before {
    content: "tok/s "; font-size: 13px; font-weight: 400; color: var(--dark-faint);
  }
}

/* ----------------------------------------------------------- locations */

.loc-filter {
  width: 280px; font-size: 14px; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink); outline: none;
}
.loc-filter::placeholder { color: var(--muted); }
.loc-filter:focus { border-color: var(--ink); }

.regions { margin-top: 40px; display: flex; flex-direction: column; gap: 36px; }

.region-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.region-head h3 { font-size: 15px; letter-spacing: -.01em; }
.region-head .count { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.country-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.country {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 14px 7px 8px;
  transition: border-color .15s;
}
.country:hover { border-color: var(--ink); }
.country span { font-size: 14px; color: var(--ink); line-height: 1.25; white-space: nowrap; }
.flag { border-radius: 2px; box-shadow: var(--flag-ring); flex: none; }

.loc-empty { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* -------------------------------------------------------- control panel */

.panel-shell {
  margin-top: 44px; background: var(--canvas); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-panel);
}
.panel-grid { display: grid; grid-template-columns: 212px 1fr; }

.panel-side {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 20px 16px; min-height: 520px;
}
.panel-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 20px; }
.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav div { font-size: 13.5px; padding: 9px 10px; border-radius: 6px; color: var(--muted); }
.panel-nav div.is-active { background: var(--row-active); color: var(--ink); font-weight: 500; }
.panel-balance { margin-top: 24px; border-top: 1px solid var(--rule-light); padding-top: 16px; }
.panel-balance .lab { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .08em; padding: 0 10px; }
.panel-balance .val { font-family: var(--mono); font-size: 18px; padding: 6px 10px 0; }
.panel-balance .sub { font-size: 12px; color: var(--muted); padding: 4px 10px 0; }

.panel-main { padding: 22px 24px 28px; min-width: 0; }
.panel-main-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel-main-head h3 { font-size: 19px; letter-spacing: -.02em; }
.panel-main-head .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.panel-main-actions { display: flex; gap: 8px; }

.panel-table {
  margin-top: 18px; border: 1px solid var(--border); border-radius: 9px;
  overflow: hidden; background: var(--surface);
}
.panel-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr .7fr; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--rule-lighter); align-items: center;
}
.panel-row:last-child { border-bottom: 0; }
.panel-row-head {
  padding: 11px 16px; background: var(--table-head); border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted);
}
.panel-host { font-family: var(--mono); font-size: 13px; }
.panel-ip { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.panel-cell { font-size: 13px; color: var(--body); }
.meters { display: flex; flex-direction: column; gap: 5px; }
.meter { height: 5px; background: var(--meter-track); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; }
.panel-state {
  font-family: var(--mono); font-size: 11.5px; color: var(--body);
  display: flex; align-items: center; gap: 6px;
}

.panel-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 16px; }
.metric .lab { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .08em; }
.metric .val { font-family: var(--mono); font-size: 22px; margin-top: 8px; }
.metric .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

@media (max-width: 900px) {
  .panel-grid { grid-template-columns: 1fr; }
  .panel-side { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .panel-nav { flex-direction: row; flex-wrap: wrap; }
  .panel-table { overflow-x: auto; }
  .panel-row, .panel-row-head { min-width: 620px; }
  .panel-metrics { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- faq */

.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 22px 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  cursor: pointer; color: var(--ink);
}
.faq-q span:first-child { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.faq-sign { font-family: var(--mono); font-size: 18px; color: var(--muted); line-height: 1.3; }
.faq-a {
  padding: 0 60px 24px 0; font-size: 15.5px; line-height: 1.65;
  color: var(--body); animation: fvRise .18s ease-out; text-wrap: pretty;
}
.faq-a[hidden] { display: none; }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .faq-a { padding-right: 0; }
}

/* ------------------------------------------------------------- company */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.company-p { margin-top: 20px; font-size: 17px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.company-p + .company-p { margin-top: 16px; }

.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
}
.contact-card h3 { font-size: 18px; letter-spacing: -.015em; }
.contact-rows {
  margin-top: 18px; display: flex; flex-direction: column; gap: 1px;
  background: var(--rule-light); border: 1px solid var(--rule-light);
  border-radius: 8px; overflow: hidden;
}
.contact-rows > div { background: var(--surface); padding: 14px 16px; }
.contact-rows dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.contact-rows dd { margin: 6px 0 0; font-size: 15px; line-height: 1.55; }
.contact-note { margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ----------------------------------------------------------- closing cta */

.cta-band > .wrap {
  padding: 72px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.03em; max-width: 560px; }
.cta-band p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--body); max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* -------------------------------------------------------------- footer */

.site-footer { background: var(--canvas); }
.site-footer > .wrap { padding-top: 56px; padding-bottom: 40px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-blurb { margin-top: 14px; font-size: 13.5px; line-height: 1.65; color: var(--muted); max-width: 300px; text-wrap: pretty; }
.footer-col h3 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); font-weight: 400; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.footer-col a { font-size: 14px; color: var(--body); }
.footer-col a:hover { color: var(--ink); }

.footer-bar {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-legal { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
/* Was the bare domain in --faint; now the support address, so it has to be
   readable — --faint on --canvas is 2.4:1, --muted is 4.6:1. */
.footer-domain { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.footer-domain a { color: inherit; }
.footer-domain a:hover { color: var(--ink); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Inner pages — location detail, legal, support. Same tokens, denser layout.
   ========================================================================== */

.page-head { border-bottom: 1px solid var(--border); background: var(--canvas); }
.page-head > .wrap { padding-top: 48px; padding-bottom: 52px; }
.page-head h1 { margin-top: 18px; font-size: 44px; line-height: 1.06; letter-spacing: -.032em; text-wrap: balance; }
.page-head .section-lead { max-width: 660px; }
@media (max-width: 700px) { .page-head h1 { font-size: 32px; } }

.breadcrumbs { font-size: 13px; margin-bottom: 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }

.head-flag { display: flex; align-items: center; gap: 14px; }
.head-flag .flag { border-radius: 3px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill {
  font-size: 13px; color: var(--body); background: var(--surface);
  border: 1px solid var(--border); border-radius: 100px; padding: 6px 13px;
}

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.info-card h3 { font-size: 16px; letter-spacing: -.015em; display: flex; align-items: center; gap: 9px; }
.info-card h3 svg { color: var(--accent); }
.info-card p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.info-card ul { margin-top: 10px; display: grid; gap: 7px; }
.info-card li { position: relative; padding-left: 15px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.info-card li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-list li {
  font-family: var(--mono); font-size: 12px; color: var(--body);
  background: var(--chip-bg); border-radius: 5px; padding: 5px 9px;
}
.tag-list li a { color: inherit; }

.checklist { display: grid; gap: 14px; margin-top: 24px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--body); }
.checklist svg { color: var(--success); margin-top: 3px; }
.checklist strong { color: var(--ink); font-weight: 500; }

.callout {
  margin-top: 24px; padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-radius: 8px; font-size: 14px; line-height: 1.6; color: var(--body);
}
.callout strong { color: var(--ink); font-weight: 500; }

.spec-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.spec-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 14px; }
.spec-table thead th {
  padding: 12px 16px; background: var(--table-head); border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); text-align: left; white-space: nowrap;
}
.spec-table tbody th, .spec-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--rule-lighter); text-align: left;
}
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody th { font-weight: 600; white-space: nowrap; }
.spec-table td { color: var(--body); }
.spec-table .num { text-align: right; font-family: var(--mono); }
.spec-table thead th.num { text-align: right; }
.spec-table tbody tr:hover { background: var(--table-head); }

.os-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 780px) { .os-columns { grid-template-columns: 1fr; } }
.os-columns h3 { font-size: 15px; letter-spacing: -.01em; }
.os-columns ul { display: grid; gap: 7px; margin-top: 12px; }
.os-columns li { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.steps { display: grid; gap: 24px; margin-top: 32px; counter-reset: step; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: .08em; padding-top: 4px;
}
.step h3 { font-size: 17px; letter-spacing: -.015em; }
.step p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* prose / legal */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }

.doc-toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  padding: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
}
/* Must come AFTER the base rule: a media query adds no specificity, so an
   earlier `position: static` would simply be overwritten by the sticky above
   and the contents card would float over the prose on phones. */
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 32px; } .doc-toc { position: static; } }
.doc-toc h2 { font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc-toc ul { display: grid; gap: 9px; margin-top: 14px; }
.doc-toc a { font-size: 13.5px; color: var(--body); line-height: 1.4; }
.doc-toc a:hover { color: var(--accent-link); }

.prose { max-width: 70ch; }
.prose h2 { margin: 40px 0 12px; font-size: 22px; letter-spacing: -.02em; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.7; color: var(--body); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 20px; display: grid; gap: 8px; }
.prose li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose hr { margin: 36px 0; border: 0; border-top: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--table-head); font-weight: 600; }

.doc-meta {
  padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--muted); line-height: 1.6;
}

/* support page contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.contact-tile h3 { font-size: 16px; letter-spacing: -.015em; display: flex; align-items: center; gap: 9px; }
.contact-tile h3 svg { color: var(--accent); }
.contact-tile p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.contact-tile .big { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 500; word-break: break-word; }
.contact-tile .meta { margin-top: 10px; font-size: 12.5px; color: var(--faint); }

/* 404 */
.error-page { text-align: center; }
.error-page > .wrap { padding-top: 120px; padding-bottom: 140px; }
.error-page .code { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.error-page h1 { margin-top: 18px; font-size: 44px; letter-spacing: -.03em; }
.error-page p { margin: 18px auto 0; max-width: 52ch; font-size: 17px; line-height: 1.55; color: var(--body); }
.error-page .btn { margin-top: 30px; }

/* =========================================================================
   Order / checkout. Not part of the handoff — built on the same tokens.
   Selectors here are deliberately direct-child (`>`) wherever a control could
   also appear inside a nested card, so a rule can never stretch a radio.
   ========================================================================= */

.order-hero { background: var(--canvas); border-bottom: 1px solid var(--border); }
.order-hero > .wrap { padding-top: 40px; padding-bottom: 40px; }
.order-hero h1 { font-size: 36px; line-height: 1.1; letter-spacing: -.03em; }
.order-hero-sub {
  margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted);
}
@media (max-width: 700px) { .order-hero h1 { font-size: 26px; } }

.order-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px; align-items: start;
}
@media (max-width: 1000px) { .order-layout { grid-template-columns: 1fr; gap: 28px; } }

.order-form { min-width: 0; }

/* notice ---------------------------------------------------------------- */

.notice {
  padding: 20px 22px; margin-bottom: 28px;
  background: var(--chip-bg); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 14px; line-height: 1.65; color: var(--body);
}
.notice-title { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.notice p + p { margin-top: 12px; }

/* section groups -------------------------------------------------------- */

.cfg-group { margin-bottom: 28px; }
.cfg-group-label {
  margin-bottom: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

.cfg-rows {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); overflow: hidden;
}
.cfg-row {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px; align-items: center;
  padding: 15px 20px; border-bottom: 1px solid var(--rule-lighter);
}
.cfg-row:last-child { border-bottom: 0; }
.cfg-row.is-control { padding-top: 10px; padding-bottom: 10px; }

.cfg-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.cfg-info { display: inline-flex; color: var(--faint); cursor: help; }
.cfg-value { font-size: 14.5px; color: var(--body); display: flex; align-items: center; gap: 10px; }
.cfg-value strong { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  .cfg-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
}

/* a select sitting inside a config row */
.cfg-select {
  flex: 1; min-width: 0; max-width: 340px;
  padding: 9px 34px 9px 11px;
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 8px; outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7077' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.cfg-select:focus { border-color: var(--ink); }
.cfg-flag { display: inline-flex; }
.cfg-flag .flag { border-radius: 2px; box-shadow: var(--flag-ring); }

.cfg-textarea {
  width: 100%; padding: 12px 14px; resize: vertical;
  font-family: inherit; font-size: 14.5px; line-height: 1.6; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 10px; outline: none;
}
.cfg-textarea:focus { border-color: var(--ink); }

/* billing term cards ---------------------------------------------------- */

.term-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .term-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .term-cards { grid-template-columns: 1fr; } }

.term-card, .os-card { position: relative; cursor: pointer; }

/* The real radio stays focusable but never participates in layout, so no
   rule can inflate it the way a visible one can. */
.term-card > input, .os-card > input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
  margin: 0; padding: 0; pointer-events: none;
}

.term-card {
  display: block; padding: 16px 16px 15px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.term-card:hover { border-color: var(--ink); }
.term-card:has(> input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.term-card:has(> input:focus-visible) { box-shadow: 0 0 0 3px rgba(42, 71, 216, .22); }

.term-card-body { display: grid; gap: 5px; }
.term-card-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.term-card-price { font-family: var(--mono); font-size: 17px; color: var(--ink); }
.term-card-price span { font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.term-card-save { font-size: 12px; font-weight: 500; color: var(--success); }
.term-card-save.is-blank { color: var(--faint); font-weight: 400; }

.term-card-tick, .os-tick {
  position: absolute; top: 12px; right: 12px;
  display: none; align-items: center; justify-content: center;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent); color: #fff;
}
.term-card:has(> input:checked) .term-card-tick,
.os-card:has(> input:checked) .os-tick { display: flex; }

/* operating system grid -------------------------------------------------- */

.os-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
@media (max-width: 640px) { .os-grid { grid-template-columns: 1fr; } }

.os-card {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 44px 14px 18px; background: var(--surface);
  transition: background-color .15s;
}
.os-card:hover { background: var(--canvas); }
.os-card:has(> input:checked) { background: var(--accent-tint); }
.os-name { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.os-note { font-size: 13px; color: var(--faint); }

.os-version {
  margin-left: auto; padding: 4px 24px 4px 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--body);
  background: var(--canvas); border: 1px solid var(--border-strong);
  border-radius: 6px; cursor: pointer; appearance: none; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236B7077' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center;
}
.os-tick { top: 50%; margin-top: -9.5px; right: 16px; }

/* IPv4 stepper ----------------------------------------------------------- */

.stepper {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden;
  background: var(--surface);
}
.stepper button {
  width: 34px; border: 0; background: var(--surface);
  font-size: 16px; line-height: 1; color: var(--body); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.stepper button:hover { background: var(--chip-bg); color: var(--ink); }
.stepper > input[type="number"] {
  width: 46px; padding: 8px 0; text-align: center;
  font-family: var(--mono); font-size: 14.5px; color: var(--ink);
  border: 0; border-inline: 1px solid var(--border-strong);
  background: var(--surface); outline: none; appearance: textfield;
  -moz-appearance: textfield;
}
.stepper > input::-webkit-outer-spin-button,
.stepper > input::-webkit-inner-spin-button { appearance: none; margin: 0; }

/* text fields ------------------------------------------------------------ */

.field { margin-top: 16px; min-width: 0; }
.cfg-group > .field:first-of-type { margin-top: 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.cfg-group > .field-half { max-width: calc(50% - 8px); }
@media (max-width: 620px) { .cfg-group > .field-half { max-width: none; } }

/* Direct child only: a descendant selector also matches the radios inside
   the .choice cards nested in a .field, stretching them to width:100%. */
.field > label, .label-text {
  display: block; margin-bottom: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.optional { font-weight: 400; color: var(--faint); }

.field > input, .field > select {
  width: 100%; padding: 11px 13px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 8px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field > select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7077' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.field > input:focus, .field > select:focus { border-color: var(--ink); }
.field > input.is-invalid, .field > select.is-invalid {
  border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192, 57, 43, .1);
}
.field-hint { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* radio cards (account type, payment) ------------------------------------ */

.term-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.term-choice-inline { grid-template-columns: repeat(2, minmax(0, 190px)); }
.pay-choice { display: grid; gap: 12px; }
@media (max-width: 620px) { .term-choice { grid-template-columns: 1fr; } }

.choice {
  display: flex; gap: 11px; padding: 14px 16px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--canvas); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(42, 71, 216, .2); }

/* Belt and braces: whatever else matches, a radio or checkbox keeps its
   intrinsic size and does not stretch to the flex row's height. */
.choice input[type="radio"],
.choice input[type="checkbox"],
.consent input[type="checkbox"] {
  width: auto; min-width: 0; height: auto; padding: 0;
  flex: none; align-self: flex-start;
  appearance: auto; accent-color: var(--accent);
}
.choice input { margin: 2px 0 0; }

.choice-body { display: grid; gap: 3px; min-width: 0; }
.choice-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.choice-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.choice .timing {
  padding: 2px 7px; border-radius: 100px;
  background: var(--chip-bg); color: var(--muted);
  font-family: var(--mono); font-size: 11px;
}

.callout {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 18px; padding: 15px 18px;
  border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-radius: 8px; background: var(--canvas);
  font-size: 13.5px; line-height: 1.6; color: var(--body);
}
.callout svg { color: var(--accent); margin-top: 2px; flex: none; }
.callout strong { color: var(--ink); font-weight: 600; }

.consent {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 20px; font-size: 13.5px; line-height: 1.6; color: var(--body);
}

.form-errors {
  margin-top: 16px; padding: 13px 16px;
  border: 1px solid #E6C4BF; border-radius: 8px;
  background: #FDF4F3; color: #8E2F22;
  font-size: 13.5px; line-height: 1.55;
}

/* sticky summary --------------------------------------------------------- */

.order-summary {
  position: sticky; top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); padding: 22px;
}
@media (max-width: 1000px) { .order-summary { position: static; } }

.summary-eyebrow {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.summary-title {
  margin-top: 12px; font-size: 19px; font-weight: 600; letter-spacing: -.02em;
}

.summary-specs {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-light);
  display: grid; gap: 8px;
}
.summary-specs > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.summary-specs dt { font-size: 13.5px; color: var(--muted); }
.summary-specs dd { margin: 0; font-family: var(--mono); font-size: 12.5px; text-align: right; color: var(--ink); }

.summary-total {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-light);
  display: grid; gap: 9px;
}
.summary-total > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.summary-total dt { font-size: 13.5px; color: var(--muted); }
.summary-total dd { margin: 0; font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.summary-total .total { margin-top: 3px; padding-top: 12px; border-top: 1px solid var(--rule-light); }
.summary-total .total dt { font-size: 15px; font-weight: 600; color: var(--ink); }
.summary-total .total dd { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }

.summary-period { margin-top: 12px; }
.summary-period > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.summary-period dt { font-size: 12.5px; color: var(--muted); }
.summary-period dd { margin: 0; font-family: var(--mono); font-size: 11.5px; color: var(--body); text-align: right; }

.order-submit { margin-top: 18px; padding: 14px 22px; font-size: 15px; }
.summary-note { margin-top: 10px; font-size: 12px; line-height: 1.55; color: var(--muted); }

.summary-included {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-light);
  display: grid; gap: 8px;
}
.summary-included li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--body); }
.summary-included svg { color: var(--success); flex: none; }

.summary-help {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule-light);
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
}

/* generic link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Only the flag matching the selected location is shown. */
.cfg-flag > [data-slug] { display: none; }
.cfg-flag > [data-slug][data-active] { display: block; }

/* =========================================================================
   Mobile corrections.

   Grid and flex children default to min-width:auto, which means anything
   containing `white-space: pre` or a wide table refuses to shrink and pushes
   the whole page wider than the viewport. Every container that holds
   scrollable content needs min-width:0 explicitly.
   ========================================================================= */

.hero-grid > *,
.term-card,
.two-col > *,
.faq-layout > *,
.order-layout > *,
.ai-block > *,
.panel-grid > *,
.section-head-row > * { min-width: 0; }

@media (max-width: 560px) {
  :root { --gutter: 20px; }
}

@media (max-width: 640px) {
  /* The control-panel mock is the worst offender: a 620px table inside a
     261px column. Reflow it into stacked records instead of a sideways
     scroller — on a phone the scroller reads as a broken layout. */
  .panel-table { overflow-x: visible; }
  .panel-row-head { display: none; }

  .panel-row,
  .panel-row.panel-row-head {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "host  state"
      "plan  loc"
      "meters meters";
    gap: 6px 12px;
    padding: 14px 16px;
  }
  .panel-row > :nth-child(1) { grid-area: host; min-width: 0; }
  .panel-row > :nth-child(2) { grid-area: plan; }
  .panel-row > :nth-child(3) { grid-area: loc; text-align: right; }
  .panel-row > :nth-child(4) { grid-area: meters; margin-top: 2px; }
  .panel-row > :nth-child(5) { grid-area: state; justify-content: flex-end; }
  .panel-row .panel-cell { font-size: 12.5px; color: var(--muted); }

  .panel-side { min-height: 0; }
  .panel-main { padding: 18px 16px 22px; }
  .panel-shell { border-radius: 12px; }

  /* Plan comparison table keeps its own scroller, but flag it as scrollable
     rather than letting it clip silently. */
  .spec-table-wrap { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .section-h2 { font-size: 26px; }
  .ai-h2 { font-size: 28px; }
  .term-card-price { font-size: 16px; }
  .plan-price .amount { font-size: 30px; }
  .cfg-row { padding: 13px 14px; }
  .order-hero h1 { font-size: 23px; }
}

/* =========================================================================
   Responsive corrections found by sweeping 320–1440px.
   ========================================================================= */

/* 1. Long unbreakable tokens (email addresses, URLs) set the min-content
      width of their container and push narrow layouts wider than the screen.
      `break-word` alone does NOT shrink intrinsic width — `anywhere` does. */
body { overflow-wrap: break-word; }
a[href^="mailto:"],
a[href^="http"],
.mono,
code { overflow-wrap: anywhere; }

/* 2. A sticky sidebar taller than the viewport can never be scrolled to its
      own bottom — the submit button becomes unreachable on short screens.
      Let it scroll internally instead. */
@media (min-width: 1001px) {
  .order-summary,
  .doc-toc {
    max-height: calc(100vh - var(--nav-h) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* 3. Standalone links in lists and cards are tap targets, not prose, so they
      need to clear 24px. Inline links inside a sentence are exempt. */
.footer-col a,
.contact-tile .big,
.doc-toc a {
  display: inline-block;
  padding-block: 3px;
}

/* Order confirmation ------------------------------------------------------ */

.order-done {
  grid-column: 1 / -1; max-width: 640px;
  padding: 32px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface);
}
.order-done:focus { outline: none; }
.done-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 20px;
  border-radius: 50%; background: var(--success); color: #fff;
}
.order-done h2 { font-size: 27px; letter-spacing: -.025em; }
.done-lead {
  margin-top: 12px; font-size: 16px; line-height: 1.65;
  color: var(--body); max-width: 52ch;
}

.done-meta {
  margin-top: 26px; display: grid; gap: 1px;
  background: var(--rule-light); border: 1px solid var(--rule-light);
  border-radius: 10px; overflow: hidden;
}
.done-meta > div {
  display: flex; justify-content: space-between; gap: 16px;
  align-items: baseline; padding: 12px 16px; background: var(--surface);
}
.done-meta dt { font-size: 13.5px; color: var(--muted); }
.done-meta dd {
  margin: 0; font-family: var(--mono); font-size: 13px;
  color: var(--ink); text-align: right;
}

.done-next { margin-top: 26px; }
.done-next-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.done-next ol { counter-reset: s; display: grid; gap: 10px; }
.done-next li {
  position: relative; padding-left: 30px;
  font-size: 14.5px; line-height: 1.6; color: var(--body);
}
.done-next li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: 11px; color: var(--accent);
}

.done-help {
  margin: 24px 0 22px; padding-top: 20px;
  border-top: 1px solid var(--rule-light);
  font-size: 13.5px; line-height: 1.6; color: var(--muted);
}
@media (max-width: 560px) { .order-done { padding: 24px 20px; } }

/* Sign in ----------------------------------------------------------------- */

.auth-section > .wrap { padding-top: 56px; padding-bottom: 72px; }
.auth-wrap {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 56px; align-items: start;
}
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; gap: 36px; } }

.auth-card {
  padding: 30px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface);
}
.auth-card h1 { font-size: 30px; letter-spacing: -.028em; }
.auth-lead { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.auth-form { margin-top: 22px; }
.auth-form .btn { margin-top: 20px; }

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px;
}
.auth-remember { display: flex; align-items: center; gap: 9px; color: var(--body); cursor: pointer; }
.auth-remember input[type="checkbox"] {
  width: auto; height: auto; padding: 0; margin: 0;
  flex: none; appearance: auto; accent-color: var(--accent);
}

.auth-2fa {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule-light);
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
}
.auth-2fa svg { color: var(--faint); margin-top: 2px; }

.auth-aside { padding-top: 6px; }
.auth-aside h2 { margin-top: 12px; font-size: 26px; letter-spacing: -.025em; }
.auth-aside > p { margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: var(--body); max-width: 54ch; }
.auth-steps { margin-top: 26px; }
.auth-steps ol { counter-reset: s; display: grid; gap: 10px; }
.auth-steps li {
  position: relative; padding-left: 30px;
  font-size: 14.5px; line-height: 1.6; color: var(--body);
}
.auth-steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: 11px; color: var(--accent);
}
.auth-aside .btn { margin-top: 26px; }
.auth-note { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 52ch; }

/* Data centres ------------------------------------------------------------ */

.dc-intro { max-width: 68ch; margin-bottom: 44px; }
.dc-intro p { font-size: 16px; line-height: 1.7; color: var(--body); }
.dc-intro p + p { margin-top: 14px; }

.dc-region + .dc-region { margin-top: 44px; }
.dc-region .region-head h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

.dc-list {
  margin-top: 0; border: 1px solid var(--border);
  border-top: 0; border-radius: 0 0 12px 12px;
  background: var(--surface); overflow: hidden;
}
.dc-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--rule-lighter);
}
.dc-row:last-child { border-bottom: 0; }
.dc-row:hover { background: var(--canvas); }
.dc-flag .flag { border-radius: 2px; box-shadow: var(--flag-ring); }

.dc-place { min-width: 0; display: grid; gap: 3px; }
.dc-country { font-size: 15px; font-weight: 600; color: var(--ink); }
.dc-city { font-weight: 400; }
.dc-facility { font-size: 13px; color: var(--muted); }
.dc-facility em { font-style: normal; color: var(--faint); }

.dc-actions { display: flex; align-items: center; gap: 8px; }
.dc-tag {
  padding: 6px 12px; border-radius: 6px;
  background: var(--chip-bg); color: var(--ink);
  font-size: 12.5px; font-weight: 500;
}
.dc-tag:hover { background: var(--ink); color: var(--canvas); }
.dc-link { font-size: 13px; color: var(--muted); padding: 6px 4px; }
.dc-link:hover { color: var(--ink); }

@media (max-width: 560px) {
  .dc-row { grid-template-columns: 26px minmax(0, 1fr); row-gap: 10px; padding: 14px; }
  .dc-actions { grid-column: 2; }
}

.dc-notes {
  margin-top: 48px; padding: 24px 26px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--chip-bg);
}
.dc-notes-title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.dc-notes-title svg { color: var(--muted); }
.dc-notes ul { display: grid; gap: 10px; }
.dc-notes li {
  position: relative; padding-left: 16px;
  font-size: 13.5px; line-height: 1.65; color: var(--body);
}
.dc-notes li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong);
}

/* Cross-links out of a home-page section into the deeper pages. */
.section-links {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px;
}
.section-links .link-arrow { font-size: 14.5px; }

/* Contact queues ---------------------------------------------------------- */

.queue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .queue-grid { grid-template-columns: 1fr; } }

.queue {
  display: flex; flex-direction: column;
  padding: 26px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .15s;
}
.queue:hover { border-color: var(--border-strong); }

.queue-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.queue-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--chip-bg); color: var(--ink); flex: none;
}
.queue-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

.queue-title { font-size: 18px; font-weight: 600; letter-spacing: -.018em; }
.queue-body {
  margin-top: 9px; font-size: 14.5px; line-height: 1.6;
  color: var(--muted); flex: 1;
}

.queue-email {
  display: inline-block; align-self: flex-start; margin-top: 18px;
  padding: 9px 14px; border-radius: 8px;
  background: var(--canvas); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 13.5px; color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.queue-email:hover { background: var(--ink); border-color: var(--ink); color: var(--canvas); }

.queue-meta {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--rule-light);
  display: grid; gap: 8px;
}
.queue-meta > div { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.queue-meta dt { font-size: 12.5px; color: var(--faint); }
.queue-meta dd {
  margin: 0; font-size: 12.5px; color: var(--body);
  text-align: right; font-variant-numeric: tabular-nums;
}

/* OS monogram tiles.
   Deliberately not the projects' own logos — those are trademarks with their
   own usage policies. Brand colour plus initials gives the same scannability. */
.os-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: var(--chip-bg);
  box-shadow: inset 0 0 0 1px rgba(16, 19, 21, .06);
}
.os-mark svg { display: block; }
/* Images with no vendored logo keep a brand-coloured monogram. */
.os-mark.is-monogram {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: -.02em; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}
.os-card:has(> input:checked) .os-mark:not(.is-monogram) { background: #fff; }
.os-card { padding-left: 14px; gap: 11px; }
