:root {
  --navy: #0a2a43;
  --navy-2: #0f3d5f;
  --teal: #18a999;
  --green: #55c878;
  --gold: #f4b740;
  --red: #f05d5e;
  --ink: #102033;
  --muted: #667085;
  --line: rgba(10, 42, 67, 0.12);
  --bg: #f7fbff;
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 70px rgba(10, 42, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Offset hash targets below the sticky header (updated in main.js). */
  scroll-padding-top: var(--header-scroll-offset, 7.25rem);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(24, 169, 153, 0.14), transparent 34%),
    radial-gradient(circle at 82% 6%, rgba(244, 183, 64, 0.18), transparent 30%),
    var(--bg);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/pattern-money.svg");
  background-size: 560px 560px;
  opacity: 0.24;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 14px 0 30px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(10, 42, 67, 0.08);
}

.site-header--local {
  background: #356854;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(20, 50, 40, 0.28);
}

.site-header--local .main-nav {
  color: rgba(255, 255, 255, 0.82);
}

.site-header--local .main-nav a:hover {
  color: #fff;
}

.site-header--local .header-theme-toggle,
.site-header--local .header-login {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.site-header--local .header-theme-toggle:hover,
.site-header--local .header-login:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-env {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.brand-logo {
  width: 220px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--navy);
}

.header-cta,
.waitlist-form button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(24, 169, 153, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.header-theme-toggle:hover {
  border-color: rgba(24, 169, 153, 0.55);
  color: var(--teal);
}

.header-theme-toggle:focus-visible {
  outline: 2px solid rgba(24, 169, 153, 0.55);
  outline-offset: 2px;
}

.header-login {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.header-login:hover {
  border-color: rgba(24, 169, 153, 0.55);
  color: var(--teal);
}

.header-cta {
  padding: 12px 18px;
}

.header-cta:hover,
.waitlist-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(24, 169, 153, 0.32);
}

.hero-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
  padding: 56px 0 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 710px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.waitlist-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(100%, 620px);
}

.waitlist-form input {
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  outline: none;
  box-shadow: 0 12px 28px rgba(10, 42, 67, 0.06);
}

.waitlist-form input:focus {
  border-color: rgba(24, 169, 153, 0.72);
  box-shadow: 0 0 0 4px rgba(24, 169, 153, 0.12);
}

.waitlist-form button {
  min-height: 56px;
  padding: 0 24px;
  font-size: 0.97rem;
}

.form-message {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 4px 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-message.success {
  color: #167d45;
}

.form-message.error {
  color: var(--red);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-points span,
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-points span {
  padding: 9px 13px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 48px;
  filter: drop-shadow(0 30px 60px rgba(10, 42, 67, 0.14));
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 72px;
}

.trust-strip div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(10, 42, 67, 0.06);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 6px;
  color: var(--navy);
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 42px 0 76px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2,
.detective-panel h2,
.preview-copy h2,
.waitlist-card h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-heading p,
.panel-copy p,
.preview-copy p,
.waitlist-card p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 20px 50px rgba(10, 42, 67, 0.08);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(24, 169, 153, 0.18), rgba(244, 183, 64, 0.16));
  font-size: 1.45rem;
}

.feature-card h3,
.step h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.18rem;
}

.feature-card p,
.step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detective-panel,
.preview-section,
.waitlist-section {
  margin: 0 0 76px;
  border: 1px solid var(--line);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.detective-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  padding: 34px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(244, 250, 255, 0.88));
  border: 1px solid var(--line);
}

.step span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.preview-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
}

.app-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(10, 42, 67, 0.14);
}

.preview-header {
  display: flex;
  gap: 8px;
  padding: 18px;
  background: var(--navy);
}

.preview-header span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
}

.preview-header span:nth-child(2) {
  background: var(--gold);
}

.preview-header span:nth-child(3) {
  background: var(--red);
}

.preview-content {
  padding: 24px;
}

.preview-card,
.preview-stats > div,
.bar-row {
  border: 1px solid var(--line);
  background: #fff;
}

.preview-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 24px;
}

.preview-card small,
.preview-stats small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.preview-card strong,
.preview-stats strong {
  color: var(--navy);
  font-size: 1.3rem;
}

.badge {
  padding: 8px 12px;
}

.badge.positive {
  border-color: rgba(85, 200, 120, 0.38);
  background: rgba(85, 200, 120, 0.12);
  color: #167d45;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.preview-stats > div {
  padding: 18px;
  border-radius: 24px;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 70px;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  font-size: 0.92rem;
  color: var(--navy);
}

