/* =====================================================================
   Siyan Stride — Marketing site styles
   Design tokens mirror the app's "Midnight Trail" theme
   (see lib/theme/app_colors.dart).
   ===================================================================== */

:root {
  /* Core palette */
  --bg: #0A0E1A;
  --bg-elevated: #131829;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #131829;
  --primary: #00E5A0;
  --primary-deep: #00B584;
  --accent: #B794F4;
  --accent-deep: #8B5CF6;
  --on-surface: #FFFFFF;
  --on-surface-2: #C9CFDC;
  --muted: #8A92A6;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.04);
  --danger: #FF5470;
  --warning: #FFB547;

  /* Gradients */
  --brand-gradient: linear-gradient(135deg, #00E5A0 0%, #B794F4 100%);
  --primary-gradient: linear-gradient(135deg, #00E5A0 0%, #00B584 100%);

  /* Shape */
  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-pill: 999px;

  /* Layout */
  --maxw: 1120px;
  --gutter: 24px;

  /* Type — matches the app's SF Pro / system stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-rounded: "SF Pro Rounded", ui-rounded, -apple-system, "Manrope", Roboto,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--on-surface);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      900px 600px at 80% -10%,
      rgba(139, 92, 246, 0.18),
      transparent 60%
    ),
    radial-gradient(
      800px 500px at 0% 0%,
      rgba(0, 229, 160, 0.14),
      transparent 55%
    );
  pointer-events: none;
}

/* --------------------------- Utilities ----------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section {
  padding: 96px 0;
}
.section--tight {
  padding: 64px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.section-head p {
  color: var(--on-surface-2);
  font-size: 18px;
  margin: 0;
}

/* --------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--primary-gradient);
  color: var(--bg);
  box-shadow: 0 10px 30px rgba(0, 229, 160, 0.25);
}
.btn--primary:hover {
  box-shadow: 0 14px 38px rgba(0, 229, 160, 0.35);
}
.btn--ghost {
  background: var(--surface);
  color: var(--on-surface);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  background: #000;
  border: 1px solid var(--line);
  color: #fff;
  min-width: 180px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.store-badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}
.store-badge svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.store-badge .store-badge__sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 3px;
}
.store-badge .store-badge__main {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

/* ----------------------------- Header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--on-surface);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 229, 160, 0.35);
  flex: none;
}
.logo-mark svg {
  width: 56%;
  height: 56%;
  color: var(--bg);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--on-surface-2);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover {
  color: var(--on-surface);
  text-decoration: none;
}
.nav .btn {
  padding: 9px 18px;
  font-size: 14px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

/* ------------------------------ Hero ------------------------------- */
.hero {
  padding: 84px 0 72px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.03em;
}
.hero .lead {
  font-size: 20px;
  color: var(--on-surface-2);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero .store-badges {
  margin-bottom: 18px;
}
.hero .hero-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Phone mockup */
.phone {
  justify-self: center;
  width: 300px;
  max-width: 80vw;
  aspect-ratio: 300 / 620;
  border-radius: 44px;
  background: linear-gradient(180deg, #161c30, #0d1322);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 6px #05070f;
  padding: 14px;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #05070f;
  border-radius: var(--radius-pill);
  z-index: 2;
}
.phone__screen {
  height: 100%;
  border-radius: 32px;
  background: radial-gradient(
      120% 80% at 50% 0%,
      rgba(0, 229, 160, 0.12),
      transparent 60%
    ),
    var(--bg);
  padding: 44px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.phone__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  align-self: flex-start;
}
/* Step ring */
.ring {
  --pct: 72;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
      var(--primary) calc(var(--pct) * 1%),
      rgba(255, 255, 255, 0.08) 0
    );
  margin: 8px 0 22px;
  position: relative;
}
.ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--bg);
}
.ring__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.ring__num {
  font-family: var(--font-rounded);
  font-size: 34px;
  font-weight: 700;
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
}
.ring__cap {
  font-size: 12px;
  color: var(--muted);
}
.phone__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.phone__stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.phone__stat b {
  font-family: var(--font-rounded);
  font-size: 18px;
  display: block;
}
.phone__stat span {
  font-size: 11px;
  color: var(--muted);
}
/* mini bottom nav echoing the app */
.phone__nav {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.phone__nav i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  display: block;
}
.phone__nav i.on {
  background: var(--primary);
}

/* --------------------------- Trust strip --------------------------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.trust .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  justify-content: center;
  padding: 22px var(--gutter);
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-surface-2);
  font-size: 14px;
  font-weight: 500;
}
.trust svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: none;
}

/* --------------------------- Feature grid -------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  transition: transform 0.18s ease, border-color 0.18s ease,
    background 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 160, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 160, 0.12);
  margin-bottom: 18px;
}
.card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}
.card h3 {
  font-size: 19px;
}
.card p {
  color: var(--on-surface-2);
  font-size: 15px;
  margin: 0;
}

/* --------------------------- How it works -------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 18px;
  color: var(--bg);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 17px;
}
.step p {
  color: var(--on-surface-2);
  font-size: 14px;
  margin: 0;
}

/* ----------------------- Privacy highlight ------------------------- */
.privacy-band {
  background: linear-gradient(
    135deg,
    rgba(0, 229, 160, 0.08),
    rgba(139, 92, 246, 0.08)
  );
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 56px clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.privacy-band h2 {
  font-size: clamp(26px, 3.5vw, 34px);
}
.privacy-band p {
  color: var(--on-surface-2);
  margin: 0;
}
.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.privacy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--on-surface-2);
  font-size: 15px;
}
.privacy-list svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex: none;
  margin-top: 2px;
}

