/* FreeTheAdmin landing page. Plain CSS, no external files, no fonts to download.
   Colours are tokens on :root; dark mode follows the system setting. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1f24;
  --muted: #566070;
  --line: #e2e0da;
  --accent: #1d6b59;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0eb;
  --warn: #8c4319;
  --warn-soft: #f8ebe2;
  --radius: 14px;
  --max: 56rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1d2025;
    --text: #e9e8e4;
    --muted: #a9afb8;
    --line: #2f343b;
    --accent: #7fd0b5;
    --accent-ink: #0e1512;
    --accent-soft: #1e3a31;
    --warn: #f2ab84;
    --warn-soft: #3a2a20;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); }

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

section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6.5vw, 3.1rem); margin: 0.2em 0 0.4em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0 0 0.5em; }
h3 { font-size: 1.22rem; margin: 0.2em 0 0.4em; }
p { margin: 0 0 1em; }

.subtitle { font-size: 1.35rem; font-weight: 600; margin-top: -0.4rem; }
.lede { font-size: 1.14rem; color: var(--muted); }
.small { font-size: 0.92rem; color: var(--muted); }
.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.6em;
}

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.brand { font-weight: 800; text-decoration: none; color: var(--text); font-size: 1.05rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); text-decoration: underline; }
.lang { font-weight: 600; }

/* Hero */
.hero { padding: 24px 0 56px; border-top: 0; }
.hero-grid { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.btn {
  display: inline-block;
  padding: 0.78rem 1.2rem;
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 1rem;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.illustration { width: 100%; max-width: 520px; margin: 0 auto; }
.ill-paper { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.ill-ink { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; }
.ill-head { fill: var(--line); }
.ill-accent { fill: var(--accent); }
.ill-accent-line { stroke: var(--accent); stroke-width: 2; fill: none; }
.ill-soft { fill: var(--accent-soft); }
.ill-grid { stroke: var(--line); stroke-width: 1; }
.ill-text { fill: var(--text); font: 600 12px system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.ill-text-muted { fill: var(--muted); font: 600 12px system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.ill-bar { fill: var(--line); }

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 10px;
}
.step h3 { margin-top: 0; }
.step p { margin: 0; color: var(--muted); }

/* Examples */
.cards { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.card p { color: var(--muted); }
.mini-wrap { overflow-x: auto; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 10px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
table.mini th, table.mini td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); }
table.mini th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--bg); }
table.mini tr.new td { background: var(--accent-soft); }
table.mini tr:last-child td { border-bottom: 0; }
dl.checks { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
dl.checks dt, dl.checks dd { margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
dl.checks dd { text-align: right; white-space: nowrap; }
dl.checks dt:last-of-type, dl.checks dd:last-of-type { border-bottom: 0; }
dl.checks .total { font-weight: 700; background: var(--accent-soft); }
.ok { color: var(--accent); font-weight: 700; }
.doubt {
  margin: 12px 0 0;
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.92rem;
}

/* Privacy and safety */
.two { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.panel h3 { margin-top: 0; }
.panel ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.panel li + li { margin-top: 0.5em; }
.panel p { color: var(--muted); }
.never-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.never-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.never-list strong { display: block; margin-bottom: 2px; }
.never-list span { color: var(--muted); }

/* Pricing */
.price-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.stack { display: grid; gap: 18px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.price-main { border-color: var(--accent); }
.price {
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  margin: 6px 0 10px;
  letter-spacing: -0.02em;
}
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-main ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); }
.price-main li + li { margin-top: 0.35em; }
table.credits { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 0.97rem; font-variant-numeric: tabular-nums; }
table.credits th, table.credits td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.credits td:last-child, table.credits th:last-child { text-align: right; white-space: nowrap; }
table.credits tr:last-child td { border-bottom: 0; }
.fine { font-size: 0.92rem; color: var(--muted); margin-top: 14px; }

/* Platforms */
.platform-list { display: grid; gap: 14px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Waitlist */
.waitlist-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.waitlist-box form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.optional { font-weight: 400; color: var(--muted); }
.consent { font-size: 0.92rem; color: var(--muted); margin: 0; }
.waitlist-box button { justify-self: start; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer p { margin: 0 0 0.6em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Wider screens */
@media (min-width: 640px) {
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .never-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .never-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

@media (max-width: 380px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
}
