:root {
  --navy: #0a2540;
  --navy-deep: #071a30;
  --blue: #135a96;
  --sky: #e8f3fa;
  --steel: #d8e2ea;
  --ice: #f7fbfe;
  --orange: #f4731c;
  --orange-dark: #d95f0e;
  --ink: #16283b;
  --muted: #5b6b7c;
  --line: rgba(10, 37, 64, 0.12);
  --shadow: 0 12px 32px rgba(7, 26, 48, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ice);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

.container { width: min(1060px, 100% - 40px); margin: 0 auto; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 251, 254, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 0.93rem; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--blue); }
.nav-links a.button { color: #fff; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}
.button:hover { background: var(--orange-dark); }
.button.small { min-height: 38px; padding: 0 16px; font-size: 0.9rem; }
.button.secondary { background: #fff; color: var(--blue); border-color: var(--line); }
.button.secondary:hover { background: var(--sky); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--ice) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  margin: 0 0 12px;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.hero-copy {
  margin: 16px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.play-qr {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  max-width: 330px;
}
.play-qr img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  flex: 0 0 auto;
}
.play-qr p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.play-qr strong { display: block; color: var(--navy); font-size: 0.9rem; }
.play-qr span { display: block; }
.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--ink);
}
.trust-row li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

.hero-visual { display: flex; justify-content: center; }
.phone-shell {
  width: 100%;
  max-width: 300px;
  border-radius: 30px;
  background: var(--navy-deep);
  padding: 8px;
  box-shadow: var(--shadow);
}
.phone-shell img {
  width: 100%;
  border-radius: 23px;
}

/* Sections */
.section { padding: 64px 0; }
.section.white { background: #fff; border-bottom: 1px solid var(--line); }
.section-title { max-width: 680px; }
.section-title.center { margin: 0 auto; text-align: center; }
.section-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-title p { color: var(--muted); font-size: 1rem; margin: 12px 0 0; }

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.card {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--ice);
  border-radius: 14px;
}
.card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* Screenshot gallery (collapsed by default) */
.screens { background: var(--sky); border-bottom: 1px solid var(--line); }
.gallery { margin-top: 28px; }
.gallery summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
}
.gallery summary::-webkit-details-marker { display: none; }
.gallery summary:focus-visible .summary-button { outline: 2px solid var(--blue); outline-offset: 2px; }
.summary-button { pointer-events: none; }
.gallery .label-open { display: none; }
.gallery[open] .label-open { display: inline; }
.gallery[open] .label-closed { display: none; }
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.thumb { margin: 0; text-align: center; }
.thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.thumb-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.thumb-btn img {
  width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  object-fit: cover;
  object-position: top center;
}
.thumb figcaption { margin-top: 8px; font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.gallery-hint { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 18px 0 0; }

/* Lightbox */
dialog#lightbox {
  border: none;
  border-radius: 14px;
  padding: 0;
  background: var(--navy-deep);
  max-width: min(460px, 92vw);
  max-height: 92vh;
}
dialog#lightbox::backdrop { background: rgba(7, 26, 48, 0.75); }
#lightbox-img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; }
#lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

/* Split (privacy posture) */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.notice {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--sky);
  border: 1px solid var(--line);
}
.notice p { margin: 0; color: var(--ink); font-size: 0.92rem; }
.feature-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.feature-list li {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--ice);
  border: 1px solid var(--line);
}
.feature-list strong { color: var(--navy); display: block; margin-bottom: 2px; }
.feature-list span { color: var(--muted); font-size: 0.92rem; }

/* CTA */
.cta {
  padding: 40px 44px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.cta h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.cta a { color: #fff; }
.cta-actions { display: grid; gap: 14px; justify-items: center; text-align: center; }
.cta-actions .button { white-space: nowrap; }
.play-qr.dark {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.play-qr.dark p { color: rgba(255,255,255,0.8); }
.play-qr.dark strong { color: #fff; }

/* Footer */
.footer { padding: 36px 0; background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal pages (privacy.html, terms.html) */
.legal-main { padding: 56px 0; background: #fff; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.03em; color: var(--navy); margin: 0 0 12px; }
.legal h2 { margin-top: 30px; color: var(--navy); font-size: 1.2rem; }
.legal p, .legal li { color: #41536a; }

/* Responsive */
@media (min-width: 901px) and (max-width: 1500px) {
  h1 { font-size: clamp(2.05rem, 3.05vw, 2.45rem); white-space: nowrap; }
  .hero-copy { max-width: 680px; }
}

@media (min-width: 721px) and (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; padding: 48px 0; }
  .hero-copy-wrap { max-width: 100%; }
  h1 { font-size: clamp(1.55rem, 3.45vw, 1.85rem); white-space: nowrap; }
  .hero-copy { max-width: 520px; }
  .hero-visual { justify-content: flex-start; transform: translateX(-22px); }
  .phone-shell { max-width: 220px; }
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { min-height: 56px; }
  .brand { font-size: 1rem; }
  .brand img { width: 32px; height: 32px; }
  .nav-links {
    display: flex;
    gap: 12px;
    margin-left: auto;
    font-size: 0.86rem;
  }
  .nav-links a[href="#features"],
  .nav-links a[href="#screens"] { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 38px; }
  .hero-copy-wrap { max-width: 30rem; text-align: center; }
  .hero-actions { justify-content: center; }
  .trust-row { justify-content: center; }
  .hero-visual { order: 2; }
  .phone-shell { max-width: 200px; border-radius: 24px; padding: 7px; }
  .phone-shell img { border-radius: 18px; }
  h1 { font-size: clamp(2rem, 9vw, 2.45rem); line-height: 1.08; }
  .hero-copy { font-size: 1rem; line-height: 1.55; }
  .play-qr { display: none; }
  .section { padding: 44px 0; }
  .cards { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: 1fr; padding: 28px 24px; }
  .cta-actions .button { width: 100%; white-space: normal; text-align: center; }
}

@media (max-width: 420px) {
  .container { width: min(1060px, 100% - 28px); }
  .hero-actions .button { width: 100%; }
  .thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thumb-btn { transition: none; }
}