/* --------------------------- Download CTA -------------------------- */
.cta-band {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 64px clamp(24px, 5vw, 64px);
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 42px);
}
.cta-band p {
  color: var(--on-surface-2);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 32px;
}
.cta-band .store-badges {
  justify-content: center;
}

/* ----------------------------- Contact ----------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(26px, 3.5vw, 36px);
}
.contact-info p {
  color: var(--on-surface-2);
}
.contact-info a {
  font-weight: 600;
}
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-2);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--on-surface);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.15);
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.form .btn {
  width: 100%;
}
/* honeypot — hidden from humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 0;
  text-align: center;
}
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
}
.form-status.is-success {
  display: block;
  background: rgba(0, 229, 160, 0.12);
  border: 1px solid rgba(0, 229, 160, 0.4);
  color: var(--primary);
}
.form-status.is-error {
  display: block;
  background: rgba(255, 84, 112, 0.12);
  border: 1px solid rgba(255, 84, 112, 0.4);
  color: var(--danger);
}

/* ----------------------------- Footer ------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 0;
}
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--on-surface-2);
  font-size: 15px;
  margin-bottom: 10px;
}
.footer-col a:hover {
  color: var(--on-surface);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.footer-bottom a {
  color: var(--muted);
}
.footer-bottom .disclaimer {
  max-width: 620px;
}

/* ----------------------- Legal (privacy/terms) --------------------- */
.legal {
  padding: 64px 0 32px;
}
.legal .container {
  max-width: 800px;
}
.legal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
}
.legal .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 22px;
  margin-top: 40px;
  padding-top: 8px;
}
.legal h3 {
  font-size: 18px;
  margin-top: 28px;
}
.legal p,
.legal li {
  color: var(--on-surface-2);
  font-size: 16px;
  line-height: 1.7;
}
.legal ul {
  padding-left: 22px;
  margin: 0 0 1em;
}
.legal li {
  margin-bottom: 8px;
}
.legal strong {
  color: var(--on-surface);
}
.legal a {
  font-weight: 600;
}
.legal .callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
}
.legal .callout p {
  margin: 0;
  color: var(--on-surface-2);
}

/* ---------------------------- Responsive --------------------------- */
@media (max-width: 920px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .store-badges {
    justify-content: center;
  }
  .phone {
    order: -1;
    margin-bottom: 12px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav.is-open {
    transform: translateY(0);
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav .btn {
    margin-top: 12px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    gap: 36px;
  }
}

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

/* Walk Kilimanjaro challenge card at the end of #features */
.promo { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; border-color: rgba(0, 229, 160, 0.35); }
.promo__text { flex: 1 1 420px; min-width: 0; }
.promo__text h3 { margin-top: 10px; }
.promo__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------- Feature spotlights (Journeys, Progress & analytics) -------- */
.spotlight {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.07), rgba(183, 148, 244, 0.07));
  border: 1px solid rgba(0, 229, 160, 0.22);
  border-radius: 28px;
  padding: 44px 48px;
  margin: 0 0 24px;
  overflow: hidden;
}
.spotlight--flip { grid-template-columns: 0.95fr 1.05fr; }
.spotlight--flip .spotlight__text { order: 2; }
.spotlight h3 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.02em; margin-bottom: 14px; }
.spotlight__lead { color: var(--on-surface-2); font-size: 17px; margin-bottom: 20px; }
.spotlight__list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.spotlight__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-surface); font-size: 16px; line-height: 1.45; }
.spotlight__list svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--primary); }
.spotlight__note { color: var(--muted); font-size: 14px; margin: 0; }
.spotlight__note strong { color: var(--accent); }
.chip { display: inline-block; vertical-align: 1px; margin-left: 6px; padding: 1px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.chip--premium { background: rgba(183, 148, 244, 0.16); color: var(--accent); border: 1px solid rgba(183, 148, 244, 0.35); }
.spotlight__media { position: relative; height: 470px; }
.spotlight__media .shot { position: absolute; width: 216px; height: auto; border-radius: 26px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); background: #fff; }
.spotlight__media .shot--back { left: 8%; top: 0; transform: rotate(-4deg); opacity: 0.92; }
.spotlight__media .shot--front { right: 8%; top: 36px; transform: rotate(3deg); }
.features-more { text-align: center; font-size: 22px; margin: 48px 0 20px; color: var(--on-surface); }
@media (max-width: 920px) {
  .spotlight, .spotlight--flip { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .spotlight--flip .spotlight__text { order: 0; }
  .spotlight__media { height: 380px; max-width: 420px; margin: 0 auto; width: 100%; }
  .spotlight__media .shot { width: 172px; }
}
@media (max-width: 920px) and (min-width: 641px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
