:root {
  --navy: #1F3A5F;
  --accent: #2E75B6;
  --light-navy: #A8C4DC;
  --panel: #EEF2F6;
  --bg: #f6f8fb;
  --text: #1F3A5F;
  --muted: #5b6b7c;
  --error: #c0392b;
  --success: #1d8348;
  --warning: #e67e22;
  --card: #ffffff;
  --border: #e3e7ec;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; line-height: 1.55;
  display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ================= HEADER / NAV ================= */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: #fff;
  padding: 14px 28px; display: flex; align-items: center; gap: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
header.site .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
header.site .brand:hover { text-decoration: none; }
header.site .brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
header.site .brand-text { font-weight: 300; letter-spacing: 1px; font-size: 20px; line-height: 1; }
header.site .brand-text b { font-weight: 700; }
header.site .brand-tag { font-size: 10px; letter-spacing: 4px; color: var(--light-navy); margin-top: 4px; }
header.site .brand-tagline {
  font-size: 11.5px; font-style: italic; color: var(--light-navy);
  margin-top: 3px; letter-spacing: 0.3px;
}
header.site .spacer { flex: 1; }

nav.main { display: flex; align-items: center; gap: 4px; }
nav.main .dropdown { position: relative; }
nav.main .dropdown-trigger {
  color: #fff; background: transparent; border: 0;
  padding: 10px 16px; font-size: 14px; font-weight: 500;
  letter-spacing: 0.3px; cursor: pointer; border-radius: 6px;
  transition: background 0.15s; font-family: inherit;
}
nav.main .dropdown-trigger:hover { background: rgba(255,255,255,0.10); }
nav.main .dropdown-trigger::after { content: ' ▾'; font-size: 11px; opacity: 0.85; }
nav.main .dropdown.active > .dropdown-trigger { background: rgba(255,255,255,0.10); }
nav.main .dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #fff; color: var(--text);
  min-width: 240px; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 6px; display: none;
}
nav.main .dropdown.open .dropdown-menu { display: block; }
nav.main .dropdown-menu a {
  display: block; color: var(--text); padding: 10px 14px;
  border-radius: 6px; font-size: 14px;
}
nav.main .dropdown-menu a:hover { background: var(--panel); text-decoration: none; }
nav.main .dropdown-menu a.current { color: var(--accent); font-weight: 600; }
nav.main .nav-account {
  display: flex; align-items: center; gap: 8px; padding-left: 6px;
  border-left: 1px solid rgba(255,255,255,0.18); margin-left: 6px;
}
nav.main .nav-account .nav-email { color: var(--light-navy); font-size: 13px; }
nav.main .nav-account button {
  background: rgba(255,255,255,0.10); color: #fff; border: 0;
  padding: 8px 14px; border-radius: 6px; font-size: 13px;
  cursor: pointer; font-family: inherit;
}
nav.main .nav-account button:hover { background: rgba(255,255,255,0.18); }

/* Top-right Customer Login button — rendered only on pages that opt in
   (currently home page). White-on-navy so it pops against the dark header. */
header.site .customer-login-cta {
  background: #fff; color: var(--navy);
  padding: 9px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  letter-spacing: 0.3px; text-decoration: none; display: inline-block;
  margin-right: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.15s, background 0.15s;
}
header.site .customer-login-cta:hover {
  background: #f4f7fa; transform: translateY(-1px); text-decoration: none;
}

