/* ==========================================================================
   MyLightCrew — main.css
   "Christmas lights at night" theme extracted from the approved landing mockup.
   Mobile-first. All palette colors live in :root below — tweak them there and
   the whole site follows.

   NOTE: the mockup used Archivo (display) + Onest (body) from Google Fonts.
   This kit ships Sora (display) + Inter (body) per the implementation brief;
   the font stacks below were swapped 1:1, everything else is faithful.
   ========================================================================== */

:root {
  /* Brand palette */
  --night: #0a1830;        /* deep navy — page/hero backgrounds */
  --night-2: #0d2341;
  --night-3: #143055;
  --ink: #10233d;          /* headings on light surfaces */
  --body: #3b4c62;         /* body text on light surfaces */
  --surface: #f3f6fa;      /* light page background */
  --card: #ffffff;         /* cards on light surfaces */
  --line: #dce4ed;         /* borders on light surfaces */
  --gold: #f6a723;         /* primary CTA / glow accent */
  --gold-bright: #ffbd4a;  /* hover + accents on dark */
  --gold-soft: #fff2d6;    /* soft gold tint (icon chips, etc.) */
  --snow: #f8fbff;         /* text on dark surfaces */
  --muted-on-dark: #bdc9d8;
  --green: #3cc888;        /* success */
  --shadow: 0 22px 60px rgba(7, 19, 38, .14);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f8fd;
    --body: #becada;
    --surface: #071321;
    --card: #0e2340;
    --line: #213a59;
    --gold-soft: #39280e;
    --shadow: 0 22px 60px rgba(0, 0, 0, .34);
  }
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--snow);
  background:
    radial-gradient(circle at 78% 25%, rgba(30, 78, 121, .48), transparent 28%),
    linear-gradient(145deg, #08172d 0%, var(--night) 48%, #0b203a 100%);
}
.bokeh { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(1px); opacity: .72; }
.b1 { width: 9px; height: 9px; background: #ffd27c; left: 8%; top: 27%; box-shadow: 0 0 23px 9px rgba(246,167,35,.38); }
.b2 { width: 13px; height: 13px; background: #ffb43b; right: 10%; top: 18%; box-shadow: 0 0 31px 11px rgba(246,167,35,.42); }
.b3 { width: 6px; height: 6px; background: #f8dfae; right: 44%; top: 12%; box-shadow: 0 0 20px 7px rgba(246,167,35,.36); }
.b4 { width: 10px; height: 10px; background: #ffc15e; left: 48%; bottom: 17%; box-shadow: 0 0 28px 9px rgba(246,167,35,.25); }
.b5 { width: 7px; height: 7px; background: #ffe6b7; right: 3%; bottom: 29%; box-shadow: 0 0 24px 8px rgba(246,167,35,.28); }

/* ---------- Nav ---------- */
.nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; object-fit: cover; border-radius: 12px;
  box-shadow: 0 0 26px rgba(246,167,35,.18);
}
.wordmark { font-family: "Sora", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.4px; }
.wordmark span { color: var(--gold-bright); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.button) { color: #dbe5f0; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-links > a:not(.button):hover { color: white; }

/* Light-surface nav variant for app pages (override the `nav` block or add the
   class in the child template). The default nav is styled for dark heroes. */
.nav--light { border-bottom-color: var(--line); }
.nav--light .nav-links > a:not(.button) { color: var(--body); }
.nav--light .nav-links > a:not(.button):hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  color: #172033;
  font-weight: 700;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,224,159,.34), 0 0 28px rgba(246,167,35,.28), 0 10px 24px rgba(0,0,0,.2);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.button:hover { background: var(--gold-bright); box-shadow: 0 0 34px rgba(246,167,35,.46), 0 12px 25px rgba(0,0,0,.22); transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.button svg { width: 17px; }
.button.secondary { color: white; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.button.secondary:hover { background: rgba(255,255,255,.11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.38); }
.button.small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Hero copy ---------- */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 66px;
  padding: 78px 0 88px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f6d89f;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); box-shadow: 0 0 10px rgba(246,167,35,.5); }
h1 {
  margin-bottom: 24px;
  max-width: 720px;
  font-family: "Sora", sans-serif;
  font-size: clamp(44px, 5.3vw, 72px);
  line-height: 1.01;
  letter-spacing: -3.5px;
  text-wrap: balance;
}
.hero-copy > p { max-width: 610px; color: #c7d3e1; font-size: 19px; line-height: 1.65; margin-bottom: 28px; }
.price-hook {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 580px;
  margin-bottom: 30px;
  padding: 14px 16px;
  border: 1px solid rgba(246,167,35,.34);
  background: rgba(246,167,35,.08);
  border-radius: 14px;
  color: #f7e5c4;
  font-weight: 600;
  font-size: 14px;
}
.price-hook strong { color: var(--gold-bright); }
.price-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; color: var(--gold); background: rgba(246,167,35,.14); border-radius: 50%; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.microcopy { color: #93a6bb; font-size: 12px; margin-top: 15px; }

/* ---------- Phone mockup scene ---------- */
.phone-scene { position: relative; min-height: 510px; display: grid; place-items: center; }
.halo { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(246,167,35,.13), rgba(41,103,154,.13) 42%, transparent 70%); }
.phone {
  width: min(360px, 88vw);
  position: relative;
  padding: 11px;
  border-radius: 42px;
  background: linear-gradient(145deg, #314a66, #071424 40%, #243b54);
  box-shadow: 0 40px 80px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.16), 0 0 70px rgba(37,100,154,.18);
  transform: rotate(2deg);
}
.phone-screen { min-height: 620px; overflow: hidden; border-radius: 33px; background: #f5f7fa; color: #13243a; }
.phone-top { height: 32px; display: flex; align-items: center; justify-content: center; }
.notch { width: 92px; height: 21px; border-radius: 0 0 13px 13px; background: #081424; }
.app-head { padding: 14px 22px 18px; display: flex; justify-content: space-between; align-items: center; }
.app-head strong { font-family: "Sora", sans-serif; font-size: 21px; }
.avatar { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; background: #102b4e; color: white; font-size: 12px; font-weight: 700; }
.summary { margin: 0 16px; padding: 20px; border-radius: 22px; color: white; background: linear-gradient(140deg, #102a4a, #0b1c35); box-shadow: 0 14px 28px rgba(11,28,53,.22); }
.summary-label { display: flex; align-items: center; justify-content: space-between; color: #b8c8da; font-size: 11px; font-weight: 600; }
.live-dot { display: inline-flex; gap: 5px; align-items: center; color: #77e4ae; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(60,200,136,.7); }
.summary-count { font-family: "Sora", sans-serif; font-size: 39px; line-height: 1; margin: 17px 0 7px; letter-spacing: -1.5px; }
.summary p { color: #b8c8da; margin: 0; font-size: 12px; }
.progress { height: 6px; margin-top: 17px; border-radius: 6px; overflow: hidden; background: #2a4260; }
.progress span { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--gold); box-shadow: 0 0 9px rgba(246,167,35,.7); }
.phone-section { padding: 21px 16px 0; }
.phone-title { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 12px; font-weight: 700; font-size: 13px; }
.phone-title span { color: #7e8da0; font-size: 10px; }
.route { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; background: white; padding: 13px; border-radius: 14px; margin-bottom: 9px; box-shadow: 0 5px 18px rgba(15,35,61,.08); }
.route-time { text-align: center; color: #627288; font-size: 10px; font-weight: 700; }
.route-time strong { display: block; color: #10233d; font-size: 14px; }
.route-name { font-size: 12px; font-weight: 700; }
.route-name span { display: block; margin-top: 3px; color: #7e8da0; font-size: 9px; font-weight: 500; }
.status { color: #16825a; background: #e4f7ee; border-radius: 99px; padding: 5px 7px; font-size: 8px; font-weight: 700; }
.status.gold { color: #8d5a00; background: #fff1d3; }
.phone-nav { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; margin: 21px 13px 11px; padding: 10px 3px; border-radius: 15px; background: white; box-shadow: 0 5px 20px rgba(15,35,61,.08); }
.phone-nav div { display: grid; place-items: center; gap: 4px; color: #8290a2; font-size: 8px; }
.phone-nav svg { width: 17px; height: 17px; }
.phone-nav .active { color: #d88906; font-weight: 700; }
.float-card { position: absolute; z-index: 3; width: 180px; padding: 13px 15px; color: #14253b; background: white; border-radius: 15px; box-shadow: 0 18px 35px rgba(0,0,0,.26); font-size: 11px; }
.float-card strong { display: block; font-size: 13px; margin-bottom: 3px; }
.float-card .check { float: left; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; display: grid; place-items: center; background: #e4f7ee; color: #16825a; }
.f1 { right: -9px; top: 72px; transform: rotate(-2deg); }
.f2 { left: -22px; bottom: 75px; transform: rotate(-1deg); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: end; margin-bottom: 45px; }
.section-head h2 { margin: 0; font-family: "Sora", sans-serif; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -2.2px; text-wrap: balance; }
.section-head p { margin: 0; color: var(--body); font-size: 17px; line-height: 1.7; }
.section-label { display: block; color: #b26e00; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .section-label { color: var(--gold-bright); } }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.feature {
  position: relative;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(8,28,52,.05);
}
.feature:nth-child(1), .feature:nth-child(2) { grid-column: span 6; }
.feature:nth-child(3), .feature:nth-child(4), .feature:nth-child(5) { grid-column: span 4; }
.feature.route-feature { color: white; background: var(--night); border-color: #244261; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 38px; border-radius: 13px; color: #a86300; background: var(--gold-soft); }
.feature-icon svg { width: 22px; height: 22px; }
.route-feature .feature-icon { color: var(--gold-bright); background: rgba(246,167,35,.12); }
.feature h3 { font-family: "Sora", sans-serif; font-size: 21px; margin-bottom: 9px; letter-spacing: -.4px; }
.feature p { max-width: 430px; margin: 0; color: var(--body); font-size: 14px; line-height: 1.65; }
.route-feature p { color: #b9c7d7; }
.feature-number { position: absolute; right: 22px; top: 18px; color: #8a9aad; font-family: "Sora", sans-serif; font-size: 11px; }
.route-feature .feature-number { color: #7790a8; }
.route-lines { position: absolute; right: 25px; bottom: 22px; width: 118px; opacity: .8; }
.route-lines span { display: block; height: 2px; margin: 17px 0; background: linear-gradient(90deg, transparent, #315272, var(--gold)); border-radius: 9px; }
.route-lines span::after { content: ""; float: right; width: 8px; height: 8px; margin-top: -3px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 9px rgba(246,167,35,.55); }

/* ---------- Flow / how-it-works ---------- */
.flow { padding-top: 0; }
.flow-box { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 390px; overflow: hidden; color: white; background: var(--night); border-radius: 26px; box-shadow: var(--shadow); }
.flow-copy { padding: 58px; }
.flow-copy h2 { max-width: 600px; font-family: "Sora", sans-serif; font-size: clamp(34px,4vw,48px); line-height: 1.08; letter-spacing: -2px; margin-bottom: 20px; }
.flow-copy p { max-width: 560px; color: #bdc9d8; line-height: 1.7; }
.flow-steps { align-self: end; padding: 0 50px 50px; display: grid; gap: 10px; }
.flow-step { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; padding: 15px 17px; border-bottom: 1px solid rgba(255,255,255,.11); }
.flow-step:last-child { border-bottom: 0; }
.flow-num { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #172033; background: var(--gold); font-size: 11px; font-weight: 800; }
.flow-step strong { font-size: 14px; }
.flow-step svg { width: 17px; color: #7189a3; }

/* ---------- Pricing / founding offer ---------- */
.pricing { padding: 100px 0; text-align: center; }
.pricing-card { position: relative; overflow: hidden; padding: 70px 30px; color: white; background: linear-gradient(145deg, #0b1b34, #102947); border-radius: 28px; border: 1px solid #2b4764; box-shadow: var(--shadow); }
.pricing-card::before, .pricing-card::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 28px 10px rgba(246,167,35,.38); }
.pricing-card::before { left: 12%; top: 20%; }
.pricing-card::after { right: 10%; bottom: 18%; }
.pricing-kicker { color: var(--gold-bright); font-weight: 700; font-size: 14px; }
.pricing h2 { max-width: 800px; margin: 14px auto 20px; font-family: "Sora", sans-serif; font-size: clamp(37px,5vw,59px); line-height: 1.05; letter-spacing: -2.5px; text-wrap: balance; }
.pricing p { max-width: 610px; margin: 0 auto 30px; color: #c3cfdd; font-size: 17px; }
.deal { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 25px 0 32px; }
.deal-item { display: flex; align-items: center; gap: 9px; color: #e2eaf2; font-size: 14px; }
.deal-item svg { width: 18px; color: var(--gold-bright); }
.cta-note { color: #91a4b9 !important; font-size: 12px !important; margin-top: 15px !important; }

/* ---------- Footer ---------- */
footer { padding: 0 0 calc(34px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--body); font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links > a:not(.button) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; padding-top: 62px; }
  .hero-copy { text-align: center; }
  .hero-copy > p, .price-hook { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .phone-scene { min-height: 650px; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-child(n) { grid-column: span 6; }
  .feature:last-child { grid-column: span 12; }
  .flow-box { grid-template-columns: 1fr; }
  .flow-copy { padding-bottom: 32px; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .nav { height: 72px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 10px; }
  .wordmark { font-size: 17px; }
  .nav .button { min-height: 38px; padding: 0 14px; font-size: 12px; }
  .hero { min-height: auto; }
  .hero-grid { padding: 54px 0 58px; gap: 32px; }
  h1 { font-size: 45px; letter-spacing: -2.5px; }
  .hero-copy > p { font-size: 16px; line-height: 1.6; }
  .price-hook { align-items: flex-start; text-align: left; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .microcopy { text-align: center; }
  .phone-scene { min-height: 580px; margin-top: 8px; }
  .phone { width: min(320px, 89vw); }
  .phone-screen { min-height: 550px; }
  .summary { padding: 17px; }
  .summary-count { font-size: 34px; }
  .float-card { width: 157px; padding: 11px; }
  .f1 { right: -8px; top: 80px; }
  .f2 { left: -7px; bottom: 42px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 36px; letter-spacing: -1.7px; }
  .section-head p { font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(n) { grid-column: 1; min-height: 230px; }
  .feature-icon { margin-bottom: 30px; }
  .flow { padding-top: 0; }
  .flow-box { border-radius: 20px; }
  .flow-copy { padding: 38px 24px 26px; }
  .flow-copy h2 { font-size: 36px; letter-spacing: -1.5px; }
  .flow-steps { padding: 0 10px 24px; }
  .pricing { padding: 72px 0; }
  .pricing-card { padding: 55px 20px; border-radius: 20px; }
  .pricing h2 { font-size: 38px; letter-spacing: -1.8px; }
  .deal { display: grid; justify-content: center; text-align: left; gap: 12px; }
  .pricing .button { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Added when wiring into the Flask app ---------- */
.flash-bar { position: relative; z-index: 10; padding: 10px 14px; background: var(--night-2); color: var(--snow); text-align: center; font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.12); }
.flash-bar .error { color: #ffb4a8; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--body); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
