/* ==========================================================================
   VPSWala — Ghost theme stylesheet
   Permanent dark system. No light branch, no theme switcher.
   Sections: 1 tokens · 2 reset · 3 type · 4 layout · 5 components
             6 page blocks · 7 prose · 8 responsive · 9 motion/print
   ========================================================================== */

/* 1 · TOKENS ============================================================== */
:root {
  color-scheme: dark;

  /* canvas + surfaces: layered graphite, never flat black */
  --bg:            #08090d;
  --bg-alt:        #0b0d12;
  --surface-1:     #0f1218;
  --surface-2:     #141821;
  --surface-3:     #1a1f2a;
  --surface-hover: #1d2331;

  /* strokes */
  --line:          #1c212c;
  --line-strong:   #2a3140;
  --line-accent:   rgba(255,154,31,.34);

  /* ink — all pairs verified >= 4.5:1 on --bg / --surface-1 */
  --ink:           #eef1f6;
  --ink-2:         #c2c9d6;
  --ink-3:         #98a1b2;
  --ink-4:         #838b9a;

  /* accent */
  --accent:        #ff9a1f;
  --accent-hi:     #ffb257;
  --accent-lo:     #d97b06;
  --accent-wash:   rgba(255,154,31,.11);
  --accent-line:   rgba(255,154,31,.30);
  --on-accent:     #1a1204;

  /* technical / data accent */
  --data:          #57d9c8;
  --data-wash:     rgba(87,217,200,.10);
  --data-line:     rgba(87,217,200,.28);

  /* status */
  --ok:            #4ade80;
  --warn:          #fbbf24;
  --err:           #f87171;

  /* type */
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
          Consolas, "Liberation Mono", monospace;

  /* scale */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --gut: clamp(20px, 4vw, 40px);
  --wrap: 1200px;
  --wrap-narrow: 760px;

  --sect: clamp(64px, 9vw, 116px);

  /* elevation */
  --sh-1: 0 1px 2px rgba(0,0,0,.5);
  --sh-2: 0 8px 26px -10px rgba(0,0,0,.75);
  --sh-3: 0 24px 60px -22px rgba(0,0,0,.85);
  --sh-accent: 0 14px 40px -18px rgba(255,154,31,.55);

  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* 2 · RESET =============================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }

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

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

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

::selection { background: var(--accent); color: var(--on-accent); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; border-radius: 0 0 var(--r) 0; font-weight: 600;
}
.skip:focus { left: 0; }

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

/* 3 · TYPE ================================================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.021em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -.027em; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
h4 { font-size: 1.03rem; }
h5 { font-size: .94rem; }

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow--data { color: var(--data); }

.lede {
  font-size: clamp(1.03rem, 1.6vw, 1.19rem);
  color: var(--ink-3);
  line-height: 1.62;
  max-width: 62ch;
}

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

small, .fine { font-size: .82rem; line-height: 1.6; color: var(--ink-4); }

/* 4 · LAYOUT ============================================================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--sect); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--sunk {
  background:
    radial-gradient(1100px 420px at 50% 0%, rgba(255,154,31,.055), transparent 70%),
    var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section__head { max-width: 58ch; margin-bottom: clamp(30px, 4vw, 50px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { margin-top: 14px; }

.grid { display: grid; gap: clamp(14px, 1.7vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 5 · COMPONENTS ========================================================== */

/* 5.1 buttons */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--ink);
  --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 600; letter-spacing: -.008em;
  cursor: pointer;
  text-align: center;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover { background: var(--surface-hover); border-color: var(--ink-4); color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-line: var(--accent);
  box-shadow: var(--sh-accent);
}
.btn--primary:hover { --btn-bg: var(--accent-hi); --btn-line: var(--accent-hi); color: var(--on-accent); }

.btn--ghost { --btn-bg: transparent; --btn-line: var(--line-strong); }

