/* ServerGym landing page. Zero framework, zero script, nothing loaded from elsewhere. */

:root {
  color-scheme: light dark;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --sunk: #e9edf3;
  --ink: #101319;
  --soft: #363d49;
  --muted: #5d6675;
  --rule: #d4dbe5;
  --line: rgb(16 19 25 / 5%);
  --accent: #c94218;
  --accent-strong: #a33310;
  --accent-soft: #fdece6;
  --on-accent: #ffffff;
  --dot: rgb(16 19 25 / 26%);
  --header: rgb(244 246 249 / 88%);
  --shadow: rgb(16 19 25 / 18%);

  --good: #166b38;
  --good-ink: #0f522a;
  --good-bg: #e1f2e7;
  --critical: #b9261b;
  --critical-ink: #881a11;
  --critical-bg: #fceae7;
  --high: #c96a16;
  --high-ink: #844106;
  --high-bg: #fdeeda;
  --medium: #b89114;
  --medium-ink: #664e00;
  --medium-bg: #faf2cc;
  --low: #8f98a3;
  --low-ink: #4a535e;
  --low-bg: #eceef0;

  --clay: #25589e;

  --display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d10;
    --surface: #14161b;
    --sunk: #08090c;
    --ink: #f0f2f5;
    --soft: #c2c8d2;
    --muted: #8891a0;
    --rule: #242933;
    --line: rgb(240 242 245 / 4%);
    --accent: #f46b3e;
    --accent-strong: #ff8a62;
    --accent-soft: #2e150d;
    --on-accent: #180803;
    --dot: rgb(240 242 245 / 26%);
    --header: rgb(12 13 16 / 86%);
    --shadow: rgb(0 0 0 / 60%);

    --good: #52c97b;
    --good-ink: #9be8b5;
    --good-bg: #102a1a;
    --critical: #f26b60;
    --critical-ink: #ffb6ad;
    --critical-bg: #361614;
    --high: #f09a47;
    --high-ink: #ffc691;
    --high-bg: #36220e;
    --medium: #e0c14d;
    --medium-ink: #f0da7e;
    --medium-bg: #2e270b;
    --low: #6f7882;
    --low-ink: #b4bcc4;
    --low-bg: #1f2428;

    --clay: #74a9f0;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
dl,
dd,
figure,
pre {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

p,
li,
dd,
figcaption {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4.5vw, 3rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: block;
  flex: none;
}

.brand-mark .mark-frame {
  stroke: var(--accent);
  stroke-width: 2;
}

.brand-mark .mark-prompt {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .mark-bar {
  stroke: var(--clay);
  stroke-width: 2;
  stroke-linecap: round;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  margin-right: auto;
  margin-left: 0.5rem;
  font-size: 0.92rem;
  color: var(--soft);
}

.site-nav a,
.site-signin {
  text-decoration: none;
  color: var(--soft);
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav a:hover,
.site-signin:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Secondary header link on standalone pages */
.site-link {
  margin-left: auto;
  color: var(--soft);
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Mobile zero-JS menu */
.nav-menu {
  position: relative;
  display: none;
  margin-left: auto;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .nav-menu {
    display: block;
  }
}

@media (max-width: 480px) {
  .site-signin {
    display: none;
  }
}

.nav-menu summary {
  padding: 0.42rem 0.78rem;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--surface);
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 30;
  display: grid;
  min-width: 12.5rem;
  padding: 0.45rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 20px 40px -24px var(--shadow);
}

.nav-menu-panel a {
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  color: var(--soft);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-menu-panel a:hover {
  background: var(--sunk);
  color: var(--ink);
}

/* Buttons & directional links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--on-accent);
}

.button:active {
  transform: translateY(1px);
}

.button-small {
  padding: 0.46rem 0.92rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.button-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule);
}

.button-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent);
}

.more {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.more::after {
  content: " \2192";
  color: var(--accent);
}


.more:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Editorial typography */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.5vw, 3.65rem);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: -0.036em;
  text-wrap: balance;
}

h2 {
  max-width: 44rem;
  margin-top: 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.1vw, 2.45rem);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.lede {
  margin-top: 1.2rem;
  max-width: 36rem;
  color: var(--soft);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.56;
}

/* Status chips */
.chip {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chip-good     { background: var(--good-bg); color: var(--good-ink); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 5.5vw, 4.75rem) clamp(3.25rem, 6.5vw, 5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 28% 22%, #000 22%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 90% at 28% 22%, #000 22%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.75rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero h1 .line {
  display: block;
}

.hero h1 .line-accent {
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem 1.45rem;
  margin-top: 1.65rem;
}

.hero-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Hero lab preview (pure-CSS animation) */
.hero-figure {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.workbench-sheet {
  --lab-cycle: 8.4s;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 48px -30px var(--shadow);
  overflow: hidden;
}

.wb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  background: var(--sunk);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--soft);
}

.wb-domain {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wb-status {
  display: inline-grid;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.wb-status span {
  grid-area: 1 / 1;
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-align: center;
}

.wb-status .st-bad {
  border-color: var(--critical);
  background: var(--critical-bg);
  color: var(--critical-ink);
}

.wb-status .st-ok {
  border-color: var(--good);
  background: var(--good-bg);
  color: var(--good-ink);
}

.wb-ticket {
  padding: 0.95rem 1.25rem 0.85rem;
  border-bottom: 1px dashed var(--rule);
}

.wb-ticket-label {
  margin-bottom: 0.2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.wb-ticket-title {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--ink);
}

.wb-shell {
  padding: 0.85rem 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.68;
}

@media (max-width: 480px) {
  .wb-head,
  .wb-ticket,
  .wb-shell,
  .wb-checks {
    padding-inline: 1rem;
  }
  .wb-shell {
    font-size: 0.7rem;
  }
}

.wb-cmd {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-cmd span {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.45rem;
}

.wb-cmd-dim {
  color: var(--muted);
}

.wb-checks {
  padding: 0.2rem 1.25rem;
}

.wb-check {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-block: 0.68rem;
}

.wb-check + .wb-check {
  border-top: 1px dashed var(--rule);
}

.wb-pill {
  display: inline-grid;
  flex: none;
  min-width: 4.9rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.wb-pill span {
  grid-area: 1 / 1;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.wb-pill .p-wait {
  border-color: var(--rule);
  background: var(--sunk);
  color: var(--muted);
}

.wb-pill .p-done {
  border-color: var(--good);
  background: var(--good-bg);
  color: var(--good-ink);
}

.wb-check-copy {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

@media (prefers-reduced-motion: no-preference) {
  .wb-status .st-bad { animation: wb-bad var(--lab-cycle) linear infinite; }
  .wb-status .st-ok { animation: wb-ok var(--lab-cycle) linear infinite; }
  .wb-step-2 { animation: wb-step-2 var(--lab-cycle) linear infinite; }
  .wb-step-3 { animation: wb-step-3 var(--lab-cycle) linear infinite; }

  .lc-1 .p-wait { animation: wb-wait-1 var(--lab-cycle) linear infinite; }
  .lc-2 .p-wait { animation: wb-wait-2 var(--lab-cycle) linear infinite; }
  .lc-3 .p-wait { animation: wb-wait-3 var(--lab-cycle) linear infinite; }
  .lc-1 .p-done { animation: wb-done-1 var(--lab-cycle) linear infinite; }
  .lc-2 .p-done { animation: wb-done-2 var(--lab-cycle) linear infinite; }
  .lc-3 .p-done { animation: wb-done-3 var(--lab-cycle) linear infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-status .st-bad,
  .wb-pill .p-wait {
    opacity: 0;
  }
}

@keyframes wb-step-2 { 0%, 14% { opacity: 0.42; } 20%, 92% { opacity: 1; } 98%, 100% { opacity: 0.42; } }
@keyframes wb-step-3 { 0%, 28% { opacity: 0.34; } 34%, 92% { opacity: 1; } 98%, 100% { opacity: 0.34; } }
@keyframes wb-bad    { 0%, 40% { opacity: 1; } 44%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes wb-ok     { 0%, 40% { opacity: 0; } 44%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes wb-wait-1 { 0%, 42% { opacity: 1; } 46%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes wb-done-1 { 0%, 42% { opacity: 0; } 46%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes wb-wait-2 { 0%, 50% { opacity: 1; } 54%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes wb-done-2 { 0%, 50% { opacity: 0; } 54%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes wb-wait-3 { 0%, 58% { opacity: 1; } 62%, 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes wb-done-3 { 0%, 58% { opacity: 0; } 62%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }

/* Bands */
.band {
  padding-block: clamp(3.5rem, 7.5vw, 5.75rem);
  border-top: 1px solid var(--rule);
}

.band-sunk {
  background: var(--sunk);
}

/* How it works: three numbered steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 4vw, 3rem);
  }
}

.steps li {
  counter-increment: step;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.steps h3 {
  font-size: 1.2rem;
}

.steps p {
  margin-top: 0.45rem;
  max-width: 34ch;
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Labs: level ladder */
.ladder {
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
}

@media (min-width: 620px) {
  .ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .ladder {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rung {
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}

.rung-level {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.3rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.rung-level span {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.rung ul {
  display: grid;
  margin-top: 0.45rem;
  color: var(--soft);
  font-size: 0.94rem;
  line-height: 1.42;
}

.rung li {
  padding-block: 0.55rem;
}

.rung li + li {
  border-top: 1px dashed var(--rule);
}

.rung li:last-child {
  padding-bottom: 0;
}

.labs-foot {
  max-width: 44rem;
  margin-top: 1.75rem;
  color: var(--soft);
  font-size: 0.98rem;
}

.labs-more {
  margin-top: 0.85rem;
}

/* Teams & hiring: two use cases with small specimens */
.uses {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

@media (min-width: 860px) {
  .uses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.use {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
}

.use h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.use > p {
  margin-top: 0.5rem;
  color: var(--soft);
  font-size: 0.98rem;
}

.specimen {
  margin-top: 1.35rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.9rem;
}

.specimen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--soft);
}

.specimen-list,
.specimen-rows {
  padding: 0.35rem 1rem;
}

.specimen-list li,
.specimen-rows li {
  padding-block: 0.5rem;
}

.specimen-list li + li,
.specimen-rows li + li {
  border-top: 1px dashed var(--rule);
}

.specimen-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
}

.specimen-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
}

.specimen-list li.is-done {
  color: var(--ink);
}

.specimen-list li.is-done::before {
  border-color: var(--good);
  background: var(--good);
}

.specimen-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.specimen-rows li span:first-child {
  color: var(--muted);
}

.specimen-rows li span:last-child {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.use-link {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* Pricing: pill switcher + clear primary tier hierarchy */
.pricing-wrap {
  margin-top: 2rem;
}

.pricing-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.currency-switch {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 1.5rem;
}

.currency-switch label {
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--soft);
  cursor: pointer;
}

.currency-switch label:hover {
  color: var(--ink);
}

#cur-usd:checked ~ .currency-switch label[for="cur-usd"],
#cur-gbp:checked ~ .currency-switch label[for="cur-gbp"],
#cur-eur:checked ~ .currency-switch label[for="cur-eur"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

#cur-usd:focus-visible ~ .currency-switch label[for="cur-usd"],
#cur-gbp:focus-visible ~ .currency-switch label[for="cur-gbp"],
#cur-eur:focus-visible ~ .currency-switch label[for="cur-eur"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.p-usd,
.p-gbp,
.p-eur {
  display: none;
}

#cur-usd:checked ~ .pricing-grid .p-usd,
#cur-gbp:checked ~ .pricing-grid .p-gbp,
#cur-eur:checked ~ .pricing-grid .p-eur {
  display: inline;
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 620px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tier {
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
}

.tier-featured {
  border-color: var(--accent);
  box-shadow: 0 18px 36px -28px var(--shadow);
}

.tier h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 1.15rem;
}

.tier-badge {
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
}

.tier-price {
  margin-top: 0.9rem;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.tier-price .per {
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--muted);
}


.tier-cap {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.tier-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
  color: var(--soft);
  flex: 1;
}

.tier-list li {
  position: relative;
  padding-left: 1.15rem;
}

.tier-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

.tier-cta .button {
  width: 100%;
}

.pricing-footnote {
  max-width: 48rem;
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--soft);
}

/* FAQ: open hairline editorial accordion (no boxed cards) */
.faq-columns {
  display: grid;
  align-items: start;
  margin-top: 2.25rem;
}

@media (min-width: 820px) {
  .faq-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.faq {
  border-top: 1px solid var(--rule);
}

@media (max-width: 819px) {
  .faq + .faq {
    border-top: 0;
  }
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.05rem;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 640;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq summary:hover {
  color: var(--accent);
}

.faq details p {
  max-width: 38rem;
  padding-bottom: 1.15rem;
  font-size: 0.93rem;
  color: var(--soft);
}


/* Contact split */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  }
}

.split-copy h2 + p {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--soft);
  font-size: 1.04rem;
}

.contact-form {
  display: grid;
  gap: 1.05rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
}

@media (min-width: 580px) {
  .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field:nth-of-type(n + 3),
  .form-end {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 620;
  color: var(--ink);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.68rem 0.82rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--muted);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--accent);
}

.trap {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 0.25rem;
}

.form-note {
  flex: 1 1 14rem;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Standalone notice / legal pages */
.notice {
  padding-block: clamp(3rem, 8vw, 6rem);
  max-width: 46rem;
}

.notice h1 {
  margin-bottom: 1rem;
}

.notice p,
.notice li {
  margin-top: 0.85rem;
  color: var(--soft);
}

.notice h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--sunk);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand .brand {
  color: var(--ink);
}

.footer-brand p {
  margin-top: 0.6rem;
  max-width: 30ch;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: auto;
  }
}

.footer-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.site-footer ul {
  display: grid;
  gap: 0.4rem;
}

.site-footer nav a {
  text-decoration: none;
  color: var(--soft);
}

.site-footer nav a:hover {
  color: var(--accent);
}

.footer-end {
  padding-block: 1.35rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.82rem;
  color: var(--muted);
}
