/* RepCore website — black, white and the logo's green. Mobile first. */
:root {
  --bg: #000000;
  --surface: #111317;
  --surface-2: #181b20;
  --line: #262a31;
  --text: #f4f5f7;
  --muted: #9ba3ae;
  --green: #b6f23a;
  --green-deep: #46b400;
  --green-grad: linear-gradient(135deg, #d4ff3d 0%, #8fe000 45%, #46b400 100%);
  --ink-on-green: #0a0d05;
  --radius: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
[id] { scroll-margin-top: 84px; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #d4ff3d; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--ink-on-green); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand img { width: 40px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--green-grad); color: var(--ink-on-green); }
.btn-primary:hover { color: var(--ink-on-green); filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: #3a404a; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding-block: 64px; }
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 .accent { background: var(--green-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: #c9ced6; max-width: 34em; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.hero-logo { justify-self: center; width: min(460px, 90%); filter: drop-shadow(0 20px 60px rgba(143, 224, 0, 0.18)); }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(182, 242, 58, 0.12); color: var(--green); font-size: 20px; margin-bottom: 14px; }

.split { display: grid; gap: 16px; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.who { border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.who.pays { border-color: rgba(182, 242, 58, 0.45); background: linear-gradient(180deg, rgba(182, 242, 58, 0.08), var(--surface)); }
.who ul { margin: 12px 0 0; padding-left: 1.2em; }
.who li { margin-bottom: 6px; }

/* Pricing */
.plans { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.plan .tag { position: absolute; top: -12px; left: 22px; background: var(--green-grad); color: var(--ink-on-green); font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.plan .price { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .yearly { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.plan ul { margin: 6px 0 0; padding-left: 1.2em; color: #c9ced6; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-grad); color: var(--ink-on-green); font-weight: 800; margin-bottom: 12px; }

/* Documents (privacy, terms, support, delete account) */
.doc { padding-block: 48px 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 1.6em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.doc .updated { color: var(--muted); font-size: 0.95rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0 8px; }
.toc ol { margin: 8px 0 0; columns: 2 220px; }
.callout { background: var(--surface-2); border-left: 4px solid var(--green); border-radius: 8px; padding: 16px 18px; margin: 1.2em 0; }
.table-wrap { overflow-x: auto; margin: 1em 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 8px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 18px; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.credits { font-size: 0.85rem; }
