/* NursePath marketing page. Palette and spacing follow lib/theme/app_theme.dart. */
:root {
  --navy: #1B2A4A;
  --navy-2: #2D4373;
  --navy-deep: #0F1A30;
  --sky: #0EA5E9;
  --sky-strong: #0284C7;
  --sky-tint: #E0F2FE;
  --teal: #14B8A6;
  --teal-strong: #0F766E;
  --teal-tint: #CCFBF1;
  --violet: #7C3AED;
  --violet-tint: #EDE9FE;
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #64748B;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --bg-tint: #EEF2F7;
  --surface: #FFFFFF;
  --success: #059669;
  --success-tint: #ECFDF5;
  --error: #DC2626;
  --error-tint: #FEF2F2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 42, 74, 0.06), 0 8px 24px rgba(27, 42, 74, 0.08);
  --shadow-lift: 0 2px 4px rgba(27, 42, 74, 0.08), 0 16px 40px rgba(27, 42, 74, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--sky-strong); }
sup { font-size: 0.5em; vertical-align: super; line-height: 0; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; font-weight: 650; text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sky); outline-offset: 2px;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #22B4F0 0%, var(--sky) 55%, var(--sky-strong) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px rgba(14, 165, 233, 0.35);
}
.btn--primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px rgba(14, 165, 233, 0.45); }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn--sm { padding: 8px 16px; font-size: 0.95rem; }
.btn--lg { padding: 14px 24px; font-size: 1.05rem; }

/* Nav — solid, because it scrolls over light and dark sections */
.nav { position: sticky; top: 0; z-index: 10; background: var(--navy-deep); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.brand img { display: block; }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a:not(.btn) { color: rgba(255, 255, 255, 0.78); text-decoration: none; font-size: 0.95rem; font-weight: 550; }
.nav__links a:not(.btn):hover { color: #fff; }

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(14, 165, 233, 0.28), transparent 60%),
    radial-gradient(700px 360px at 0% 110%, rgba(20, 184, 166, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-2) 100%);
  padding: 88px 0 96px;
}
.hero__inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.lead { font-size: 1.2rem; color: rgba(255, 255, 255, 0.8); max-width: 38em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero__note { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); margin: 0; }
.hero__note--dark { color: var(--text-3); margin-top: 10px; text-align: center; }
.hero__stats { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hero__stats li {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column;
}
.hero__stats strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hero__stats span { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; line-height: 1.3; }
.hero__photo { margin: 0; }
.hero__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 28px; box-shadow: 0 24px 60px rgba(2, 8, 23, 0.45); border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Photos */
.banner { margin: 0 0 32px; }
.banner__img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Sections */
.section { padding: 88px 0; }
.section--tint { background: var(--bg-tint); }
.section__lead { color: var(--text-2); font-size: 1.1rem; max-width: 40em; margin-bottom: 36px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--sky-tint); color: var(--sky-strong);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow--light { background: rgba(20, 184, 166, 0.16); color: #5EEAD4; }
.fineprint { font-size: 0.85rem; color: var(--text-3); }

/* Equal-height card grids */
.grid { display: grid; gap: 18px; margin-top: 36px; align-items: stretch; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card, .feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover, .feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card p, .feature p { color: var(--text-2); font-size: 0.98rem; }
.card .chip { margin-top: auto; align-self: flex-start; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 0.95rem; margin-bottom: 20px;
}
.card__icon--sky { background: var(--sky-tint); color: var(--sky-strong); }
.card__icon--teal { background: var(--teal-tint); color: var(--teal-strong); }
.card__icon--violet { background: var(--violet-tint); color: var(--violet); }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 650; }
.chip--sky { background: var(--sky-tint); color: var(--sky-strong); }
.chip--teal { background: var(--teal-tint); color: var(--teal-strong); }
.chip--violet { background: var(--violet-tint); color: var(--violet); }

/* Try-a-question demo */
.demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lift); padding: 32px; max-width: 760px;
}
.demo__meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 0.85rem; color: var(--text-3); font-weight: 600; }
.demo__stem { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 20px; }
.demo__choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.demo__choice {
  width: 100%; text-align: left; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.demo__choice:hover:not(:disabled) { border-color: var(--sky); background: #F0F9FF; }
.demo__choice:disabled { cursor: default; }
.demo__letter {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--bg-tint); font-weight: 750; font-size: 0.9rem;
}
.demo__choice--correct { border-color: var(--success); background: var(--success-tint); }
.demo__choice--correct .demo__letter { background: var(--success); color: #fff; }
.demo__choice--wrong { border-color: var(--error); background: var(--error-tint); }
.demo__choice--wrong .demo__letter { background: var(--error); color: #fff; }
.demo__why { display: block; margin-top: 6px; font-size: 0.92rem; color: var(--text-2); }
.demo__result { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg-tint); }
.demo__result strong { display: block; margin-bottom: 4px; }
.demo__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.demo__next {
  font: inherit; font-weight: 650; color: var(--sky-strong); background: none; border: 0;
  cursor: pointer; padding: 8px 4px;
}
.demo__fallback { margin: 0; }

/* Journey */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.journey__step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.journey__step p { font-size: 0.93rem; color: var(--text-2); }
.journey__step--ours { border-color: rgba(20, 184, 166, 0.55); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12), var(--shadow); }
.journey__num {
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 750; font-size: 0.9rem; margin-bottom: 14px;
}
.journey__step--ours .journey__num { background: var(--teal); }
.tag {
  margin-top: auto; align-self: flex-start; font-size: 0.8rem; font-weight: 650; line-height: 1.35;
  color: var(--teal-strong); background: var(--teal-tint); padding: 6px 10px; border-radius: 10px;
}

/* Reviewers */
.reviewer { text-align: left; }
.reviewer img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; margin-bottom: 14px; }
.reviewer__creds { color: var(--sky-strong); font-weight: 650; font-size: 0.9rem; margin-bottom: 8px; }

