/* ---------- Phone frame with a real screenshot ---------- */
.phone {
  --w: min(272px, 70vw);
  position: relative;
  flex: none;
  width: var(--w);
  aspect-ratio: 9 / 19;
  border-radius: calc(var(--w) * 0.155);
  background: #161513;
  padding: calc(var(--w) * 0.032);
  box-shadow: inset 0 0 0 1.5px #46443f, 0 40px 80px -36px rgba(28, 27, 24, 0.55);
  font-size: calc(var(--w) / 19.5);
}
.phone::before {
  content: ""; position: absolute; top: calc(var(--w) * 0.062); left: 50%;
  width: 26%; height: calc(var(--w) * 0.072); transform: translateX(-50%);
  background: #000; border-radius: 99px; z-index: 6;
}
.screen {
  position: absolute; inset: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.125); overflow: hidden; background: var(--bg);
}
.screen.shot { background: linear-gradient(var(--top, #f2f1ef) 0 50%, var(--bot, #f2f1ef) 50% 100%); padding-top: 2.1em; transition: background 0.35s ease; }
.screen.shot img { display: block; width: 100%; height: auto; }
.sb { position: absolute; top: 0.95em; left: 1.7em; right: 1.7em; display: flex; justify-content: space-between; font-size: 0.78em; font-weight: 700; z-index: 5; }
.sb.dk { color: #fff; }
.sb i { width: 1.6em; height: 0.8em; border: 1.5px solid currentColor; border-radius: 0.25em; position: relative; display: inline-block; }
.sb i::after { content: ""; position: absolute; inset: 1.5px; right: 35%; background: currentColor; border-radius: 1px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(60px, 8.5vw, 112px) 0 0; overflow: hidden; border-bottom: 1px solid var(--ink); }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.25rem, 13vw, 7rem);
  line-height: 1.1; letter-spacing: -0.05em; margin: 0; max-width: 12em; text-wrap: balance;
}
.eyebrow { margin: 0 0 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.hero-grid { display: grid; gap: 32px; margin-top: clamp(24px, 3vw, 36px); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
/* the line cuts through the blank area above "Flight Assistant", so it never slices the + button row */
.hero .hero-art { height: calc(min(300px, 72vw) * 1.67 + 10px); }
@media (min-width: 960px) { .hero .hero-art { margin-top: -110px; } .hero .hero-copy { padding-bottom: 4px; } }
.hero-copy { padding-bottom: 40px; }
#hero-form .btn { background: var(--coral); color: var(--ink); }
.sub { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--ink); max-width: 28em; margin: 0 0 24px; }
.fine { font-size: 0.8125rem; color: var(--muted); margin: 16px 0 0; }
.hero-art { position: relative; height: clamp(430px, 40vw, 520px); }
.hero-art .phone { position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotate(-3deg); --w: min(300px, 72vw); }
.hero-art .sticker { position: absolute; right: 2%; top: 4%; width: min(190px, 40vw); transform: rotate(12deg); z-index: 3; }

/* ---------- Problem line ---------- */
.problem { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 0; }
.problem p { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -0.025em; max-width: 24em; margin: 0; }

/* ---------- Spec: sticky phone + running list ---------- */
.spec { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); display: grid; gap: 0; }
@media (min-width: 960px) { .spec { grid-template-columns: 7fr 5fr; gap: 80px; } }
.spec-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.75rem, 6vw, 5rem); line-height: 0.95; letter-spacing: -0.045em; margin: 0 0 40px; max-width: 12em; }
.entry { padding: 44px 0 52px; border-top: 1px solid var(--ink); }
@media (min-width: 960px) { .entry { min-height: 48vh; } }
.entry .no { font-family: var(--serif); font-size: 1.125rem; color: var(--coral-dark); }
.entry h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: -0.04em; margin: 8px 0 16px; }
.entry p { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); max-width: 31em; margin: 0; }
.entry .inline { margin-top: 36px; }
@media (min-width: 960px) { .entry .inline { display: none; } }
.spec-phone { display: none; }
@media (min-width: 960px) {
  .spec-phone { display: block; position: sticky; top: 96px; align-self: start; height: max-content; padding-top: 44px; }
  .spec-phone .phone { --w: min(310px, 24vw, calc((100vh - 170px) * 9 / 19)); margin: 0 auto; }
}
.phone .stack { position: relative; }
.phone .stack img { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.35s ease; }
.phone .stack img:first-child { position: relative; }
.phone .stack img.on { opacity: 1; }

