:root {
  --blue: #045090;
  --blue-deep: #033F72;
  --blue-raised: #0E62A6;
  --tint: #EEF4FB;
  --line: #DCE7F4;
  --night: #0A0F1F;
  --text: #0B2545;
  --muted: #4A6485;
  --accent: #E26800;
  --link-hover: var(--blue);
  --chip: rgba(4, 80, 144, 0.08);
  --chip-active: rgba(4, 80, 144, 0.14);
  --max: 1160px;
  --gutter: 20px;
  --radius: 24px;
  --font-body: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-store: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--text);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Brand-blue bands: same components, light-on-dark tokens. */
.on-blue {
  --text: #FFFFFF;
  --muted: #D6E4F7;
  --accent: #FF8A1F;
  --link-hover: #FFC08A;
  position: relative;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(92, 147, 204, 0.45), transparent 60%),
    radial-gradient(700px 500px at -10% 70%, rgba(14, 98, 166, 0.6), transparent 60%),
    var(--blue);
}

.tint { background: var(--tint); }

img { display: block; max-width: 100%; height: auto; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 4.2vw + 24px, 76px); letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 2.4vw + 22px, 52px); }
h3 { font-size: 19px; line-height: 1.2; }

a { color: inherit; }
a:hover { color: var(--link-hover); }

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

.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  z-index: 100;
  top: -100px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue);
  color: #FFFFFF;
  font-weight: 800;
}
.skip:focus { top: 12px; }

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(2), .js .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .bento .reveal:nth-child(3), .js .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .bento .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .bento .reveal:nth-child(5) { transition-delay: 0.32s; }
.js .bento .reveal:nth-child(6) { transition-delay: 0.40s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Decorative paws in the blue bands */
.paw {
  position: absolute;
  z-index: 0;
  fill: #FFFFFF;
  opacity: 0.07;
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}
.paw-1 { width: 180px; top: 6%; left: -40px; --rot: -20deg; }
.paw-2 { width: 110px; top: 58%; left: 6%; --rot: 15deg; animation-delay: -3s; }
.paw-3 { width: 260px; right: -70px; bottom: -60px; --rot: -10deg; animation-delay: -5s; }
.paw-4 { width: 90px; top: 8%; right: 12%; --rot: 25deg; animation-delay: -7s; }
.paw-5 { width: 220px; top: -50px; right: -50px; --rot: 20deg; }
.paw-6 { width: 140px; bottom: 4%; left: 4%; --rot: -15deg; animation-delay: -4s; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(4, 80, 144, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
}
.brand:hover { color: var(--blue); }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 0 1.5px rgba(4, 80, 144, 0.15);
}

.nav { display: none; gap: 28px; font-weight: 700; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

.langs { display: flex; gap: 2px; font-size: 13px; font-weight: 800; }
.langs a {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}
.langs a:hover { color: var(--text); background: var(--chip); }
.langs a[aria-current] { color: var(--blue); background: var(--chip-active); }

.btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--blue);
  color: #FFFFFF;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { color: #FFFFFF; background: var(--blue-raised); }

.header-cta { display: none; }

@media (min-width: 600px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 900px) {
  .nav { display: flex; margin-right: 8px; }
}

/* ---------- Store buttons ---------- */

.stores {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}

.store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-store);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store:hover { transform: translateY(-2px); }

.store-apple {
  background: #FFFFFF;
  color: var(--blue);
  box-shadow: 0 10px 30px rgba(0, 6, 24, 0.35);
}
.store-apple:hover { color: var(--blue); }

.store-google {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 24px rgba(0, 6, 24, 0.3);
}
.store-google:hover { color: #FFFFFF; }

@media (min-width: 600px) {
  .stores { flex-direction: row; }
  .store { flex: 1 1 0; }
}

/* ---------- Hero ---------- */

.hero { padding: 40px 0 32px; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 800;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.25);
}

.lead {
  max-width: 32em;
  font-size: clamp(18px, 0.4vw + 16px, 21px);
  color: var(--muted);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 7px; }
.trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 8px auto 0;
  padding-top: 10px;
}
.hero-glow {
  position: absolute;
  inset: 10% -10% -10%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22), transparent 70%);
  filter: blur(10px);
}
.hero-phone {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 40px 60px rgba(0, 10, 40, 0.45));
}

