/* Shared styles for the static pages: about, privacy, terms */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --border: rgba(0, 0, 0, 0.08);
  --surface: rgba(0, 0, 0, 0.035);
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.07);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d;
    --fg: #e8e8e8;
    --muted: #9a9a9a;
    --border: rgba(255, 255, 255, 0.09);
    --surface: rgba(255, 255, 255, 0.05);
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --accent-soft: rgba(96, 165, 250, 0.08);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0d0d;
  --fg: #e8e8e8;
  --muted: #9a9a9a;
  --border: rgba(255, 255, 255, 0.09);
  --surface: rgba(255, 255, 255, 0.05);
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-soft: rgba(96, 165, 250, 0.08);
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted);
}

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

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface);
  padding: 1px 5px;
  border-radius: 4px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.wordmark {
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.topbar-link {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.hero {
  padding: 56px 0 40px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
.display {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1.eyebrow {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.6;
}

.fade-demo {
  animation: fade-demo 4s ease-in-out infinite;
}

@keyframes fade-demo {
  0%, 30% { opacity: 1; }
  70%, 85% { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-demo { animation: none; opacity: 0.4; }
}

.lead {
  margin: 20px 0 0;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34em;
}

.lead strong {
  color: var(--fg);
  font-weight: 600;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  background: var(--accent);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  color: #ffffff;
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

h2 {
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

section > p {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.steps li {
  display: flex;
  gap: 14px;
}

.step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
}

.steps li:nth-child(2) .step-num { opacity: 0.75; }
.steps li:nth-child(3) .step-num { opacity: 0.5; }
.steps li:nth-child(4) .step-num { opacity: 0.3; }

.steps strong {
  display: block;
  font-weight: 600;
}

.steps span {
  color: var(--muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.card h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.mode-time {
  display: block;
  margin: 6px 0 2px;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.card.accent {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* FAQ */
details {
  border-bottom: 1px solid var(--border);
}

details:first-of-type {
  border-top: 1px solid var(--border);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 0 0 16px;
  color: var(--muted);
}

footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

footer a {
  text-decoration: none;
}

/* ── Legal pages (privacy, terms) ── */

.doc-hero {
  padding: 56px 0 32px;
}

.doc-hero h1 {
  font-style: normal;
}

.doc-meta {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-hero .lead {
  font-size: 1.05rem;
}

.prose section {
  padding: 28px 0;
}

.prose h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--fg);
}

.prose p {
  margin: 0 0 12px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.prose li {
  margin: 6px 0;
}

.prose li::marker {
  color: var(--muted);
}

.prose .cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 4px;
}

.prose .card h3 {
  font-size: 0.9rem;
}