.btn--sm { padding: 9px 15px; font-size: .84rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform .16s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .92rem; color: var(--accent);
}
.link-arrow::after { content: "→"; transition: transform .16s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* 5.2 chips + badges */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--mono); font-size: .73rem; letter-spacing: .03em;
  color: var(--ink-3);
  white-space: nowrap;
}
.chip--accent { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent-hi); }
.chip--data { background: var(--data-wash); border-color: var(--data-line); color: var(--data); }
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.badge {
  display: inline-block; padding: 3px 9px;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r-pill);
  font-family: var(--mono); font-size: .64rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.badge--quiet { background: var(--surface-3); color: var(--ink-3); }

/* 5.3 cards */
.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 28px);
  position: relative;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.card--hover:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.card--flush { padding: 0; overflow: hidden; }
.card__kicker {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 11px;
}
.card h3 { margin-bottom: 9px; }
.card p { font-size: .93rem; color: var(--ink-3); }

.card__icon {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--accent-wash); border: 1px solid var(--accent-line);
  border-radius: var(--r-sm);
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; color: var(--accent-hi);
  margin-bottom: 15px;
}
.card__icon--data { background: var(--data-wash); border-color: var(--data-line); color: var(--data); }

/* 5.4 stat strip */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; background: var(--surface-1);
}
.stat { padding: 24px clamp(18px, 2.2vw, 28px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__n {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 2.7vw, 2rem); font-weight: 600;
  color: var(--ink); letter-spacing: -.02em; line-height: 1.1;
}
.stat__n sup { font-size: .55em; color: var(--accent); top: -.6em; }
.stat__l { font-size: .84rem; color: var(--ink-4); margin-top: 7px; line-height: 1.5; }

/* 5.5 plan cards */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.plan {
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--sh-2); }
.plan--featured { border-color: var(--accent-line); box-shadow: var(--sh-2); }
.plan--featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
.plan__top {
  padding: 18px 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.plan__tier {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-4);
}
.plan__name {
  padding: 12px 22px 0;
  font-size: 1.06rem; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.plan__note { padding: 8px 22px 0; font-size: .87rem; color: var(--ink-4); }
.plan__price {
  padding: 18px 22px 16px;
  display: flex; align-items: baseline; gap: 4px;
}
.plan__price .amt {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 1.95rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em;
}
.plan__price .per { font-size: .84rem; color: var(--ink-4); }
.plan__specs {
  list-style: none; padding: 0 22px 20px; margin: 0;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.plan__specs li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: .88rem;
}
.plan__specs .k { color: var(--ink-4); }
.plan__specs .v { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }
.plan__cta { margin-top: auto; padding: 0 22px 22px; }

/* 5.6 tables */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-1);
  -webkit-overflow-scrolling: touch;
}
table.t {
  width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 660px;
}
table.t caption {
  caption-side: bottom; text-align: left; padding: 12px 16px;
  font-size: .8rem; color: var(--ink-4); border-top: 1px solid var(--line);
}
table.t th, table.t td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.t thead th {
  background: var(--surface-2);
  font-family: var(--mono); font-size: .69rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4);
  white-space: nowrap;
}
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: var(--surface-2); }
table.t td.n, table.t th.n { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
table.t td strong { color: var(--ink); font-weight: 600; }
table.t tr.is-featured { background: var(--accent-wash); }
table.t tr.is-featured:hover { background: rgba(255,154,31,.15); }

/* 5.7 lists */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative; padding-left: 26px; padding-block: 6px;
  font-size: .92rem; color: var(--ink-3);
}
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 9px; height: 5px; border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg);
}
.ticks--data li::before { border-color: var(--data); }
.ticks--x li::before {
  content: "×"; border: 0; transform: none; left: 6px; top: 5px;
  width: auto; height: auto; color: var(--ink-4); font-size: 1.05rem; line-height: 1.5;
}

.keyvals { list-style: none; padding: 0; margin: 0; }
.keyvals li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.keyvals li:last-child { border-bottom: 0; }
.keyvals .k { color: var(--ink-4); }
.keyvals .v { color: var(--ink-2); font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }

