/* NurseReflex landing — the app's design language on the web.
   Slate ramp background, DM Serif Display titles, Nunito body, teal brand.
   Dark mode mirrors the app: depth from lighter surfaces, not shadows. */

:root {
  --teal: #00897B;
  --teal-deep: #00695C;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --stroke: #E2E8F0;
  --ink: #1E293B;
  --grey: #64748B;
  --red: #DC2626;
  --red-bg: #FEF2F2;
  --amber: #D97706;
  --amber-bg: #FFFBEB;
  --green: #16A34A;
  --labs: #0D9488;
  --drugs: #7C3AED;
  --abg: #EA580C;
  --skills: #16A34A;
  --math: #0284C7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F172A;
    --surface: #1E293B;
    --stroke: #334155;
    --ink: #F1F5F9;
    --grey: #94A3B8;
    --teal: #4DB6AC;
    --red-bg: #3B1219;
    --amber-bg: #3A2A10;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }

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

/* ── Header / nav ── */
.site-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 0;
}
.site-head img.logo { width: 34px; height: 34px; border-radius: 9px; }
.site-head .brand { font-weight: 900; font-size: 1.15rem; color: var(--ink); }
.site-head nav { margin-left: auto; display: flex; gap: 18px; }
.site-head nav a { font-weight: 800; font-size: .95rem; color: var(--grey); }
.site-head nav a.cta { color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-deep)); padding: 8px 16px; border-radius: 999px; }
.site-head nav a.cta:hover { text-decoration: none; opacity: .92; }

/* ── Chips / badges ── */
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.badge-alert { background: var(--red-bg); color: var(--red); font-size: .66rem; font-weight: 900; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 14px;
}
.card .label {
  font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.bignum { font-size: 1.9rem; font-weight: 900; line-height: 1.2; }

.alert-card { border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; border: 1px solid; }
.alert-amber { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.alert-amber .label, .alert-amber { color: var(--amber); }
.alert-red { background: var(--red-bg); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.alert-red .label, .alert-red { color: var(--red); }
.alert-card p { color: var(--ink); margin: 0; font-weight: 700; }

ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding-left: 28px; position: relative; margin-bottom: 9px; font-weight: 600; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 900; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  border: 1px solid; border-radius: 9px; padding: 5px 11px;
  font-size: .88rem; font-weight: 700;
}

/* ── Citation / disclaimer ── */
.citation {
  background: color-mix(in srgb, var(--grey) 10%, transparent);
  border-radius: 14px; padding: 14px 16px; font-size: .85rem; color: var(--grey);
  margin: 18px 0;
}
.citation em { display: block; margin-top: 4px; }

/* ── App CTA band ── */
.app-cta {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  border-radius: 22px; padding: 24px 26px; color: #fff; margin: 26px 0;
}
.app-cta img { width: 92px; flex: none; }
.app-cta h3 { color: #fff; margin-bottom: 4px; font-size: 1.35rem; }
.app-cta p { color: rgba(255,255,255,.85); margin: 0 0 10px; font-size: .95rem; }
.app-cta .btn {
  display: inline-block; background: #fff; color: var(--teal-deep);
  font-weight: 900; padding: 10px 20px; border-radius: 999px; font-size: .95rem;
}
.app-cta .btn:hover { text-decoration: none; opacity: .92; }

/* ── Breadcrumbs / related ── */
.crumbs { font-size: .85rem; font-weight: 700; color: var(--grey); margin: 6px 0 18px; }
.crumbs a { color: var(--grey); }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 14px 0 30px; }
.related a {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px;
  padding: 12px 15px; font-weight: 800; color: var(--ink); font-size: .95rem;
}
.related a:hover { text-decoration: none; border-color: var(--teal); }
.related a small { display: block; color: var(--grey); font-weight: 600; font-size: .8rem; }

/* ── Section index list ── */
.index-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 20px 0 40px; }

/* ── Footer ── */
.site-foot {
  border-top: 1px solid var(--stroke);
  margin-top: 50px; padding: 26px 0 40px;
  font-size: .85rem; color: var(--grey);
}
.site-foot a { color: var(--grey); font-weight: 700; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 12px; }

/* ── Home page ── */
.hero { text-align: center; padding: 42px 0 26px; }
.hero .eyebrow { color: var(--teal); font-weight: 900; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; }
.hero p.sub { font-size: 1.18rem; color: var(--grey); max-width: 620px; margin: 12px auto 22px; font-weight: 600; }
.hero img.mascot { width: 190px; margin-bottom: 6px; }
.store-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-btns a {
  background: var(--ink); color: var(--bg); font-weight: 800; padding: 12px 22px;
  border-radius: 14px; font-size: .95rem;
}
@media (prefers-color-scheme: dark) { .store-btns a { background: #F1F5F9; color: #0F172A; } }
.store-btns a:hover { text-decoration: none; opacity: .9; }
.store-btns .note { width: 100%; text-align: center; color: var(--grey); font-size: .8rem; font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; margin: 26px 0; }
.feature-grid .card { margin: 0; }
.feature-grid .icon { font-size: 1.5rem; margin-bottom: 6px; display: block; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; margin: 26px 0; }
.pricing .card { margin: 0; }
.pricing .price { font-size: 2rem; font-weight: 900; color: var(--teal); }
.pricing ul { padding-left: 18px; margin: 10px 0 0; }
.pricing li { margin-bottom: 6px; font-weight: 600; }

details.faq { background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { font-weight: 800; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--grey); font-weight: 600; }

/* ── v2 home page (Aug 19 redesign) ───────────────────────────────────── */

.nav-shell {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--stroke) 60%, transparent);
}
.nav-shell .site-head { padding: 12px 0; }

.hero2 {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 34px; align-items: center; padding: 54px 0 30px;
}
.hero2 .eyebrow {
  color: var(--teal); font-weight: 900; letter-spacing: .16em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 12px;
}
.hero2 h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: .35em; }
.hero2 h1 .accent { color: var(--teal); }
.hero2 .sub { font-size: 1.12rem; color: var(--grey); font-weight: 600; max-width: 480px; margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; }
.trust-row span { font-size: .85rem; font-weight: 800; color: var(--grey); }
.hero2 .store-btns { justify-content: flex-start; }

