:root {
  --paper: #fff;
  --ink: #121212;
  --muted: #60605d;
  --faint: #8a8a84;
  --surface: #f7f7f4;
  --surface-strong: #efefea;
  --line: #deded8;
  --blue: #2f6bff;
  --green: #12b35e;
  --orange: #ff6a2b;
  --yellow: #ffcb2e;
  --pink: #ff4d8d;
  --violet: #7c5cff;
  --red: #ef3f5f;
  --sans: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }

button,
input { font: inherit; }

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

code {
  padding: .12em .35em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: .88em;
}

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 16px;
  padding: 9px 14px;
  border-radius: 9px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .16s ease;
}

.skip-link:focus { transform: translateY(0); }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(145%) blur(14px);
}

.site-header .inner {
  min-width: 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.045em;
}

.brand::before {
  width: 23px;
  height: 23px;
  flex: none;
  background: url("/assets/brand/anyhost/anyhost-mark.svg") center / contain no-repeat;
  content: "";
}

.docs-label {
  padding-left: 17px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.top-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.top-nav a[aria-current="page"] { color: var(--ink); }

.header-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}

.header-cta:hover,
.button:hover {
  color: #fff;
  background: var(--ink);
  transform: translateY(-1px);
}

.button.primary { color: #fff; background: var(--ink); }
.button.primary:hover { color: var(--ink); background: var(--orange); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  right: clamp(-70px, 4vw, 60px);
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 44% 56% 58% 42%;
  background:
    linear-gradient(135deg, transparent 0 48%, var(--yellow) 48% 64%, transparent 64%),
    linear-gradient(45deg, var(--blue) 0 22%, transparent 22% 51%, var(--green) 51% 67%, transparent 67%),
    var(--surface);
  content: "";
  transform: rotate(9deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 850px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--orange);
  content: "";
  transform: rotate(8deg);
}

.hero h1 {
  max-width: 12ch;
  margin: 18px 0 0;
  font-size: clamp(48px, 7.4vw, 88px);
  font-weight: 900;
  letter-spacing: -.058em;
  line-height: .94;
  text-wrap: balance;
}

.hero h1 strong { color: var(--blue); font-weight: inherit; }

.hero .lead {
  max-width: 65ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.fact-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--yellow);
  overflow: hidden;
}

.fact-strip.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.fact-strip div { min-width: 0; min-height: 96px; padding: 18px 20px; }
.fact-strip div + div { border-left: 1px solid var(--line); }
.fact-strip b { display: block; font-size: 16px; letter-spacing: -.025em; }
.fact-strip span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.docs-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(42px, 7vw, 96px);
  padding-top: 66px;
  padding-bottom: 100px;
}

.side-nav {
  position: sticky;
  top: 102px;
  align-self: start;
  display: grid;
  gap: 5px;
}

