*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --text: #e8e8e8;
  --muted: #888888;
  --accent: #ff4444;
  --accent-hover: #ff2222;
  --focus-ring: #ff444466;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Focus styles ── */

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

/* ── Skip nav ── */

.skip-nav {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.skip-nav:focus {
  left: 1rem;
}

/* ── Layout ── */

.site-header {
  padding: 2rem 1.5rem 0;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.site-header .wordmark {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-header .wordmark a {
  color: inherit;
}

.site-header .wordmark a:hover {
  color: var(--text);
  text-decoration: none;
}

main {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  width: 100%;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

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

footer .sep {
  margin: 0 0.5rem;
  opacity: 0.4;
}

/* ── Animations ── */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.5s ease-out forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ── Landing: Hero ── */

.hero {
  padding-top: 4rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.cta-btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.cta-btn:active { transform: translateY(0); }

/* ── Landing: Features ── */

.features {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.feature-body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.feature-body span {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Landing: Section titles ── */

.section-title {
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

/* ── Landing: How it works ── */

.steps {
  margin-top: 4rem;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.step-body span {
  font-size: 0.875rem;
  color: var(--muted);
}

.step-body a {
  color: var(--accent);
}

/* ── Landing: FAQ ── */

.faq {
  margin-top: 4rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item p {
  padding: 0 1.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Policy pages ── */

.policy-title {
  margin-bottom: 0.5rem;
  margin-top: 2.5rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.policy-updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.policy-body h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.policy-body h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.policy-body p {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #cccccc;
}

.policy-body ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.policy-body li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #cccccc;
  margin-bottom: 0.3rem;
}

.policy-body code {
  font-family: monospace;
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

.policy-body .scope-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.policy-body .scope-block .scope-url {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.policy-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.contact-box {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Responsive ── */

@media (max-width: 480px) {
  main { padding: 2rem 1rem 3rem; }
  .hero { padding-top: 2.5rem; }
  .feature { padding: 1rem; }
  .step { padding: 1rem; }
  .faq-item summary { padding: 0.85rem 1rem; }
  .faq-item p { padding: 0 1rem 0.85rem; }
}
