:root {
  --red: #cc0000;
  --red-dark: #a80000;
  --ink: #0f0f0f;
  --muted: #606060;
  --bg: #ffffff;
  --bg-soft: #f9f9f9;
  --border: #e5e5e5;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Nav ---- */
.nav {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.nav .brand .logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.nav .links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

/* ---- Hero ---- */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero .badge {
  display: inline-block;
  font-size: 12px;
  color: var(--red);
  background: #fdecea;
  border: 1px solid #f6c8c2;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: white;
}

.btn-primary:hover {
  background: var(--red-dark);
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

/* ---- Mock preview ---- */
.preview {
  margin: 40px auto 0;
  max-width: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
}

.preview .preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.preview .preview-header strong {
  font-size: 14px;
}

.preview .switch {
  width: 34px;
  height: 18px;
  border-radius: 20px;
  background: var(--red);
  position: relative;
}

.preview .switch::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
}

.preview .preview-body {
  padding: 14px 16px;
  font-size: 12.5px;
}

.preview .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.preview .row:last-child {
  border-bottom: none;
}

.preview .chip {
  background: #f1f1f1;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--muted);
}

/* ---- Sections ---- */
section {
  padding: 48px 0;
}

section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2.section-title {
  font-size: 26px;
  margin: 0 0 8px;
  text-align: center;
}

p.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: white;
}

.feature-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fdecea;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

/* ---- Steps ---- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: white;
}

.step .num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.step code {
  background: #f1f1f1;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12.5px;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---- Footer ---- */
footer {
  padding: 32px 0 48px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer .foot-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 30px;
  }
}

/* ---- Legal / prose pages ---- */
.legal {
  max-width: 720px;
  padding-top: 8px;
  padding-bottom: 16px;
}

.legal h2 {
  font-size: 20px;
  margin: 32px 0 10px;
}

.legal h2:first-of-type {
  margin-top: 8px;
}

.legal p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
}

.legal li {
  margin-bottom: 6px;
}

.legal code {
  background: #f1f1f1;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--ink);
}