/* 5.8 accordion / FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-1); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 18px 52px 18px 22px;
  cursor: pointer; list-style: none; position: relative;
  font-weight: 600; color: var(--ink); font-size: .97rem; line-height: 1.45;
  transition: background .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 25px;
  width: 9px; height: 9px;
  border-right: 1.8px solid var(--ink-4); border-bottom: 1.8px solid var(--ink-4);
  transform: rotate(45deg); transition: transform .18s ease, border-color .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--accent); }
.faq__a { padding: 0 22px 20px; font-size: .93rem; color: var(--ink-3); }
.faq__a p + p { margin-top: 12px; }

/* 5.9 notes / callouts */
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface-1);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  font-size: .9rem; color: var(--ink-3);
}
.note strong { color: var(--ink); }
.note--data { border-left-color: var(--data); }
.note--quiet { border-left-color: var(--line-strong); }

/* 5.10 breadcrumbs */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--ink-4); margin-bottom: 18px;
  font-family: var(--mono);
}
.crumbs a { color: var(--ink-4); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .45; }
.crumbs [aria-current] { color: var(--ink-2); }

/* 5.11 forms */
.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block; margin-bottom: 7px;
  font-size: .84rem; font-weight: 500; color: var(--ink-2);
}
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink); font-size: .94rem;
  transition: border-color .15s ease, background .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface-3);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field--half { display: inline-block; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .field--full { grid-column: 1 / -1; }

.honey { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* 5.12 node map */
.nodemap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(22px, 3.4vw, 44px);
  align-items: center;
}
.nodemap__viz {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(18px, 2.6vw, 30px);
}
.nodemap__viz svg { width: 100%; height: auto; }
.node-dot { fill: var(--accent); }
.node-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .4; }
.node-label { fill: var(--ink-2); font-family: var(--mono); font-size: 11px; }
.node-city { fill: var(--ink-4); font-family: var(--mono); font-size: 9.5px; }
.node-line { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.map-out { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }

/* 5.13 SEO link cloud */
.cloud { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 12px; }
.cloud + .cloud { margin-top: 30px; }
.cloud h3 {
  font-family: var(--mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 14px;
}
.cloud__links { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: .84rem; line-height: 1.75; }
.cloud__links a { color: var(--ink-3); padding-right: 11px; }
.cloud__links a::after { content: "·"; color: var(--line-strong); margin-left: 11px; }
.cloud__links a:last-child::after { content: ""; }
.cloud__links a:hover { color: var(--accent); }

/* 5.14 compare columns */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare__col { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.4vw, 28px); }
.compare__col--pick { border-color: var(--accent-line); }
.compare__col h3 { margin-bottom: 6px; }
.compare__col > p { font-size: .89rem; color: var(--ink-4); margin-bottom: 16px; }

/* 5.15 post cards */
.postcard { display: flex; flex-direction: column; height: 100%; }
.postcard__img { aspect-ratio: 16/9; background: var(--surface-3); overflow: hidden; }
.postcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.postcard:hover .postcard__img img { transform: scale(1.035); }
.postcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.postcard__meta {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 11px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.postcard h3 { font-size: 1.06rem; margin-bottom: 9px; }
.postcard h3 a { color: var(--ink); }
.postcard h3 a:hover { color: var(--accent); }
.postcard p { font-size: .89rem; flex: 1; }
.postcard__more { margin-top: 15px; }

/* 5.16 pagination */
.pager { display: flex; justify-content: center; gap: 12px; align-items: center; margin-top: 46px; }
.pager__pos { font-family: var(--mono); font-size: .82rem; color: var(--ink-4); }

/* 6 · PAGE BLOCKS ========================================================= */

/* 6.1 utility bar */
.utility {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-size: .78rem; color: var(--ink-4);
}
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.utility a { color: var(--ink-3); }
.utility a:hover { color: var(--accent); }
.utility__right { display: flex; gap: 20px; align-items: center; }

/* 6.2 header */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8,9,13,.82);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 66px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--accent-lo));
  display: grid; place-items: center;
  color: var(--on-accent); font-weight: 800; font-size: .88rem;
  font-family: var(--mono); letter-spacing: -.03em;
}
.brand__name { font-size: 1.06rem; font-weight: 700; color: var(--ink); letter-spacing: -.028em; }
.brand__name .tld { color: var(--accent); }
.brand:hover .brand__name { color: var(--ink); }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 9px 13px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500; color: var(--ink-3);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); }

