/*
 * Styles for the static marketing pages.
 *
 * Kept separate from the app bundle on purpose: these pages ship no JavaScript
 * at all, and this file is ~4 KB, so the landing page paints from a single
 * render-blocking request. Values mirror the app's dark theme.
 */

:root {
  --bg: #0f1419;
  --bg-panel: #161c24;
  --bg-elevated: #1e2630;
  --border: #2a3440;
  --text: #e6edf3;
  --text-dim: #8b98a5;
  --accent: #38bdf8;
  --warning: #f59e0b;
  --radius: 8px;
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

html {
  /* Anchor links must not hide behind the sticky header. */
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(22, 28, 36, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  font-size: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 22px);
  font-size: 14.5px;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

/* ---------------- Layout ---------------- */
main {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 40px) 64px;
}

section {
  margin-bottom: clamp(36px, 6vw, 60px);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 5.2vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.3;
}

h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
}

p {
  max-width: var(--measure);
  margin: 0 0 14px;
}

.lead {
  font-size: clamp(17px, 2.2vw, 19px);
  color: var(--text-dim);
}

a {
  color: var(--accent);
}

/* ---------------- Hero ---------------- */
.hero-shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  max-width: none;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06202b;
  font-weight: 600;
}

.btn-small {
  padding: 6px 14px;
  font-size: 14px;
}

/* ---------------- Lists ---------------- */
.feature-list,
.faq-teaser {
  max-width: var(--measure);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 22px;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.steps {
  max-width: var(--measure);
  margin: 0;
  padding-left: 22px;
}

.steps li {
  margin-bottom: 16px;
}

.steps p {
  margin: 0;
  color: var(--text-dim);
}

.faq-teaser li {
  margin-bottom: 18px;
}

.faq-teaser p {
  margin: 0;
  color: var(--text-dim);
}

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

.faq-item h2 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
  color: var(--text-dim);
}

/* ---------------- Callout ---------------- */
.callout {
  padding: 20px 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.callout.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
}

.callout h2 {
  font-size: 18px;
}

.callout p {
  margin: 0;
  color: var(--text-dim);
}

/* ---------------- App store placeholders ---------------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: none;
}

.badge-placeholder {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--bg-panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  padding: 24px clamp(16px, 4vw, 40px) 36px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13.5px;
  text-align: center;
}

.site-footer p {
  max-width: none;
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.attribution {
  font-size: 12px;
  opacity: 0.75;
}

/* ---------------- Motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
