/* The public pages at real addresses (/how-it-works/, /faq/, ...): plain
   HTML that search engines and link previews can read. Same look as the app
   (src/styles.css tokens), no JavaScript. */

:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #e3e6eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #059669;
  --accent-hover: #047857;
  --on-accent: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-btn: 12px;
  --nav-h: 56px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14;
    --surface: #121821;
    --surface-2: #19212c;
    --border: #243040;
    --text: #e6edf3;
    --muted: #8b98a9;
    --accent: #34d399;
    --accent-hover: #6ee7b7;
    --on-accent: #052e22;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 16px rgb(0 0 0 / 30%);
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  font: 0.9em var(--mono);
}

/* ------------------------------------------------------------------ header */
/* the same bar as the app's navbar (src/app/navbar/navbar.component.css) */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
}

.brand-mark svg {
  width: 12px;
  height: 13px;
}

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

.links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.links a:hover,
.links a[aria-current] {
  color: var(--text);
  text-decoration: none;
}

.links a.nav-cta {
  margin-left: 8px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  white-space: nowrap;
}

.links a.nav-cta:hover {
  background: var(--accent-hover);
}

/* phones: the app button and FAQ; "How it works" is in the footer too */
@media (max-width: 480px) {
  .links a[href="/how-it-works/"] {
    display: none;
  }

  .links a {
    padding: 8px;
  }
}

/* -------------------------------------------------------------------- main */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.hero {
  padding: 7vh 0 24px;
  text-align: center;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

p {
  margin: 0 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 17px;
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn.ghost {
  background: none;
  color: var(--accent);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

/* numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li,
.card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 14px;
}

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

.card p:last-child {
  margin: 0;
}

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

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

summary {
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
}

details p {
  color: var(--muted);
}

/* ------------------------------------------------------------------ footer */

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

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

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