/*
 * Landing-page-only styles, loaded by index.html alongside the shared
 * styles.css tokens (--bg, --text, --accent, etc.). privacy.html/terms.html
 * don't load this file — they only need the shared chrome tokens.
 */

:root {
  --brand-deep: #1e4fb0;
  --stop: #ff6259;
  --caution: #f5b44d;
  --radius-action: 28px;
  --shadow-glow: 0 20px 60px -20px rgba(61, 139, 255, 0.45);
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body.landing {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

.landing h1,
.landing h2,
.landing h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0;
}

.landing .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}
@media (max-width: 640px) {
  .landing .wrap { padding: 0 20px; }
}

.landing .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.landing .eyebrow::before {
  content: '';
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- Nav ---------- */
.l-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 28, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.l-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.l-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.l-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.l-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.l-nav-links a.l-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.l-nav-links a.l-link:hover {
  color: var(--accent-bright);
}
.l-nav-cta {
  background: linear-gradient(180deg, var(--accent), var(--brand-deep));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: transform 0.15s;
  font-family: inherit;
}
.l-nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 760px) {
  .l-nav-links a.l-link { display: none; }
}

/* ---------- Hero ---------- */
.l-hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.l-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.l-glow.a { width: 640px; height: 640px; top: -260px; left: -160px; background: radial-gradient(circle, rgba(61,139,255,0.30), transparent 70%); }
.l-glow.b { width: 520px; height: 520px; bottom: -260px; right: -160px; background: radial-gradient(circle, rgba(61,139,255,0.18), transparent 70%); }
.l-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .l-hero-grid { grid-template-columns: 1fr; } }

.l-hero-copy { max-width: 580px; }
.l-hero-word {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(58px, 9vw, 124px);
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-bright) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 44px rgba(61, 139, 255, 0.4));
}
.l-hero-byline { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #6c7c9c; }
.l-hero-byline strong { color: var(--text-muted); font-weight: 700; letter-spacing: 0.02em; }
.l-tagline-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  padding: 8px 16px; border-radius: 999px; background: rgba(61, 139, 255, 0.12);
  border: 1px solid rgba(61, 139, 255, 0.4); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-bright);
}
.l-hero h2.l-headline {
  margin-top: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text);
  font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15;
}
.l-hero-lede { margin-top: 18px; font-size: 17.5px; line-height: 1.65; color: var(--text-muted); max-width: 480px; }
.l-hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.l-btn-primary {
  display: inline-flex; align-items: center; gap: 10px; font-family: inherit;
  background: linear-gradient(180deg, var(--accent), var(--brand-deep));
  color: #fff; border: none; border-radius: var(--radius-action);
  padding: 16px 26px; font-weight: 700; font-size: 16px; box-shadow: var(--shadow-glow);
  transition: transform 0.15s; cursor: pointer; text-decoration: none;
}
.l-btn-primary:hover { transform: translateY(-2px); }
.l-btn-ghost {
  background: transparent; border: 1.5px solid var(--border); color: var(--text);
  border-radius: var(--radius-action); padding: 15px 24px; font-weight: 700; font-size: 15.5px;
  transition: border-color 0.15s, background 0.15s; text-decoration: none; display: inline-block;
}
.l-btn-ghost:hover { border-color: var(--accent); background: var(--surface); }

.l-trust-row { display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); }
.l-trust-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.l-trust-item svg { width: 16px; height: 16px; color: var(--mint); flex-shrink: 0; }

