/* ScanPass — palette and type from the CrewPass brand concept (docs/brand/CrewPass-Brand.html) */
:root {
  --navy: #1B3A5C;
  --navy-deep: #0F2640;
  --teal: #2EC4B6;
  --teal-light: #5DD9CE;
  --teal-glow: rgba(46, 196, 182, 0.15);
  --white: #FFFFFF;
  --sand: #F7F5F2;
  --gray-100: #F0EFED;
  --gray-300: #C4C2BE;
  --gray-500: #8A8884;
  --gray-600: #6B6965; /* text-safe gray (AA on sand/white) */
  --gray-700: #4A4845;
  --ink: #1A1917;
  --coral: #E76F51;
  --gold: #E9C46A;

  --radius: 20px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px rgba(27, 58, 92, 0.1);
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 38, 64, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.brand img { border-radius: 9px; }
.site-header nav { margin-left: auto; }
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--navy-deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--teal-light); }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(46, 196, 182, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1.2px;
  max-width: 13ch;
}
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 20px;
  max-width: 34em;
}

.download {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-block;
  opacity: 0.95;
  cursor: default;
}
.store-badge img { width: 160px; height: auto; }
.coming-soon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
}
.coming-soon .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(233, 196, 106, 0.2);
}
.qr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}
.qr img { border-radius: 10px; background: var(--white); }
.qr figcaption {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  max-width: 8em;
}

.hero-points {
  display: flex;
  gap: 22px;
  margin-top: 32px;
  flex-wrap: wrap;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-points li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230F2640' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* ---------- iPhone frame (CSS) ---------- */
.phone {
  position: relative;
  width: min(320px, 78vw);
  padding: 10px;
  background: #0B0B0C;
  border-radius: 52px;
  box-shadow:
    0 0 0 2px #2A2A2D,
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 0 0 10px rgba(46, 196, 182, 0.08);
}
.phone img {
  width: 100%;
  border-radius: 42px;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  background: var(--gray-100);
}
.phone-sm {
  width: 100%;
  padding: 7px;
  border-radius: 38px;
  box-shadow: 0 0 0 2px #2A2A2D, 0 18px 36px rgba(15, 38, 64, 0.18);
}
.phone-sm img { border-radius: 31px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-white { background: var(--white); }
/* Label text in navy (teal on sand/white fails WCAG AA); teal kept as the accent bar */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
}
.section-label-light { color: var(--teal-light); }
.section h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  max-width: 20ch;
  margin-bottom: 48px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3, .step h3, .audience-item h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.card p, .step p, .audience-item p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--gray-700);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--sand);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 18px;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  right: -18px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
  transform: rotate(45deg);
}

/* Screenshots */
.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.screen figcaption {
  text-align: center;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

/* Audience */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience-item {
  border-top: 3px solid var(--teal);
  padding-top: 20px;
}

/* Privacy */
.privacy-band {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.privacy-band h2 { color: var(--white); margin-bottom: 0; }
.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px 64px;
  align-items: start;
}
.privacy-list {
  display: grid;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}
.privacy-list li {
  display: flex;
  gap: 12px;
}
.privacy-list li::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.link-light {
  grid-column: 2;
  color: var(--teal-light);
  font-weight: 600;
  text-decoration: none;
}
.link-light:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 32px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-small { font-size: 17px; }
.brand-small img { border-radius: 7px; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-left: auto;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.copyright { color: rgba(255, 255, 255, 0.6); }

/* ---------- Privacy policy page ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.legal .updated {
  color: var(--gray-600);
  margin: 10px 0 40px;
  font-size: 15px;
}
.legal h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 36px 0 10px;
}
.legal p, .legal li {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--gray-700);
}
.legal p + p { margin-top: 12px; }
.legal ul {
  list-style: disc;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.legal a { color: var(--navy); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-visual { order: 2; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .screens {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 12px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .screen { flex: 0 0 min(240px, 62vw); scroll-snap-align: center; }
  .privacy-inner { grid-template-columns: 1fr; }
  .link-light { grid-column: 1; }
}

@media (max-width: 720px) {
  .site-header nav { display: none; }
  .btn-small { margin-left: auto; }
  .section { padding: 72px 0; }
  .section h2 { margin-bottom: 32px; }
  .features, .steps, .audience { grid-template-columns: 1fr; }
  .step:not(:last-child)::after {
    top: auto;
    bottom: -18px;
    right: 50%;
    transform: translateX(50%) rotate(135deg);
  }
  .download { gap: 20px; }
  .footer-links { margin-left: 0; width: 100%; }
}

section[id] { scroll-margin-top: 64px; }
