:root {
  --ground: #0c0b0a;
  --ground-raised: #151412;
  --ground-sunk: #090807;
  --ink: #f3f1ec;
  --ink-muted: #a7a39b;
  --ink-dim: #6f6b64;
  --line: #2a2825;
  --line-strong: #3d3a36;
  --ember: #e8491a;
  --ember-soft: #e8491a1f;
  --ice: #26aeed;
  --ice-soft: #26aeed1c;
  --silver: #c9ccd1;
  --silver-soft: #c9ccd114;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --gutter: 16px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

@media (min-width: 720px) { :root { --gutter: 32px; } }

.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.01em; }
.dim { color: var(--ink-dim); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--ground);
  padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.mark { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.mark span { color: var(--ink-dim); }
.top nav { display: flex; gap: 20px; font-size: 0.875rem; color: var(--ink-muted); }
.top nav a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .top nav a:not(:first-child):not(:nth-child(3)) { display: none; }
}

/* Hero */
.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--line); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 88px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; } .hero { padding: 112px 0 120px; } }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 24px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.8125rem; color: var(--ink-muted);
}
.kicker img { width: 22px; height: 22px; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(2.75rem, 9vw, 5.25rem); line-height: 0.98; font-weight: 600; }
.lead { margin: 24px 0 0; font-size: 1.125rem; color: var(--ink-muted); max-width: 34em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.9375rem;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: #f25a2c; }
.btn-line { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-muted); }
.fine { margin: 14px 0 0; font-size: 0.8125rem; color: var(--ink-dim); }

/* Effort dial */
.dial {
  background: var(--ground-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
@media (min-width: 720px) { .dial { padding: 28px; } }
.dial-head { display: flex; justify-content: space-between; margin-bottom: 16px; }
.dial-head p { margin: 0; }

.seg {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ground-sunk); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; gap: 4px;
}
.seg button {
  appearance: none; border: 0; background: transparent; color: var(--ink-muted);
  font: 500 0.875rem/1 var(--font-sans);
  padding: 11px 0; border-radius: 8px; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--ground); }
@media (max-width: 380px) { .seg button { font-size: 0.8125rem; } }

.meter {
  height: 6px; margin: 24px 0 18px; border-radius: 999px;
  background: var(--line); overflow: hidden;
}
.meter span {
  display: block; height: 100%; width: 12%;
  background: var(--ember); border-radius: inherit;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.meter.auto span {
  width: 100%;
  background: repeating-linear-gradient(90deg, var(--ember) 0 18px, transparent 18px 26px);
  animation: drift 1.4s linear infinite;
}
@keyframes drift { to { background-position: 26px 0; } }
@media (prefers-reduced-motion: reduce) {
  .meter span { transition: none; }
  .meter.auto span { animation: none; }
  html { scroll-behavior: auto; }
}

.dial-name { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.dial-desc { margin: 6px 0 0; color: var(--ink-muted); min-height: 3.2em; }

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 0; border-top: 1px solid var(--line);
}
.plans div { padding: 16px 0 0; }
.plans div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.plans dt { font-size: 0.8125rem; color: var(--ink-dim); }
.plans dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.plans small { font-size: 0.8125rem; color: var(--ink-dim); font-weight: 400; margin-left: 2px; }
.plans-note { margin: 16px 0 0; font-size: 0.8125rem; color: var(--ink-dim); }

/* Sections */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 40px; max-width: 40em; }
.section-head h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 600; line-height: 1.1; }
.section-head p { margin: 0; color: var(--ink-muted); }

/* Sites */
.site-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .site-grid { grid-template-columns: 1fr 1fr; } }
.site {
  position: relative; display: flex; flex-direction: column;
  background: var(--ground-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.site:hover { transform: translateY(-2px); }
.site-xing:hover { border-color: var(--silver); }
.site-freeze:hover { border-color: var(--ice); }
.site-logo { width: 56px; height: 56px; border-radius: 12px; margin-bottom: 20px; object-fit: contain; }
.site-freeze .site-logo { background: var(--ice-soft); padding: 8px; }
.site h3 { font-size: 1.5rem; font-weight: 600; }
.site .domain { margin: 2px 0 14px; color: var(--ink-dim); }
.site p:not(.domain) { margin: 0 0 24px; color: var(--ink-muted); }
.go { margin-top: auto; display: inline-flex; gap: 8px; font-weight: 600; font-size: 0.9375rem; }
.go span { transition: transform 0.15s ease; }
.go:hover span { transform: translateX(3px); }
.site .go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.site-xing .go { color: var(--silver); }
.site-freeze .go { color: var(--ice); }

/* Reviews */
.review {
  display: grid; gap: 20px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.review:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 920px) {
  .review { grid-template-columns: 260px 1fr; column-gap: 48px; }
  .review > header { grid-row: span 3; }
}
.review h3 { font-size: 1.375rem; font-weight: 600; }
.review h3::before {
  content: ""; display: inline-block; width: 10px; height: 10px;
  border-radius: 3px; margin-right: 10px; vertical-align: 0.1em;
}
.r-kreflux h3::before { background: var(--ember); }
.r-xing h3::before { background: var(--silver); }
.r-freeze h3::before { background: var(--ice); }
.verdict { margin: 8px 0 0; color: var(--ink-muted); font-size: 1rem; }

.review-body { display: grid; gap: 20px; }
@media (min-width: 640px) { .review-body { grid-template-columns: 1fr 1fr; gap: 32px; } }
.review h4 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); margin-bottom: 10px; }
.review ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.review li { position: relative; padding-left: 18px; color: var(--ink); font-size: 0.9375rem; }
.review li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1px; background: var(--ink-dim); }

.go-if {
  margin: 0; padding: 14px 16px; border-radius: 10px;
  background: var(--ground-raised); border: 1px solid var(--line);
  color: var(--ink-muted); font-size: 0.9375rem;
}
.go-if .mono { color: var(--ink); margin-right: 6px; }
.review .go { justify-self: start; }
.r-kreflux .go { color: var(--ember); }
.r-xing .go { color: var(--silver); }
.r-freeze .go { color: var(--ice); }

/* Short links */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .link-list { grid-template-columns: 1fr 1fr; } }
.link-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--ground-raised);
  transition: border-color 0.15s ease;
}
.link-list a:hover { border-color: var(--line-strong); }
.link-list .mono { color: var(--ink); font-size: 0.875rem; }
.link-list span:last-child { color: var(--ink-dim); font-size: 0.875rem; text-align: right; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-dim); font-size: 0.875rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a:hover { color: var(--ink); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
.lost p { color: var(--ink-muted); margin: 16px 0 28px; }
.lost .cta-row { justify-content: center; }