/* Testimonials */
.quote { margin: 0; }
.quote__text { margin: 0 0 18px; font-size: 1.05rem; line-height: 1.6; color: var(--text); }
.quote__who { margin-top: auto; display: flex; flex-direction: column; font-size: 0.92rem; color: var(--text-3); }
.quote__who strong { color: var(--text); }

/* Beta */
.beta {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lift); padding: 44px;
}
.beta p { color: var(--text-2); }
.beta__cta { text-align: center; }

/* FAQ */
.faq { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 650;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 500; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--text-2); }

/* Final CTA + footer */
.final {
  color: #fff; text-align: center; padding: 88px 0;
  background: radial-gradient(700px 300px at 50% 0%, rgba(14, 165, 233, 0.25), transparent 70%), linear-gradient(160deg, var(--navy-deep), var(--navy-2));
}
.final__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.final__photo { margin: 0; }
.final__img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 20% 30%;
  border-radius: 24px; box-shadow: 0 24px 60px rgba(2, 8, 23, 0.45);
}
.final__inner { display: flex; flex-direction: column; align-items: center; }
.final img { border-radius: 16px; margin-bottom: 20px; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, 0.72); margin-bottom: 24px; }
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.6); padding: 32px 0; font-size: 0.9rem; text-align: center; }
.footer a { color: rgba(255, 255, 255, 0.85); }
.footer__credit { font-size: 0.85rem; }
.footer .fineprint { color: rgba(255, 255, 255, 0.45); max-width: 46em; margin: 8px auto 0; }

/* Responsive */
@media (max-width: 980px) {
  .journey { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 64px; }
  .hero__inner, .beta, .final__grid { grid-template-columns: 1fr; }
  .hero__photo img { aspect-ratio: 4 / 3; border-radius: 20px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .banner { margin-bottom: 24px; }
  .grid--3, .journey { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .demo, .beta { padding: 22px; }
  .nav__links a:not(.btn):not(.nav__signin) { display: none; }
  .nav__links { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .feature { transition: none; }
}
