:root {
  --ink: #0b2033;
  --muted: #54677a;
  --paper: #eef5fb;
  --surface: #ffffff;
  --line: #d6e3f0;
  --accent: #1893d5;
  --accent-dark: #0c5b91;
  --accent-soft: #e3f1fb;
  --navy: #0a2a43;
  --navy-2: #0e3a5c;
  --focus: #2d6cdf;
  --shadow: 0 18px 48px rgba(10, 42, 67, 0.14);
  --shadow-sm: 0 8px 24px rgba(10, 42, 67, 0.08);
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent-dark);
  text-decoration-color: rgba(24, 147, 213, 0.4);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 {
  margin-bottom: 1rem;
  font-size: 3.6rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.25rem;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

p {
  color: var(--muted);
}

.icon {
  width: 24px;
  height: 24px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--surface);
  background: var(--navy);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header / nav */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.7rem max(1.5rem, calc((100vw - 1180px) / 2));
  background: rgba(238, 245, 251, 0.9);
  border-bottom: 1px solid rgba(214, 227, 240, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

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

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 7px;
}

.primary-nav a[aria-current="page"],
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.button-primary {
  color: var(--surface);
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(24, 147, 213, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--surface);
  background: var(--accent-dark);
}

.button-ghost {
  color: var(--accent-dark);
  background: transparent;
  border-color: rgba(12, 91, 145, 0.4);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--surface);
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero */
.hero,
.page-hero {
  position: relative;
  padding: 7rem max(1.5rem, calc((100vw - 1180px) / 2)) 5rem;
  color: var(--surface);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(24, 147, 213, 0.55), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-2) 55%, #11507e);
  overflow: hidden;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  min-height: 70svh;
}

.hero-content {
  max-width: 640px;
}

.hero h1,
.page-hero h1 {
  color: var(--surface);
}

.hero-sub {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #8fd3f6;
}

.page-hero {
  padding-top: 6rem;
  padding-bottom: 4.5rem;
}

.page-hero .hero-content {
  max-width: 760px;
}

