:root {
  --navy: #0B1F33;
  --navy-deep: #07182B;
  --blue: #2563EB;
  --blue-tech: #0B74E5;
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --ink: #101828;
  --body: #475467;
  --muted: #667085;
  --line: #E4E7EC;
  --tint: #EAF1FE;

  --c-blue: #2563EB;
  --c-green: #16A34A;
  --c-violet: #7C5CF0;
  --c-orange: #F08A24;
  --c-coral: #EF5B4C;
  --c-cyan: #0EA5C6;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 8px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 10px rgba(16, 24, 40, 0.06), 0 14px 32px rgba(16, 24, 40, 0.08);
  --wrap: 1240px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }

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

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

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Official Google Play badge. The image carries its own transparent margin. */
.play-badge { display: inline-block; line-height: 0; margin-left: -9px; border-radius: 12px; }
.play-badge img { height: 66px; width: auto; }

/* ---------------------------------------------------------------- Header */
.site-header { position: relative; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand-tagline { font-size: 11.5px; color: var(--muted); letter-spacing: 0.01em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15.5px; font-weight: 500; }
.nav a { color: var(--body); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav-badge { line-height: 0; margin-right: -8px; }
.nav-badge img { height: 50px; width: auto; }
.nav-toggle { display: none; }

/* On the landing page the header sits on the hero, its links over the blue field. */
.home .site-header { position: absolute; inset: 0 0 auto 0; background: transparent; border: 0; }
.home .nav a:not(.nav-badge) { color: #fff; }
.home .nav a:not(.nav-badge):hover { color: #DCE8FF; }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F3F7FE 0%, var(--bg) 100%); padding: 128px 0 120px; }
.hero-field { position: absolute; top: 0; right: 0; width: 100%; height: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: 32px; }

.eyebrow-pill { display: inline-block; margin: 0 0 22px; padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; color: var(--navy); }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--blue); position: relative; width: max-content; max-width: 100%; }
.swoosh { position: absolute; left: 0; bottom: -0.2em; width: 92%; height: 0.24em; overflow: visible; }
.swoosh path { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; }
.swoosh path + path { stroke-width: 3; opacity: 0.55; }
.hero-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--body); margin: 34px 0 28px; max-width: 26em; }

.proof { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.proof p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--body); }
.proof p span { display: block; }
.proof-icons { display: flex; }
.pi { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.pi + .pi { margin-left: -10px; }
.pi svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.blue { background: var(--c-blue); }
.green { background: var(--c-green); }
.violet { background: var(--c-violet); }
.orange { background: var(--c-orange); }
.coral { background: var(--c-coral); }
.cyan { background: var(--c-cyan); }

/* Hero visual: the tilted phone with the benefit cards beside it. */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 560px; }
.phone { position: relative; overflow: hidden; background: #fff; aspect-ratio: 390 / 844; border-radius: 40px; border: 9px solid #0E1726; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px rgba(7, 24, 43, 0.28); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-phone { width: min(318px, 100%); transform: rotate(7deg); border-width: 11px; border-radius: 46px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px rgba(4, 16, 40, 0.45); flex: none; }

.float-cards { display: flex; flex-direction: column; gap: 18px; }
.float-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 14px; padding: 14px 18px 14px 14px; box-shadow: 0 12px 30px rgba(7, 24, 43, 0.22); font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--navy); }
.hero .float-card:nth-child(2) { margin-left: 22px; }
.fc-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.fc-icon svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.spark { position: absolute; width: 40px; height: 40px; }
.spark path { fill: none; stroke: #8BC2FF; stroke-width: 3; stroke-linecap: round; }
.spark-a { top: 2%; left: 4%; }
.hero-arrow { position: absolute; right: 2%; bottom: -2%; width: 110px; height: 74px; }
.hero-arrow path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }

@media (prefers-reduced-motion: no-preference) {
  .hero .float-card { animation: float 7s ease-in-out infinite; }
  .hero .float-card:nth-child(2) { animation-delay: -2.3s; }
  .hero .float-card:nth-child(3) { animation-delay: -4.6s; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------------------------------------------------------------- Sections */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.eyebrow { color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }
.section-title { font-size: clamp(30px, 3.6vw, 46px); }
.section-lead { margin: 0; font-size: 17px; max-width: 30em; }

/* Features: a white sheet that rises over the hero. */
.features { position: relative; z-index: 2; margin-top: -40px; background: var(--surface); border-radius: 36px 36px 0 0; padding: 80px 0 104px; }
.script-note { margin: 0 4% 6px 0; font-family: "Caveat", cursive; font-weight: 600; font-size: 27px; line-height: 1.05; color: var(--blue); transform: rotate(-7deg); text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature h3 { font-size: 20px; margin: 18px 0 8px; }
.feature p { margin: 0; font-size: 16px; }
.f-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center; }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}

/* App showcase */
.showcase { padding: 96px 0 104px; background: var(--bg); }
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen { text-align: center; }
.screen-stage { position: relative; padding: 0 12%; }
.screen-stage::before { content: ""; position: absolute; inset: 9% 0 -2% 0; border-radius: 28px; opacity: 0.16; }
.stage-green::before { background: var(--c-green); }
.stage-blue::before { background: var(--c-blue); }
.stage-cyan::before { background: var(--c-cyan); }
.stage-violet::before { background: var(--c-violet); }
.screen .phone { border-width: 8px; border-radius: 34px; box-shadow: 0 20px 40px rgba(7, 24, 43, 0.18); }
.screen h3 { font-size: 19px; margin: 26px 0 6px; }
.screen p { margin: 0 auto; font-size: 15.5px; max-width: 24ch; }

/* Final call to action */
.cta { padding: 0 0 96px; background: var(--bg); }
.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 340px; padding: 56px 64px; border-radius: 28px; background: radial-gradient(120% 140% at 100% 0%, #3B82F6 0%, rgba(59, 130, 246, 0) 55%), linear-gradient(115deg, var(--navy) 0%, #12357F 45%, var(--blue) 100%); color: #DCE8FF; }
.cta-copy h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); }
.cta-copy p { margin: 12px 0 26px; font-size: 19px; color: #DCE8FF; }
.cta-visual { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 260px; }
.cta-phone { width: 210px; transform: rotate(-6deg) translateY(30%); margin: -56px 0 -56px; flex: none; }
.cta-cards { gap: 14px; }
.cta-cards .float-card { padding: 10px 16px 10px 10px; font-size: 14.5px; box-shadow: 0 10px 26px rgba(4, 16, 40, 0.3); }
.cta-cards .fc-icon { width: 34px; height: 34px; border-radius: 9px; }
.cta-cards .fc-icon svg { width: 18px; height: 18px; }
.cta-cards .float-card:nth-child(2) { margin-left: 20px; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--navy-deep); color: #9DB0CC; font-size: 15px; padding: 64px 0 0; }
.site-footer a { color: #C8D6EC; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 0.8fr 1.25fr; gap: 40px; align-items: start; }
.footer-logo { height: 30px; width: auto; }
.footer-brand p { margin: 0; max-width: 30em; }
.footer-brand .footer-tagline { margin: 8px 0 18px; color: #8EA3C4; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.site-footer h2 { color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 0; margin: 0 0 6px; }
.qr-card { display: flex; gap: 20px; align-items: flex-start; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); padding: 18px; }
.qr-code { flex: none; line-height: 0; }
.qr-code img { width: 116px; height: 116px; background: #fff; border-radius: 10px; padding: 6px; }
.qr-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.qr-card .play-badge img { height: 52px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; color: #8EA3C4; }

/* ---------------------------------------------------------------- Legal pages */
.legal { padding: 48px 0 72px; background: var(--surface); }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal .updated { color: var(--muted); font-size: 15px; margin: 8px 0 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--body); }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .summary { background: var(--tint); border-radius: var(--radius); padding: 18px 20px; }
.legal .summary p { color: var(--ink); margin: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 8px; }
.legal th { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-phone { width: 260px; }
  .float-card { font-size: 14px; padding: 12px 14px 12px 12px; }
  .screens { gap: 22px; }
  .screen-stage { padding: 0 8%; }
  .cta-panel { padding: 48px; }
  .cta-cards { display: none; }
}

@media (max-width: 1024px) {
  .hero { padding: 120px 0 104px; }
  .hero-visual { flex-direction: column; gap: 22px; min-height: 0; }
  .hero-phone { width: 250px; }
  .float-cards { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .hero .float-card:nth-child(2) { margin-left: 0; }
  .hero-arrow, .spark-a { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); gap: 20px; padding-bottom: 12px; scrollbar-width: none; }
  .screens::-webkit-scrollbar { display: none; }
  .screen { flex: 0 0 248px; scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .qr-card { grid-column: 1 / -1; max-width: 520px; }
}

/* Phones and small tablets: hamburger menu, stacked hero, the blue field moves behind the phone. */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .site-header .wrap { min-height: 64px; }
  .brand img { height: 26px; }
  .brand-tagline { font-size: 10.5px; }

  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav { display: none; position: absolute; top: calc(100% - 4px); left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
  .nav-open .nav { display: flex; }
  .nav a, .home .nav a:not(.nav-badge) { color: var(--ink); padding: 12px 12px; border-radius: 10px; font-size: 16px; }
  .nav a:hover, .home .nav a:not(.nav-badge):hover { background: var(--bg); color: var(--ink); }
  .nav .nav-badge { padding: 4px 0 0; margin: 0; align-self: flex-start; }
  .nav .nav-badge:hover { background: none; }

  .hero { padding: 92px 0 0; background: var(--bg); }
  .hero-field { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .eyebrow-pill { font-size: 12px; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 56px); }
  .hero-lead { margin: 28px 0 22px; }
  .proof { margin-top: 18px; }
  .pi { width: 36px; height: 36px; }

  .hero-visual { margin: 0 calc(-1 * var(--gutter)); padding: 44px var(--gutter) 88px; background: radial-gradient(90% 60% at 80% 10%, #3B82F6 0%, rgba(59, 130, 246, 0) 70%), linear-gradient(160deg, var(--blue-tech) 0%, var(--blue) 50%, #1739A6 100%); border-radius: 60% 40% 0 0 / 44px 44px 0 0; }
  .hero-phone { width: min(250px, 66vw); transform: rotate(4deg); }

  .features { margin-top: -40px; border-radius: 28px 28px 0 0; padding: 56px 0 64px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
  .script-note { display: none; }
  .feature-grid { gap: 14px; }
  .feature { padding: 20px; }
  .feature h3 { margin: 14px 0 6px; font-size: 18px; }
  .feature p { font-size: 15px; }

  .showcase { padding: 56px 0 64px; }
  .br-wide { display: none; }
  .screen { flex-basis: 72%; max-width: 280px; }
  .screen h3 { margin-top: 20px; font-size: 18px; }

  .cta { padding-bottom: 56px; }
  .cta-panel { grid-template-columns: 1fr; padding: 40px 24px 0; border-radius: 22px; text-align: left; }
  .cta-copy p { font-size: 17px; }
  .cta-visual { min-height: 0; height: 210px; overflow: hidden; margin: 0 -24px; }
  .cta-phone { width: 200px; transform: rotate(-5deg); margin: 0; align-self: flex-start; }

  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .qr-card { max-width: none; }
  .footer-bottom { flex-direction: column; margin-top: 36px; }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px; }
  .feature .f-icon { grid-row: span 2; }
  .feature h3 { margin: 0 0 4px; }
}

@media (max-width: 400px) {
  .proof p span { display: inline; }
  .float-card { font-size: 13px; padding: 10px 12px 10px 10px; gap: 9px; }
  .fc-icon { width: 32px; height: 32px; border-radius: 9px; }
  .fc-icon svg { width: 17px; height: 17px; }
  .play-badge img { height: 58px; }
  .qr-card { flex-direction: column; }
}

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