.hero2-phones { position: relative; height: 520px; }
.hero2-phones .phone {
  position: absolute; width: 235px; border-radius: 32px;
  border: 7px solid var(--ink);
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .45);
  background: var(--ink);
}
@media (prefers-color-scheme: dark) {
  .hero2-phones .phone { border-color: #334155; background: #334155; }
}
.hero2-phones .back { right: 150px; top: 10px; transform: rotate(-7deg); opacity: .92; }
.hero2-phones .front { right: 10px; top: 55px; transform: rotate(4deg); z-index: 2; }
.hero2-phones .hero-remy {
  position: absolute; width: 110px; right: 208px; bottom: -12px; z-index: 3;
  filter: drop-shadow(0 10px 18px rgba(15,23,42,.25));
}

.stats-band {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  border-radius: 22px; padding: 22px 16px; margin: 22px 0 44px;
  text-align: center; color: #fff;
}
.stats-band b { display: block; font-size: 1.7rem; font-weight: 900; }
.stats-band span { font-size: .78rem; font-weight: 700; opacity: .85; }

.sec-head { text-align: center; margin: 46px 0 20px; }
.sec-head .eyebrow {
  color: var(--teal); font-weight: 900; letter-spacing: .16em;
  text-transform: uppercase; font-size: .74rem; margin-bottom: 6px;
}

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; font-size: 1.35rem;
  background: color-mix(in srgb, var(--tint, #00897B) 13%, transparent);
  margin-bottom: 10px;
}

.pricing .featured { position: relative; border-color: var(--teal); border-width: 2px; }
.pricing .flag {
  position: absolute; top: -11px; left: 20px;
  background: var(--teal); color: #fff; font-size: .68rem; font-weight: 900;
  letter-spacing: .08em; padding: 3px 10px; border-radius: 999px;
}
.pricing .once { font-size: 1rem; color: var(--grey); font-weight: 800; }

@media (max-width: 820px) {
  .hero2 { grid-template-columns: 1fr; padding-top: 30px; text-align: center; }
  .hero2 .sub { margin-left: auto; margin-right: auto; }
  .hero2 .store-btns { justify-content: center; }
  .trust-row { justify-content: center; }
  .hero2-phones { height: 460px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero2-phones .back { right: auto; left: 8px; }
  .hero2-phones .front { right: 8px; }
  .hero2-phones .hero-remy { right: 42%; }
  .stats-band { grid-template-columns: repeat(3, 1fr); gap: 16px 8px; }
}

/* Coming-soon store badges (pre-launch /dl page) */
.store-btns .soon {
  background: var(--surface); color: var(--grey); border: 1.5px dashed var(--stroke);
  font-weight: 800; padding: 12px 22px; border-radius: 14px; font-size: .95rem; cursor: default;
}
.hero2 .store-btns .note { text-align: left; }