/* ---------- Phone mockup (real screenshots) ---------- */
.l-phone-stage { display: flex; justify-content: center; position: relative; }
.l-phone-stage::before {
  content: ''; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,139,255,0.28), rgba(61,139,255,0) 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0;
}
.l-phone {
  position: relative; z-index: 1; width: 290px; height: 592px; background: #0e1220;
  border: 1px solid rgba(255,255,255,0.14); border-radius: 46px; padding: 14px;
  box-shadow: 0 40px 90px -24px rgba(0,0,0,0.7), 0 0 0 1px rgba(61,139,255,0.08);
}
.l-phone-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%); display: flex; flex-direction: column; }
.l-phone-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* Screenshots carry a dev-build status bar (carrier text left over from the
   QR-scan launch flow) — masked with a clean rendered one, the same trick
   App Store marketing screenshots use. Sized to clear only that artifact
   (~28px at this frame's ~0.224x scale of the 1170x2532 source) and stop
   well short of the triage screenshot's own header, which sits close to the
   top of that particular screen. */
.l-phone-mask { position: absolute; top: 0; left: 0; right: 0; height: 36px; background: #f4f7fb; z-index: 2; }
.l-phone-statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 36px; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 22px 4px; font-size: 12px; font-weight: 700; color: #1a2130;
}
.l-phone-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #0e1220; border-radius: 14px; z-index: 5; }
.l-phone-home-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 110px; height: 4px; border-radius: 3px; background: rgba(26,33,48,0.35); z-index: 4; }

/* ---------- Hero phone — CSS recreation of the home screen (not a
   screenshot), so no dev-only UI (e.g. the __DEV__-gated "Reset onboarding"
   link) ever ships to the public site. Colors are the app's own calm-system
   tokens (constants/theme.ts), not the site's dark palette — this is a
   faithful miniature of the actual light-only app screen. ---------- */