.bar-row div {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(10, 42, 67, 0.08);
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.bar-row b {
  text-align: right;
}

.preview-copy ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.preview-copy li {
  position: relative;
  padding-left: 32px;
  color: var(--navy);
  font-weight: 700;
}

.preview-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(24, 169, 153, 0.14);
  color: var(--teal);
  font-size: 0.9rem;
}

.waitlist-section {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(10, 42, 67, 0.96), rgba(15, 61, 95, 0.94)),
    url("../img/pattern-money.svg");
  background-size: cover, 480px;
  color: #fff;
}

.waitlist-card {
  max-width: 760px;
}

.waitlist-card h2,
.waitlist-card p {
  color: #fff;
}

.waitlist-card p {
  color: rgba(255, 255, 255, 0.78);
}

.waitlist-card .waitlist-form input {
  background: rgba(255, 255, 255, 0.95);
}

.privacy-note {
  margin: 12px 0 0;
  font-size: 0.87rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 170px;
}

.footer-brand span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(24, 169, 153, 0.12);
  color: var(--teal);
  font-weight: 800;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .brand-logo {
    width: 190px;
  }

  .hero-section,
  .detective-panel,
  .preview-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 34px;
  }

  .hero-visual {
    order: -1;
  }

  .trust-strip,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

[data-bs-theme="dark"] {
  color-scheme: dark;
  --navy: #d4e4f4;
  --navy-2: #9eb8d4;
  --teal: #3dd9c8;
  --green: #6dd68f;
  --gold: #f5c85a;
  --red: #ff8586;
  --ink: #e8eef6;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.1);
  --bg: #0b141f;
  --card: rgba(16, 26, 40, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

[data-bs-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 12%, rgba(24, 169, 153, 0.1), transparent 34%),
    radial-gradient(circle at 82% 6%, rgba(244, 183, 64, 0.08), transparent 30%),
    var(--bg);
}

[data-bs-theme="dark"] body::before {
  opacity: 0.07;
}

[data-bs-theme="dark"] .site-header {
  background: rgba(16, 26, 40, 0.84);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

[data-bs-theme="dark"] .site-header--local {
  background: #356854;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(20, 50, 40, 0.35);
}

[data-bs-theme="dark"] .header-theme-toggle,
[data-bs-theme="dark"] .header-login {
  background: rgba(16, 26, 40, 0.92);
  color: var(--navy);
}

[data-bs-theme="dark"] .main-nav a:hover {
  color: var(--teal);
}

[data-bs-theme="dark"] .waitlist-form input {
  background: rgba(16, 26, 40, 0.95);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .hero-points span,
[data-bs-theme="dark"] .badge {
  background: rgba(16, 26, 40, 0.78);
}

[data-bs-theme="dark"] .detective-panel,
[data-bs-theme="dark"] .preview-section {
  background: rgba(16, 26, 40, 0.76);
}

[data-bs-theme="dark"] .step {
  background: linear-gradient(180deg, rgba(22, 34, 50, 0.94), rgba(12, 20, 32, 0.9));
}

[data-bs-theme="dark"] .app-preview {
  background: #141e2c;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .preview-card,
[data-bs-theme="dark"] .preview-stats > div,
[data-bs-theme="dark"] .bar-row {
  background: #1a2638;
}

[data-bs-theme="dark"] .preview-header {
  background: #081420;
}

[data-bs-theme="dark"] .bar-row div {
  background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .form-message.success {
  color: var(--green);
}

[data-bs-theme="dark"] .badge.positive {
  color: var(--green);
}

[data-bs-theme="dark"] .waitlist-section {
  background:
    linear-gradient(135deg, rgba(6, 18, 32, 0.98), rgba(10, 36, 58, 0.96)),
    url("../img/pattern-money.svg");
  background-size: cover, 480px;
}

[data-bs-theme="dark"] .footer-brand span {
  background: rgba(24, 169, 153, 0.18);
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    top: 8px;
    padding: 10px;
  }

  .brand-logo {
    width: 168px;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: clamp(2.4rem, 15vw, 4.1rem);
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .waitlist-form button {
    width: 100%;
  }

  .detective-panel,
  .preview-section,
  .waitlist-section {
    padding: 22px;
    border-radius: 30px;
  }

  .preview-stats {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .bar-row b {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
