/* rioSpoofer site — simple, hand-built, mobile-first */
:root {
  --green: #2f9e44;
  --green-deep: #1b5e20;
  --green-ink: #1c6b2c;
  /* Button fill: fixed in both themes so white text stays high-contrast */
  --btn-bg: #237a37;
  --btn-bg-hover: #2b9042;
  --bg: #ffffff;
  --surface: #f5f8f5;
  --surface-2: #eef3ee;
  --border: #e2e8e2;
  --ink: #16211a;
  --muted: #59695e;
  --radius: 14px;
  --maxw: 940px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #4cc061;
    --green-deep: #2e7d32;
    --green-ink: #7fd68e;
    --bg: #0d1310;
    --surface: #151d18;
    --surface-2: #1b2620;
    --border: #26332b;
    --ink: #e9f1eb;
    --muted: #9db0a4;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-ink); }

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--btn-bg);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: transform .06s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 8px 14px; font-size: 0.92rem; border-radius: 9px; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); filter: none; }

/* ---------- Hero ---------- */
.hero { padding: 62px 0 44px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.hero .lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-art svg { width: 168px; height: 168px; border-radius: 38px; box-shadow: 0 12px 32px -14px rgba(20,33,26,.35); display: block; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 999px;
}

.note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 60ch;
}

/* ---------- Sections ---------- */
section { padding: 46px 0; border-top: 1px solid var(--border); }
.section-head { margin-bottom: 26px; }
.section-head h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.section-head p { color: var(--muted); margin: 0; }

/* Spec-sheet layout: no cards, no borders, just a hairline rule per group */
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 30px;
}
.spec { padding-top: 18px; border-top: 2px solid var(--ink); }
.spec h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.spec ul { margin: 0; padding-left: 18px; color: var(--muted); }
.spec li { margin: 5px 0; }
.spec li b { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 26px;
}
.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--green-ink);
  letter-spacing: -0.01em;
}
.faq-item p { margin: 0; color: var(--muted); }

/* Closing band */
.closing { text-align: left; }
.closing h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.closing p { color: var(--muted); margin: 0 0 20px; }

/* ---------- Install steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 46px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 11px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--surface-2);
  color: var(--green-ink);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}
.steps code {
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

/* ---------- Contact ---------- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 520px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
  margin: 6px 0 4px;
  word-break: break-all;
}
.contact-email:hover { color: var(--green-ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 40px 0 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { order: -1; }
  .hero-art svg { width: 120px; height: 120px; border-radius: 28px; }
  .specs, .faq { grid-template-columns: 1fr; column-gap: 0; }
  .nav a[data-desktop] { display: none; }
}