.head-cta { display: flex; gap: 9px; flex: none; }

.burger {
  display: none; width: 40px; height: 40px; flex: none;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center;
  margin-left: auto;
}
.burger span {
  display: block; width: 17px; height: 1.6px; background: var(--ink);
  position: relative; transition: background .15s ease;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: var(--ink);
  transition: transform .2s ease, top .2s ease;
}
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 14px var(--gut) 22px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2); font-weight: 500; font-size: .97rem;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .btn { margin-top: 16px; }

/* 6.3 hero */
.hero {
  position: relative;
  padding-block: clamp(52px, 8vw, 96px) clamp(48px, 7vw, 84px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 380px at 12% -6%, rgba(255,154,31,.13), transparent 62%),
    radial-gradient(620px 380px at 88% 8%, rgba(87,217,200,.07), transparent 62%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(680px 340px at 30% 0%, #000, transparent 72%);
  mask-image: radial-gradient(680px 340px at 30% 0%, #000, transparent 72%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.hero--slim { padding-block: clamp(40px, 5.5vw, 66px) clamp(28px, 4vw, 44px); }
.hero--slim::after { display: none; }
.hero--slim h1 { margin-bottom: 16px; }

/* 6.4 price panel */
.pricepanel {
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.pricepanel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.pricepanel__head h2, .pricepanel__head p:first-child {
  font-size: .93rem; font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -.01em;
}
.pricepanel__head .fine { font-family: var(--mono); font-size: .67rem; letter-spacing: .09em; text-transform: uppercase; }
.pricepanel__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  transition: background .15s ease;
  color: inherit;
}
.pricepanel__row:hover { background: var(--surface-2); color: inherit; }
.pricepanel__row.is-featured { background: var(--accent-wash); box-shadow: inset 3px 0 0 var(--accent); }
.pricepanel__spec { font-size: .92rem; color: var(--ink); font-weight: 500; }
.pricepanel__sub { font-size: .79rem; color: var(--ink-4); margin-top: 2px; }
.pricepanel__amt {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 1.16rem; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.pricepanel__amt .per { font-size: .72rem; color: var(--ink-4); font-weight: 400; margin-left: 3px; }
.pricepanel__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; font-size: .84rem; color: var(--ink-4); flex-wrap: wrap;
}

/* 6.5 CTA band */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255,154,31,.11), transparent 68%),
    var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(30px, 4.5vw, 52px);
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 54ch; margin-inline: auto; color: var(--ink-3); }
.cta-band .row { justify-content: center; margin-top: 26px; }

/* 6.6 footer */
.site-foot {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 68px) 30px;
  margin-top: 0;
}
.foot__top {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: 36px; border-bottom: 1px solid var(--line);
}
.foot__about p { font-size: .88rem; color: var(--ink-4); margin-top: 14px; max-width: 42ch; }
.foot__col h3 {
  font-family: var(--mono); font-size: .69rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4);
  margin-bottom: 14px;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; }
.foot__col li { margin-bottom: 9px; }
.foot__col a { font-size: .89rem; color: var(--ink-3); }
.foot__col a:hover { color: var(--accent); }

.foot__seo { padding-block: 32px; border-bottom: 1px solid var(--line); }

.foot__bottom {
  padding-top: 26px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .81rem; color: var(--ink-4);
}
.foot__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot__legal a { color: var(--ink-4); }
.foot__legal a:hover { color: var(--accent); }
.foot__disclaimer { margin-top: 16px; font-size: .78rem; color: var(--ink-4); line-height: 1.7; max-width: 92ch; }

