/* Strider landing page — the app's calm palette (mobile/lib/app/theme/app_colors.dart). */

@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --navy-50: #EEF2F6; --navy-100: #DAE3EB; --navy-200: #B7C8D6; --navy-300: #93AEC3; --navy-400: #6F91AB;
  --navy-500: #4F7290; --navy-600: #34506A; --navy-700: #2A4157; --navy-800: #1C2833; --navy-900: #141C24;
  --clay-500: #B9583E; --clay-600: #9F4B33; --clay-300: #D9744F;
  --success: #2F7D5B;

  --bg: #FDFCF9;
  --bg-tint: #F6F5F1;
  --surface: #FFFFFF;
  --border: #EAE8E2;
  --text: #22252A;
  --muted: #5C6066;
  --heading: #1C2833;
  --brand-mark: #1C2833;
  --accent: var(--clay-500);
  --accent-hover: var(--clay-600);
  --accent-ink: #9F4B33;
  --chip: rgba(79, 114, 144, 0.12);
  --chip-ink: var(--navy-600);
  --shadow: 0 1px 2px rgba(20, 28, 36, 0.04), 0 12px 32px rgba(20, 28, 36, 0.08);
  --radius: 18px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141C24;
    --bg-tint: #18222C;
    --surface: #1C2833;
    --border: #2A4157;
    --text: #DAE3EB;
    --muted: #A9B8C6;
    --heading: #F6F5F1;
    --brand-mark: #2A4157;
    --accent-ink: #E59A7C;
    --chip: rgba(147, 174, 195, 0.18);
    --chip-ink: var(--navy-100);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--navy-400); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--surface); color: var(--heading); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(185, 88, 62, 0.28); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--border); color: var(--heading); background: var(--surface); }