/* ---------- Alerts band ---------- */
.band { background: var(--ink); color: var(--cream); padding: clamp(56px, 9vw, 120px) 0; }
.band-top { display: grid; gap: 28px; }
@media (min-width: 960px) { .band-top { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; } }
.band .big { font-family: var(--serif); font-weight: 500; font-size: clamp(6.25rem, 18vw, 14.5rem); line-height: 0.78; letter-spacing: -0.07em; color: var(--coral); margin: 0; }
.band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1; letter-spacing: -0.04em; margin: 0 0 18px; }
.band p { font-size: 1.0625rem; line-height: 1.65; color: #D9D2C2; max-width: 30em; margin: 0; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px 40px; margin-top: clamp(48px, 7vw, 88px); }
.band .more { margin-top: 36px; color: #D9D2C2; }
.group { border-top: 1px solid rgba(239, 233, 220, 0.4); padding-top: 14px; }
.group h4 { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin: 0 0 10px; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; padding: 3px 0; color: #fff; }

/* ---------- FAQ ---------- */
.faq { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); display: grid; gap: 32px; }
@media (min-width: 960px) { .faq { grid-template-columns: 5fr 7fr; gap: 80px; } }
.faq h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 0.95; letter-spacing: -0.045em; margin: 0; }
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--serif); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; font-weight: 300; flex: none; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; font-size: 1rem; line-height: 1.7; color: var(--ink-2); max-width: 38em; }

/* ---------- Join ---------- */
.join { background: var(--coral); color: var(--ink); padding: clamp(56px, 9vw, 120px) 0; scroll-margin-top: 60px; }
.join h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(3.5rem, 11vw, 9rem); line-height: 0.84; letter-spacing: -0.06em; margin: 0 0 28px; }
.join-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .join-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; } }
.join .lead { font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.5; max-width: 24em; margin: 0; }
.join form.signup input, .join form.signup select { border-bottom-color: var(--ink); }
.join .success { border-color: var(--ink); }
.join .fine { color: var(--ink); }

/* ---------- Sticky CTA (phones) ---------- */
.ctabar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 10px; background: var(--ink); color: #fff;
  transform: translateY(160%); pointer-events: none;
}
.ctabar { padding: 8px; }
.ctabar .btn { flex: 1; background: var(--coral); color: var(--ink); }
@media (min-width: 760px) { .ctabar { display: none; } }
@media print { .ctabar { display: none; } }
.join form.signup input::placeholder { color: rgba(28, 27, 24, 0.9); }
.join :focus-visible { outline-color: var(--ink); }
.band :focus-visible { outline-color: var(--coral); }

.screen.shot.bleed { padding-top: 0; }

/* ---------- Passport stamps ---------- */
.stamp, .stamp-img { display: block; pointer-events: none; mix-blend-mode: multiply; }
.stamp { color: var(--coral-dark); opacity: 0.8; width: 120px; }
.stamp-img { opacity: 0.85; width: 130px; height: auto; transform: rotate(-6deg); margin: 0 0 24px; }
.problem { position: relative; }
.stamp.a { margin-top: 24px; transform: rotate(-10deg); }
.stamp.b { margin-top: 32px; transform: rotate(8deg); }
@media (min-width: 760px) {
  .stamp { width: clamp(150px, 16vw, 220px); }
  .stamp-img { width: clamp(150px, 15vw, 200px); margin-bottom: 32px; }
  .stamp.a { position: absolute; right: 24px; top: 50%; margin: 0; transform: translateY(-30%) rotate(-12deg); }
  .stamp.b { margin-top: 48px; }
}
.stamp-img.a { margin: 0 0 20px; }
@media (min-width: 760px) { .stamp-img.a { position: absolute; right: 24px; top: 50%; margin: 0; transform: translateY(-35%) rotate(-8deg); } }
.stamps { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.stamps .stamp-img { margin: 0; width: 120px; }
.stamps .stamp.nz { margin: 0; width: 150px; transform: rotate(5deg); }
@media (min-width: 760px) {
  .stamps { position: absolute; right: 24px; top: 50%; transform: translateY(-40%); margin: 0; gap: 8px; }
  .stamps .stamp-img { width: clamp(130px, 12vw, 170px); transform: rotate(-8deg); }
  .stamps .stamp.nz { width: clamp(160px, 15vw, 210px); }
}
@media (min-width: 760px) { .problem p { max-width: min(24em, calc(100% - clamp(320px, 30vw, 420px))); } }
.stamps .stamp-img.nzi { width: 130px; transform: rotate(4deg); }
@media (min-width: 760px) { .stamps .stamp-img.nzi { width: clamp(150px, 14vw, 200px); transform: rotate(4deg); } }
.stamp-img.stamp-end { margin: 32px 0 0; width: 160px; transform: rotate(-4deg); }
@media (min-width: 760px) { .stamp-img.stamp-end { width: clamp(180px, 16vw, 230px); margin-top: 40px; } }

/* ---------- CRO additions ---------- */
.join .form-error { color: var(--ink); background: #fff; padding: 8px 12px; border-radius: 6px; }
.join .success .share-row, .join .success .share { color: var(--ink); }
.inline-cta { margin: 36px 0 0; }
.band .inline-cta { margin-top: 28px; }
.band .inline-cta .btn { background: var(--coral); color: var(--ink); }
.spec .inline-cta { padding-bottom: 12px; }
.ctabar .btn { min-height: 48px; }
.join form.signup select:has(option[value=""]:checked) { color: rgba(28, 27, 24, 0.9); }

/* ---------- Scroll progress (sits beside the features section) ---------- */
.spec { position: relative; }
.rail { position: absolute; left: calc(8px - max(0px, (100vw - 1240px) / 2)); top: 0; bottom: 0; width: 4px; pointer-events: none; }  /* height is set in app.js so the bar stops exactly where it fills */
.progress { position: sticky; top: 96px; width: 100%; height: calc(100vh - 140px); border-radius: 99px; background: rgba(127, 127, 127, 0.25); }
.progress i { display: block; width: 100%; height: 0; min-height: 4px; border-radius: 99px; background: var(--coral); }
@media print { .rail { display: none; } }

/* ---------- Made in NZ ---------- */
.madein { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 8px; padding-bottom: clamp(48px, 7vw, 88px); }
.madein .stamp-img { margin: 0; width: 150px; transform: rotate(-4deg); }
.madein h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.04em; margin: 0 0 10px; }
.madein p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); max-width: 30em; }
@media (min-width: 760px) { .madein { flex-direction: row; align-items: center; gap: 40px; } .madein .stamp-img { width: clamp(160px, 15vw, 210px); } }

