@font-face { font-family: Archivo; src: url(/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --sky: #dcebfa; --paper: #f8fbff; --ink: #0e1b3d; --muted: #4e5e80; --line: #b9cfe8;
  --yolk: #ffc93c; --yolk-deep: #f2b100; --shadow: #0e1b3d; --code: #0e1b3d; --code-ink: #e6eeff; --danger: #b42318;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky: #0c1530; --paper: #121d3f; --ink: #eaf1ff; --muted: #9db0d8; --line: #26366c;
    --code: #070d20; --code-ink: #dce6ff; --danger: #ff8a7a; --shadow: #2b3d78; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 17px/1.55 Archivo, ui-sans-serif, system-ui, sans-serif; font-stretch: 100%; }
a { color: inherit; text-underline-offset: 3px; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--yolk-deep); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.display { font-stretch: 125%; font-weight: 820; letter-spacing: -0.015em; line-height: 0.98; margin: 0; }
h1.display { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-stretch: 118%; font-weight: 760; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.01em; line-height: 1.08; margin: 0 0 14px; }
h3 { font-stretch: 110%; font-weight: 700; font-size: 1.15rem; margin: 0 0 6px; }
p { margin: 0 0 14px; max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin-top: 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; max-width: 1120px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-stretch: 125%; font-weight: 820; font-size: 1.2rem; letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* controls */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink); border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 700; background: var(--yolk); color: #0e1b3d; text-decoration: none; cursor: pointer; transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.quiet { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn.small { padding: 7px 14px; font-size: 0.9rem; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
input, select { font: inherit; color: inherit; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 11px 14px; width: 100%; min-width: 0; }
input:focus { border-color: var(--ink); outline: none; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
label .muted { font-weight: 400; }

pre, code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88rem; }
.code { position: relative; background: var(--code); color: var(--code-ink); border-radius: 16px; padding: 18px 18px; overflow-x: auto; margin: 0 0 12px; line-height: 1.5; }
.code pre { margin: 0; white-space: pre-wrap; word-break: break-word; padding-right: 70px; }
.code .copy { position: absolute; top: 10px; right: 10px; background: var(--yolk); color: #0e1b3d; border: 0; border-radius: 999px; padding: 5px 12px; font: 600 0.8rem Archivo, sans-serif; cursor: pointer; }

/* hero */
.hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; padding: 56px 20px 80px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; } }

/* the line: the one loud element */
.line { background: var(--paper); border: 2px solid var(--ink); border-radius: 26px; padding: 18px 18px 20px; box-shadow: 8px 8px 0 var(--shadow); }
.line-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 12px; font-size: 0.9rem; color: var(--muted); }
.rows { position: relative; height: calc(var(--n, 6) * 54px); }
.row { position: absolute; left: 0; right: 0; height: 46px; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); transform: translateY(calc(var(--rank) * 54px)); transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s; }
.row .pos { font-stretch: 125%; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.15rem; }
.row .who { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .refs { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row.you { background: var(--yolk); border-color: var(--ink); color: #0e1b3d; z-index: 1; }
.row.you .who, .row.you .refs { color: #0e1b3d; }
.line-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; padding: 0 4px; }
@media (prefers-reduced-motion: reduce) { .row { transition: none; } .btn { transition: none; } }

/* sections */
.section { border-top: 2px solid var(--line); padding: 72px 0; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .section { padding: 56px 0; } }

.create { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 24px; }
@media (max-width: 900px) { .create { grid-template-columns: 1fr; } }
.result { margin-top: 28px; background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; padding: 24px; }
.result h3 { font-size: 1.4rem; }
.warn { background: var(--yolk); color: #0e1b3d; border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.error { color: var(--danger); font-weight: 600; margin-top: 12px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); font-stretch: 125%; font-weight: 800; margin-bottom: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.guards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.guards li { padding-left: 30px; position: relative; max-width: 60ch; }
.guards li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 4px; background: var(--yolk); border: 2px solid var(--ink); }

.plans { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.plan { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 2px solid var(--line); }
.plan .price { font-stretch: 125%; font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.plan .price small { display: block; font-stretch: 100%; font-weight: 500; font-size: 0.9rem; color: var(--muted); }
.plan p { margin: 0; color: var(--muted); }
.plan.featured { background: linear-gradient(90deg, var(--yolk) 0 8px, transparent 8px); padding-left: 24px; }
.left { display: inline-block; margin-top: 6px; font-weight: 700; font-size: 0.9rem; }
@media (max-width: 760px) { .plan { grid-template-columns: 1fr; gap: 10px; } }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 28px 0 0; }
.numbers div { border-top: 2px solid var(--ink); padding-top: 10px; }
.numbers dt { color: var(--muted); font-size: 0.9rem; }
.numbers dd { margin: 0; font-stretch: 125%; font-weight: 800; font-size: 2rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .numbers { grid-template-columns: repeat(2, 1fr); } }

details { border-bottom: 2px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style-position: outside; }
details p { margin: 10px 0 0; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; gap: 22px; padding: 32px 20px 48px; max-width: 1120px; margin: 0 auto; color: var(--muted); font-size: 0.92rem; border-top: 2px solid var(--line); }
.foot a { color: var(--muted); }
.foot .grow { flex: 1; }

/* docs, legal, admin */
.doc main { max-width: 820px; margin: 0 auto; padding: 24px 20px 64px; }
.prose h1 { font-stretch: 125%; font-weight: 820; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.02; margin: 16px 0 20px; }
.prose h2 { font-size: 1.4rem; margin-top: 36px; }
.prose li { margin: 4px 0; max-width: 64ch; }
.draft { background: var(--yolk); color: #0e1b3d; border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.llms { white-space: pre-wrap; word-break: break-word; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 24px; font-size: 0.9rem; line-height: 1.6; }

.panel { background: var(--paper); border: 2px solid var(--line); border-radius: 20px; padding: 22px; margin: 0 0 20px; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; }
.stats b { display: block; font-stretch: 125%; font-weight: 800; font-size: 1.8rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
ol.how { padding-left: 22px; margin: 8px 0 16px; max-width: 62ch; }
ol.how li { margin: 6px 0; padding-left: 4px; }
#r-check-status { max-width: 62ch; }
.site-status { padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); margin: 0 0 14px; }
.site-status.ok { border-color: var(--ink); background: var(--yolk); color: #0e1b3d; }
.follow { margin-top: 44px; max-width: 600px; }
.hidden { display: none !important; }
