/* Marketing page. Tokens only — the SPA stylesheet is not loaded here. */

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -40px;
  z-index: 20;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-md); }

.landing {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.landing .shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.brand-tile {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
}
.brand-tile svg { width: 20px; height: 20px; }
.brand-accent { color: var(--accent); }
.nav-actions { display: flex; gap: var(--space-sm); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Hero */

.hero {
  display: grid;
  gap: var(--space-xl);
  padding: 48px 0 32px;
}
.eyebrow {
  margin: 0 0 var(--space-sm);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  font-weight: 600;
}
.hero .accent { color: var(--accent); }
.lede {
  margin: var(--space-lg) 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

/* Hero media — the real workspace in a browser frame */

.hero-media { min-width: 0; }
.app-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-inset);
  border-bottom: 1px solid var(--border);
}
.app-frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  flex: none;
}
.app-frame-url {
  margin-left: var(--space-sm);
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-frame-media {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
}
.app-frame-toggle {
  position: absolute;
  right: var(--space-sm);
  bottom: var(--space-sm);
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.app-frame-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-media-caption {
  margin: var(--space-sm) 0 0;
  color: var(--muted);
  font-size: 13px;
}
.hero-media-caption a { color: var(--accent); }

/* Providers */

.providers, .features, .steps, .final-cta { padding: 24px 0 8px; }
.providers h2, .features h2, .steps h2, .final-cta h2 {
  margin: 0 0 var(--space-lg);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}
.section-sub {
  margin: calc(-1 * var(--space-sm)) 0 var(--space-lg);
  max-width: 44rem;
  color: var(--muted);
}
.provider-grid {
  display: grid;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.provider-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.provider-tile h3 { margin: 0 0 var(--space-xs); font-size: 1.05rem; font-weight: 600; }
.provider-method {
  margin: 0 0 var(--space-sm);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.provider-tile p { margin: 0; color: var(--muted); }
.provider-tile code {
  background: var(--surface-inset);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.9em;
}
.provider-link {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.provider-link:hover { text-decoration: underline; }
.provider-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.provider-note {
  margin: var(--space-md) 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Features — real workspace stills */

.feature-row {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-xl);
}
.feature-copy h3 { margin: 0 0 var(--space-sm); font-size: 1.15rem; font-weight: 600; }
.feature-copy p { margin: 0; color: var(--muted); }
.feature-media { min-width: 0; }
.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.rail-strip {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.rail-copy h3 { margin: 0 0 var(--space-sm); font-size: 1.15rem; font-weight: 600; }
.rail-copy p { margin: 0; color: var(--muted); }
.rail-media { min-width: 0; }
.rail-media img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Steps, final CTA, footer */

.step-grid {
  display: grid;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.step-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.step-grid h3 { margin: var(--space-sm) 0; font-size: 1.05rem; font-weight: 600; }
.step-grid p, .final-cta p { margin: 0; color: var(--muted); }

.final-cta {
  margin: var(--space-xl) auto 48px;
  padding: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.final-cta p { margin: 0 0 var(--space-lg); max-width: 36rem; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0 calc(var(--space-xl) + env(safe-area-inset-bottom));
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-row p { margin: 0; color: var(--muted); }
.footer-row nav { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.footer-row a { color: var(--text); }

/* Legal pages (privacy / terms share this sheet) */

.legal {
  padding: 32px 0 64px;
}
.legal h1 { font-size: 2rem; font-weight: 600; margin: 0 0 var(--space-md); }
.legal h2 { font-size: 1.15rem; font-weight: 600; margin: var(--space-xl) 0 var(--space-sm); }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent); }

/* Reveal on scroll (JS-gated; no-JS renders everything) */

html.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 399px) {
  .nav-actions .ghost { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (min-width: 640px) {
  .step-grid { grid-template-columns: repeat(3, 1fr); }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-row { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 0.9fr 1.1fr; align-items: center; padding-top: 72px; }
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-row { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-xl); }
  .feature-row.flip .feature-copy { order: 2; }
  .feature-row.flip .feature-media { order: 1; }
  .rail-strip { grid-template-columns: 1fr auto; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