.l-ph-statusbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px 0; font-size: 13px; font-weight: 700; color: #1a2130; flex-shrink: 0; }
.l-ph-body { flex: 1; padding: 22px 18px 30px; display: flex; flex-direction: column; }
.l-ph-hero { text-align: center; margin-top: 8px; }
.l-ph-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: #1e4fb0; }
.l-ph-mark { margin: 10px auto 0; }
.l-ph-headline { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: #1a2130; margin-top: 8px; }
.l-ph-ready { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: #eaf1fc; border-radius: 999px; padding: 5px 12px; }
.l-ph-ready-dot { width: 7px; height: 7px; border-radius: 50%; background: #2fa36b; }
.l-ph-ready-text { font-size: 11px; font-weight: 700; color: #5a6577; }
.l-ph-tagline { font-size: 12.5px; color: #5a6577; margin-top: 8px; }
.l-ph-primary { margin-top: 22px; background: linear-gradient(180deg, #2e6be6, #1e4fb0); border-radius: 24px; padding: 22px 16px; text-align: center; box-shadow: 0 16px 30px -12px rgba(46,107,230,0.55); }
.l-ph-primary-label { font-size: 14.5px; font-weight: 700; color: #fff; line-height: 1.35; }
.l-ph-primary-caption { font-size: 11px; color: rgba(255,255,255,0.92); margin-top: 6px; }
.l-ph-tip { margin-top: 20px; background: #eaf1fc; border-radius: 18px; padding: 14px; text-align: center; }
.l-ph-tip-label { font-size: 12.5px; font-weight: 700; color: #1a2130; }
.l-ph-tip-body { font-size: 11px; color: #5a6577; margin-top: 5px; line-height: 1.4; }
.l-ph-footer { margin-top: auto; text-align: center; padding-top: 14px; }
.l-ph-footer-link { font-size: 10.5px; font-weight: 700; color: #2e6be6; }

/* ---------- Panic / calm contrast band ---------- */
.l-contrast {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #1d0e10 0%, #0c0710 46%, #0c0710 100%);
  padding: 88px 0 96px; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.l-contrast-eyebrow { color: #f0a79e; }
.l-contrast-eyebrow::before { background: var(--stop); }
.l-contrast h2 { color: #fff; font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; margin-top: 14px; max-width: 640px; letter-spacing: -0.015em; }
.l-panic-quotes { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 34px; max-width: 760px; }
.l-panic-quote {
  font-weight: 600; font-size: 14.5px; color: #f0c4bf;
  background: rgba(255,98,89,0.12); border: 1px solid rgba(255,98,89,0.32);
  border-radius: 999px; padding: 9px 16px;
}
.l-contrast-resolve { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.l-contrast-resolve-arrow {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, var(--accent), var(--brand-deep));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-glow);
}
.l-contrast-resolve-text strong { font-family: var(--font-display); font-size: 20px; font-weight: 800; display: block; color: #fff; }
.l-contrast-resolve-text span { font-size: 14.5px; color: var(--text-muted); margin-top: 4px; display: block; }

/* ---------- Generic section ---------- */
.l-section { padding: 100px 0; }
.l-section-head { max-width: 600px; }
.l-section-head h2 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.015em; color: var(--text); }
.l-section-head p { margin-top: 14px; font-size: 16.5px; color: var(--text-muted); line-height: 1.65; }

/* ---------- How it works ---------- */
.l-how-grid { display: grid; grid-template-columns: 0.92fr 1fr; gap: 64px; align-items: center; margin-top: 56px; }
@media (max-width: 920px) { .l-how-grid { grid-template-columns: 1fr; } .l-how-grid .l-phone-stage { order: -1; margin-bottom: 20px; } }
.l-steps { display: flex; flex-direction: column; }
.l-step { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid var(--border); }
.l-step:first-child { border-top: none; padding-top: 0; }
.l-step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--accent-bright);
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.l-step-copy h3 { font-size: 18px; font-weight: 700; color: var(--text); }
.l-step-copy p { font-size: 15px; color: var(--text-muted); margin-top: 6px; line-height: 1.6; max-width: 400px; }

/* ---------- Bento features ---------- */
.l-bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 20px; margin-top: 52px; }
.l-bento-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border); border-radius: 26px; padding: 26px;
  display: flex; flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.l-bento-card:hover { transform: translateY(-3px); border-color: rgba(61,139,255,0.4); box-shadow: var(--shadow-glow); }
.l-bento-card.large { grid-column: 1 / 3; grid-row: 1 / 3; }
.l-bento-card.tall-icon { grid-column: 3 / 4; grid-row: 1 / 2; }
.l-bento-card.tall-icon2 { grid-column: 4 / 5; grid-row: 1 / 2; }
.l-bento-card.wide { grid-column: 3 / 5; grid-row: 2 / 3; }
.l-bento-card.strip { grid-column: 1 / 5; grid-row: 3 / 4; flex-direction: row; align-items: center; gap: 22px; }
@media (max-width: 920px) {
  .l-bento-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .l-bento-card.large { grid-column: 1/3; grid-row: auto; }
  .l-bento-card.tall-icon, .l-bento-card.tall-icon2 { grid-column: span 1; grid-row: auto; }
  .l-bento-card.wide { grid-column: 1/3; grid-row: auto; }
  .l-bento-card.strip { grid-column: 1/3; grid-row: auto; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .l-bento-grid { grid-template-columns: 1fr; }
  .l-bento-card, .l-bento-card.large, .l-bento-card.tall-icon, .l-bento-card.tall-icon2, .l-bento-card.wide, .l-bento-card.strip { grid-column: 1/2; }
}
.l-bento-mark { position: absolute; top: -18px; right: -18px; width: 180px; height: 180px; opacity: 0.08; pointer-events: none; }
.l-bento-icon {
  width: 44px; height: 44px; border-radius: 13px; background: rgba(61,139,255,0.14);
  border: 1px solid rgba(61,139,255,0.3); display: flex; align-items: center; justify-content: center;
  color: var(--accent-bright); flex-shrink: 0;
}
.l-bento-icon svg { width: 22px; height: 22px; }
.l-bento-card h3 { margin-top: 18px; font-size: 19px; font-weight: 700; color: var(--text); position: relative; z-index: 1; }
.l-bento-card.large h3 { font-size: 24px; margin-top: 22px; }
.l-bento-card p { margin-top: 9px; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; position: relative; z-index: 1; max-width: 360px; }
.l-bento-demo { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.l-bento-demo-input { background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 14px; padding: 11px 14px; font-size: 13px; color: var(--text-muted); }
.l-bento-demo-result {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 7px;
  background: rgba(245,180,77,0.14); border: 1px solid rgba(245,180,77,0.4);
  color: var(--caution); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700;
}
.l-bento-demo-result svg { width: 14px; height: 14px; }
.l-strip-num { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--accent-bright); }
.l-strip-quote { font-size: 16.5px; font-weight: 600; color: var(--text); line-height: 1.5; }
.l-strip-quote span { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #6c7c9c; }

/* ---------- Founder ---------- */
.l-founder { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.l-founder-panel { display: grid; grid-template-columns: 0.55fr 1fr; gap: 56px; align-items: center; margin-top: 52px; }
@media (max-width: 860px) { .l-founder-panel { grid-template-columns: 1fr; gap: 36px; } }
.l-founder-photo {
  position: relative; aspect-ratio: 1 / 1; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-glow);
}
.l-founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-founder-copy .eyebrow { margin-bottom: 2px; }
.l-founder-copy h2 { margin-top: 14px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.015em; color: var(--text); }
.l-founder-bio { margin-top: 20px; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.l-founder-bio p { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin: 0; }
.l-founder-sig { margin-top: 18px; }
.l-founder-sig strong { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
.l-founder-sig span { font-size: 13.5px; color: #6c7c9c; }

/* ---------- Trust / privacy ---------- */
.l-trust-panel {
  background: linear-gradient(155deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--border); border-radius: 32px; padding: 56px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px;
}
@media (max-width: 860px) { .l-trust-panel { grid-template-columns: 1fr; padding: 36px 26px; } }
.l-trust-panel h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.015em; color: var(--text); }
.l-trust-panel > div:first-child p { margin-top: 14px; font-size: 16px; color: var(--text-muted); line-height: 1.65; max-width: 420px; }
.l-trust-list { display: flex; flex-direction: column; gap: 18px; }
.l-trust-list-item { display: flex; gap: 14px; align-items: flex-start; }
.l-trust-list-icon {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(61,220,151,0.12); border: 1px solid rgba(61,220,151,0.35);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--mint);
}
.l-trust-list-icon svg { width: 17px; height: 17px; }
.l-trust-list-copy strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.l-trust-list-copy span { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Final CTA ---------- */
.l-cta-band { position: relative; padding: 110px 0 100px; text-align: center; overflow: hidden; }
.l-cta-band::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; background: radial-gradient(ellipse, rgba(61,139,255,0.24), transparent 70%);
  pointer-events: none;
}
.l-cta-band .wrap { position: relative; z-index: 1; }
.l-cta-band h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; letter-spacing: -0.02em; max-width: 640px; margin: 0 auto; color: var(--text); }
.l-cta-band p { margin: 16px auto 0; font-size: 17px; color: var(--text-muted); max-width: 480px; line-height: 1.6; }
.l-cta-mail {
  margin: 34px auto 0; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, var(--accent), var(--brand-deep)); border: none; border-radius: var(--radius-action);
  padding: 16px 30px; font-size: 16px; font-weight: 700; color: #fff; box-shadow: var(--shadow-glow);
  text-decoration: none; transition: transform 0.18s ease;
}
.l-cta-mail:hover { transform: translateY(-2px); }
.l-cta-mail svg { flex-shrink: 0; }
.l-cta-note { margin-top: 14px; font-size: 13px; color: #6c7c9c; }
@media (max-width: 520px) { .l-cta-mail { width: 100%; max-width: 320px; padding: 14px 18px; } }

/* ---------- Landing footer ---------- */
.l-footer { background: var(--bg-subtle); color: var(--text-muted); padding: 52px 0 34px; border-top: 1px solid var(--border); }
.l-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.l-footer-brand { display: flex; align-items: center; gap: 10px; }
.l-footer-brand span { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--text); }
.l-footer-tag { margin-top: 10px; font-size: 13.5px; color: #6c7c9c; max-width: 280px; line-height: 1.6; }
.l-footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.l-footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6c7c9c; }
.l-footer-col a { display: block; text-decoration: none; font-size: 14px; color: var(--text-muted); margin-top: 12px; }
.l-footer-col a:hover { color: var(--text); }
.l-footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #6c7c9c; }


/* Launch links retain the button styling without requiring JavaScript. */
.l-nav-cta, .l-btn-primary { text-decoration: none; }
#launch { scroll-margin-top: 6rem; }