/* dark-surface ghost button override */
.hero .button-ghost,
.page-hero .button-ghost,
.closing-cta .button-ghost {
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero .button-ghost:hover,
.page-hero .button-ghost:hover,
.closing-cta .button-ghost:hover,
.hero .button-ghost:focus-visible,
.closing-cta .button-ghost:focus-visible {
  color: var(--navy);
  background: var(--surface);
  border-color: var(--surface);
}

.hero-art {
  display: grid;
  place-items: center;
}

.scan-card {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: 2.5rem;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

.scan-card .icon {
  width: 120px;
  height: 120px;
  color: #8fd3f6;
}

.scan-card span {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.scan-card.large {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}

.scan-card.large .icon {
  color: var(--accent);
}

/* Bands */
.band {
  padding: 5rem max(1.5rem, calc((100vw - 1180px) / 2));
}

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

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading p:last-child {
  font-size: 1.1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink);
}

/* Intro band */
.intro-band {
  background: var(--surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.intro-copy p {
  font-size: 1.18rem;
  color: var(--ink);
}

.intro-statement {
  margin: 0;
  padding: 1.6rem 1.8rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.4rem;
}

.card-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel {
  display: block;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  margin-bottom: 0.5rem;
}

.panel p {
  margin-bottom: 0;
}

.values-band {
  background: var(--paper);
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 12px;
}

.icon-badge .icon {
  width: 26px;
  height: 26px;
}

.benefit-card .check-list {
  margin-bottom: 0;
}

/* App / download band */
.app-band {
  background: var(--surface);
  scroll-margin-top: 84px;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
}

.app-media img {
  width: 100%;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 180px;
  padding: 0.6rem 1.1rem;
  color: #fff;
  text-decoration: none;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 12px;
  transition: transform 140ms ease, background 140ms ease;
}

.store-badge:hover {
  color: #fff;
  background: #14304a;
  transform: translateY(-1px);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  color: #fff;
  flex: none;
}

.store-badge span {
  display: grid;
  line-height: 1.15;
}

.store-badge small {
  font-size: 0.68rem;
  opacity: 0.85;
}

.store-badge strong {
  font-size: 1.05rem;
}

/* How it works steps */
.how-band {
  background: var(--paper);
}

.step-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
  display: block;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
  font-weight: 800;
  color: var(--surface);
  background: var(--accent);
  border-radius: 50%;
}

/* Split (introduction "what is") */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: center;
}

.split-copy {
  max-width: 620px;
}

.split-media img {
  width: 100%;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

/* Use cases */
.usecase-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.usecase {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.usecase .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
}

.usecase span {
  font-weight: 600;
  color: var(--ink);
}

/* About band */
.about-band {
  background: var(--surface);
}

.about-inner {
  max-width: 760px;
}

.about-inner p {
  font-size: 1.1rem;
}

/* Story flow (partner) */
.story-flow {
  display: grid;
  gap: 3rem;
  background: var(--surface);
}

.story-block {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.story-block:nth-child(even) .story-copy {
  order: 2;
}

.story-copy {
  max-width: 640px;
}

.story-aside {
  display: block;
}

/* Explainer videos (self-hosted, click-to-play) */
.explainer {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.video-band {
  background: var(--surface);
}

.video-frame {
  max-width: 720px;
  margin-inline: auto;
}

/* Lists */
ul {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.muted-note {
  margin-top: 1.2rem;
  font-size: 0.98rem;
}

/* Closing CTA */
.closing-cta {
  color: var(--surface);
  background:
    radial-gradient(900px 400px at 12% 120%, rgba(24, 147, 213, 0.5), transparent 60%),
    linear-gradient(135deg, var(--navy), #11507e);
}

.closing-inner {
  max-width: 760px;
}

.closing-cta h2 {
  color: var(--surface);
  margin-bottom: 0.75rem;
}

.closing-cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 4rem;
  align-items: start;
  min-height: 56svh;
  background: var(--surface);
}

.contact-details {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.contact-details p {
  margin: 0;
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 700;
}

.contact-form .optional {
  font-weight: 400;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #bcccdb;
  border-radius: 9px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

/* Cloudflare Turnstile widget (rendered only when a site key is configured). */
.cf-turnstile {
  min-height: 65px;
}

/* Legal pages */
.legal-band {
  background: var(--surface);
}

.legal-page {
  max-width: 880px;
  margin-inline: auto;
}

.legal-page h1 {
  font-size: 2.6rem;
}

.legal-intro {
  font-size: 1.15rem;
  color: var(--ink);
}

.legal-page section + section {
  margin-top: 2.2rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-group {
  margin-top: 1.2rem;
}

.legal-group h3 {
  font-size: 1.05rem;
  color: var(--accent-dark);
}

/* 404 */
.compact-page {
  max-width: 760px;
  margin-inline: auto;
  min-height: 50svh;
  text-align: center;
  background: var(--surface);
}

/* Footer */
.site-footer {
  padding: 3.5rem max(1.5rem, calc((100vw - 1180px) / 2)) 1.75rem;
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.site-footer .brand-name {
  color: #fff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 0.4fr);
  gap: 2.5rem;
  align-items: start;
}

.footer-brand .brand {
  margin-bottom: 0.9rem;
}

.footer-brand .brand-logo {
  width: 30px;
}

.footer-brand p {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer nav,
.social-links {
  display: grid;
  gap: 0.7rem;
}

.copyright {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.copyright a {
  color: rgba(255, 255, 255, 0.85);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px) {
  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    max-height: calc(100svh - 72px);
    overflow: auto;
    padding: 1rem 1.5rem 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-open .primary-nav {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    gap: 0.35rem;
  }

  .primary-nav a {
    min-height: 48px;
  }

  .home-hero,
  .intro-grid,
  .app-grid,
  .split,
  .story-block,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .home-hero {
    gap: 2.5rem;
  }

  .story-block:nth-child(even) .story-copy {
    order: 0;
  }

  .hero-art {
    display: none;
  }

  .step-grid,
  .step-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .site-header {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero,
  .page-hero {
    padding: 5.5rem 1.25rem 3.5rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .band {
    padding: 3.5rem 1.25rem;
  }

  .step-grid,
  .step-grid.four {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.4rem;
  }

  .store-badge {
    flex: 1 1 100%;
  }
}