/* ---------- Stamp strip between features and alerts ---------- */
.stamp-row { padding-top: 8px; padding-bottom: clamp(40px, 6vw, 72px); }
.stamp-row .stamp-img { display: block; margin: 0; width: 170px; transform: rotate(3deg); }
@media (min-width: 760px) { .stamp-row .stamp-img { width: clamp(180px, 16vw, 230px); } }
.band + .madein { padding-top: clamp(40px, 6vw, 72px); }

/* ---------- Malaysia stamp beside the features button ---------- */
.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.cta-row .btn { flex: none; }
.cta-row { --sw: clamp(160px, 15vw, 210px); }
.cta-row .btn { position: relative; z-index: 2; }
.cta-row .stamp-my { position: relative; z-index: 1; order: -1; margin: 0 calc(var(--sw) / -2 - 16px) 0 0; width: var(--sw); height: auto; transform: translate(-14px, 196px) rotate(-14deg); }
.spec .inline-cta { padding-bottom: 0; }
@media (max-width: 759px) { .cta-row { --sw: 124px; } .cta-row .stamp-my { transform: translate(-6px, 112px) rotate(-14deg); } }
@media (min-width: 760px) { .spec { padding-bottom: clamp(180px, 22vw, 280px); } }
.madein p + p { margin-top: 10px; }
@media (max-width: 759px) { .spec { padding-bottom: 170px; } }
.madein-sec { padding-bottom: clamp(48px, 7vw, 88px); }
.madein-rule { height: 1px; background: var(--ink); margin: 0 0 clamp(32px, 4vw, 48px); }
.madein-sec .madein { padding: 0; }

@media (min-width: 960px) { .hero .hero-art .phone { left: calc(50% + 44px); } }


/* Map screens: a soft light fade behind the status bar so the clock never fights the map labels */
.screen.shot.scrim::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3.4em; pointer-events: none; z-index: 4; background: linear-gradient(rgba(242, 241, 239, 0.9), rgba(242, 241, 239, 0)); }