/* 6.7 sticky mobile CTA */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(11,13,18,.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-cta .btn { flex: 1; padding: 12px 14px; font-size: .88rem; }

/* 7 · PROSE (Ghost content) =============================================== */
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 2em; margin-bottom: .55em; }
.prose h3 { margin-top: 1.7em; margin-bottom: .45em; }
.prose h4 { margin-top: 1.5em; margin-bottom: .4em; color: var(--ink); }
.prose a { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 22px;
  color: var(--ink-3); font-style: normal;
}
.prose code {
  font-family: var(--mono); font-size: .87em;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 2px 6px; color: var(--data);
}
.prose pre {
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px; overflow-x: auto;
  font-size: .87rem; line-height: 1.65;
}
.prose pre code { background: none; border: 0; padding: 0; color: var(--ink-2); }
.prose img, .prose .kg-image { border-radius: var(--r); border: 1px solid var(--line); }
.prose figure { margin-block: 1.8em; }
.prose figcaption { margin-top: 10px; font-size: .82rem; color: var(--ink-4); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose table th, .prose table td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; }
.prose table th { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.prose hr { margin-block: 2.4em; }

/* Ghost koenig cards */
.kg-width-wide { max-width: 1040px; margin-inline: auto; }
.kg-width-full { max-width: 100vw; margin-inline: calc(50% - 50vw); }
.kg-card { margin-block: 1.8em; }
.kg-callout-card {
  display: flex; gap: 12px; padding: 16px 20px;
  background: var(--surface-1); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--r-sm);
  font-size: .93rem;
}
.kg-toggle-card { border: 1px solid var(--line); border-radius: var(--r); margin-block: 12px; }
.kg-toggle-heading { padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; }
.kg-toggle-content { padding: 0 20px 18px; color: var(--ink-3); font-size: .93rem; }
.kg-bookmark-card a { display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; background: var(--surface-1); }
.kg-btn { display: inline-block; }

/* 8 · RESPONSIVE ========================================================== */
@media (max-width: 1080px) {
  .nav a { padding: 9px 10px; font-size: .87rem; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --sect: clamp(52px, 9vw, 76px); }
  .nav, .head-cta { display: none; }
  .burger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .nodemap { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .mobile-cta { display: flex; }
  body { padding-bottom: 68px; }
  html { scroll-padding-top: 80px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .utility__right .u-hide-sm { display: none; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; gap: 12px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .pricepanel__row { padding: 13px 16px; }
  .plan__specs li { font-size: .85rem; }
}

/* 9 · MOTION / PRINT ====================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-head, .site-foot, .utility, .mobile-cta, .hero::before, .hero::after { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* 10 · KOENIG CARD COVERAGE ==============================================
   Ghost's editor cards need explicit styling in a dark theme, otherwise
   galleries and bookmarks inherit nothing and render as bare markup. */

.kg-gallery-container { display: flex; flex-direction: column; gap: 10px; max-width: 1040px; margin-inline: auto; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: 10px; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; margin: 0; border-radius: var(--r-sm); border: 1px solid var(--line); }
.kg-gallery-card + .kg-gallery-card, .kg-gallery-card + .kg-image-card, .kg-image-card + .kg-gallery-card { margin-top: 10px; }

.kg-bookmark-card, .kg-bookmark-publisher { position: relative; width: 100%; }
.kg-bookmark-container {
  display: flex; min-height: 148px;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  color: var(--ink-2); text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.kg-bookmark-container:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink-2); }
.kg-bookmark-content { display: flex; flex-direction: column; flex-grow: 1; justify-content: flex-start; align-items: flex-start; padding: 20px; order: 1; }
.kg-bookmark-title { font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.kg-bookmark-description { display: -webkit-box; margin-top: 6px; font-size: .88rem; color: var(--ink-3); line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kg-bookmark-metadata { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; font-size: .8rem; color: var(--ink-4); }
.kg-bookmark-icon { width: 18px; height: 18px; margin-right: 4px; border-radius: 3px; }
.kg-bookmark-author, .kg-bookmark-publisher { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.kg-bookmark-author::after { content: "\2022"; margin: 0 6px; color: var(--line-strong); }
.kg-bookmark-thumbnail { position: relative; flex-grow: 1; min-width: 33%; order: 2; }
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; border: 0; }

@media (max-width: 640px) {
  .kg-bookmark-container { flex-direction: column; }
  .kg-bookmark-thumbnail { order: 1; min-height: 160px; width: 100%; }
  .kg-bookmark-content { order: 2; }
  .kg-gallery-row { flex-direction: column; }
}