.side-nav .nav-title {
  margin: 0 0 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.side-nav a {
  padding: 7px 10px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.side-nav a:hover,
.side-nav a[aria-current="location"] {
  border-left-color: var(--blue);
  color: var(--ink);
  background: var(--surface);
}

.doc-content { min-width: 0; }

.doc-section { scroll-margin-top: 100px; }
.doc-section + .doc-section { margin-top: 88px; padding-top: 74px; border-top: 1px solid var(--line); }

.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.doc-section h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 900;
  letter-spacing: -.052em;
  line-height: 1;
  text-wrap: balance;
}

.section-lead {
  max-width: 66ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.guide-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.guide-card,
.service-card {
  position: relative;
  min-height: 240px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.guide-card { transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.guide-card:hover { border-color: var(--ink); color: inherit; box-shadow: 6px 6px 0 var(--surface-strong); transform: translate(-2px, -2px); }

.guide-card::before,
.service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 18px;
  border-radius: 0 0 0 9px;
  background: var(--accent, var(--blue));
  content: "";
}

.card-label,
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.status.pro::before { background: var(--violet); }
.status.beta::before { background: var(--orange); }

.guide-card h2,
.guide-card h3,
.service-card h3 {
  margin: 20px 0 0;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.guide-card p,
.service-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card-link {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card { min-height: 260px; }
.service-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.service-card li { position: relative; padding-left: 17px; color: var(--muted); font-size: 13px; }
.service-card li + li { margin-top: 7px; }
.service-card li::before { position: absolute; left: 0; color: var(--accent, var(--blue)); content: "•"; font-weight: 900; }

.service-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 30px;
}

.flow-node {
  min-height: 150px;
  display: grid;
  align-content: center;
  padding: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--surface);
}

.flow-node:nth-of-type(2) { background: var(--yellow); }
.flow-node:nth-of-type(3) { color: #fff; background: var(--ink); }
.flow-node small { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.flow-node b { margin-top: 7px; font-size: 19px; line-height: 1.1; }
.flow-arrow { align-self: center; font-family: var(--mono); font-weight: 900; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.plan-card {
  position: relative;
  min-height: 470px;
  padding: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 19px;
  background: #fff;
}

.plan-card.pro {
  color: #fff;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--orange);
}

.plan-card .plan-name { font-family: var(--mono); font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.plan-card .price { display: flex; align-items: flex-end; gap: 8px; margin-top: 34px; }
.plan-card .price strong { font-size: clamp(58px, 7vw, 82px); font-weight: 900; letter-spacing: -.07em; line-height: .78; }
.plan-card .price span { color: var(--muted); font-size: 13px; font-weight: 700; }
.plan-card.pro .price span { color: #b7b7b1; }
.plan-card .plan-for { min-height: 50px; margin: 25px 0 0; color: var(--muted); }
.plan-card.pro .plan-for { color: #c9c9c4; }
.plan-card ul { margin: 25px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan-card.pro ul { border-color: #343431; }
.plan-card li { position: relative; padding-left: 24px; font-size: 14px; }
.plan-card li + li { margin-top: 10px; }
.plan-card li::before { position: absolute; left: 0; color: var(--green); content: "✓"; font-weight: 900; }
.plan-card .button { width: 100%; margin-top: 28px; }
.plan-card.pro .button { border-color: #fff; color: var(--ink); background: #fff; }
.plan-card.pro .button:hover { border-color: var(--orange); background: var(--orange); }

.bill-anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr);
  gap: 0;
  margin-top: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--yellow);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--surface-strong);
}

.bill-copy { padding: 34px; }
.bill-copy h3 { max-width: 12ch; margin: 0; font-size: 42px; font-weight: 900; letter-spacing: -.05em; line-height: .98; }
.bill-copy p { max-width: 46ch; margin: 18px 0 0; font-size: 14px; }

.receipt {
  margin: 18px;
  padding: 24px;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 11px;
}

.receipt-head { padding-bottom: 15px; border-bottom: 1px dashed #555; color: #adada8; text-transform: uppercase; }
.receipt-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 10px 0; }
.receipt-calculation { position: relative; margin-top: 4px; padding-left: 14px; }
.receipt-calculation::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 7px; border: solid #686864; border-width: 1px 0 1px 1px; }
.receipt-row.credit { color: #77e5a4; }
.receipt-row.subtotal { margin-top: 2px; padding-top: 12px; border-top: 1px dashed #555; font-weight: 800; }
.receipt-total { margin-top: 6px; padding-top: 15px; border-top: 1px solid #777; font-size: 14px; font-weight: 900; }

.table-wrap {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; text-align: left; }
th,
td { padding: 15px 17px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); background: var(--surface); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
td { font-size: 13px; }
td:first-child { font-weight: 800; }
.price-cell { white-space: nowrap; font-family: var(--mono); font-size: 12px; }
.included { color: #087b3f; font-weight: 800; }
.not-available { color: var(--faint); }

.note,
.warning {
  position: relative;
  margin-top: 27px;
  padding: 20px 22px 20px 56px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  font-size: 13px;
}

.note::before,
.warning::before {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  content: "i";
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
}

.warning { border-color: #eab7a4; background: #fff5ef; }
.warning::before { background: var(--orange); content: "!"; }
.note strong,
.warning strong { display: block; margin-bottom: 4px; }

.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 21px 42px 21px 0; cursor: pointer; font-weight: 900; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: 8px; content: "+"; font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 70ch; margin: -4px 0 22px; color: var(--muted); font-size: 14px; }

.page-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.page-footer .inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.page-footer .links { display: flex; gap: 20px; margin-left: auto; font-weight: 800; }

@media (max-width: 900px) {
  .hero::after { opacity: .35; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-strip div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .fact-strip div:nth-child(4) { border-top: 1px solid var(--line); }
  .fact-strip.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-strip.three div:nth-child(3) { border-left: 1px solid var(--line); border-top: 0; }
  .docs-shell { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
  .side-nav .nav-title { display: none; }
  .side-nav a { flex: none; border-left: 0; border-bottom: 2px solid transparent; }
  .side-nav a:hover,
  .side-nav a[aria-current="location"] { border-left: 0; border-bottom-color: var(--blue); }
  .service-flow { grid-template-columns: 1fr; }
  .flow-arrow { justify-self: center; transform: rotate(90deg); }
  .bill-anatomy { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .site-header { background: #fff; backdrop-filter: none; }
  .wrap { width: min(calc(100% - 30px), var(--wrap)); }
  .site-header .inner { min-height: 64px; gap: 13px; }
  .docs-label { display: none; }
  .top-nav { display: none; }
  .header-cta { min-height: 40px; margin-left: auto; padding: 8px 13px; }
  .hero { padding: 62px 0 54px; }
  .hero h1 { max-width: 10ch; }
  .hero::after { right: -190px; bottom: -170px; }
  .fact-strip { margin-top: 42px; box-shadow: 5px 5px 0 var(--yellow); }
  .fact-strip.three { grid-template-columns: 1fr; }
  .fact-strip.three div + div { border-left: 0; border-top: 1px solid var(--line); }
  .fact-strip div { min-height: 86px; padding: 14px; }
  .docs-shell { gap: 34px; padding-top: 40px; padding-bottom: 72px; }
  .doc-section + .doc-section { margin-top: 62px; padding-top: 54px; }
  .guide-grid,
  .service-grid,
  .plan-grid { grid-template-columns: 1fr; }
  .guide-card,
  .service-card { min-height: 0; }
  .plan-card { min-height: 0; padding: 24px; }
  .plan-card.pro { box-shadow: 6px 6px 0 var(--orange); }
  .bill-copy { padding: 25px; }
  .bill-copy h3 { font-size: 35px; }
  .receipt { margin: 0 15px 15px; }
  th,
  td { min-width: 130px; padding: 13px; }
  .page-footer .inner { align-items: flex-start; flex-direction: column; padding: 28px 0; }
  .page-footer .links { margin-left: 0; flex-wrap: wrap; }
}

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

@media print {
  .site-header,
  .side-nav,
  .hero-actions,
  .page-footer { display: none; }
  .hero { padding: 24px 0; }
  .hero::after { display: none; }
  .docs-shell { display: block; padding: 24px 0; }
  .doc-section + .doc-section { break-before: page; }
  .plan-card,
  .service-card,
  .table-wrap { break-inside: avoid; }
}