/* Made in NZ: copy on the left, a square photo on the right */
.madein-grid { display: grid; gap: 32px; align-items: center; }
.madein-photo { display: block; width: min(100%, 360px); height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
@media (min-width: 900px) {
  .madein-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
  .madein-photo { width: clamp(260px, 28vw, 400px); justify-self: end; }
}

/* ---------- Phones only (desktop and tablet are untouched) ---------- */
@media (max-width: 759px) {
  html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
  a, button, summary { -webkit-tap-highlight-color: transparent; }
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.05em; }
  /* taller, easier fields and buttons */
  form.signup input, form.signup select { min-height: 52px; }
  .btn { min-height: 50px; }
  .topbar .btn.sm { min-height: 44px; }
  /* features: a bit tighter so the page is shorter to scroll */
  .entry { padding: 34px 0 38px; }
  .entry .inline { margin-top: 26px; }
  .entry p { font-size: 1rem; line-height: 1.6; }
  /* alerts: two columns instead of one long list */
  .groups { grid-template-columns: 1fr 1fr; gap: 28px 18px; margin-top: 44px; }
  .group h4 { font-size: 0.75rem; }
  .group li { font-size: 1.0625rem; line-height: 1.25; padding: 4px 0; }
  .band .inline-cta .btn { width: 100%; }
  /* FAQ: bigger tap area */
  .faq summary { min-height: 60px; padding: 16px 0; font-size: 1.25rem; }
  .faq details p { font-size: 1rem; line-height: 1.65; }
  /* inline links in body copy are easier to hit */
  .faq details p a, .madein p a { padding: 6px 0; display: inline-block; }
  /* sticky bar: slimmer, softer, thumb-sized button */
  .ctabar { left: 10px; right: 10px; bottom: 10px; padding: 6px; border-radius: 14px; box-shadow: 0 10px 28px rgba(28, 27, 24, 0.28); }
  .ctabar .btn { min-height: 50px; border-radius: 10px; font-size: 1rem; }
  .colophon { padding-bottom: 110px; }
  .colophon a { padding: 8px 0; }
}
@media (max-width: 400px) {
  .brand-name { white-space: nowrap; font-size: 1.3rem; }
  .topbar .btn.sm { white-space: nowrap; padding: 10px 12px; font-size: 0.8125rem; }
  form.signup { grid-template-columns: 1fr 1.5fr; gap: 4px 14px; }
  form.signup input, form.signup select { font-size: 1rem; }
}
/* phones: slightly smaller passport stamps */
@media (max-width: 759px) {
  .stamps .stamp-img { width: 100px; }
  .cta-row { --sw: 104px; }
  .madein .stamp-img { width: 126px; }
}

/* Google Play buttons */
.btn.play { gap: 10px; }
.play-ico { width: 18px; height: 18px; flex: none; }
.hero-copy .btn.play { background: var(--coral); color: var(--ink); padding: 18px 30px; font-size: 1rem; }
@media (max-width: 759px) { .hero-copy .btn.play { width: 100%; } .join .btn.play { width: 100%; } }

/* Official Google Play badge (unmodified; its transparent border is Google's required clear space) */
.play-badge { display: inline-block; line-height: 0; margin-left: -14px; }
.play-badge img { display: block; width: 230px; height: auto; }
.cta-row .play-badge { position: relative; z-index: 2; flex: none; margin-left: 0; }
.ctabar { background: var(--bg); border: 1px solid var(--ink); justify-content: center; padding: 2px 8px; box-shadow: none; }
.ctabar .play-badge { margin-left: 0; }
.ctabar .play-badge img { width: 190px; }
@media (max-width: 759px) {
  .ctabar { padding: 2px 8px; }
  .play-badge img { width: 210px; }
  .ctabar .play-badge img { width: 190px; }
  .cta-row .play-badge img { width: 200px; }
}
/* phones: the sticky button is just the Google Play badge, floating, no frame */
@media (max-width: 759px) {
  .ctabar { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; left: 0; right: 0; width: max-content; margin: 0 auto; bottom: 6px; }
  .ctabar .play-badge img { width: 214px; filter: drop-shadow(0 10px 18px rgba(28, 27, 24, 0.32)); }
}

/* phones: a soft fade behind the floating badge so it pops (light on the page, dark over the dark section) */
@media (max-width: 759px) {
  .ctabar::before, .ctabar::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 100vw; height: 150px; transform: translateX(-50%); pointer-events: none; z-index: -1; transition: opacity 0.3s ease; -webkit-mask-image: linear-gradient(to top, #000 45%, transparent); mask-image: linear-gradient(to top, #000 45%, transparent); }
  .ctabar::before { background: linear-gradient(to top, rgba(242, 241, 239, 0.98), rgba(242, 241, 239, 0.7) 55%, rgba(242, 241, 239, 0)); }
  .ctabar::after { background: linear-gradient(to top, rgba(28, 27, 24, 0.98), rgba(28, 27, 24, 0.7) 55%, rgba(28, 27, 24, 0)); opacity: 0; }
  .ctabar.on-dark::before { opacity: 0; }
  .ctabar.on-dark::after { opacity: 1; }
}

/* these two badges show on desktop and tablet only; phones use the floating badge */
@media (max-width: 759px) { .desk-only { display: none !important; } }

/* desktop: centre the closing "Get the app." block, badge included */
@media (min-width: 760px) {
  .join .wrap { text-align: center; }
  .join h2 { margin-bottom: 20px; }
  .join .join-grid { grid-template-columns: 1fr; gap: 28px; justify-items: center; align-items: start; }
  .join .join-lead { display: flex; justify-content: center; }
  .join .lead { margin: 0 auto; max-width: 30em; }
  .join .play-badge { margin-left: 0; }
  .join .fine { margin-top: 6px; }
}
