/* Sourcer — dark monospace theme */
:root {
  --bg: #1a1d22;
  --bg-2: #20242a;
  --bg-3: #262a31;
  --rule: #2e333b;
  --rule-2: #3a4049;
  --ink: #ffffff;
  --ink-2: #c8ccd2;
  --ink-3: #8a9099;
  --accent: #5BC0BE;
  --accent-soft: rgba(91, 192, 190, 0.14);
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --mono: "JetBrains Mono", "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

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

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--rule);
}
header.site .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.brand-mark { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.site-nav {
  display: flex; align-items: center; gap: 28px;
  font-size: 12px; color: var(--ink-3);
}
.site-nav a { letter-spacing: 0.04em; transition: color 120ms; }
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
}
.hero .inner { width: 100%; }
.hero h1 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero h1 .punch {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.hero .lede {
  font-size: 14px;
  color: var(--accent);
  margin: 0 0 36px;
}
.hero .rule {
  width: 110px; height: 2px; background: var(--accent);
  border: 0; margin: 0 0 36px;
}
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 2px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 120ms, background 120ms, border-color 120ms, color 120ms;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--rule-2); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Numbered section */
section.numbered {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid var(--rule);
}
.sec-num {
  font-size: clamp(40px, 5vw, 56px);
  color: var(--accent);
  font-weight: 400;
  margin: 0 0 6px;
  line-height: 1;
}
.sec-rule {
  width: 110px; height: 2px; background: var(--accent);
  border: 0; margin: 0 0 28px;
}
.sec-title h2 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink);
}
.sec-title p {
  color: var(--accent);
  font-size: 13.5px;
  margin: 0 0 56px;
}

/* CRAAP rows (section 01) */
.craap-rows { border-top: 1px solid var(--rule); }
.craap-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  border-left: 0; border-right: 0; border-top: 0;
  align-items: center;
  width: 100%;
  background: transparent;
  text-align: left;
  font: inherit; color: inherit;
  cursor: pointer;
  transition: background 160ms;
}
.craap-row:hover { background: var(--bg-2); }
.craap-letter {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(72px, 9vw, 120px);
  line-height: 0.85;
  color: var(--accent);
  text-align: center;
  letter-spacing: -0.02em;
}
.craap-body { display: grid; gap: 0; }
.craap-q {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(17px, 1.7vw, 22px);
  color: var(--ink);
  line-height: 1.3;
}
.craap-pillar { color: var(--accent); }
.craap-sep { color: var(--rule-2); }
.craap-chev {
  margin-left: auto;
  font-size: 22px; color: var(--ink-3);
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 220ms ease, color 160ms;
  font-weight: 400;
}
.craap-row[aria-expanded="true"] .craap-chev {
  transform: rotate(45deg);
  color: var(--accent);
}
.craap-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease, margin-top 260ms ease;
  margin-top: 0;
  overflow: hidden;
}
.craap-row[aria-expanded="true"] .craap-detail {
  grid-template-rows: 1fr;
  margin-top: 14px;
}
.craap-detail > * { min-height: 0; }
.craap-d-label {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.craap-d-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-width: 70ch;
}
.craap-d-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.craap-d-list li::before {
  content: "›";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 500;
}

/* Drop-in hosts (section 02) */
.hosts {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-2);
  padding: clamp(20px, 3vw, 32px);
}
.host-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.host-card {
  display: grid;
  gap: 14px;
  padding: 22px 22px 20px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  transition: border-color 160ms, background 160ms;
}
.host-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.host-logo {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.host-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  color: var(--accent);
}
.host-add {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  margin-top: 2px;
}
.host-tier {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: -8px;
}
.host-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
}
.host-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 140ms, color 140ms;
}
.host-btn:hover { background: transparent; color: var(--accent); }
.host-guide {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  border-bottom: 1px dotted var(--rule-2);
  padding-bottom: 1px;
  transition: color 120ms, border-color 120ms;
}
.host-guide:hover { color: var(--ink-2); border-bottom-color: var(--ink-3); }
.host-guide .arr-ext { font-size: 12px; line-height: 1; }

.rest-line {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-3);
}
.rest-line code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}
.rest-line a { color: var(--accent); letter-spacing: 0.04em; }
.rest-line a:hover { text-decoration: underline; }
.rest-line .arr { color: var(--ink-3); margin: 0 2px; }

/* Pricing (section 03) */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.price-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--bg-2);
  transition: border-color 160ms;
}
.price-card:hover { border-color: var(--accent); }
.price-card.featured { border-color: var(--accent); background: var(--bg-3); }
.name-row {
  display: flex; align-items: center; justify-content: space-between;
}
.name-row .name {
  font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.14em;
}
.name-row .tag {
  font-size: 10px; padding: 2px 6px;
  border: 1px solid var(--accent); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; border-radius: 2px;
}
.price-amt {
  font-family: var(--mono);
  font-size: 38px; line-height: 1;
  font-weight: 500;
  display: flex; align-items: baseline; gap: 4px;
  margin-top: 4px;
}
.price-amt .currency { font-size: 20px; color: var(--ink-2); }
.price-amt .per { font-size: 12px; color: var(--ink-3); margin-left: 6px; letter-spacing: 0.04em; }
.price-stats { display: grid; gap: 14px; margin-top: 4px; }
.price-stats .ps { display: grid; gap: 2px; }
.price-stats .ps-k {
  font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em;
}
.price-stats .ps-v {
  font-size: 14px; color: var(--ink); font-weight: 500;
}
.price-card.featured .price-stats .ps-k { color: var(--ink-2); }
.pc-cta {
  margin-top: auto;
  padding: 11px 14px; border-radius: 2px;
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
  text-align: center;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 120ms, color 120ms;
}
.pc-cta:hover { background: var(--accent); color: var(--bg); }
.price-card.featured .pc-cta { background: var(--accent); color: var(--bg); }
.price-card.featured .pc-cta:hover { background: transparent; color: var(--accent); }

/* Footer */
footer.site {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
footer.site .row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 18px;
}
footer.site .links { display: flex; gap: 22px; }
footer.site a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 960px) {
  .host-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .host-grid { grid-template-columns: 1fr; }
  .craap-row { grid-template-columns: 80px 1fr; gap: 20px; padding: 22px 0; }
  .craap-letter { font-size: 64px; }
  .craap-q { gap: 8px; font-size: 18px; }
}
@media (max-width: 600px) {
  .price-grid { grid-template-columns: 1fr; }
}