.btn--ghost:hover { border-color: var(--navy-300); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.eyebrow--light { color: #E59A7C; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.ink-accent { color: var(--accent-ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--heading); text-decoration: none; letter-spacing: -0.02em; }
.brand__mark { width: 34px; height: 34px; color: var(--brand-mark); flex: none; }
.brand--small .brand__mark { width: 28px; height: 28px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--heading); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--heading); position: relative; transition: transform 0.2s, opacity 0.2s; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero__proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; font-weight: 600; }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* Phone mockups */
.hero__visual { position: relative; height: 560px; }
.phone {
  position: absolute; width: 280px; height: 560px; border-radius: 42px; padding: 12px;
  background: #1C2833; box-shadow: 0 30px 60px rgba(20, 28, 36, 0.25), inset 0 0 0 2px #2A4157;
}
.phone--front { right: 40px; top: 0; z-index: 2; }
.phone--back { left: 0; top: 56px; transform: rotate(-6deg); opacity: 0.96; }
.screen { height: 100%; border-radius: 32px; background: #FDFCF9; padding: 26px 16px 16px; overflow: hidden; position: relative; color: #22252A; font-size: 13px; line-height: 1.45; }
.scr-kicker { font-size: 11px; font-weight: 700; color: #6B6E73; text-transform: uppercase; letter-spacing: 0.08em; }
.scr-title { font-size: 26px; font-weight: 800; color: #1C2833; letter-spacing: -0.02em; margin-bottom: 14px; }
.win { background: linear-gradient(140deg, #34506A, #1C2833); color: #fff; border-radius: 20px; padding: 16px; margin-bottom: 14px; }
.win__label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #E59A7C; }
.win__title { font-size: 16px; font-weight: 800; margin: 6px 0 2px; line-height: 1.25; }
.win__meta { font-size: 12px; color: #B7C8D6; }
.win__bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); margin-top: 12px; overflow: hidden; }
.win__bar span { display: block; width: 62%; height: 100%; background: #D9744F; border-radius: 3px; }
.task { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #EAE8E2; border-radius: 14px; padding: 11px 12px; margin-bottom: 8px; }
.check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C9C6BE; flex: none; }
.check--done { background: #2F7D5B; border-color: #2F7D5B; position: relative; }
.check--done::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.task__t { flex: 1; font-weight: 600; font-size: 12.5px; color: #22252A; }
.task__t--done { color: #6B6E73; text-decoration: line-through; }
.task__m { font-size: 11px; font-weight: 700; color: #6B6E73; }
.pillnav { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 50px; border-radius: 25px; background: #fff; border: 1px solid #EAE8E2; display: flex; align-items: center; justify-content: space-around; }
.pillnav i { width: 20px; height: 20px; border-radius: 6px; background: #DAE3EB; }
.pillnav b { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #B9583E, #9F4B33); margin-top: -26px; box-shadow: 0 0 0 4px #FDFCF9, 0 6px 14px rgba(159, 75, 51, 0.35); }

/* Chat bubbles (hero and coach section) */
.bubble { border-radius: 18px; padding: 10px 13px; margin-bottom: 10px; max-width: 88%; font-size: 13px; line-height: 1.45; }
.bubble--me { background: #34506A; color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble--coach { background: #fff; border: 1px solid #EAE8E2; color: #22252A; border-bottom-left-radius: 4px; }
.tag { display: block; font-size: 10.5px; font-weight: 800; color: #4F7290; margin-bottom: 3px; }
.tag--ok { color: #2F7D5B; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.section__lead { font-size: 18px; color: var(--muted); margin-top: 16px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: none; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; position: relative; }
.step__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--chip); color: var(--chip-ink); font-weight: 800; margin-bottom: 16px; }
.step:nth-child(5) .step__n { background: var(--accent); color: #fff; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* Feature groups */
.group + .group { margin-top: 56px; }
.group__title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 20px; }
.group__ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--chip); color: var(--chip-ink); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy-200); }
.card h4 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--muted); }

/* Coach split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li strong { color: var(--heading); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--success); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 8px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chat { background: var(--bg-tint); border: 1px solid var(--border); border-radius: 28px; padding: 28px 24px; box-shadow: var(--shadow); }
.chat .bubble { font-size: 15px; max-width: 86%; }
.action { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(185, 88, 62, 0.08); border: 1px solid rgba(185, 88, 62, 0.35); }
.action__t { font-weight: 700; font-size: 13.5px; }
.action__b { background: #B9583E; color: #fff; font-weight: 700; font-size: 12.5px; padding: 6px 14px; border-radius: 999px; flex: none; }
.note { width: fit-content; margin: 4px auto 0; padding: 6px 14px; border-radius: 999px; background: rgba(47, 125, 91, 0.12); color: #2F7D5B; font-weight: 700; font-size: 13px; }

/* Principles */
.section--ink { background: linear-gradient(160deg, #1C2833, #141C24); color: #DAE3EB; }
.section--ink h2, .section--ink h3 { color: #F6F5F1; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principle { border: 1px solid rgba(147, 174, 195, 0.25); border-radius: var(--radius); padding: 24px; background: rgba(255, 255, 255, 0.03); }
.principle h3 { font-size: 18px; margin-bottom: 8px; }
.principle p { font-size: 15px; color: #B7C8D6; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 20px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; }
.plan--pro { border: 2px solid var(--accent); box-shadow: 0 20px 40px rgba(185, 88, 62, 0.14); }
.plan__badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.plan__price { margin: 12px 0 4px; color: var(--muted); font-weight: 600; }
.plan__price span { font-size: 40px; font-weight: 800; color: var(--heading); letter-spacing: -0.03em; }
.plan__for { color: var(--muted); font-size: 15px; }
.plan__list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan__list li { position: relative; padding-left: 28px; font-size: 15px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--chip); }
.plan__list li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 4px; height: 8px; border: solid var(--chip-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 700; color: var(--heading); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 16px; }

/* Download */
.cta { background: radial-gradient(120% 140% at 50% 0%, rgba(185, 88, 62, 0.12), transparent 60%), var(--bg); }
.cta__inner { text-align: center; }
.cta .section__lead { margin: 16px auto 0; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 18px; border-radius: 14px; background: var(--heading); color: var(--bg); min-width: 200px; text-align: left; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font-weight: 800; font-size: 18px; line-height: 1.15; }
.store small { font-weight: 600; font-size: 11px; opacity: 0.8; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__tag { color: var(--muted); font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.footer__links a:hover { color: var(--heading); }
.footer__copy { color: var(--muted); font-size: 14px; width: 100%; }

/* Reveal on scroll (only when JS has run; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero__inner, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .phone { width: 250px; height: 500px; }
  .phone--front { right: 0; }
}
@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 8px; font-size: 17px; }
  .nav__links .btn { margin-top: 8px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .lead { font-size: 18px; }
  .steps, .principles { grid-template-columns: 1fr; }
  .hero__visual { height: 470px; max-width: 340px; }
  .phone { width: 214px; height: 440px; border-radius: 36px; padding: 10px; }
  .screen { border-radius: 28px; padding: 22px 12px 12px; }
  .phone--back { top: 40px; left: 10px; }
  .scr-title { font-size: 22px; }
  .chat { padding: 20px 14px; }
  .chat .bubble { font-size: 14px; }
  .footer__links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
