/* ==========================================================================
   PK DOMAIN — Corporate Design System
   Light, structured, information-dense. Built for trust, not spectacle.
   No gradients as decoration. Solid colour blocks, 1px rules, restrained motion.

   1.  Tokens            9.  Trust bar
   2.  Reset & base      10. Service cards
   3.  Typography        11. Price table + filters
   4.  Layout            12. Steps
   5.  Buttons & badges  13. Hosting plans
   6.  Utility bar       14. Article / long-form
   7.  Header & nav      15. FAQ, notice, CTA
   8.  Hero & search     16. Footer, motion, responsive
   ========================================================================== */

/* 1. TOKENS =============================================================== */
:root {
  /* Corporate navy — headings, footer, CTA bands */
  --navy-900: #0a1f3d;
  --navy-800: #11294c;
  --navy-700: #1b3a63;
  --navy-600: #2a4d7a;

  /* Action blue — the single primary accent */
  --blue-700: #004494;
  --blue-600: #0057b8;
  --blue-500: #1a72d4;
  --blue-100: #d4e4f7;
  --blue-50:  #eef4fc;

  /* Brand green, taken from the PK DOMAIN logo — availability & confirmation */
  --green-700: #117033;
  --green-600: #14833c;
  --green-500: #21a34d;
  --green-50:  #e9f6ee;

  /* Gold — reserved exclusively for PKNIC Gold Channel Partner status */
  --gold-700: #8a6410;
  --gold-600: #b3820f;
  --gold-500: #d4a017;
  --gold-50:  #fdf6e4;

  --red-600: #c22c2c;
  --red-50:  #fdeded;

  /* Neutrals, biased very slightly cool to sit with the navy */
  --ink:        #16202e;
  --ink-muted:  #55637a;
  --ink-subtle: #7b869a;
  --line:        #dfe5ee;
  --line-strong: #c5cfdd;
  --bg:      #ffffff;
  --bg-alt:  #f5f8fc;
  --bg-alt2: #eaf0f8;

  /* Type — humanist corporate sans. IBM Plex Sans was drawn as a corporate
     identity face: open apertures and a slight calligraphic tilt keep it warm
     rather than mechanical. Mono is reserved for literal domain strings only. */
  --font-head: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
  /* Figures inside prices/stats: same humanist sans, just locked to tabular */
  --font-num: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --t-xs:  0.78rem;
  --t-sm:  0.875rem;
  --t-base: 1rem;
  --t-md:  1.0625rem;
  --t-lg:  clamp(1.125rem, 1.06rem + 0.3vw, 1.3rem);
  --t-xl:  clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  --t-2xl: clamp(1.6rem, 1.35rem + 1vw, 2.1rem);
  --t-3xl: clamp(1.95rem, 1.55rem + 1.7vw, 2.8rem);
  --t-4xl: clamp(2.2rem, 1.6rem + 2.6vw, 3.5rem);

  /* 8pt spacing */
  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;   --s5: 1.5rem;
  --s6: 2rem;   --s7: 2.5rem; --s8: 3.5rem; --s9: 5rem;   --s10: 6.5rem;

  /* Corporate geometry: small, square-ish radii */
  --r-xs: 3px; --r-sm: 5px; --r-md: 8px; --r-lg: 12px;

  --sh-sm: 0 1px 2px rgba(12, 28, 56, .07);
  --sh-md: 0 4px 14px -4px rgba(12, 28, 56, .13);
  --sh-lg: 0 14px 34px -10px rgba(12, 28, 56, .18);

  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* 2. RESET & BASE ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
input, select { font: inherit; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
::selection { background: var(--blue-100); color: var(--navy-900); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 300;
  background: var(--blue-600); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 0; }

/* 3. TYPOGRAPHY =========================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); font-weight: 700; line-height: 1.08; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

.eyebrow {
  font-family: var(--font-head);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.lede { font-size: var(--t-lg); color: var(--ink-muted); line-height: 1.6; }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* 4. LAYOUT =============================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 3.5vw, 2.25rem); }
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--navy { background: var(--navy-900); color: #d9e2f0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { margin-bottom: var(--s7); }
.section-head h2 { margin-top: var(--s2); max-width: 34ch; }
/* intro paragraph runs the full section width — flush with the table / grid below it */
.section-head p { margin-top: var(--s3); color: var(--ink-muted); font-size: var(--t-md); }
/* centered variant keeps the tighter measure + centring */
.section-head--center { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head--center h2 { max-width: none; }
.section-head--center p { margin-inline: auto; }

.grid { display: grid; gap: var(--s5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* 5. BUTTONS & BADGES ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.35em;
  font-family: var(--font-head); font-weight: 600; font-size: var(--t-base);
  line-height: 1.1; border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-900); }
.btn--green { background: var(--green-600); color: #fff; }
.btn--green:hover { background: var(--green-700); }
.btn--outline { background: var(--bg); border-color: var(--line-strong); color: var(--navy-800); }
.btn--outline:hover { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-50); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--lg { min-height: 54px; padding: .85em 1.8em; font-size: var(--t-md); }
.btn--sm { min-height: 36px; padding: .45em .9em; font-size: var(--t-sm); }
.btn--block { width: 100%; }

.link { color: var(--blue-700); font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.link svg { width: 1em; height: 1em; transition: transform .18s var(--ease); }
.link:hover { color: var(--blue-600); }
.link:hover svg { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .35em .7em; border-radius: var(--r-xs);
  font-family: var(--font-head); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .02em; border: 1px solid;
}
.badge svg { width: 1.05em; height: 1.05em; }
.badge--gold  { background: var(--gold-50);  border-color: #ecdcb0; color: var(--gold-700); }
.badge--green { background: var(--green-50); border-color: #bfe3cd; color: var(--green-700); }
.badge--blue  { background: var(--blue-50);  border-color: var(--blue-100); color: var(--blue-700); }
.badge--red   { background: var(--red-50);   border-color: #f3c9c9; color: var(--red-600); }

/* 6. UTILITY BAR ========================================================== */
.utility {
  background: var(--navy-900); color: #b9c7dc;
  font-size: var(--t-sm); border-bottom: 1px solid rgba(255,255,255,.08);
}
.utility .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 40px; flex-wrap: wrap; }
.utility ul { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.utility li { display: inline-flex; align-items: center; gap: .45em; }
.utility svg { width: 15px; height: 15px; color: #fff; flex-shrink: 0; }
.utility a { color: #cdd9ea; }
.utility a:hover { color: #fff; }
.utility-right { display: flex; align-items: center; gap: var(--s4); }
.utility-right .sep { width: 1px; height: 16px; background: rgba(255,255,255,.18); }

/* "Premium Domains" attention link in the utility bar */
.utility .u-premium { color: #38c46e; font-weight: 600; white-space: nowrap; }
.utility .u-premium svg { color: currentColor; }
.utility .u-premium:hover { color: #5fe08c; }
.js .u-premium { animation: uPremiumBlink 2.6s var(--ease, ease) infinite; }
@keyframes uPremiumBlink { 0%, 46%, 100% { opacity: 1; } 60%, 84% { opacity: .38; } }
@media (max-width: 640px) { .utility .u-premium span, .utility .u-premium { font-size: var(--t-xs); } }
@media (prefers-reduced-motion: reduce) { .js .u-premium { animation: none; } }

/* theme (dark-mode) toggle — lives in the utility bar */
.theme-toggle {
  display: inline-grid; place-items: center; position: relative;
  width: 30px; height: 30px; border-radius: var(--r-xs);
  color: #fff; flex-shrink: 0;
  transition: background .15s var(--ease);
}
.theme-toggle:hover { background: rgba(255,255,255,.12); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .tt-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .tt-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .tt-moon { display: block; }

/* 7. HEADER & NAV ========================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.header.is-stuck { box-shadow: var(--sh-md); }
.nav { display: flex; align-items: center; gap: var(--s5); min-height: 74px; }

.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--navy-900); display: grid; place-items: center; }
.brand-mark span { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: -.04em; }
.brand-mark span em { font-style: normal; color: var(--green-500); animation: brandBlink 2.4s ease-in-out infinite; }
@keyframes brandBlink { 0%, 62%, 100% { opacity: 1; } 78% { opacity: .18; } }
.brand-text { line-height: 1.1; }
.brand-text b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy-900); letter-spacing: -.02em; }
.brand-text small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 600; }

.nav-list { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .65rem .8rem; border-radius: var(--r-xs);
  font-family: var(--font-head); font-weight: 500; font-size: .97rem;
  color: var(--navy-800); white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-list > li > a:hover, .nav-list > li > button:hover,
.nav-list > li.is-open > button { color: var(--blue-700); background: var(--blue-50); }
.nav-list a[aria-current="page"] { color: var(--blue-700); font-weight: 600; }
.nav-caret { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.nav-list > li.is-open .nav-caret { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; margin-left: auto; }

/* Dropdown panel */
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 640px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: var(--s4);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s var(--ease), visibility .16s;
}
.nav-list > li.is-open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; }
.dropdown::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px;
  background: var(--blue-600); border-radius: var(--r-md) var(--r-md) 0 0;
}
.dropdown-grid { display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); gap: 1px; }
.dropdown-grid--1 { grid-template-columns: 1fr; }
.dropdown-grid a { display: flex; gap: .8rem; align-items: baseline; padding: .6rem .7rem; border-radius: var(--r-xs); transition: background .15s; }
.dropdown-grid a:hover { background: var(--bg-alt); }
.dropdown-grid .d-ext { font-family: var(--font-num); font-weight: 600; font-size: .9rem; color: var(--blue-700); min-width: 76px; }
.dropdown-grid .d-name { font-weight: 600; font-size: .95rem; color: var(--navy-800); display: block; }
.dropdown-grid .d-desc { font-size: var(--t-sm); color: var(--ink-subtle); display: block; line-height: 1.4; }
.dropdown-foot {
  margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
}

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.nav-toggle svg { width: 22px; height: 22px; margin-inline: auto; }

/* 8. HERO & SEARCH ======================================================== */
.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
  isolation: isolate;
}
/* Angled planes — flat colour blocks cut on a diagonal, with a slice of brand green.
   Corporate-brochure treatment; no texture, no image weight. */
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__bg span { position: absolute; display: block; }
.hero__bg .p1 { inset: 0 -12% -45% 45%;  background: var(--blue-50);  transform: skewX(-14deg); }
.hero__bg .p2 { inset: 34% -12% -45% 61%; background: var(--bg-alt2);  transform: skewX(-14deg); }
.hero__bg .p3 { inset: 0 -12% 60% 79%;    background: var(--green-50); transform: skewX(-14deg); }
.hero .container { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .hero__bg span { display: none; }
  .hero__bg { background: linear-gradient(158deg, transparent 56%, var(--blue-50) 56%); }
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.hero h1 { margin-top: var(--s3); }
.hero .lede { margin-top: var(--s4); max-width: 46ch; }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-top: var(--s5); }
.hero-points li { display: flex; align-items: center; gap: .5em; font-size: var(--t-base); color: var(--navy-800); font-weight: 600; }
.hero-points svg { width: 18px; height: 18px; color: var(--green-600); flex-shrink: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }

/* Search */
.search-box { margin-top: var(--s6); }
.search-form {
  display: flex; gap: 0; background: var(--bg);
  border: 2px solid var(--navy-800); border-radius: var(--r-sm); overflow: hidden;
  transition: border-color .18s var(--ease);
}
.search-form:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.search-field { position: relative; flex: 1; display: flex; align-items: center; }
.search-field > svg { position: absolute; left: 14px; width: 19px; height: 19px; color: var(--ink-subtle); }
.search-form input {
  width: 100%; border: 0; background: transparent; padding: 1rem 1rem 1rem 2.85rem;
  font-size: var(--t-lg); color: var(--ink); min-width: 0;
}
.search-form input:focus { outline: none; }
.search-form input::placeholder { color: var(--ink-subtle); }
.search-form input[aria-invalid="true"] { background: var(--red-50); }
.search-form .btn { border-radius: 0; min-height: auto; padding-inline: 1.6rem; }
.search-note { margin-top: var(--s3); font-size: var(--t-sm); color: var(--ink-muted); }
.search-tlds { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.search-tlds button {
  font-family: var(--font-num); font-size: var(--t-sm); font-weight: 500;
  padding: .35em .7em; border: 1px solid var(--line-strong); border-radius: var(--r-xs);
  background: var(--bg); color: var(--navy-800); transition: all .15s var(--ease);
}
.search-tlds button:hover { border-color: var(--blue-600); color: var(--blue-700); background: var(--blue-50); }

/* Hero result panel — shows the product, not decoration */
.result-panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-md); overflow: hidden; }
.result-panel__head {
  background: var(--navy-900); color: #fff; padding: .8rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.result-panel__head b { font-family: var(--font-head); font-size: var(--t-sm); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.result-panel__head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px rgba(33,163,77,.25); }
.result-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--s3);
  align-items: center; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line);
}
.result-row:last-child { border-bottom: 0; }
.result-row .r-name { font-family: var(--font-mono); font-size: .97rem; color: var(--navy-900); font-weight: 500; }
.result-row .r-name b { font-weight: 700; }
.result-row .r-price { font-family: var(--font-num); font-size: var(--t-sm); font-variant-numeric: tabular-nums; color: var(--ink-muted); text-align: right; }
.result-row .r-price s { display: block; font-size: .74rem; color: var(--ink-subtle); }
.result-row--taken { background: var(--bg-alt); }
.result-row--taken .r-name { color: var(--ink-subtle); text-decoration: line-through; }
.result-panel__foot { padding: 1rem 1.1rem; background: var(--bg-alt); border-top: 1px solid var(--line); }
.result-panel__foot p { font-size: var(--t-sm); color: var(--ink-muted); margin-bottom: var(--s3); }

/* 9. TRUST BAR ============================================================ */
.trustbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.trustbar ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.trustbar li {
  display: flex; align-items: center; gap: .7rem;
  padding: 1.35rem 1.25rem; border-left: 1px solid var(--line);
}
.trustbar li:first-child { border-left: 0; padding-left: 0; }
.trustbar svg { width: 26px; height: 26px; color: var(--blue-600); flex-shrink: 0; }
.trustbar .t-k { display: block; font-family: var(--font-head); font-weight: 700; font-size: var(--t-base); color: var(--navy-900); line-height: 1.25; }
.trustbar .t-v { display: block; font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.35; }

/* 10. SERVICE CARDS ======================================================= */
.card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s5);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
a.card:hover { border-color: var(--blue-500); box-shadow: var(--sh-md); }
.card__icon {
  width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700); margin-bottom: var(--s4);
  border: 1px solid var(--blue-100);
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-size: var(--t-lg); }
.card p { margin-top: var(--s2); color: var(--ink-muted); font-size: var(--t-base); flex: 1; }
.card .link { margin-top: var(--s4); font-size: var(--t-base); }

/* 11. PRICE TABLE ========================================================= */
.table-toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); }
.filters button {
  padding: .5em 1em; border: 1px solid var(--line-strong); border-radius: var(--r-xs);
  background: var(--bg); font-family: var(--font-head); font-weight: 500; font-size: var(--t-sm);
  color: var(--navy-800); transition: all .15s var(--ease);
}
.filters button:hover { border-color: var(--blue-500); color: var(--blue-700); }
.filters button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.data-table { width: 100%; min-width: 800px; font-size: var(--t-base); }
.data-table thead th {
  background: var(--navy-900); color: #cdd9ea;
  font-family: var(--font-head); font-weight: 600; font-size: var(--t-xs);
  letter-spacing: .1em; text-transform: uppercase; text-align: left;
  padding: .9rem 1.1rem; white-space: nowrap;
}
.data-table tbody th, .data-table tbody td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.data-table tbody tr:hover { background: var(--blue-50); }
.data-table .c-ext { font-family: var(--font-num); font-weight: 700; font-size: 1rem; color: var(--navy-900); white-space: nowrap; }
.data-table .c-price { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy-900); white-space: nowrap; }
.data-table .c-period { font-size: var(--t-sm); color: var(--ink-muted); white-space: nowrap; }
.data-table .c-cat { color: var(--ink-muted); font-size: var(--t-sm); max-width: 340px; line-height: 1.45; }
.data-table .c-act { text-align: right; }
.data-table tr[hidden] { display: none; }

/* 12. STEPS =============================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); }
.step__no {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-900); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: var(--t-base);
  margin-bottom: var(--s4);
}
.step h3 { font-size: var(--t-lg); }
.step p { margin-top: var(--s2); color: var(--ink-muted); font-size: var(--t-base); }

/* 13. HOSTING PLANS ======================================================= */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: var(--s4); align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.plan--featured { border-color: var(--blue-600); box-shadow: var(--sh-md); }
.plan__head { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.plan--featured .plan__head { background: var(--blue-600); border-bottom-color: var(--blue-600); }
.plan--featured .plan__head h3, .plan--featured .plan__head .plan__tag { color: #fff; }
.plan--featured .plan__head .plan__tag { opacity: .85; }
.plan__tag { font-family: var(--font-head); font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-subtle); }
.plan__head h3 { font-size: var(--t-lg); margin-top: .2rem; }
.plan__body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.plan__price { font-family: var(--font-num); font-weight: 700; font-size: var(--t-2xl); color: var(--navy-900); line-height: 1.1; }
.plan__price small { display: block; font-size: var(--t-sm); font-weight: 400; color: var(--ink-muted); font-family: var(--font-body); margin-top: .2rem; }
.plan ul { margin: var(--s4) 0 var(--s5); display: grid; gap: .55rem; }
.plan li { display: flex; gap: .55em; font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.45; }
.plan li svg { width: 15px; height: 15px; color: var(--green-600); flex-shrink: 0; margin-top: 4px; }
.plan .btn { margin-top: auto; }

/* 14. ARTICLE / LONG-FORM ================================================= */
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.toc { position: sticky; top: 96px; }
.toc h4 { font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: var(--s3); }
.toc ol { display: grid; gap: 1px; counter-reset: toc; }
.toc a {
  display: block; padding: .5rem .75rem; border-left: 2px solid var(--line);
  font-size: var(--t-sm); color: var(--ink-muted); line-height: 1.4;
  transition: all .15s var(--ease);
}
.toc a:hover { color: var(--blue-700); border-left-color: var(--blue-500); background: var(--blue-50); }
.toc a.is-active { color: var(--navy-900); font-weight: 600; border-left-color: var(--blue-600); background: var(--blue-50); }

.prose { max-width: 74ch; }
.prose > * + * { margin-top: var(--s4); }
.prose h2 { font-size: var(--t-2xl); margin-top: var(--s8); padding-top: var(--s2); }
.prose h3 { font-size: var(--t-xl); margin-top: var(--s7); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { color: var(--ink-muted); }
.prose strong, .prose b { color: var(--navy-800); font-weight: 600; }
.prose a { color: var(--blue-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--blue-100); }
.prose a:hover { text-decoration-color: currentColor; }

/* 15. FAQ, NOTICE, CTA ==================================================== */
.faq { display: grid; gap: -1px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.35rem;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  font-family: var(--font-head); font-weight: 600; font-size: var(--t-md); color: var(--navy-900);
  transition: background .15s;
}
.faq summary:hover { background: var(--bg-alt); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--blue-600); flex-shrink: 0; transition: transform .2s var(--ease); }
.faq details[open] summary { background: var(--bg-alt); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__body { padding: 0 1.35rem 1.3rem; color: var(--ink-muted); font-size: var(--t-base); }
.faq__body > * { max-width: 78ch; }   /* answers stay readable while the accordion runs full width */

.notice { display: flex; gap: var(--s4); padding: var(--s5); background: var(--gold-50); border: 1px solid #ecdcb0; border-left: 4px solid var(--gold-500); border-radius: var(--r-sm); }
.notice > svg { width: 24px; height: 24px; color: var(--gold-700); flex-shrink: 0; margin-top: 2px; }
.notice h3 { font-size: var(--t-lg); }
.notice p { margin-top: var(--s2); color: #5c4c22; font-size: var(--t-base); }
.notice strong { color: #3d3110; }

/* Closing CTA — a contained navy card on a light band so it never
   bleeds into the navy footer below it. */
.cta-band { background: var(--bg-alt); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6rem); }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-900); color: #cfdaea;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -24px rgba(10, 31, 61, .5);
  display: grid; grid-template-columns: 1.05fr .95fr;
}
.cta-card__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cta-card__bg span { position: absolute; display: block; }
.cta-card__bg .c1 { inset: -20% 44% -30% -6%;  background: #11294c; transform: skewX(-13deg); }
.cta-card__bg .c2 { inset: 30% 60% -40% 12%;   background: #16325c; transform: skewX(-13deg); }
.cta-card__bg .c3 { inset: -30% -8% 55% 84%;   background: rgba(33,163,77,.22); transform: skewX(-13deg); }

.cta-card__body { padding: clamp(2rem, 4vw, 3.25rem); }
.cta-card__body .eyebrow { color: #7fb0f0; }
.cta-card__body h2 { color: #fff; font-size: var(--t-3xl); margin-top: var(--s2); }
.cta-card__body > p { color: #a8bcd6; margin-top: var(--s3); max-width: 42ch; }
.cta-steps { display: grid; gap: var(--s4); margin-top: var(--s6); }
.cta-steps li { display: grid; grid-template-columns: 34px 1fr; gap: var(--s3); align-items: start; }
.cta-steps .cs-n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: #fff;
}
.cta-steps b { display: block; font-family: var(--font-head); font-weight: 600; color: #fff; font-size: var(--t-base); }
.cta-steps span { font-size: var(--t-sm); color: #97abc6; line-height: 1.5; }

.cta-card__panel {
  background: var(--bg); color: var(--ink);
  margin: clamp(1rem, 2vw, 1.5rem); border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.35);
}
.cta-card__panel h3 { font-size: var(--t-lg); }
.cta-card__panel > p { font-size: var(--t-sm); color: var(--ink-muted); margin-top: .25rem; }
.cta-card__panel .search-form { margin-top: var(--s4); flex-direction: column; border-width: 2px; }
.cta-card__panel .search-form .search-field { border-bottom: 1px solid var(--line); }
.cta-card__panel .search-form .btn { border-radius: 0; padding-block: .9rem; }
.cta-card__panel .search-tlds { margin-top: var(--s3); }
.cta-card__panel .search-note { margin-top: var(--s3); }
.cta-reassure {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s4);
  padding-top: var(--s4); border-top: 1px solid var(--line);
}
.cta-reassure li { display: flex; align-items: center; gap: .4em; font-size: var(--t-xs); color: var(--ink-muted); font-family: var(--font-head); font-weight: 500; }
.cta-reassure svg { width: 14px; height: 14px; color: var(--green-600); flex-shrink: 0; }

/* 16. FOOTER ============================================================== */
.footer { background: var(--navy-900); color: #a8b8ce; padding-top: var(--s8); font-size: var(--t-base); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s6); }
.footer .brand-text b { color: #fff; }
.footer .brand-text small { color: #7f91ab; }
.footer-about { margin-top: var(--s4); max-width: 36ch; line-height: 1.6; }
.footer h4 { color: #fff; font-size: var(--t-sm); letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s4); }
.footer ul { display: grid; gap: .55rem; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer address { font-style: normal; line-height: 1.7; }
.footer-social { display: flex; gap: var(--s2); margin-top: var(--s5); }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-xs); display: grid; place-items: center; transition: all .15s var(--ease); }
.footer-social a:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }
.footer-pay { margin-top: var(--s8); padding-block: var(--s5); border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.footer-pay span { font-size: var(--t-sm); letter-spacing: .06em; text-transform: uppercase; color: #7f91ab; }
.footer-bottom { padding-block: var(--s4); border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: var(--t-sm); }
.footer-bottom nav { display: flex; gap: var(--s4); }

/* ==========================================================================
   MOTION — restrained corporate. Hand-authored (no Figma source for this build).
   Principles borrowed from the figma-implement-motion skill:
     · every animation softens/disables under prefers-reduced-motion
     · repeated motion is factored, not copy-pasted (one rule, --i drives stagger)
     · transforms + opacity only; durations 260–520ms; ease-out entering
   Content is fully visible with JS off (rules are scoped to .js).
   ========================================================================== */

/* --- shared timing tokens --- */
:root {
  --m-dur: .5s;
  --m-ease: cubic-bezier(.22, .68, .32, 1);   /* soft ease-out */
  --m-stagger: 70ms;
}

/* --- scroll reveal: base + directional variants --- */
.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--m-dur) var(--m-ease), transform var(--m-dur) var(--m-ease);
  transition-delay: calc(var(--i, 0) * var(--m-stagger));
  will-change: opacity, transform;
}
.js [data-reveal="left"]   { transform: translateX(-22px); }
.js [data-reveal="right"]  { transform: translateX(22px); }
.js [data-reveal="scale"]  { transform: scale(.965); }
.js [data-reveal="fade"]   { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* stagger the direct children of a marked container */
.js [data-stagger] > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--m-dur) var(--m-ease), transform var(--m-dur) var(--m-ease);
  transition-delay: calc(var(--i, 0) * var(--m-stagger));
  will-change: opacity, transform;
}
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* --- hero load sequence (runs once, on load, not on scroll) --- */
.js .hero [data-seq] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--m-ease), transform .55s var(--m-ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .hero [data-seq="right"] { transform: translateX(26px); }
.js .hero.is-ready [data-seq] { opacity: 1; transform: none; }

/* proof chips pop in after the mockup has arrived */
.js .hero .proof-chip {
  opacity: 0; transform: scale(.9) translateY(6px);
  transition: opacity .4s var(--m-ease), transform .4s var(--m-ease);
}
.js .hero.is-ready .proof-chip { opacity: 1; transform: none; }
.js .hero.is-ready .proof-chip--tl { transition-delay: .62s; }
.js .hero.is-ready .proof-chip--br { transition-delay: .78s; }

/* --- announcement bar drops in --- */
.js .announce { transform: translateY(-100%); transition: transform .45s var(--m-ease); }
.js .announce.is-ready { transform: none; }

/* --- micro-interactions --- */
.js .btn { transition: background .18s var(--ease), border-color .18s var(--ease),
           color .18s var(--ease), transform .18s var(--m-ease); }
.js .btn--primary:not(.btn--block):hover,
.js .btn--navy:not(.btn--block):hover,
.js .btn--green:not(.btn--block):hover { transform: translateY(-1px); }
.js .link svg { transition: transform .2s var(--m-ease); }
.js .faq summary svg { transition: transform .25s var(--m-ease); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-stagger] > *,
  .js .hero [data-seq], .js .hero .proof-chip, .js .announce {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .js .btn:hover, .js .link:hover svg { transform: none !important; }
  .brand-mark span em { animation: none !important; }
}

/* RESPONSIVE ============================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-card__bg .c3 { inset: -30% -8% 70% 68%; }
  .cta-card__panel { margin: 0 clamp(1rem,3vw,2rem) clamp(1.5rem,3vw,2rem); }
  .result-panel { max-width: 520px; }
  .trustbar ul { grid-template-columns: repeat(3, 1fr); }
  .trustbar li:nth-child(4) { border-left: 0; padding-left: 0; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: var(--s5); }
  .toc ol { grid-template-columns: repeat(2, 1fr); display: grid; gap: 1px var(--s4); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile navigation kicks in at or below 1240px (== --container) — the mega-menu bar (brand + 6 items
   + search + Check Prices CTA) needs ~1210px to sit on one line; below that it
   overflowed the viewport horizontally. */
@media (max-width: 1240px) {
  .nav-list { display: none; }
  .nav-toggle { display: block; }
  .nav-list.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; left: 0; right: 0; top: 74px; bottom: 0; z-index: 99;
    background: var(--bg); padding: 0 var(--s4) calc(var(--s6) + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line);
    box-shadow: var(--sh-lg);
  }
  .nav-list.is-open > li { border-bottom: 1px solid var(--line); }
  .nav-list.is-open > li:last-child { border-bottom: 0; }
  .nav-list.is-open > li > a,
  .nav-list.is-open > li > button {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 1.05rem .5rem; font-size: 1.05rem; font-family: var(--font-head);
    font-weight: 600; color: var(--navy-900); border-radius: 0; text-align: left;
  }
  .nav-list.is-open > li[aria-current] > a,
  .nav-list.is-open > li > a[aria-current] { color: var(--blue-700); }
  .nav-list.is-open .nav-caret { width: 20px; height: 20px; transition: transform .2s var(--ease); flex-shrink: 0; }
  .nav-list.is-open > li.is-open > button .nav-caret { transform: rotate(180deg); }

  .nav-list.is-open .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    border: 0; box-shadow: none; max-width: none; padding: var(--s3) 0 var(--s4) var(--s4);
  }
  .nav-list.is-open .dropdown::before { display: none; }
  .nav-list.is-open .dropdown-grid { grid-template-columns: 1fr; }

  /* hamburger becomes a close (X) while the panel is open */
  .nav-toggle .tg-close { display: none; }
  .nav-toggle[aria-expanded="true"] .tg-open  { display: none; }
  .nav-toggle[aria-expanded="true"] .tg-close { display: block; }
}
@media (max-width: 900px) {
  .utility ul.utility-contacts { display: none; }
  .utility .container { justify-content: flex-end; }
  .steps, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .trustbar ul { grid-template-columns: repeat(2, 1fr); }
  .trustbar li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trustbar li { border-top: 1px solid var(--line); }
  .trustbar li:nth-child(-n+2) { border-top: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  /* header: drop the "Check Prices" CTA and brand tagline so the bar never overflows
     (a phone gets domain/hosting/vps quick links from the fixed .mobile-bar instead) */
  .nav-actions > .btn { display: none; }
  .brand-text small { display: none; }
  .nav { gap: var(--s3); }
  .container { padding-inline: var(--s4); }
}
@media (max-width: 620px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trustbar ul { grid-template-columns: 1fr; }
  .trustbar li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .trustbar li:first-child { border-top: 0; }
  .search-form { flex-direction: column; border-radius: var(--r-sm); }
  .search-form .btn { width: 100%; padding-block: .9rem; }
  .toc ol { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}

/* ==========================================================================
   17. DARK MODE   —   :root[data-theme="dark"]
   Set by the inline <head> script (localStorage 'theme' or prefers-color-scheme)
   and toggled by .theme-toggle in the utility bar.
   ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;

  /* navy-900 was a near-black used for headings AND dark surfaces.
     In dark mode it becomes the light "strong ink"; the handful of places
     that used it as a background are re-pointed to --surface-invert below. */
  --navy-900: #eef2f8;
  --navy-800: #dde5f0;
  --navy-700: #c1cfe2;
  --navy-600: #9db0cb;

  --blue-700: #7cb3f2;
  --blue-600: #4f95e6;
  --blue-500: #3f83d6;
  --blue-100: #21385a;
  --blue-50:  #16273f;

  --green-700: #52c47f;
  --green-600: #40b56e;
  --green-500: #37a862;
  --green-50:  #123024;

  --gold-700: #e2b957;
  --gold-600: #d3aa47;
  --gold-500: #c99b3c;
  --gold-50:  #2c2611;

  --red-600: #f0706f;
  --red-50:  #2f1717;

  --ink:        #e8edf6;
  --ink-muted:  #a3b3ca;
  --ink-subtle: #7c8ca6;
  --line:        #27364d;
  --line-strong: #384a63;
  --bg:      #0d1522;
  --bg-alt:  #121d2e;
  --bg-alt2: #17253b;

  --surface-invert: #080e18;   /* footer / utility / dark chips */

  --sh-sm: 0 1px 2px rgba(0,0,0,.45);
  --sh-md: 0 6px 18px -6px rgba(0,0,0,.55);
  --sh-lg: 0 18px 44px -14px rgba(0,0,0,.65);
}

/* places that used --navy-900 as a solid surface stay dark */
:root[data-theme="dark"] .utility,
:root[data-theme="dark"] .footer,
:root[data-theme="dark"] .section--navy,
:root[data-theme="dark"] .skip-link,
:root[data-theme="dark"] .brand-mark,
:root[data-theme="dark"] .data-table thead th,
:root[data-theme="dark"] .filters button[aria-pressed="true"],
:root[data-theme="dark"] .btn--navy,
:root[data-theme="dark"] .to-top,
:root[data-theme="dark"] .fab--form,
:root[data-theme="dark"] .fab__label,
:root[data-theme="dark"] .plan__price-band,
:root[data-theme="dark"] .mockup__foot { background: var(--surface-invert); }
:root[data-theme="dark"] .filters button[aria-pressed="true"] { border-color: var(--surface-invert); color: #fff; }
:root[data-theme="dark"] .fab__label::after { border-left-color: var(--surface-invert); }
:root[data-theme="dark"] .fab--form { border: 1px solid var(--line-strong); }

/* surfaces & chrome */
:root[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .header { background: var(--bg); border-bottom-color: var(--line); }
:root[data-theme="dark"] .header.is-stuck { box-shadow: 0 4px 18px -6px rgba(0,0,0,.6); }
:root[data-theme="dark"] .mega,
:root[data-theme="dark"] .dropdown,
:root[data-theme="dark"] .search-flyout,
:root[data-theme="dark"] .nav-list.is-open { background: var(--bg-alt); border-color: var(--line); }
:root[data-theme="dark"] .icon-btn { background: var(--bg-alt); border-color: var(--line-strong); color: var(--ink); }
:root[data-theme="dark"] .nav-list > li > a,
:root[data-theme="dark"] .nav-list > li > button { color: var(--ink); }

/* announcement + notice: gold-on-dark */
:root[data-theme="dark"] .announce { background: #241d0c; border-bottom-color: #3d3413; color: #e7d9b0; }
:root[data-theme="dark"] .announce strong { color: #fff; }
:root[data-theme="dark"] .announce button.a-close { color: var(--gold-500); }
:root[data-theme="dark"] .announce button.a-close:hover { background: #33290f; }
:root[data-theme="dark"] .notice { background: #241d0c; border-color: #3d3413; }
:root[data-theme="dark"] .notice p { color: #d9c79a; }
:root[data-theme="dark"] .notice strong { color: #fff; }

/* form controls */
:root[data-theme="dark"] input, :root[data-theme="dark"] textarea, :root[data-theme="dark"] select {
  background: var(--bg-alt); border-color: var(--line-strong); color: var(--ink);
}
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: var(--ink-subtle); }
:root[data-theme="dark"] .btn--outline { background: var(--bg-alt); color: var(--ink); border-color: var(--line-strong); }
:root[data-theme="dark"] ::selection { background: var(--blue-100); color: #fff; }

/* mobile quick-nav bar */
:root[data-theme="dark"] .mobile-bar { background: var(--bg-alt); border-top-color: var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.5); }
:root[data-theme="dark"] .mobile-bar a:active { background: var(--blue-50); }

/* hand-authored SVG illustrations — override the hard-coded light fills/strokes
   (CSS beats SVG presentation attributes). Brand blue/green stay as-is. */
:root[data-theme="dark"] svg [fill="#fff"],
:root[data-theme="dark"] svg [fill="#ffffff"],
:root[data-theme="dark"] svg [fill="#FFFFFF"],
:root[data-theme="dark"] svg [fill="#fdfdfe"] { fill: #101a2b; }
:root[data-theme="dark"] svg [fill="#f5f8fc"],
:root[data-theme="dark"] svg [fill="#f8fafc"],
:root[data-theme="dark"] svg [fill="#fafbfd"],
:root[data-theme="dark"] svg [fill="#eef1f6"] { fill: #16233a; }
:root[data-theme="dark"] svg [fill="#eef4fc"],
:root[data-theme="dark"] svg [fill="#e4eefb"],
:root[data-theme="dark"] svg [fill="#eaf0f8"] { fill: #1a2c46; }
:root[data-theme="dark"] svg [fill="#e9f6ee"] { fill: #123024; }
:root[data-theme="dark"] svg [fill="#fdf6e4"],
:root[data-theme="dark"] svg [fill="#fdf6e4"] { fill: #2c2611; }
:root[data-theme="dark"] svg [stroke="#dfe5ee"],
:root[data-theme="dark"] svg [stroke="#c5cfdd"],
:root[data-theme="dark"] svg [stroke="#e5e5e5"] { stroke: #35475f; }
:root[data-theme="dark"] svg [fill="#11294c"],
:root[data-theme="dark"] svg [fill="#16202e"],
:root[data-theme="dark"] svg [fill="#0a1f3d"] { fill: #e8edf6; }
:root[data-theme="dark"] svg [fill="#55637a"],
:root[data-theme="dark"] svg [fill="#7b869a"] { fill: #9fb0c8; }
:root[data-theme="dark"] svg [fill="#004494"] { fill: #7cb3f2; }
:root[data-theme="dark"] svg [fill="#117033"] { fill: #52c47f; }
:root[data-theme="dark"] .mockup { border-color: var(--line-strong); }
:root[data-theme="dark"] .mockup__bar { background: var(--bg-alt2); border-bottom-color: var(--line); }
:root[data-theme="dark"] .mockup__url { background: var(--bg); border-color: var(--line); }

/* the toggle animation itself, when reduced-motion is off */
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle svg { transition: transform .3s var(--ease); }
  .theme-toggle:active svg { transform: rotate(40deg) scale(.9); }
}