.mobile-toggle {
  display: none; background: transparent; border: 0; color: #fff;
  font-size: 24px; padding: 6px 10px; cursor: pointer;
}
@media (max-width: 920px) {
  nav.main { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy);
    flex-direction: column; align-items: stretch; padding: 8px 12px;
    display: none; gap: 0; box-shadow: 0 8px 16px rgba(0,0,0,0.18);
  }
  nav.main.open { display: flex; }
  nav.main .dropdown-trigger { padding: 12px 16px; text-align: left; width: 100%; }
  nav.main .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.06);
    color: #fff; min-width: 0; padding: 0;
  }
  nav.main .dropdown-menu a { color: #fff; padding-left: 32px; }
  nav.main .dropdown-menu a:hover { background: rgba(255,255,255,0.10); }
  nav.main .nav-account { border-left: 0; padding: 8px 16px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .mobile-toggle { display: block; }
}

/* ================= HERO ================= */
section.hero {
  background: linear-gradient(135deg, #1F3A5F 0%, #2E75B6 100%);
  color: #fff; padding: 80px 28px 70px;
}
section.hero .wrap { max-width: 1100px; margin: 0 auto; }
section.hero h1 {
  font-size: 44px; font-weight: 800; margin: 0 0 18px;
  letter-spacing: -0.5px; line-height: 1.15; max-width: 820px;
}
section.hero .lede { font-size: 19px; max-width: 720px; margin: 0 0 30px; color: #e6edf5; }
section.hero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
section.hero .btn-primary {
  background: #fff; color: var(--navy);
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; font-family: inherit; letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18); transition: transform 0.15s;
  text-decoration: none; display: inline-block;
}
section.hero .btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
section.hero .btn-ghost {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5);
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block;
}
section.hero .btn-ghost:hover { background: rgba(255,255,255,0.10); text-decoration: none; }

/* Customer Login — visually distinct from Sign-up so returning customers
   spot it quickly. Accent-blue band on white text, sized to match btn-primary. */
section.hero .btn-customer-login {
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 0; cursor: pointer; font-family: inherit; letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18); transition: transform 0.15s, background 0.15s;
  text-decoration: none; display: inline-block;
}
section.hero .btn-customer-login:hover { transform: translateY(-1px); background: #1f5d96; text-decoration: none; }

/* ================= GENERIC SECTIONS ================= */
main { display: block; flex: 1; }
section.block { padding: 64px 28px; }
section.block .wrap { max-width: 1100px; margin: 0 auto; }
section.block h2 {
  font-size: 32px; font-weight: 700; color: var(--navy);
  margin: 0 0 8px; letter-spacing: -0.3px;
  padding-bottom: 14px; border-bottom: 3px solid var(--accent);
  display: inline-block;
}
section.block h3 {
  font-size: 22px; color: var(--navy); margin: 28px 0 8px; font-weight: 700;
}
section.block p { font-size: 16px; margin: 0 0 16px; }
section.block .lede { font-size: 18px; color: var(--muted); margin-top: 18px; max-width: 800px; }

section.block.alt { background: #fff; }

/* ================= CARD GRID ================= */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; margin-top: 28px;
}
.card {
  background: var(--panel); border: 1px solid var(--border);
  padding: 22px; border-radius: 10px;
}
.card h4 { margin: 0 0 8px; color: var(--navy); font-size: 17px; font-weight: 700; }
.card p { margin: 0; font-size: 14.5px; color: var(--text); }

/* ================= PROCESS STRIP ================= */
.process { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
.process .step {
  display: grid; grid-template-columns: 64px 1fr; gap: 0;
  background: var(--panel); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
}
.process .step .num {
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.process .step .body { padding: 16px 20px; }
.process .step .body h4 { margin: 0 0 4px; color: var(--navy); font-size: 17px; }
.process .step .body p { margin: 0; font-size: 14.5px; color: var(--text); }

/* ================= SIGN UP / PAYMENT ================= */
.signup-card {
  margin-top: 28px; max-width: 720px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 36px; box-shadow: 0 6px 18px rgba(31,58,95,0.06);
}
.price-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 18px; background: var(--panel); border-radius: 10px;
  margin: 18px 0 24px;
}
.price-row .price { font-size: 32px; font-weight: 800; color: var(--navy); }
.price-row .price-meta { color: var(--muted); font-size: 14px; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block; font-weight: 600; font-size: 13.5px;
  color: var(--text); margin-bottom: 6px;
}
.form-row input {
  width: 100%; padding: 11px 13px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 8px; outline: none;
  transition: border 0.15s; font-family: inherit;
}
.form-row input:focus { border-color: var(--accent); }
.form-row .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.form-error { color: var(--error); font-size: 14px; margin: 8px 0; min-height: 1.4em; }
.form-success { color: var(--success); font-size: 14px; margin: 8px 0; min-height: 1.4em; }
.btn-block {
  width: 100%; padding: 14px; font-size: 16px; font-weight: 700;
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  cursor: pointer; font-family: inherit; transition: background 0.15s;
}
.btn-block:hover:not(:disabled) { background: #3a85c8; }
.btn-block:disabled { background: #aab5c2; cursor: not-allowed; }
.btn-secondary {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
  padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer;
  font-family: inherit; font-size: 14px;
}
.btn-secondary:hover { background: var(--panel); }

/* Password input + Show/Hide toggle */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--accent);
  font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 4px 10px; font-family: inherit; border-radius: 4px;
}
.password-toggle:hover { background: rgba(46,117,182,0.08); text-decoration: none; }

/* Forgot password link + status text on the sign-in form */
.forgot-password-row { text-align: right; margin-top: 6px; }
.forgot-password-row a { font-size: 13px; color: var(--accent); cursor: pointer; }
.forgot-password-row a:hover { text-decoration: underline; }
.forgot-password-msg {
  margin-top: 10px; font-size: 13px; color: var(--success);
  background: #eafaf1; padding: 8px 12px; border-radius: 6px;
  border: 1px solid #b6dec6; display: none;
}
.forgot-password-msg.show { display: block; }
.signup-toggle { text-align: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.signup-toggle a { cursor: pointer; }

.paid-banner {
  background: #e6f4ea; border: 1px solid #b6dec6;
  color: var(--success); padding: 18px 22px; border-radius: 12px;
  margin-bottom: 24px; display: flex; gap: 14px; align-items: center;
}
.paid-banner .check { font-size: 22px; }

.pending-banner {
  background: #fef3e6; border: 1px solid #f7d4a3;
  color: #9a5a14; padding: 18px 22px; border-radius: 12px;
  margin-bottom: 24px;
}

/* ================= CONTACT ================= */
.contact-strip {
  margin-top: 28px;
  background: var(--navy); color: #fff;
  padding: 32px 36px; border-radius: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 600px) { .contact-strip { grid-template-columns: 1fr; } }
.contact-strip h4 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.contact-strip .lbl { color: var(--light-navy); font-size: 13px; margin-right: 6px; }
.contact-strip a { color: #fff; }

/* ================= MOBILE OVERRIDES =================
   Single ≤640px breakpoint that tightens spacing and trims font sizes for
   phone-sized viewports. All public marketing pages, signup, customer hub,
   and data gathering inherit from this stylesheet so improvements here
   ripple across the whole site. Desktop styles remain unchanged. */
@media (max-width: 640px) {
  /* Header — tighten brand text so it doesn't fight the hamburger toggle */
  header.site { padding: 12px 16px; gap: 12px; }
  header.site .brand-mark { width: 34px; height: 34px; }
  header.site .brand-text { font-size: 17px; letter-spacing: 0.5px; }
  header.site .brand-tag { font-size: 9px; letter-spacing: 3px; }
  header.site .brand-tagline { font-size: 10.5px; margin-top: 2px; }
  header.site .customer-login-cta { padding: 8px 14px; font-size: 12.5px; margin-right: 6px; }

  /* Hero — much less padding, smaller h1, buttons stack vertically */
  section.hero { padding: 40px 20px 36px; }
  section.hero h1 { font-size: 28px; line-height: 1.2; margin: 0 0 14px; }
  section.hero .lede { font-size: 16px; line-height: 1.5; margin: 0 0 22px; }
  section.hero .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  section.hero .btn-primary,
  section.hero .btn-ghost,
  section.hero .btn-customer-login {
    width: 100%; text-align: center; padding: 13px 20px; font-size: 15px;
  }

  /* Generic content sections */
  section.block { padding: 36px 18px; }
  section.block h2 { font-size: 24px; padding-bottom: 10px; }
  section.block h3 { font-size: 19px; margin: 22px 0 6px; }
  section.block p { font-size: 15.5px; }
  section.block .lede { font-size: 16px; margin-top: 14px; }

  /* Cards — tighter padding so they don't crowd phone screen edges */
  .card-grid { gap: 12px; margin-top: 20px; }
  .card { padding: 16px 18px; }
  .card h4 { font-size: 16px; }
  .card p { font-size: 14px; }

  /* Process strip — narrower number column */
  .process .step { grid-template-columns: 50px 1fr; }
  .process .step .num { font-size: 20px; }
  .process .step .body { padding: 12px 14px; }
  .process .step .body h4 { font-size: 16px; }

  /* Signup / payment cards — less padding on phones */
  .signup-card { padding: 22px 18px; border-radius: 10px; margin-top: 20px; }
  .price-row { padding: 12px 14px; margin: 14px 0 20px; }
  .price-row .price { font-size: 26px; }
  .form-row { margin-bottom: 12px; }
  .form-row input { padding: 12px 13px; font-size: 16px; /* 16px prevents iOS Safari auto-zoom on focus */ }
  .btn-block { padding: 14px; font-size: 16px; }

  /* Contact strip — already stacks at 600px, but trim padding here too */
  .contact-strip { padding: 22px 20px; gap: 18px; }

  /* Footer — tighter padding */
  footer.site { padding: 18px 18px; font-size: 12.5px; }
}

/* ================= FOOTER ================= */
footer.site {
  background: var(--navy); color: var(--light-navy);
  padding: 24px 28px; text-align: center; font-size: 13px;
  border-top: 4px solid var(--accent);
  margin-top: auto;
}
footer.site b { color: #fff; }
