/* repo-rt.dev landing page. Layout: one centred column; the flat gold mark with its flowing dots opens it, the rest is quiet.
   Colours: the dashboard's dark theme (frontend/src/styles/tokens.css), one look only. */
:root {
  --bg:#1c1d20; --surface:#26272b; --sunken:#151618;
  --ink:#ededf0; --ink-2:#c2c3c9; --muted:#93949b;
  --line:rgba(255,255,255,.09); --line-strong:rgba(255,255,255,.22);
  --accent:#d9b24c; --accent-soft:rgba(217,178,76,.16); --accent-ink:#1c1d20;
  --sans:"Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; }
.word { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 17px; text-decoration: none; }
.word svg { color: var(--accent); }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav a { text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.top nav a:hover { color: var(--ink); background: rgba(255,255,255,.06); }

.hero { text-align: center; padding-block: 8px 56px; }
.stage { position: relative; height: 380px; margin: 0 auto; max-width: 720px; touch-action: pan-y; }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage .fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .fallback[hidden], .stage canvas[hidden] { display: none; }
h1 { font-size: clamp(40px, 7vw, 64px); letter-spacing: -.03em; line-height: 1.02; margin: 22px 0 14px; font-weight: 650; text-wrap: balance; }
.lede { max-width: 620px; margin: 0 auto; color: var(--ink-2); font-size: 18.5px; line-height: 1.55; text-wrap: balance; }
.actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--line-strong); color: var(--ink); transition: transform .15s ease, background .15s ease; }
.btn:hover { background: rgba(255,255,255,.06); transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { background: #e6c162; }

.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
section.block { padding-block: 56px; border-top: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; margin: 0 0 12px; font-weight: 650; text-wrap: balance; max-width: 760px; }
.sub { color: var(--ink-2); max-width: 640px; margin: 0 0 30px; }

.grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.grade { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-width: 0; }
.grade .top2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.grade .letter { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-weight: 700; flex: none; }
.grade .letter.none { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); }
.grade .fig { font-size: 26px; font-weight: 650; margin-top: 14px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.grade .what { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.example { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; }
.point h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; letter-spacing: -.01em; }
.point p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.point code { font-family: var(--mono); font-size: .88em; color: var(--ink); background: var(--sunken); padding: 1px 6px; border-radius: 5px; }


.cta { text-align: center; }
.cta h2 { margin-left: auto; margin-right: auto; }
.cta .sub { margin-left: auto; margin-right: auto; }

footer { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); }
footer nav { display: flex; gap: 18px; }

@media (max-width: 860px) {
  .grades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .stage { height: 300px; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .top nav a.hide-sm { display: none; }
  .hero { padding-block: 0 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Former inline styles, as classes, so the page needs no unsafe-inline. */
.u1 { margin-top:28px !important; }
.u2 { margin-top:0 !important; }
.lede b { color: var(--ink); font-weight: 600; }
.notfound { padding-block: 72px 96px; }

/* The hero: the mark on the left, the title and text beside it; stacked on phones. */
.hero.split { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 44px; align-items: center; text-align: left; padding-block: 28px 64px; }
.hero.split .stage { height: 420px; max-width: none; margin: 0; }
.hero.split h1 { font-size: clamp(36px, 5.2vw, 58px); margin: 0 0 20px; }
.hero.split .lede { margin: 0 0 14px; max-width: 580px; font-size: 18px; text-wrap: pretty; }
.hero.split .actions { justify-content: flex-start; margin-top: 26px; }
.kicker { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) {
  .hero.split { grid-template-columns: minmax(0, 1fr); gap: 4px; text-align: center; padding-block: 0 44px; }
  .hero.split .stage { height: 270px; }
  .hero.split .lede { margin-left: auto; margin-right: auto; }
  .hero.split .actions { justify-content: center; }
}
.hero.split .lede.source { font-size: 15px; color: var(--muted); }

/* The "why" section: running text, the big-picture issues as tags. */
.prose { max-width: 700px; }
.prose p { margin: 0 0 18px; color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.prose p.punch { color: var(--ink); }
.prose p.punch b { color: var(--accent); font-weight: 600; }
.issues { list-style: none; padding: 0; margin: -4px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.issues li { font-size: 13.5px; color: var(--ink); border: 1px solid rgba(217,178,76,.3); border-radius: 999px; padding: 5px 13px; background: var(--surface); }
.why h2 { margin-bottom: 22px; }
.prose p.lead-in { color: var(--ink); margin-bottom: 12px; }
.surprises { list-style: none; margin: 0; padding: 18px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.surprises li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.surprises li::before { content: ""; position: absolute; left: 0; top: .48em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(217,178,76,.45); }
@media (max-width: 600px) { .surprises { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; } }
.surprises li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Get started: two paths side by side, numbered steps, commands in code blocks. */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; display: flex; flex-direction: column; }
.path h3 { font-size: 18px; margin: 0 0 18px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.path .tag { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.path ol { list-style: none; counter-reset: st; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.path li { counter-increment: st; position: relative; padding-left: 36px; color: var(--ink-2); font-size: 15px; line-height: 1.55; min-width: 0; }
.path li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 12px/24px var(--mono); text-align: center; }
.path li b { color: var(--ink); font-weight: 600; }
.path li a { color: var(--ink); }
.path pre { margin: 9px 0 0; font: 12.5px/1.55 var(--mono); background: var(--sunken); border-radius: 9px; padding: 10px 12px; overflow-x: auto; color: var(--ink); }
.path .note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.path .btn { align-self: flex-start; margin-top: 22px; }
.more { margin: 20px 0 0; }
.more a { color: var(--accent); text-decoration: none; font-weight: 600; }
.more a:hover { text-decoration: underline; }
@media (max-width: 760px) { .paths { grid-template-columns: minmax(0, 1fr); } .path { padding: 18px; } }
.path pre { white-space: pre-wrap; overflow-wrap: anywhere; }