.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--blue-deep);
  box-shadow: 0 16px 40px rgba(0, 10, 40, 0.35);
  animation: float 7s ease-in-out infinite;
}
.chip-1 { top: 2%; left: -4%; }
.chip-2 { right: -4%; bottom: 10%; animation-delay: -3.5s; }
.chip-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
}
.chip-icon-orange { background: #FFF0E0; color: #E26800; }
.chip-icon-green { background: #E3F7E9; color: #1E9E4A; }
.chip-text { display: flex; flex-direction: column; line-height: 1.15; }
.chip-text small { font-size: 11px; font-weight: 700; color: #4A6485; }
.chip-text strong { font-size: 15px; font-weight: 800; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 64px; }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
  }
  .hero-media { max-width: 480px; margin-top: 0; padding-top: 24px; }
  .hero-phone { transform: perspective(1400px) rotateY(-8deg) rotateX(2deg); }
  .chip-1 { top: 6%; left: -10%; }
  .chip-2 { right: -10%; bottom: 14%; }
}

/* ---------- Sections ---------- */

.section { padding: 80px 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}
.section-head p:not(.eyebrow) { max-width: 36em; font-size: 17px; color: var(--muted); }

@media (min-width: 900px) {
  .section { padding: 120px 0; }
  .section-head { align-items: center; text-align: center; margin-bottom: 56px; }
  .section-head p:not(.eyebrow) { font-size: 19px; }
}

/* ---------- Feature grid ---------- */

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  border-radius: var(--radius);
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(4, 80, 144, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(4, 80, 144, 0.12);
}
.card p { font-size: 14px; color: var(--muted); }
.card h3 { font-size: 17px; }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 14px;
}
.ic-purple { background: #EFE6FF; color: #6D3FD4; }
.ic-orange { background: #FFF0E0; color: #E26800; }
.ic-green  { background: #E3F7E9; color: #1E9E4A; }
.ic-blue   { background: #E3EEFB; color: var(--blue); }
.ic-red    { background: #FFE6E6; color: #D63B3B; }
.ic-teal   { background: #E0F5F4; color: #0F8A85; }

@media (min-width: 600px) {
  .bento { gap: 16px; }
  .card { gap: 10px; padding: 26px; }
  .card p { font-size: 15px; }
  .card h3 { font-size: 19px; }
  .card-icon { width: 52px; height: 52px; border-radius: 16px; }
}
@media (min-width: 900px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ---------- Stories ---------- */

.stories {
  display: grid;
  gap: 88px;
  padding-bottom: 40px;
}

.story { display: grid; gap: 28px; }

.story-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.story-text { max-width: 30em; font-size: 17px; color: var(--muted); }

.checks {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  font-weight: 700;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checks li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #E3F7E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E9E4A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.story-media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.story-media::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(160deg, var(--tint), #DCEBFB);
  z-index: 0;
}
.story:nth-child(2) .story-media::before { background: linear-gradient(160deg, #E3F7E9, #D5F0E6); }
.story:nth-child(3) .story-media::before { background: linear-gradient(160deg, #FFF0E0, #FFE4CC); }
.story:nth-child(4) .story-media::before { background: linear-gradient(160deg, #EFE6FF, #E2D8FB); }
.story-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 28px 40px rgba(4, 40, 90, 0.28));
}
.story-media-cards img { max-width: 400px; }

@media (min-width: 768px) {
  .story {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }
  .story:nth-child(even) .story-copy { order: 2; }
}

@media (min-width: 1024px) {
  .stories { gap: 120px; padding-bottom: 80px; }
  .story { gap: 96px; }
  .story-text { font-size: 19px; }
  .checks { font-size: 17px; }
  .story-media img { max-width: 420px; }
  .story-media-cards img { max-width: 460px; }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: 0 8px 30px rgba(4, 80, 144, 0.06);
}
.steps p { font-size: 15px; color: var(--muted); }
.step-n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* ---------- Gallery ---------- */

.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* full-bleed scroller whose first card lines up with .wrap content */
  padding: 4px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 24px;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 236px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-snap-align: start;
}

.phone {
  position: relative;
  padding: 9px;
  border-radius: 38px;
  background: var(--night);
  box-shadow: 0 0 0 2px #2A3142, 0 20px 40px rgba(2, 20, 60, 0.28);
  transition: transform 0.2s ease;
}
.phone::after {
  /* dynamic island */
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 26%;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--night);
}
.shot:hover .phone { transform: translateY(-6px); }
.phone img {
  width: 100%;
  aspect-ratio: 220 / 472;
  object-fit: cover;
  object-position: top;
  border-radius: 30px;
}

.shot p,
.soon p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--muted);
}
.shot strong,
.soon strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.shot p { padding: 0 6px; }

@media (min-width: 1100px) {
  .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 28px;
    overflow: visible;
  }
}

/* ---------- Coming soon ---------- */

.soon-section { padding-top: 0; }
.soon-title {
  margin-bottom: 20px;
  font-size: clamp(28px, 1.2vw + 22px, 38px);
}

.soon { display: grid; gap: 12px; }
.soon li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1.5px dashed #9BBCE0;
  color: var(--blue);
}
.soon svg { flex-shrink: 0; }

@media (min-width: 720px) {
  .soon { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ---------- Download CTA ---------- */

.cta { padding: 72px 0; }

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  text-align: center;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-note { font-size: 14px; font-weight: 700; color: var(--muted); }

.cta-media img {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 45% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 45% 50%, #000 55%, transparent 100%);
}

@media (min-width: 900px) {
  .cta { padding: 96px 0; }
  .cta-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 48px;
    text-align: left;
  }
  .cta-copy { align-items: flex-start; }
  .cta-media img { max-width: 520px; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 28px 0 calc(36px + env(safe-area-inset-bottom));
  background: var(--blue-deep);
  color: #D6E4F7;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.brand-footer { margin: 0; font-size: 22px; color: #FFFFFF; }
.brand-footer:hover { color: #FFFFFF; }
.brand-footer img { width: 32px; height: 32px; border-radius: 9px; box-shadow: none; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}
.footer-links a { color: #FFFFFF; }
.footer-links a:hover { color: #FFC08A; }

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100vh;
  text-align: center;
  color: var(--muted);
}
.not-found h1 { color: var(--accent); }
.not-found .langs { margin-top: 16px; font-size: 15px; }
