/* ============================================================
   FREEROAM — landing styles (pixel-farm holiday edition)
   ============================================================ */

:root {
  /* === Surfaces === */
  --cream:        #fafaf5;     /* warm soft cream page bg */
  --paper:        #ffffff;
  --cream-2:      #f2f1ea;     /* hover/panel */
  --panel-dark:   #1a1e3b;
  --panel-dark-2: #12152d;

  /* === Signature accents === */
  --lime:         #d4ff3f;     /* electric lime */
  --lime-deep:    #b8e82e;
  --lime-tint:    #f0ffd6;
  --coral:        #ff5b3d;
  --coral-deep:   #e84527;
  --sun:          #ffd94a;
  --sun-deep:     #e8b800;
  --sky:          #a5d8f1;
  --sky-deep:     #7cc5e8;
  --peach:        #ffd7c2;
  --teal:         #7fe0e0;
  --plum:         #ffb0d4;
  --mint:         #20d6a4;

  /* === Text / ink === */
  --ink:          #1a1e3b;     /* deep navy-plum */
  --ink-soft:     #3a3f60;
  --muted:        #6a7090;

  /* === Lines === */
  --line:         rgba(26, 30, 59, 0.09);
  --line-strong:  rgba(26, 30, 59, 0.18);

  /* === Type === */
  --font-sans:    'Inter', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-display: 'Unbounded', 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-logo:    'Unbounded', 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;

  /* === Motion === */
  --ease:         cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === Layout === */
  --max:          1200px;
  --gutter:       clamp(18px, 4vw, 40px);
  --radius:       20px;
  --radius-sm:    12px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
*::selection { background: var(--sun); color: var(--ink); }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}


a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ============================================================
   DASHBOARD (signed-in view) — centered card stack
   ============================================================ */
body.is-dash .hero,
body.is-dash .plans,
body.is-dash .how,
body.is-dash .coverage,
body.is-dash .features,
body.is-dash .cta { display: none !important; }

.dash {
  padding: clamp(24px, 4vw, 48px) var(--gutter);
  min-height: calc(100vh - 80px);
  max-width: 760px;
  margin: 0 auto;
}
.dash-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  animation: dashFadeIn 0.45s var(--ease-out);
}
@keyframes dashFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-hi { display: flex; align-items: center; gap: 14px; }
.dash-avatar {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--lime);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -8px rgba(184, 232, 46, 0.55);
}
.dash-hi-eyebrow {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.dash-hi-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 2px 0 0;
  line-height: 1;
}
.dash-signout { font-size: 13px; padding: 9px 16px; }

.dash-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 20px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.dash-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(26, 30, 59, 0.5); }
.dash-cta-label { font-size: 12.5px; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }
.dash-cta strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--lime);
  letter-spacing: -0.01em;
}
.dash-cta svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--lime); }

.dash-section { display: flex; flex-direction: column; gap: 12px; }
.dash-section-head { display: flex; align-items: baseline; gap: 10px; }
.dash-section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-transform: uppercase;
}
.dash-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--lime);
  padding: 2px 9px;
  border-radius: 999px;
}

.dash-sims { display: flex; flex-direction: column; gap: 12px; }
.dash-sim {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.dash-sim:hover {
  transform: translate(-2px, -2px);
  box-shadow: inset 0 0 0 1.5px var(--ink), 6px 6px 0 0 var(--lime);
}
.dash-sim-flag { font-size: 32px; line-height: 1; }
.dash-sim-info { min-width: 0; }
.dash-sim-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.dash-sim-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.dash-sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-sim-badge[data-status="active"]         { background: var(--lime);  color: var(--ink); }
.dash-sim-badge[data-status="pending_install"]{ background: var(--peach); color: var(--ink); }
.dash-sim-badge[data-status="expired"]        { background: #f2f1ea; color: var(--muted); }
.dash-sim-badge[data-status="processing"]     { background: var(--teal);  color: var(--ink); }
.dash-sim-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.dash-sim-actions { display: flex; gap: 6px; flex-shrink: 0; }
.dash-sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
.dash-sim-btn--primary { background: var(--ink); color: var(--lime); }
.dash-sim-btn--primary:hover { background: #000; transform: translateY(-1px); }
.dash-sim-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.dash-sim-btn--ghost:hover { background: var(--cream-2); }

.dash-empty {
  padding: 40px 24px;
  text-align: center;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.dash-empty-icon {
  font-size: 38px;
  margin-bottom: 10px;
  display: inline-block;
  animation: emptyFly 3s ease-in-out infinite;
}
@keyframes emptyFly {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-6px) rotate(6deg); }
}
.dash-empty h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.dash-empty p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

@media (max-width: 640px) {
  .dash-sim { grid-template-columns: auto 1fr; }
  .dash-sim-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 4px; }
  .dash-head { align-items: flex-start; }
  .dash-hi-name { font-size: 22px; }
}

/* ============================================================
   TOP PROMO BAR
   ============================================================ */
.promo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 44px 10px 18px;
  background: linear-gradient(90deg, #bfe2f5 0%, #fff8c7 50%, #ffd9c8 100%);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.promo.is-hidden { display: none; }
.promo-track {
  position: relative;
  height: 22px;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
}
.promo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  color: var(--ink);
  text-decoration: none;
  pointer-events: none;
}
.promo-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.promo-slide strong { font-weight: 700; }
.promo-slide em {
  font-style: normal;
  color: var(--coral);
  font-weight: 700;
  position: relative;
}
.promo-slide em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: promoUnderline 0.8s var(--ease-out) 0.4s forwards;
}
@keyframes promoUnderline { to { transform: scaleX(1); } }
.promo-close {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  opacity: 0.5;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.promo-close:hover { opacity: 1; background: rgba(12,22,48,0.08); }
.promo-close svg { width: 14px; height: 14px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: var(--cream-2);              /* #f2f1ea — matches footer */
  border-bottom: 2px solid var(--ink);     /* matches footer's 2px ink border-top */
  transition: background 0.3s var(--ease);
}
.nav.is-scrolled {
  background: var(--cream-2);
}

/* Simplified app-mode nav (account/signin/app) — same outline, no marketing links */
.nav--app .nav-links,
.nav--simple .nav-links { display: none !important; }
.nav--app, .nav--simple { padding: 14px clamp(16px, 4vw, 40px); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px; height: 22px;
  display: inline-flex;
  color: var(--ink);
  overflow: visible;
}
.logo-mark svg { width: 100%; height: 100%; overflow: visible; }

/* Paper plane mark — flies away to the right, then drifts back into place */
.logo-plane {
  transform-origin: center;
  transform-box: fill-box;
  animation: logoPlaneFly 7s ease-in-out infinite;
}
.logo-plane-fold {
  transform-origin: center;
  transform-box: fill-box;
  animation: logoPlaneFly 7s ease-in-out infinite;
}
.logo-dot {
  transform-origin: center;
  transform-box: fill-box;
  animation: logoDotPulse 2.4s ease-in-out infinite;
}
@keyframes logoPlaneFly {
  0%   { transform: translate(0, 0) rotate(0); opacity: 1; }
  /* sit still, occasional bob */
  25%  { transform: translate(0, -1px) rotate(-1deg); opacity: 1; }
  /* lift off and accelerate away (off to the right) */
  40%  { transform: translate(20px, -10px) rotate(8deg); opacity: 0.9; }
  50%  { transform: translate(60px, -22px) rotate(14deg); opacity: 0; }
  /* off-screen — reset to the left, ready to fly back in */
  51%  { transform: translate(-60px, -22px) rotate(-14deg); opacity: 0; }
  /* curve back in from the left */
  60%  { transform: translate(-22px, -10px) rotate(-6deg); opacity: 0.9; }
  72%  { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(0, 0) rotate(0); opacity: 1; }
}
@keyframes logoDotPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}

.logo-wordmark {
  position: relative;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
  padding-bottom: 4px;
}
.logo-letter {
  display: inline-block;
  transform-origin: center bottom;
  /* No constant animation — only a tiny hover bounce, so the logo isn't busy */
  transition: transform 0.25s var(--ease-out);
}
.logo:hover .logo-letter:nth-child(1) { transform: translateY(-2px); transition-delay: 0s; }
.logo:hover .logo-letter:nth-child(2) { transform: translateY(-2px); transition-delay: 0.04s; }
.logo:hover .logo-letter:nth-child(3) { transform: translateY(-2px); transition-delay: 0.08s; }
.logo:hover .logo-letter:nth-child(4) { transform: translateY(-2px); transition-delay: 0.12s; }
.logo:hover .logo-letter:nth-child(5) { transform: translateY(-2px); transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  .logo-letter, .logo-plane, .logo-dot { animation: none !important; }
}
.logo-swash {
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  width: 100%;
  height: 6px;
  overflow: visible;
  pointer-events: none;
}
.logo-swash path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: swashDraw 1.6s var(--ease-out) 0.6s forwards;
}
@keyframes swashDraw { to { stroke-dashoffset: 0; } }
.logo:hover .logo-swash path {
  animation: swashWiggle 2s ease-in-out infinite;
}
@keyframes swashWiggle {
  0%, 100% { stroke-dashoffset: 0; }
  50%      { stroke-dashoffset: -12; }
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: flex; gap: 10px; align-items: center; position: relative; }

/* when signed in, hide the default buttons */
body.is-authed .nav-signin,
body.is-authed .nav-get { display: none; }
body:not(.is-authed) .nav-user { display: none; }

/* ===== User menu ===== */
.nav-user { position: relative; }
.nav-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
.nav-user-trigger:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.nav-user-trigger:active { transform: scale(0.97); }
.nav-user-avatar {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}
.nav-user-caret { width: 14px; height: 14px; color: var(--muted); transition: transform 0.2s var(--ease); }
.nav-user-trigger[aria-expanded="true"] .nav-user-caret { transform: rotate(180deg); }

.nav-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(26, 30, 59, 0.25), inset 0 0 0 1px var(--line);
  z-index: 50;
  animation: menuDrop 0.2s var(--ease-out);
}
@keyframes menuDrop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-user-info {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.nav-user-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.nav-user-email {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s var(--ease);
}
.nav-user-item:hover { background: var(--cream-2); }
.nav-user-item svg { width: 16px; height: 16px; color: var(--muted); }
.nav-user-item--danger { color: var(--coral); }
.nav-user-item--danger svg { color: var(--coral); }
.nav-user-item--danger:hover { background: color-mix(in srgb, var(--coral) 10%, transparent); }
.nav-user-sep { height: 1px; background: var(--line); margin: 6px 4px; }

@media (max-width: 640px) {
  .nav-user-menu { right: var(--gutter); min-width: calc(100vw - 2 * var(--gutter) - 20px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --pad-y: 11px;
  --pad-x: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 6px 14px -6px rgba(184, 232, 46, 0.65);
}
.btn--primary:hover {
  background: var(--lime-deep);
  box-shadow: 0 12px 24px -8px rgba(184, 232, 46, 0.75);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn--lg { --pad-y: 16px; --pad-x: 28px; font-size: 15px; }

/* ============================================================
   HERO + PIXEL SCENE
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(40px, 6vw, 80px);
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: -1px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.scene-svg {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  shape-rendering: crispEdges;
}

/* ======= Scene cycling layers ======= */
.scene-layer {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
}
.scene-layer.is-active { opacity: 1; }

/* scene tag overlay (pill top-left of hero scene) */
.scene-tag {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(12, 22, 48, 0.72);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.6s var(--ease);
  pointer-events: none;
}
.scene-tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 40%, transparent);
  animation: dotPulse 2s ease-in-out infinite;
}

/* scene picker dots */
.scene-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(12, 22, 48, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.scene-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  padding: 0;
}
.scene-dot:hover { background: rgba(255, 255, 255, 0.7); }
.scene-dot.is-active {
  background: var(--sun);
  width: 22px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 30%, transparent);
}

/* === City scene-specific animations === */
.city-blink {
  animation: cityBlink 1.3s ease-in-out infinite;
}
@keyframes cityBlink {
  0%, 50%, 100% { opacity: 1; }
  51%, 99% { opacity: 0.25; }
}
.city-neon {
  animation: neonFlicker 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px #ff3b8a);
}
@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  6%       { opacity: 0.5; }
  8%       { opacity: 1; }
  50%      { opacity: 0.95; }
  53%      { opacity: 0.6; }
  54%      { opacity: 1; }
}
.city-taxi {
  animation: cityDrive 14s linear infinite;
}
@keyframes cityDrive {
  from { transform: translateX(0); }
  to   { transform: translateX(1700px); }
}

/* === Beach animations === */
.beach-sun {
  transform-origin: 300px 220px;
  transform-box: fill-box;
  animation: beachSunPulse 4s ease-in-out infinite;
}
@keyframes beachSunPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.beach-waves {
  animation: waveDrift 6s ease-in-out infinite;
}
.beach-waves--2 {
  animation: waveDrift 8s ease-in-out infinite reverse;
}
@keyframes waveDrift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-30px); }
}
.palm-fronds {
  transform-origin: center bottom;
  transform-box: fill-box;
  animation: palmSway 4s ease-in-out infinite;
}
@keyframes palmSway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}
.beach-ball {
  animation: beachBallBounce 2.2s ease-in-out infinite;
}
@keyframes beachBallBounce {
  0%, 100% { transform: translate(650px, 760px) rotate(0); }
  50%      { transform: translate(650px, 700px) rotate(180deg); }
}
.beach-gulls {
  animation: gullGlide 12s ease-in-out infinite;
}
@keyframes gullGlide {
  0%, 100% { transform: translateX(0) translateY(0); }
  50%      { transform: translateX(80px) translateY(-10px); }
}

/* === Nightlife animations === */
.night-stars rect {
  animation: starTwinkle 3s ease-in-out infinite;
}
.night-stars rect:nth-child(3n) { animation-delay: 0.6s; }
.night-stars rect:nth-child(5n) { animation-delay: 1.2s; }
.night-stars rect:nth-child(7n) { animation-delay: 1.8s; }
@keyframes starTwinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
.night-neon {
  animation: neonPulse 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px #ff3b8a);
}
@keyframes neonPulse {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 10px #ff3b8a); }
  50%      { opacity: 0.85; filter: drop-shadow(0 0 18px #ff3b8a); }
}
.night-disco {
  animation: discoSpin 4s linear infinite;
}
@keyframes discoSpin {
  0%, 100% { transform: translate(400px, 330px) rotate(0deg); }
  50%      { transform: translate(400px, 330px) rotate(12deg); }
}
.night-beam {
  transform-origin: center top;
  transform-box: fill-box;
  animation: beamSweep 4s ease-in-out infinite;
}
@keyframes beamSweep {
  0%, 100% { transform: rotate(-15deg); }
  50%      { transform: rotate(15deg); }
}

/* === Umrah animations === */
.umrah-stars rect {
  animation: starTwinkle 4s ease-in-out infinite;
}
.umrah-stars rect:nth-child(2n) { animation-delay: 0.8s; }
.umrah-stars rect:nth-child(4n) { animation-delay: 1.4s; }

/* subtle lightening over the sky area so text pops */
.scene-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.05) 100%);
}

/* ---- scene animations ---- */
.scene-sun-rays {
  transform-origin: center;
  transform-box: fill-box;
  animation: sunSpin 40s linear infinite;
}
@keyframes sunSpin { to { transform: rotate(360deg); } }

.scene-sun-disc {
  transform-origin: center;
  transform-box: fill-box;
  animation: sunPulse 4s ease-in-out infinite;
}
@keyframes sunPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.clouds {
  transform-origin: center;
}
.cloud {
  transform: translate(calc(var(--startX, 0) * 1px), var(--y));
  animation: cloudDrift var(--speed, 140s) linear infinite;
  animation-delay: var(--d, 0s);
}
.clouds--far .cloud  { --speed: 240s; opacity: 0.85; transform: scale(0.8) translate(0, var(--y)); }
.clouds--mid .cloud  { --speed: 160s; opacity: 0.95; }
.clouds--near .cloud { --speed:  90s; opacity: 1; transform: scale(1.2) translate(0, var(--y)); }

@keyframes cloudDrift {
  from { translate: -200px 0; }
  to   { translate: 1700px 0; }
}

.balloon {
  animation: balloonFloat 18s ease-in-out infinite;
}
.balloon-bob {
  transform-origin: center;
  transform-box: fill-box;
  animation: balloonSway 6s ease-in-out infinite;
}
@keyframes balloonFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 40px -30px; }
}
@keyframes balloonSway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

.windmill-blades {
  transform-origin: center;
  transform-box: fill-box;
  animation: windmillSpin 7s linear infinite;
}
@keyframes windmillSpin { to { transform: rotate(360deg); } }

.birds {
  animation: birdFly 42s linear infinite;
  animation-delay: -8s;
}
.bird path {
  transform-box: fill-box;
  transform-origin: center;
  animation: birdFlap 0.75s ease-in-out infinite;
}
.bird--lead path { animation-duration: 0.8s; }
.bird:nth-child(2) path { animation-delay: 0.12s; animation-duration: 0.7s; }
.bird:nth-child(3) path { animation-delay: 0.06s; animation-duration: 0.78s; }
@keyframes birdFlap {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.25); }
}
@keyframes birdFly {
  0%   { transform: translate(1700px, 220px); }
  45%  { transform: translate( 700px, 170px); }
  100% { transform: translate(-200px, 200px); }
}

.grass-tufts rect { animation: sway 3s ease-in-out infinite; transform-origin: bottom center; transform-box: fill-box; }
.grass-tufts rect:nth-child(2n) { animation-delay: 0.3s; }
.grass-tufts rect:nth-child(3n) { animation-delay: 0.6s; }
@keyframes sway {
  0%, 100% { transform: skewX(0); }
  50%      { transform: skewX(-8deg); }
}

.flowers > g { animation: sway 4s ease-in-out infinite; transform-origin: bottom center; transform-box: fill-box; }
.flowers > g:nth-child(2n) { animation-delay: 0.4s; }
.flowers > g:nth-child(3n) { animation-delay: 0.8s; }

/* hero content */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
}

/* Big chunky Firsty-style headline */
.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 7.5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: clamp(20px, 4vw, 40px) auto 18px;
  color: var(--ink);
  text-transform: uppercase;
}
.hero-hl {
  display: inline-block;
  padding: 0 14px;
  background: var(--lime);
  border-radius: 12px;
  color: var(--ink);
  transform: rotate(-1deg);
  margin: 0 4px;
}

.hero-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 auto clamp(26px, 3.5vw, 40px);
  line-height: 1.55;
}

.is-shake {
  animation: inputShake 0.45s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ===== Hero capsule (OCEAN water + fish + single search + CTA) ===== */
.hero-capsule {
  position: relative;
  max-width: 820px;
  margin: 0 auto clamp(24px, 3vw, 36px);
  padding: clamp(40px, 6vw, 70px) clamp(22px, 3vw, 40px);
  border-radius: 48px;
  background:
    /* subtle light band to suggest surface */
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 18%),
    /* deep ocean water gradient */
    linear-gradient(180deg, #5ec9d6 0%, #2e9ab0 40%, #1a6e87 100%);
  overflow: hidden;
  box-shadow: 0 22px 60px -28px rgba(10, 37, 64, 0.45);
}

/* Rising bubbles — lightweight, CSS only */
.hero-bubble {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.35));
  opacity: 0.7;
  pointer-events: none;
  animation: heroBubbleRise 12s linear infinite;
}
.hero-bubble--1 { left: 14%; bottom: -10px; animation-delay: -1s; }
.hero-bubble--2 { left: 52%; bottom: -10px; width: 7px; height: 7px; animation-duration: 16s; animation-delay: -7s; opacity: 0.55; }
.hero-bubble--3 { left: 82%; bottom: -10px; width: 6px; height: 6px; animation-duration: 14s; animation-delay: -3s; opacity: 0.6; }
@keyframes heroBubbleRise {
  0%   { transform: translateY(0)    translateX(0); opacity: 0.7; }
  50%  { transform: translateY(-40%) translateX(6px); opacity: 0.6; }
  100% { transform: translateY(-120%) translateX(-4px); opacity: 0; }
}

/* ===== Fish school — 5 little fish drifting across ===== */
.hero-fish {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.fish {
  position: absolute;
  width: 26px;
  height: auto;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.08));
  will-change: transform;
}
/* 3 stagger sizes + 5 fish => small school */
.fish--a { top: 20%; width: 28px; animation: swimRight 22s linear infinite; animation-delay: 0s; }
.fish--b { top: 32%; width: 20px; animation: swimRight 22s linear infinite; animation-delay: -4s; }
.fish--c { top: 26%; width: 18px; animation: swimRight 22s linear infinite; animation-delay: -7s; }
.fish--d { top: 68%; width: 22px; animation: swimLeft  26s linear infinite; animation-delay: -3s; }
.fish--e { top: 74%; width: 26px; animation: swimLeft  26s linear infinite; animation-delay: -12s; }

@keyframes swimRight {
  0%   { transform: translateX(-40px) translateY(0);    }
  25%  { transform: translateX(25vw)  translateY(-4px); }
  50%  { transform: translateX(55vw)  translateY(3px);  }
  75%  { transform: translateX(85vw)  translateY(-2px); }
  100% { transform: translateX(105vw) translateY(0);    }
}
@keyframes swimLeft {
  0%   { transform: translateX(105vw) translateY(0)    scaleX(-1); }
  25%  { transform: translateX(75vw)  translateY(3px)  scaleX(-1); }
  50%  { transform: translateX(45vw)  translateY(-3px) scaleX(-1); }
  75%  { transform: translateX(15vw)  translateY(2px)  scaleX(-1); }
  100% { transform: translateX(-40px) translateY(0)    scaleX(-1); }
}

@media (max-width: 640px) {
  /* On mobile: drop the ocean entirely — no blue background, no fish, no bubbles.
     The capsule becomes a clean cream card so the search + CTA stand alone. */
  .hero-capsule {
    background: var(--paper);
    border-radius: 24px;
    padding: 18px 14px 22px;
    box-shadow: none;
    border: 1px solid var(--line);
  }
  .hero-fish, .hero-bubble { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fish, .hero-bubble { animation: none !important; }
  .fish--b, .fish--c, .fish--d, .fish--e { display: none; }
}

/* "Get your eSIM here" hint: floats far left, arrow points into the capsule's search field */
.hero-hint {
  position: absolute;
  /* Sit BETWEEN the hero title and the search capsule, on the left side of the page.
     The label is above the arrow; the arrow tip lands on the Where-to field. */
  top: clamp(420px, 48%, 600px);
  left: clamp(20px, 4vw, 80px);
  width: clamp(170px, 14vw, 220px);
  z-index: 5;
  pointer-events: none;
  color: var(--ink);
  animation: heroHintBounce 2.6s ease-in-out infinite;
}
.hero-hint-text {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 1.8vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--coral);
  margin-bottom: 6px;
  white-space: normal;
  /* lift the text away from the hero title above */
  transform: translateY(-2px);
}
.hero-hint-arrow {
  width: 100%;
  height: auto;
  display: block;
  color: var(--ink);
}
@keyframes heroHintBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@media (max-width: 1100px) {
  /* hide the hint on tablet and below — the hero is full-width there */
  .hero-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-hint { animation: none; }
}

/* Single big search field (landing hero) */
.hero-search-one {
  position: relative;
  z-index: 20;              /* above the Find my eSIM button so dropdown is never covered */
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 22px;
  max-width: 560px;
  margin: 0 auto 22px;
  box-shadow: 0 20px 40px -16px rgba(10, 37, 64, 0.25);
}
.hero-search-one .hero-field-label {
  font-size: 16px;
  margin-bottom: 6px;
}
.hero-search-one input {
  font-size: 16px;
  padding: 2px 0;
}

/* Picker panel (kept for fallback — unused in the new hero) */
.hero-picker {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr auto 1fr auto 1fr;
  gap: 0;
  background: #ffffff;
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 20px 40px -16px rgba(26, 30, 59, 0.15);
  max-width: 860px;
  margin: 0 auto 24px;
}
.hero-field {
  position: relative;
  padding: 14px 18px;
  border-radius: 18px;
  text-align: left;
  transition: background 0.2s var(--ease);
  cursor: pointer;
}
.hero-field:hover { background: var(--cream-2); }
.hero-field-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.hero-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-field--where input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}
.hero-field--where input::placeholder { color: var(--muted); }
.hero-field-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}
.hero-field--where .search-clear {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.2s var(--ease);
}
.hero-field--where .search-clear:hover { background: var(--cream-2); }
.hero-field--where .search-clear svg { width: 12px; height: 12px; }
.hero-field-divider {
  width: 1px;
  margin: 14px 0;
  background: var(--line);
  align-self: stretch;
}

/* Days counter */
.hero-days {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.hero-days-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--ink);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  transition: background 0.2s var(--ease);
}
.hero-days-btn:hover { background: var(--lime); }
.hero-days-btn:active { transform: scale(0.92); }
.hero-days-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
}
.hero-days-value strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-days-value span { color: var(--muted); font-size: 13px; }

/* Data dropdown button */
.hero-data-btn {
  justify-content: space-between;
  width: 100%;
  padding: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}
.hero-data-btn > span {
  font-size: 14px;
  font-weight: 500;
}
.hero-data-btn[aria-expanded="true"] .hero-field-icon { transform: rotate(180deg); }

.hero-data-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 6px; right: 6px;
  list-style: none;
  margin: 0; padding: 6px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 18px 40px -10px rgba(26, 30, 59, 0.25), inset 0 0 0 1px var(--line);
  z-index: 10;
}
.hero-data-menu li {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.hero-data-menu li:hover { background: var(--cream-2); }
.hero-data-menu li[aria-selected="true"] { background: var(--lime-tint); color: var(--ink); font-weight: 600; }

/* CTA */
.hero-cta {
  position: relative;
  z-index: 1;               /* sits below the search field so dropdown always wins */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  box-shadow: 0 10px 24px -8px rgba(26, 30, 59, 0.45);
}
.hero-cta:hover {
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-2px);
}
.hero-cta:active { transform: translateY(0); }
.hero-cta svg { width: 20px; height: 20px; }

@media (max-width: 780px) {
  .hero-capsule {
    border-radius: 32px;
    padding: 24px 18px 30px;
  }
  .hero-picker {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hero-field-divider {
    width: auto;
    height: 1px;
    margin: 0 14px;
  }
  .hero-data-menu { left: 14px; right: 14px; }
  .hero-hl { display: inline-block; }
  .hero-cta { width: 100%; justify-content: center; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
.eyebrow .dot { background: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 40%, transparent); }
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--terracotta) 40%, transparent);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--terracotta) 40%, transparent); }
  50%      { transform: scale(1.12); box-shadow: 0 0 0 8px color-mix(in srgb, var(--terracotta) 0%, transparent); }
}

.hero-title {
  margin: 22px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  color: #ffffff;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  position: relative;
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: 1%; right: 1%;
  bottom: 0.08em;
  height: 0.1em;
  background: var(--sun);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineDraw 1.2s var(--ease-out) 1.4s forwards;
  z-index: -1;
}
@keyframes underlineDraw { to { transform: scaleX(1); } }

.hero-title .line { display: block; overflow: hidden; padding: 0.05em 0; }
.hero-title .line > span, .hero-title .line em {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1s var(--ease-out) forwards;
  animation-delay: calc(var(--line-delay, 0) * 1ms);
}
@keyframes lineUp { to { transform: translateY(0); } }

.hero-sub {
  max-width: 56ch;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  font-weight: 400;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search {
  position: relative;
  max-width: 640px;
  margin: 0 auto 22px;
  z-index: 10;
}
.search--big { max-width: 700px; }
.search-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 14px;
  padding: 6px 14px 6px 12px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.search-label em {
  font-style: normal;
  color: var(--sun);
  font-weight: 700;
}
.search-zap {
  display: inline-block;
  animation: zapWiggle 2s ease-in-out infinite;
}
@keyframes zapWiggle {
  0%, 90%, 100% { transform: rotate(0) scale(1); }
  92%           { transform: rotate(-15deg) scale(1.2); }
  96%           { transform: rotate(15deg) scale(1.2); }
}
.search-box.is-highlighted {
  /* Animated outline promoted to a pseudo-element so it doesn't repaint the whole box */
  position: relative;
}
.search-box.is-highlighted::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--coral) 45%, transparent);
  opacity: 0;
  pointer-events: none;
  animation: searchRing 3s ease-in-out infinite;
  will-change: opacity;
}
@keyframes searchRing {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  background: var(--paper);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 14px 36px -12px rgba(10, 37, 64, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.search-box--big {
  padding: 12px 12px 12px 28px;
}
.search-box--big .search-icon { width: 24px; height: 24px; color: var(--ink-soft); }
.search-box--big input {
  font-size: 19px;
  font-weight: 500;
  padding: 16px 6px;
}
.search-box--big input::placeholder { font-weight: 500; color: rgba(10, 37, 64, 0.55); }
.search-box--big .search-go {
  padding: 14px 26px;
  font-size: 15.5px;
  font-weight: 600;
  background: var(--coral);
  box-shadow: 0 6px 16px -6px rgba(232, 69, 39, 0.55);
}
.search-box--big .search-go:hover { background: var(--coral-deep); }
.search-box:focus-within {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 18px 48px -14px rgba(30, 42, 58, 0.32),
    0 0 0 2px var(--ink);
}
.search-icon { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }

.search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 4px;
  color: var(--ink);
}
.search input::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }

.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.2s var(--ease);
}
.search-clear:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.search-clear svg { width: 14px; height: 14px; }

.search-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s var(--ease);
}
.search-go svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.search-go:hover { background: #0f1828; }
.search-go:hover svg { transform: translateX(3px); }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--paper);
  border-radius: 14px;
  box-shadow:
    0 24px 60px -20px rgba(26, 30, 59, 0.28),
    inset 0 0 0 1px var(--line);
  max-height: 320px;
  overflow-y: auto;
  animation: dropIn 0.22s var(--ease-out);
  z-index: 20;
}
.hero-field--where { position: relative; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.search-result:hover,
.search-result.is-active { background: color-mix(in srgb, var(--sky) 60%, transparent); }
.search-result-flag { font-size: 22px; line-height: 1; }
.search-result-name { flex: 1; font-weight: 500; }
.search-result-from { color: var(--muted); font-size: 13px; }
.search-result-from strong { color: var(--ink); font-weight: 600; }
.search-empty { padding: 20px; color: var(--muted); text-align: center; }

/* ============================================================
   CHIPS
   ============================================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto clamp(24px, 3vw, 36px);
  align-items: center;
  justify-content: center;
  max-width: 720px;
}
.chips-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
  font-weight: 600;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 13.5px;
  font-weight: 500;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.chip:hover {
  transform: translateY(-1px);
  background: var(--lime);
  box-shadow: inset 0 0 0 1.5px var(--lime-deep), 0 8px 18px -6px rgba(184, 232, 46, 0.5);
}
.chip:active { transform: translateY(0); }

/* ============================================================
   TRUST
   ============================================================ */
.trust {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
  width: fit-content;
  margin: 0 auto;
  color: var(--ink);
}
.trust-item { display: inline-flex; align-items: baseline; gap: 8px; }
.trust-item strong {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.trust-item .plus, .trust-item .unit {
  font-family: var(--font-display);
  font-size: 18px;
  margin-left: -4px;
  font-weight: 600;
}
.trust-item span { color: var(--muted); font-size: 13px; }
.stars { color: var(--sun-deep); font-size: 14px; letter-spacing: 2px; }
.trust-divider { width: 1px; height: 22px; background: var(--line-strong); }

/* ============================================================
   REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--delay, 0) * 1ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   FLOATING DECORATIVE CLOUDS
   ============================================================ */
.cloud-band {
  position: relative;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
  margin-top: -40px;
  z-index: 1;
}
.float-cloud {
  position: absolute;
  background: #fff;
  border-radius: 0;
  box-shadow:
    0 0 0 var(--fc-b, 6px) #fff,
    0 6px 0 0 rgba(0,0,0,0.04);
  image-rendering: pixelated;
}
.float-cloud::before,
.float-cloud::after {
  content: "";
  position: absolute;
  background: #fff;
}

/* pixel cloud shape using box-shadow stacking */
.float-cloud--1 {
  width: 60px; height: 12px;
  top: 30px; left: -80px;
  box-shadow:
    -12px 6px 0 0 #fff,
    12px  6px 0 0 #fff,
    0    -6px 0 0 #fff,
    24px  0   0 0 #fff,
    -24px 0   0 0 #fff;
  animation: floatCloud 60s linear infinite;
}
.float-cloud--2 {
  width: 80px; height: 14px;
  top: 60px; left: -120px;
  box-shadow:
    -16px 8px 0 0 #fff,
    16px  8px 0 0 #fff,
    0    -8px 0 0 #fff,
    -32px 0   0 0 #fff,
    32px  0   0 0 #fff;
  animation: floatCloud 90s linear infinite -30s;
  opacity: 0.85;
}
.float-cloud--3 {
  width: 50px; height: 10px;
  top: 20px; left: -60px;
  box-shadow:
    -10px 6px 0 0 #fff,
    10px  6px 0 0 #fff,
    0    -6px 0 0 #fff;
  animation: floatCloud 45s linear infinite -15s;
  opacity: 0.9;
}
@keyframes floatCloud {
  from { transform: translateX(0); }
  to   { transform: translateX(120vw); }
}

/* section-scoped decorative pixel clouds */
.deco-cloud {
  position: absolute;
  pointer-events: none;
  background: #fff;
  opacity: 0.7;
  image-rendering: pixelated;
  z-index: 0;
}
.deco-cloud::before, .deco-cloud::after {
  content: "";
  position: absolute;
  background: #fff;
}
.deco-cloud--a {
  width: 40px; height: 8px;
  top: 80px; left: 8%;
  box-shadow: -8px 4px 0 0 #fff, 8px 4px 0 0 #fff, 0 -4px 0 0 #fff, 16px 0 0 0 #fff, -16px 0 0 0 #fff;
  animation: floatCloud 80s linear infinite;
}
.deco-cloud--b {
  width: 50px; height: 10px;
  top: 40px; right: 12%;
  box-shadow: -10px 6px 0 0 #fff, 10px 6px 0 0 #fff, 0 -6px 0 0 #fff, 20px 0 0 0 #fff, -20px 0 0 0 #fff;
  animation: floatCloud 120s linear infinite -40s;
}
.deco-cloud--c {
  width: 60px; height: 12px;
  top: 60px; left: 20%;
  box-shadow: -12px 6px 0 0 #fff, 12px 6px 0 0 #fff, 0 -6px 0 0 #fff, 24px 0 0 0 #fff, -24px 0 0 0 #fff;
  animation: floatCloud 110s linear infinite;
}
.deco-cloud--d {
  width: 45px; height: 10px;
  top: 100px; right: 8%;
  box-shadow: -9px 5px 0 0 #fff, 9px 5px 0 0 #fff, 0 -5px 0 0 #fff, 18px 0 0 0 #fff, -18px 0 0 0 #fff;
  animation: floatCloud 95s linear infinite -20s;
}

/* ============================================================
   PLANS
   ============================================================ */
.plans {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  animation: fadeSlide 0.6s var(--ease-out);
  position: relative;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.plans-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.plans-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: -0.04em;
  margin: 8px 0 0;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.plan {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1.5px var(--ink), 6px 6px 0 0 var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.plan:hover { transform: translate(-2px, -2px); box-shadow: inset 0 0 0 1.5px var(--ink), 8px 8px 0 0 var(--lime); }
.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -10%, color-mix(in srgb, var(--sun) 70%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 44px -20px rgba(30,42,58,0.2);
}
.plan:hover::before { opacity: 1; }

.plan--popular {
  background: var(--ink);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.plan--popular::before {
  background: radial-gradient(circle at 80% -10%, var(--sun), transparent 60%);
  opacity: 0.3;
}
.plan--popular:hover::before { opacity: 0.5; }

.plan-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan-data {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
}
.plan-data small {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  opacity: 0.6;
  margin-left: 4px;
}
.plan-days { font-size: 14px; opacity: 0.7; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: auto;
}
.plan-price strong {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}
.plan-price span { font-size: 14px; opacity: 0.6; }

.plan-cta {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s var(--ease);
}
.plan-cta:hover { background: #0f1828; }
.plan--popular .plan-cta { background: var(--sun); color: var(--ink); }
.plan--popular .plan-cta:hover { background: #fff; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--gutter);
}

.section-head { max-width: 820px; margin-bottom: 48px; position: relative; z-index: 1; }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 16px 0 20px;
  color: var(--ink);
  text-transform: uppercase;
}
.section-title em {
  font-style: normal;
  display: inline-block;
  padding: 0 12px;
  background: var(--lime);
  border-radius: 10px;
  color: var(--ink);
  transform: rotate(-1deg);
}
.section-title em::after { display: none; }
.section-sub {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.55;
}

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.step:nth-child(1) { background: var(--teal); }
.step:nth-child(2) { background: var(--lime); }
.step:nth-child(3) { background: var(--plum); }
.step:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 24px 40px -20px rgba(30,42,58,0.15);
}

.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-variation-settings: "opsz" 60;
}
.step-body p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

.step-visual {
  position: absolute;
  right: -20px; bottom: -20px;
  width: 170px; height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  pointer-events: none;
}
.step-search {
  padding: 14px 20px;
  background: var(--cream);
  border-radius: 999px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  position: relative;
  animation: searchPulse 3s ease-in-out infinite;
}
@keyframes searchPulse {
  0%, 100% { transform: rotate(-10deg); }
  50%      { transform: rotate(-4deg) scale(1.04); }
}
.step-caret {
  display: inline-block;
  width: 2px; height: 16px;
  background: var(--ink);
  margin-left: 4px;
  vertical-align: middle;
  animation: caret 1s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.step-qr {
  width: 120px; height: 120px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  transform: rotate(-6deg);
  animation: qrFloat 4s ease-in-out infinite;
}
@keyframes qrFloat {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-6px); }
}
.step-qr span {
  aspect-ratio: 1;
  background: var(--ink);
  border-radius: 2px;
  animation: qrShimmer 3.2s ease-in-out infinite;
}
.step-qr span:nth-child(3n)  { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.step-qr span:nth-child(5n)  { background: var(--sun); }
.step-qr span:nth-child(7n)  { animation-delay: 0.15s; }
.step-qr span:nth-child(11n) { animation-delay: 0.35s; }
.step-qr span:nth-child(13n) { animation-delay: 0.55s; }
@keyframes qrShimmer {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.step-signal { position: relative; width: 100px; height: 100px; }
.step-signal .ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 2px solid var(--ink);
  opacity: 0;
  animation: signal 2.4s ease-out infinite;
}
.step-signal .ring:nth-child(2) { animation-delay: 0.8s; }
.step-signal .ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes signal {
  0%   { transform: scale(0.2); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
.step-signal::after {
  content: "";
  position: absolute;
  inset: 42px;
  background: var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--sun);
}

/* ============================================================
   COVERAGE / POSTCARD
   ============================================================ */
.coverage {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.coverage-text { position: relative; z-index: 1; }

.coverage-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.coverage-stats strong {
  font-family: var(--font-display);
  display: block;
  font-size: 44px;
  letter-spacing: -0.04em;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--ink);
}
.coverage-stats span { color: var(--muted); font-size: 14px; }

.postcard {
  position: relative;
  aspect-ratio: 400 / 240;
  background: #f5f9fc;
  border-radius: 8px;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 24px 50px -16px rgba(10, 37, 64, 0.45),
    0 4px 0 #dde9f3,
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transform: rotate(-2deg);
  transition: transform 0.4s var(--ease);
}
.postcard:hover { transform: rotate(0); }

.postcard::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px dashed var(--line);
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
}
.postcard-scene {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
  display: block;
}
.postcard-stamp {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  padding: 6px 8px;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--line-strong);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  font-variation-settings: "opsz" 60;
  transform: rotate(4deg);
}
.postcard-stamp svg { width: 24px; height: 14px; }

.postcard-postmark {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 2;
  padding: 6px 10px;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transform: rotate(-5deg);
  opacity: 0.8;
}

/* postcard inner animations */
.pc-cloud { animation: cloudDrift 20s linear infinite; }
.pc-cloud--1 { animation-duration: 18s; }
.pc-cloud--2 { animation-duration: 26s; animation-delay: -8s; }
.pc-plane {
  offset-path: path("M 40 60 Q 200 20 360 70");
  offset-distance: 0;
  animation: pcPlane 10s linear infinite;
}
@keyframes pcPlane {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}
.pc-trail {
  stroke-dasharray: 4 4;
  animation: pcTrail 10s linear infinite;
}
@keyframes pcTrail {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -200; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--gutter);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}
.feature {
  position: relative;
  padding: 28px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  overflow: hidden;
}
.feature:hover {
  transform: translate(-2px, -2px);
  box-shadow: inset 0 0 0 1.5px var(--ink), 6px 6px 0 0 var(--lime);
}
.feature::after {
  content: "";
  position: absolute;
  top: 0; left: -50%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s var(--ease);
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 28px 50px -18px rgba(10, 37, 64, 0.35);
  background: #ffffff;
}
.feature:hover::after { left: 150%; }

.feature-icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  margin-bottom: 20px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature:hover .feature-icon {
  background: var(--sun);
  color: var(--ink);
  transform: rotate(-6deg);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-variation-settings: "opsz" 60;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  max-width: var(--max);
  margin: 0 auto clamp(60px, 8vw, 100px);
  padding: 0 var(--gutter);
}
.cta-inner {
  position: relative;
  padding: clamp(60px, 10vw, 120px) clamp(30px, 5vw, 60px);
  background: var(--lime);
  color: var(--ink);
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px var(--ink), 8px 8px 0 0 var(--ink);
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.4), transparent 40%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--coral) 25%, transparent), transparent 55%);
  pointer-events: none;
}

.cta-sun {
  position: absolute;
  top: 8%;
  right: 10%;
  width: 60px; height: 60px;
  background: var(--sun);
  border-radius: 0;
  box-shadow:
    -12px 0 0 0 var(--sun),
    12px 0 0 0 var(--sun),
    0 -12px 0 0 var(--sun),
    0 12px 0 0 var(--sun);
  image-rendering: pixelated;
  animation: sunPulse 4s ease-in-out infinite;
  z-index: 1;
}

.cta-inner > * { position: relative; z-index: 2; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.cta-title em {
  font-style: normal;
  display: inline-block;
  padding: 0 12px;
  background: var(--ink);
  border-radius: 10px;
  color: var(--lime);
  transform: rotate(-1deg);
}
.cta-sub { color: var(--ink-soft); }
.cta-sub {
  font-size: 18px;
  opacity: 0.75;
  margin: 0 0 36px;
}
.cta-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta .btn--primary {
  background: var(--ink);
  color: var(--lime);
  box-shadow: 0 10px 24px -8px rgba(26, 30, 59, 0.5);
}
.cta .btn--primary:hover { background: #000000; color: var(--lime); }
.cta .btn--ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ink);
}
.cta .btn--ghost:hover {
  background: var(--ink);
  color: var(--lime);
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--cream-2);
  color: var(--ink);
  padding: 60px var(--gutter) 40px;
  margin-top: clamp(60px, 10vw, 120px);
  border-top: 2px solid var(--ink);
}
.footer > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.footer .logo { color: var(--ink); }
.footer .logo-wordmark { color: var(--ink); }
.footer .logo-mark { color: var(--ink); }

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}
.footer-tag {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-strong);
}
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
}
.footer-grid a {
  display: block;
  font-size: 14px;
  padding: 4px 0;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.footer-grid a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; }
  .coverage { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: clamp(580px, 80vh, 780px); }
  .postcard { max-width: 520px; margin: 0 auto; }
}

/* ============================================================
   RESPONSIVE — phones (≤ 720)
   ============================================================ */
@media (max-width: 720px) {
  :root { --gutter: 18px; --radius: 16px; }

  /* nav: smaller, no links, no sign-in — just logo + primary CTA */
  .nav {
    padding: 12px var(--gutter);
    gap: 12px;
  }
  .nav-links { display: none; }
  .nav-cta .btn--ghost { display: none; }
  .logo-mark { width: 34px; height: 20px; }
  .logo-wordmark { font-size: 24px; }

  /* hero: tighter vertical rhythm, scene behaves as a bottom band */
  .hero {
    min-height: auto;
    padding: 16px var(--gutter) 0;
    display: flex;
    flex-direction: column;
  }
  .hero-inner { padding-top: 12px; }
  .eyebrow { font-size: 11px; padding: 5px 10px 5px 8px; }
  .hero-title {
    font-size: clamp(42px, 13vw, 72px);
    margin: 14px 0 14px;
    letter-spacing: -0.035em;
  }
  .hero-title em::after { height: 0.11em; bottom: 0.1em; }
  .hero-sub {
    font-size: 15.5px;
    line-height: 1.5;
    margin-bottom: 22px;
  }

  /* search: full width, tighter padding, readable at 16px to avoid zoom */
  .search { max-width: none; margin-bottom: 18px; }
  .search-box {
    padding: 6px 6px 6px 16px;
    gap: 6px;
  }
  .search input { font-size: 16px; padding: 11px 2px; }
  .search-go {
    padding: 11px 18px;
    font-size: 13.5px;
    gap: 4px;
  }
  .search-go svg { display: none; }

  /* chips: let them wrap into a compact tidy row */
  .chips {
    gap: 6px;
    margin-bottom: 22px;
  }
  .chips-label {
    width: 100%;
    margin-bottom: 2px;
    font-size: 11px;
  }
  .chip { padding: 7px 11px; font-size: 12.5px; }

  /* trust: stack two per row so nothing clips; hide dividers */
  .trust {
    gap: 10px 18px;
    padding: 12px 14px;
    width: 100%;
    border-radius: 14px;
    justify-content: space-between;
    margin-bottom: 28px;
  }
  .trust-divider { display: none; }
  .trust-item { gap: 6px; }
  .trust-item strong { font-size: 20px; }
  .trust-item span { font-size: 11.5px; }
  .stars { font-size: 13px; letter-spacing: 1.5px; }

  /* scene: anchor to bottom of hero, fixed cozy height so grass
     sits right under the trust pill */
  .scene {
    top: auto;
    bottom: 0;
    height: 260px;
    inset: auto 0 0 0;
  }
  .scene-vignette { display: none; }   /* no ocean vignette on mobile anymore */

  /* Hero keeps the clean paper background on mobile — no blue overlay */
  .hero::before { display: none; }
  .hero-inner { position: relative; z-index: 2; }

  /* section titles: scale down slightly */
  .section-title { font-size: clamp(34px, 9vw, 54px); }
  .section-sub { font-size: 15.5px; }
  .section-head { margin-bottom: 32px; }

  /* plans grid: single column, softer header */
  .plans { padding: 40px var(--gutter); }
  .plans-grid { grid-template-columns: 1fr; gap: 12px; }
  .plans-title { font-size: clamp(30px, 8vw, 48px); }
  .plans-header { margin-bottom: 24px; gap: 12px; }
  .plan { padding: 22px 20px; }
  .plan-data { font-size: 40px; }
  .plan-price strong { font-size: 28px; }

  /* how it works: single column, tidy step visuals */
  .how { padding: 60px var(--gutter); }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 22px 20px; min-height: 220px; }
  .step-num { font-size: 44px; }
  .step-body h3 { font-size: 20px; }
  .step-visual { width: 130px; height: 130px; right: -10px; bottom: -10px; opacity: 0.75; }

  /* coverage / postcard */
  .coverage { padding: 40px var(--gutter); grid-template-columns: 1fr; gap: 28px; }
  .postcard { transform: none; max-width: 100%; }
  .coverage-stats { gap: 24px; margin-top: 24px; }
  .coverage-stats strong { font-size: 34px; }

  /* features */
  .features { padding: 60px var(--gutter); }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { padding: 22px 20px; }

  /* CTA: keep bold but shrink padding */
  .cta { margin-bottom: 48px; }
  .cta-inner {
    padding: 56px 22px;
    border-radius: 24px;
  }
  .cta-title { font-size: clamp(34px, 9vw, 52px); }
  .cta-sub { font-size: 16px; margin-bottom: 26px; }
  .cta-sun { width: 40px; height: 40px; top: 6%; right: 8%; }
  .cta-actions { gap: 8px; }
  .btn--lg { --pad-y: 14px; --pad-x: 22px; font-size: 14px; }

  /* footer: stack everything cleanly */
  .footer { padding: 48px var(--gutter) 32px; }
  .footer-top { margin-bottom: 30px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding-bottom: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* decorative clouds: fewer, softer */
  .deco-cloud--a, .deco-cloud--c { display: none; }
  .deco-cloud--b, .deco-cloud--d { opacity: 0.5; }

  /* hide the cloud-band divider on mobile (redundant) */
  .cloud-band { height: 60px; margin-top: -20px; }
  .float-cloud--1, .float-cloud--3 { display: none; }
}

/* ============================================================
   RESPONSIVE — small phones (≤ 420)
   ============================================================ */
@media (max-width: 420px) {
  .search-box { padding-left: 14px; padding-right: 4px; }
  .search input { font-size: 16px; padding: 10px 0; }
  .search-go { padding: 10px 14px; font-size: 13px; }
  .hero-title { font-size: 44px; line-height: 0.95; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .trust-item { width: 100%; justify-content: flex-start; }
}

/* notches / home indicator */
@supports (padding: env(safe-area-inset-bottom)) {
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ============================================================
   PURCHASE APP — modal flow
   ============================================================ */
body.is-app-open { overflow: hidden; }

/* Purchase flow — full-screen page, NOT a modal */
.app {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app.is-open { opacity: 1; pointer-events: auto; }

/* Backdrop is a no-op now (kept for backwards-compat, hidden) */
.app-backdrop { display: none; }

.app-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  overflow: hidden;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.25s var(--ease);
}
.app.is-open .app-container {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 720px) {
  .app-container {
    max-width: 580px;
    padding-top: 8px;
  }
}

/* app header */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
}
.app-icon-btn {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.app-icon-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.app-icon-btn:active { transform: scale(0.94); }
.app-icon-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.app-icon-btn svg { width: 20px; height: 20px; }

/* progress pill */
.app-progress {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 6px 8px;
  margin: 0;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border-radius: 999px;
}
.app-progress li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
  position: relative;
}
.app-progress li span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s var(--ease);
}
.app-progress li.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--ink);
}
.app-progress li.is-active span { opacity: 1; color: var(--ink); }
.app-progress li.is-done { background: var(--sun); }

/* stage (step container) */
.app-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* individual step — body scrolls, footer is fixed */
.app-step {
  position: absolute;
  inset: 0;
  padding: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.app-step.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.app-step.is-leaving-fwd {
  opacity: 0;
  transform: translateX(-30px);
  pointer-events: none;
}
.app-step.is-leaving-back {
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
}
.app-step-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 22px 10px;
  min-height: 0;
}

.app-step-head { margin-bottom: 18px; }
.app-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 6px;
  font-variation-settings: "opsz" 144;
}
.app-title em {
  font-style: italic;
  font-weight: 500;
  position: relative;
}
.app-title em::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%;
  bottom: 0.08em;
  height: 0.1em;
  background: var(--sun);
  border-radius: 999px;
  z-index: -1;
  opacity: 0.9;
}
.app-title--xl { font-size: clamp(32px, 6vw, 44px); margin-bottom: 10px; }

.app-muted {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 6px;
  line-height: 1.5;
}

.app-flag { font-size: 30px; line-height: 1; }
.app-flag--xl { font-size: 42px; }

.app-dest {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* footer — sticks to bottom of card */
.app-foot {
  padding: 14px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.app-foot--sticky {
  position: relative;
}

/* CTA */
.app-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 22px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), opacity 0.2s var(--ease);
  width: 100%;
  position: relative;
}
.app-cta:hover:not(:disabled) { background: #0f1828; transform: translateY(-1px); }
.app-cta:active:not(:disabled) { transform: translateY(0); }
.app-cta:disabled { opacity: 0.35; cursor: not-allowed; }
.app-cta svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.app-cta:hover:not(:disabled) svg.app-arrow { transform: translateX(3px); }

.app-cta--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.app-cta--ghost:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 6%, transparent); }

/* pay button: swap arrow / spinner */
#appPay .app-spinner {
  display: none;
  animation: payspin 1s linear infinite;
}
#appPay.is-loading .app-arrow { display: none; }
#appPay.is-loading .app-spinner { display: inline-block; }
@keyframes payspin { to { transform: rotate(360deg); } }

.app-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  justify-content: center;
  padding-bottom: 4px;
}
.app-secure svg { width: 14px; height: 14px; color: var(--grass-deep); }

/* ============================================================
   STEP 1 — real eSIM Go bundles list
   ============================================================ */
.app-bundles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}
.app-bundles-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 20px;
}
.app-bundles-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--cream-2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: bundleSpin 0.8s linear infinite;
}
@keyframes bundleSpin { to { transform: rotate(360deg); } }
.app-bundles-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.app-bundle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.15s var(--ease);
}
.app-bundle:hover {
  background: color-mix(in srgb, var(--lime) 12%, var(--cream));
}
.app-bundle:active { transform: scale(0.99); }
.app-bundle input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.app-bundle::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line-strong);
  background: transparent;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}
.app-bundle.is-selected {
  background: var(--ink);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px var(--lime), 0 6px 14px -6px rgba(26,30,59,0.35);
}
.app-bundle.is-selected::before {
  background: var(--lime);
  box-shadow: inset 0 0 0 5px var(--ink);
}
.app-bundle-body { min-width: 0; }
.app-bundle-data {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.app-bundle-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}
.app-bundle.is-selected .app-bundle-meta { color: rgba(255,255,255,0.7); }
.app-bundle-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.app-bundle-tag {
  display: inline-block;
  padding: 2px 8px;
  margin-top: 4px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
}
.app-bundle.is-selected .app-bundle-tag { background: var(--lime); color: var(--ink); }

@media (max-width: 420px) {
  .app-bundle { padding: 12px 14px; gap: 10px; }
  .app-bundle-data { font-size: 16px; }
  .app-bundle-price { font-size: 16px; }
}

/* ============================================================
   STEP 1 — days + data pickers (legacy — kept hidden)
   ============================================================ */
.app-picker { margin-top: 16px; }
.app-picker:first-of-type { margin-top: 8px; }
.app-picker-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding-left: 2px;
}
.app-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.app-picker-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 8px;
  background: var(--cream);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
  cursor: pointer;
}
.app-picker-opt:hover { background: color-mix(in srgb, var(--sun) 14%, var(--cream)); }
.app-picker-opt:active { transform: scale(0.97); }
.app-picker-opt strong {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.app-picker-opt span {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}
.app-picker-opt.is-active {
  background: var(--ink);
  box-shadow: inset 0 0 0 2px var(--coral), 0 6px 14px -6px rgba(232, 69, 39, 0.35);
}
.app-picker-opt.is-active strong { color: #ffffff; }
.app-picker-opt.is-active span { color: rgba(255, 255, 255, 0.75); }

.app-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #0c2848 0%, #0a2a4d 100%);
  color: #ffffff;
  border-radius: 16px;
  margin-top: 18px;
  box-shadow: 0 14px 30px -12px rgba(10, 42, 77, 0.45);
}
.app-price-meta {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.app-price-total {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variation-settings: "opsz" 144;
  color: #ffffff;
}
.app-price-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--sun);
  color: var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.app-price-badge[hidden] { display: none !important; }

@media (max-width: 420px) {
  .app-picker-opt { padding: 12px 6px; }
  .app-picker-opt strong { font-size: 20px; }
  .app-price-total { font-size: 26px; }
  .app-price-badge { font-size: 10px; padding: 5px 10px; }
}

/* ============================================================
   LEGACY plan cards (unused after new flow) — kept for fallback
   ============================================================ */
.app-plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.app-plan {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--cream);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  overflow: hidden;
}
.app-plan input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.app-plan::before {
  content: "";
  width: 20px; height: 20px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--line-strong);
  flex-shrink: 0;
  transition: all 0.25s var(--ease);
}
.app-plan:hover {
  background: color-mix(in srgb, var(--sun) 12%, var(--cream));
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.app-plan.is-selected {
  background: var(--ink);
  color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--sun), 0 8px 22px -10px rgba(0,0,0,0.3);
}
.app-plan.is-selected::before {
  background: var(--sun);
  box-shadow: inset 0 0 0 5px var(--ink);
}
.app-plan-info { min-width: 0; }
.app-plan-data {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.app-plan-data small { font-family: var(--font-sans); font-size: 13px; font-weight: 500; opacity: 0.6; }
.app-plan-meta { font-size: 13px; opacity: 0.72; margin-top: 4px; }
.app-plan-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--sun);
  color: var(--ink);
}
.app-plan-price strong {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
}

/* ============================================================
   STEP 2 — checkout
   ============================================================ */
.app-summary {
  padding: 14px 16px;
  background: var(--cream);
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.app-summary-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.app-summary-title { font-weight: 600; letter-spacing: -0.01em; }
.app-summary-sub { font-size: 13px; color: var(--muted); }
.app-summary-line strong {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}

.app-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}
.app-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.app-field label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.app-field input {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  background: var(--cream);
  color: var(--ink);
  border: 1.5px solid transparent;
  border-radius: 12px;
  outline: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.app-field input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.app-field input:focus {
  border-color: var(--ink);
  background: var(--paper);
}
.app-field input:invalid:not(:placeholder-shown) {
  border-color: color-mix(in srgb, var(--terracotta) 70%, transparent);
}
.app-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.app-field-row > .app-field { min-width: 0; }
.app-field-row input { width: 100%; min-width: 0; box-sizing: border-box; }
.app-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.app-input-wrap { position: relative; }
.app-card-brand {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

/* ============================================================
   STEP 3 — install (QR)
   ============================================================ */
.app-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: var(--cream);
  border-radius: 20px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.app-qr-card[hidden] { display: none !important; }
.app-qr {
  width: 200px;
  height: 200px;
  padding: 10px;
  background: var(--paper);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  gap: 0;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.22), inset 0 0 0 1px var(--line);
  position: relative;
}
.app-qr > div {
  aspect-ratio: 1;
  background: transparent;
}
.app-qr > div.on { background: var(--ink); }
.app-qr-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.app-install {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-install li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.app-install-n {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
  font-variation-settings: "opsz" 60;
}
.app-install h4 { font-size: 15px; font-weight: 600; margin: 0 0 2px; letter-spacing: -0.01em; }
.app-install p { font-size: 13px; margin: 0; color: var(--muted); line-height: 1.45; }

/* ============================================================
   STEP 4 — done
   ============================================================ */
.app-step--center {
  align-items: center;
  text-align: center;
  justify-content: center;
}
.app-check {
  width: 96px; height: 96px;
  margin: 10px auto 10px;
  color: var(--grass-deep);
}
.app-check svg { width: 100%; height: 100%; }
.app-check-ring {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: drawRing 0.55s var(--ease-out) 0.05s forwards;
}
.app-check-tick {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawTick 0.4s var(--ease-out) 0.5s forwards;
}
@keyframes drawRing { to { stroke-dashoffset: 0; } }
@keyframes drawTick { to { stroke-dashoffset: 0; } }

.app-receipt {
  width: 100%;
  margin: 18px 0 0;
  padding: 16px 18px;
  background: var(--cream);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-receipt > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
.app-receipt strong {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-sans);
}

/* confetti */
.app-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.confetti-bit {
  position: absolute;
  top: -16px;
  width: 8px;
  height: 10px;
  border-radius: 1px;
  opacity: 0;
  animation: confettiFall 2.4s cubic-bezier(0.2, 0.6, 0.35, 1) forwards;
  will-change: transform, opacity;
}
@keyframes confettiFall {
  0%   { opacity: 0; transform: translate(0, -10px) rotate(0); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0px), 520px) rotate(540deg); }
}

/* toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 16px);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 14px 28px -10px rgba(0,0,0,0.4);
  z-index: 300;
  opacity: 0;
  transition: all 0.3s var(--ease-out);
  pointer-events: none;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   APP — mobile (full-sheet)
   ============================================================ */
/* (mobile app styles consolidated at bottom of file) */

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .app, .app-container, .app-step, .app-check-ring, .app-check-tick, .confetti-bit {
    transition: none !important;
    animation: none !important;
  }
  .app-check-ring, .app-check-tick { stroke-dashoffset: 0 !important; }
}

/* ============================================================
   APP — AUTH STEP (sign in or continue as guest)
   ============================================================ */
.app-auth-body {
  display: flex;
  flex-direction: column;
  padding-top: 32px;
}
.app-auth-head {
  text-align: center;
  margin-bottom: 28px;
}
.app-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--sun);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--sun) 70%, transparent);
  animation: authIconPop 0.6s var(--ease-spring) 0.1s both;
}
.app-auth-icon svg { width: 28px; height: 28px; }
@keyframes authIconPop {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
.app-sso-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.app-sso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.2);
}
.app-sso-btn:hover { transform: translateY(-1px); }
.app-sso-btn:active { transform: translateY(0); }
.app-sso-btn svg { width: 20px; height: 20px; }
.app-sso-btn--apple {
  background: #000;
  color: #fff;
}
.app-sso-btn--apple svg { color: #fff; }
.app-sso-btn--google {
  background: #fff;
  color: #1f1f1f;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12), 0 4px 12px -6px rgba(0,0,0,0.1);
}
.app-sso-btn--email {
  background: var(--ink);
  color: var(--cream);
}
.app-sso-btn--email svg { color: var(--cream); }

.app-auth-or {
  position: relative;
  text-align: center;
  margin: 8px 0 18px;
}
.app-auth-or span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}
.app-auth-or::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.app-auth-guest {
  text-align: center;
  margin-top: auto;
  padding-bottom: 16px;
}
.app-auth-skip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background 0.2s var(--ease);
}
.app-auth-skip:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.app-auth-skip svg { width: 14px; height: 14px; }
.app-auth-guest-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ============================================================
   APP — quick pay (Apple / Google / PayPal)
   ============================================================ */
.app-quickpay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 4px 0 14px;
  width: 100%;
}
.app-quickpay > button { min-width: 0; }
.app-qp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.2);
  line-height: 1;
  overflow: hidden;
}
.app-qp:hover { transform: translateY(-1px); }
.app-qp:active { transform: translateY(0); }

.app-qp-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

/* --- Apple Pay --- */
.app-qp--apple {
  background: #000;
  color: #fff;
}
.app-qp-apple-logo {
  width: 14px;
  height: 16px;
  margin-top: -1px;
}
.app-qp-pay {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* --- Google Pay --- */
.app-qp--google {
  background: #fff;
  color: #3c4043;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12), 0 4px 12px -4px rgba(0,0,0,0.08);
}
.app-qp-google-logo {
  width: 18px;
  height: 18px;
  margin-top: -1px;
}
.app-qp-pay--google {
  color: #5f6368;
  font-weight: 500;
  letter-spacing: 0;
}

/* --- PayPal --- */
.app-qp--paypal {
  background: #ffc439;
  color: #003087;
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.app-qp--paypal:hover { background: #ffb524; }
.app-qp-paypal-mark { font-size: 16px; gap: 0; }
.app-qp-paypal-1 { color: #003087; }
.app-qp-paypal-2 { color: #009cde; margin-left: -1px; }

.app-or {
  position: relative;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 14px 0 14px;
}
.app-or::before,
.app-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 90px);
  height: 1px;
  background: var(--line-strong);
}
.app-or::before { left: 0; }
.app-or::after  { right: 0; }

/* ============================================================
   APP — install step (one-click + alt + activation timing)
   ============================================================ */
.app-oneclick {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease);
  box-shadow: 0 14px 30px -14px rgba(30,42,58,0.4), inset 0 0 0 1px rgba(255,255,255,0.08);
  text-decoration: none;
}
.app-oneclick::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--lime) 35%, transparent), transparent 65%);
  pointer-events: none;
}
.app-oneclick:hover { transform: translateY(-2px); }
.app-oneclick:active { transform: translateY(0); }
.app-oneclick-icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: var(--ink);
  border-radius: 12px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.app-oneclick-icon svg { width: 22px; height: 22px; }
.app-oneclick-text {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-oneclick-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
}
.app-oneclick-text span {
  font-size: 12.5px;
  opacity: 0.7;
  line-height: 1.4;
}
.app-oneclick-chevron {
  width: 20px; height: 20px;
  opacity: 0.7;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.app-oneclick:hover .app-oneclick-chevron { transform: translateX(3px); }
.app-oneclick.is-busy { pointer-events: none; opacity: 0.75; }

.app-alt-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.app-alt {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--teal) 28%, var(--cream-2));
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--teal) 55%, transparent);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
}
.app-alt:hover { background: color-mix(in srgb, var(--teal) 38%, var(--cream-2)); transform: translateY(-1px); }
.app-alt > svg:first-child { width: 18px; height: 18px; color: var(--ink); }
.app-alt-chev {
  width: 16px; height: 16px;
  opacity: 0.5;
  transition: transform 0.25s var(--ease);
}
.app-alt[aria-expanded="true"] .app-alt-chev { transform: rotate(180deg); }

/* QR card tweaks (reveals via hidden attribute) */
.app-qr-card {
  margin-bottom: 14px;
  animation: qrReveal 0.35s var(--ease-out);
  overflow: hidden;
}
@keyframes qrReveal {
  from { opacity: 0; transform: translateY(-6px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 420px; }
}
.app-qr-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Activation timing — segmented control */
.app-activate-when h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.app-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--cream);
  padding: 6px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.app-seg-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.app-seg-opt strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.01em;
}
.app-seg-opt span {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}
.app-seg-opt.is-active {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 4px 14px -6px rgba(30,42,58,0.35);
}
.app-seg-opt.is-active span { color: color-mix(in srgb, var(--cream) 70%, transparent); }

/* ============================================================
   APP — done step (signup nudge)
   ============================================================ */
.app-done-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
}
.app-center { text-align: center; max-width: 42ch; margin-left: auto; margin-right: auto; }
.app-done-body .app-receipt { margin-top: 18px; }
.app-done-body .app-signup  { margin-top: 18px; width: 100%; }

.app-signup {
  width: 100%;
  padding: 16px;
  background: var(--cream);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
}
.app-signup-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.app-signup-head > svg {
  width: 24px; height: 24px;
  color: var(--sun-deep);
  flex-shrink: 0;
  margin-top: 2px;
}
.app-signup-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
  line-height: 1.3;
  margin-bottom: 2px;
}
.app-signup-head span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.app-sso-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}
.app-sso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.app-sso:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--ink); }
.app-sso svg { width: 16px; height: 16px; }
.app-sso--apple svg { color: var(--ink); }
.app-signup-skip {
  display: block;
  width: 100%;
  padding: 8px 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s var(--ease);
}
.app-signup-skip:hover { color: var(--ink); }

/* ============================================================
   APP — MOBILE (≤ 640px): full-sheet, fixed, no internal scroll
   on plan step. One consolidated block.
   ============================================================ */
@media (max-width: 640px) {

  /* shell: fill viewport, no padding, no centering */
  .app {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  .app-backdrop { background: rgba(30, 42, 58, 0.5); }

  /* container: full viewport on mobile. No transform gymnastics —
     the parent .app already handles fade in / out via opacity. */
  .app-container {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  /* header: compact */
  .app-bar { padding: 12px 14px; }
  .app-progress li span { display: none; }

  /* default step padding (checkout/install/done can scroll) */
  .app-step-body { padding: 18px 16px 12px; }

  /* ---- STEP: PLAN (no internal scroll; plans are natural height) ---- */
  .app-step[data-step="plan"] {
    display: flex;
    flex-direction: column;
  }
  .app-step[data-step="plan"] .app-step-body {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
  }
  .app-step[data-step="plan"] .app-step-head { margin-bottom: 4px; flex-shrink: 0; }
  .app-step[data-step="plan"] .app-title { font-size: 22px; line-height: 1.1; }
  .app-step[data-step="plan"] .app-flag--xl { font-size: 30px; }
  .app-step[data-step="plan"] .app-muted { font-size: 13px; margin: 0; }
  .app-step[data-step="plan"] .app-dest { gap: 10px; }

  .app-plans {
    gap: 8px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
  }
  .app-plan {
    padding: 12px 14px;
    gap: 10px;
    align-items: center;
  }
  .app-plan::before { width: 18px; height: 18px; }
  .app-plan-data { font-size: 20px; }
  .app-plan-meta { font-size: 12px; margin-top: 2px; }
  .app-plan-tag {
    font-size: 9.5px;
    padding: 1px 7px;
    margin-top: 4px;
  }
  .app-plan-price strong { font-size: 18px; }

  /* ---- STEP: CHECKOUT ---- */
  .app-qp { height: 44px; }

  /* ---- STEP: INSTALL ---- */
  .app-oneclick { padding: 14px 16px; }
  .app-oneclick-icon { width: 38px; height: 38px; }
  .app-oneclick-text strong { font-size: 15px; }
  .app-oneclick-text span { font-size: 11.5px; }
  .app-qr { width: 170px; height: 170px; }

  /* ---- STEP: DONE ---- */
  .app-check { width: 72px; height: 72px; margin: 0 auto 6px; }
  .app-sso { height: 38px; font-size: 12.5px; }

  /* footer */
  .app-foot { padding: 12px 16px 16px; }
  .app-foot--sticky { padding-top: 12px; }
}

/* short phones — compress plan step further */
@media (max-height: 740px) and (max-width: 640px) {
  .app-step[data-step="plan"] .app-step-head { margin-bottom: 0; }
  .app-step[data-step="plan"] .app-muted { display: none; }
  .app-plan { padding: 8px 12px; }
  .app-plan-data { font-size: 18px; }
  .app-plan-tag { display: none; }
  .app-plan-meta { font-size: 11.5px; }
}

/* very small phones / landscape */
@media (max-width: 420px) {
  .app-field-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .app-install li { padding: 10px 12px; gap: 10px; }
}

/* ============================================================
   SCENE — additional pixel elements
   ============================================================ */
.mountains path {
  transform-origin: center bottom;
  transform-box: fill-box;
}

.sunflower-sway {
  transform-origin: center bottom;
  transform-box: fill-box;
  animation: sway 4.5s ease-in-out infinite;
}

.pennant {
  transform-origin: top center;
  transform-box: fill-box;
  animation: pennantFlutter 2.2s ease-in-out infinite;
}
.pennant:nth-child(2n) { animation-delay: 0.3s; animation-duration: 1.8s; }
.pennant:nth-child(3n) { animation-delay: 0.6s; animation-duration: 2.6s; }
.pennant:nth-child(5n) { animation-delay: 0.9s; }
@keyframes pennantFlutter {
  0%, 100% { transform: rotate(-3deg) skewY(0); }
  50%      { transform: rotate(3deg) skewY(-4deg); }
}

.sheep-graze {
  transform-origin: center bottom;
  transform-box: fill-box;
  animation: sheepGraze 5s ease-in-out infinite;
}
@keyframes sheepGraze {
  0%, 40%, 100% { transform: rotate(0) translateY(0); }
  50%           { transform: rotate(-18deg) translateY(3px); }
  70%           { transform: rotate(0) translateY(0); }
  80%           { transform: rotate(-18deg) translateY(3px); }
  90%           { transform: rotate(0) translateY(0); }
}

/* ============================================================
   MULTI-PAGE LAYOUT
   Every page uses paper background. Content is centered and
   padded. App/account/signin pages don't fill full height
   unnecessarily — they center their card.
   ============================================================ */
body.page {
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Universal safeguard: elements with the `hidden` attribute must hide,
   even if another rule set display: flex/grid/block on them. */
[hidden] { display: none !important; }

/* Simplified nav for non-landing pages */
.nav--simple {
  padding: 14px clamp(16px, 4vw, 40px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav--simple .nav-links { display: none; }
.nav-back-link {
  padding: 8px 14px;
  font-size: 14px;
}

/* Generic centred column (used on signin). Flex + scroll as a safety net. */
.centered-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  width: 100%;
}

body[data-page="signin"] {
  height: 100svh;
  overflow: hidden;
}

/* ============================================================
   SIGN-IN — nice breathing room on mobile, still fits without
   hiding behind the iOS browser UI.
   The centered-shell already scrolls if content needs it.
   ============================================================ */
body[data-page="signin"] .auth-card {
  width: 100%;
  max-width: 420px;
  padding: 24px 22px;
  border-radius: 22px;
  text-align: center;
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(20, 30, 60, 0.18), inset 0 0 0 1px var(--line);
}
body[data-page="signin"] .auth-title {
  font-size: clamp(22px, 6.4vw, 28px);
  line-height: 1.15;
  margin: 0 0 8px;
}
body[data-page="signin"] .auth-sub {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 18px;
  color: var(--muted);
}
body[data-page="signin"] .auth-providers {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
body[data-page="signin"] .auth-providers .app-sso-btn {
  padding: 12px 16px;
  font-size: 15px;
  min-height: 46px;
}
body[data-page="signin"] .auth-divider {
  margin: 14px 0;
  height: 1px;
}
body[data-page="signin"] .auth-divider span { font-size: 11px; padding: 0 10px; }
body[data-page="signin"] .auth-form { gap: 10px; }
body[data-page="signin"] .auth-form .form-field label {
  font-size: 13px;
  margin-bottom: 4px;
}
body[data-page="signin"] .auth-form .form-field input {
  padding: 13px 14px;
  font-size: 16px;     /* prevents iOS zoom */
  border-radius: 12px;
  min-height: 46px;
}
body[data-page="signin"] .auth-submit {
  padding: 13px 18px;
  font-size: 15px;
  min-height: 46px;
}
body[data-page="signin"] .auth-form-note {
  font-size: 12px;
  line-height: 1.4;
  margin: 6px 0 0;
  color: var(--muted);
}
body[data-page="signin"] .auth-legal {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.4;
}

/* Bottom padding inside centered-shell so the Continue button stays
   comfortably above the iOS Safari bottom toolbar. */
body[data-page="signin"] .centered-shell {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Content wrapper — centered column with breathing room */
.page-main {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 6vh, 80px) clamp(16px, 4vw, 32px);
}

/* ============================================================
   AUTH CARD (signin.html)
   ============================================================ */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 22px;
  padding: clamp(20px, 4vw, 36px) clamp(18px, 4vw, 28px);
  box-shadow:
    0 30px 80px -32px rgba(20, 30, 60, 0.18),
    0 6px 16px -8px rgba(20, 30, 60, 0.06),
    inset 0 0 0 1px var(--line);
  text-align: center;
}
.auth-title {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  color: var(--ink);
}
.auth-title em {
  font-style: normal;
  background: var(--lime);
  padding: 0 8px;
  border-radius: 6px;
}
.auth-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 16px;
}
.auth-providers { display: grid; gap: 8px; margin-bottom: 12px; }
.auth-providers .app-sso-btn { padding: 12px 16px; }
.auth-divider {
  position: relative;
  text-align: center;
  margin: 18px 0;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.auth-form { display: grid; gap: 12px; text-align: left; }
.auth-form .form-field input {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  width: 100%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.auth-form .form-field input:focus { outline: none; border-color: var(--ink); background: #fff; }
.auth-form .form-field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink);
}
.auth-submit {
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.auth-submit:hover { transform: translateY(-1px); background: #0f1828; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-form-note { color: var(--muted); font-size: 12px; text-align: center; margin: 4px 0 0; line-height: 1.4; }
.form-field-note { font-weight: 400; color: var(--muted); font-size: 12px; }
.auth-form .form-field input { padding: 12px 14px; font-size: 15px; }
.auth-form { display: grid; gap: 10px; text-align: left; }
.auth-divider { margin: 14px 0 10px; }
.auth-legal { margin: 16px 0 0; font-size: 11px; line-height: 1.5; }
.auth-legal { margin: 22px 0 0; color: var(--muted); font-size: 12px; }
.auth-legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ============================================================
   ACCOUNT PAGE (/account)
   Fixed viewport — nav pinned, content area scrolls internally.
   ============================================================ */
body[data-page="account"] {
  height: 100svh;
  overflow: hidden;
}
body[data-page="account"] main.page-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: clamp(24px, 4vh, 40px);
  padding-bottom: clamp(32px, 5vh, 60px);
}

.account-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  padding: 60px 20px;
}
.account-shell { width: 100%; }

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.account-hi { display: flex; align-items: center; gap: 14px; }
.account-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
}
.account-hi-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.account-hi-name {
  font-family: var(--font-logo);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.account-signout {
  padding: 8px 16px;
  font-size: 13px;
}

.account-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  margin-bottom: 28px;
}
.account-cta:hover { transform: translateY(-2px); background: #0f1828; }
.account-cta-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; margin-bottom: 4px; }
.account-cta strong { font-weight: 700; font-size: 17px; }
.account-cta svg { width: 22px; height: 22px; color: var(--lime); flex-shrink: 0; }

.account-section { margin-bottom: 24px; }
.account-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.account-section-head h2 {
  font-family: var(--font-logo);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.account-count {
  background: var(--ink);
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  min-width: 26px;
  text-align: center;
}
.account-sims { display: grid; gap: 12px; }
.account-empty {
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  border: 1.5px dashed var(--line-strong);
  border-radius: 20px;
}
.account-empty-icon { font-size: 40px; margin-bottom: 10px; }
.account-empty h3 { margin: 0 0 6px; font-size: 20px; }
.account-empty p { color: var(--muted); margin: 0 0 16px; }
.account-support {
  margin-top: 36px;
  text-align: center;
}
.account-support a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.account-support a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); border-color: var(--ink); }

/* Reuse dash-sim styles from old dashboard for individual SIM rows */

/* ============================================================
   APP PAGE (/app) — purchase flow with progress + steps
   Page is fixed to 100vh. Header + progress + foot stay pinned.
   Only the inner card body scrolls when content overflows.
   ============================================================ */
body[data-page="app"] {
  height: 100svh;
  overflow: hidden;           /* no page-level scroll */
}
body[data-page="app"] main { flex: 1; min-height: 0; overflow: hidden; }

.flow-progress {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 10px;
  margin: 0 auto;
  max-width: 560px;
  flex-shrink: 0;
}
.flow-progress li {
  width: 24px;
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
  position: relative;
  list-style: none;
}
.flow-progress li.is-active {
  background: var(--ink);
  width: 40px;
}
.flow-progress li.is-done { background: var(--lime-deep); }
/* Hide the per-dot labels — keep the UI clean. The card title already
   tells the user what step they're on. */
.flow-progress li span { display: none; }

.flow-main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  min-height: 0;              /* so flex children can shrink */
  overflow: hidden;
}
@media (min-width: 720px) {
  .flow-main { padding: 24px 20px 0; }
}
.flow-step {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.flow-step[hidden] { display: none !important; }

.flow-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 2px 8px -2px rgba(20, 30, 60, 0.05), inset 0 0 0 1px var(--line);
  flex: 1;
  min-height: 0;
  overflow-x: hidden;            /* prevent horizontal spill */
  overflow-y: auto;              /* inner scroll when content overflows */
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.flow-card > * { max-width: 100%; box-sizing: border-box; }
.flow-card--center { text-align: center; }

.flow-step-head { margin-bottom: 20px; }
.flow-title {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.flow-title em {
  font-style: normal;
  background: var(--lime);
  padding: 0 6px;
  border-radius: 5px;
}
.flow-title--xl { font-size: clamp(32px, 5vw, 44px); margin-bottom: 10px; }
.flow-muted { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }
.flow-center { text-align: center; }

.flow-foot {
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  background: linear-gradient(to top, var(--cream) 70%, transparent);
}
.flow-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
  width: 100%;
}
.flow-cta:hover:not(:disabled) { transform: translateY(-1px); background: #0f1828; }
.flow-cta:disabled { opacity: 0.4; cursor: not-allowed; }
.flow-cta svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.flow-cta:hover:not(:disabled) svg { transform: translateX(3px); }
.flow-cta.is-loading .app-arrow { display: none; }
.flow-cta.is-loading .app-spinner { display: inline-block; animation: payspin 1s linear infinite; }
.flow-cta .app-spinner { display: none; }
.flow-cta .app-arrow { display: inline-block; }

/* Shared with old modal — keep the bundle cards */
.flow-card .app-bundles { margin-top: 8px; }

/* Days picker inside plan step */
.days-block { margin: 4px 0 14px; }
.days-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ============================================================
   DATE RANGE — two separate outlined cards, native input visible
   ============================================================ */
.date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
}
.date-field {
  display: block;
  padding: 10px 14px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.date-field:hover { border-color: var(--ink); }
.date-field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 50%, transparent);
}
.date-field-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}
/* The native date input — visible, styled like the rest of the UI */
.date-field-input {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 16px;                /* ≥16px prevents iOS zoom */
  font-weight: 700;
  color: var(--ink);
  font-family: inherit;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  min-height: 22px;
  cursor: pointer;
}
.date-field-input:focus { outline: none; }
.date-field-input::-webkit-date-and-time-value { text-align: left; }
.date-field-input::-webkit-calendar-picker-indicator {
  margin-left: 6px;
  filter: invert(18%);
  cursor: pointer;
}
/* iOS: empty input shows very light text — make the "mm/dd/yyyy" placeholder muted */
.date-field-input:invalid { color: var(--muted); font-weight: 500; }
.date-field-input:not(:valid) { color: var(--muted); font-weight: 500; }

.date-range-summary {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 1;
  white-space: nowrap;
}

/* "or pick a preset" divider */
.days-or {
  position: relative;
  text-align: center;
  margin: 14px 0 10px;
  height: 1px;
  background: var(--line);
}
.days-or span {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.days-picker-wrap { margin-top: 4px; }

@media (max-width: 380px) {
  .date-range { grid-template-columns: 1fr; }
}

/* ============================================================
   INSTANT-ACTIVATION STAMP BADGE on hero
   ============================================================ */
.instant-stamp {
  position: absolute;
  right: clamp(12px, 4vw, 60px);
  top: clamp(140px, 20vh, 280px);
  width: clamp(90px, 11vw, 130px);
  height: clamp(90px, 11vw, 130px);
  color: var(--coral);
  z-index: 4;
  pointer-events: none;
  animation: stampSpin 22s linear infinite;
}
.instant-stamp-ring {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--coral);
}
.instant-stamp-text { font-family: var(--font-logo); }
.instant-stamp-bolt {
  position: absolute;
  top: 50%; left: 50%;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%);
  color: var(--ink);
  animation: stampBoltPulse 2.2s ease-in-out infinite;
}
@keyframes stampSpin { to { transform: rotate(360deg); } }
@keyframes stampBoltPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .instant-stamp { animation: none; }
  .instant-stamp-bolt { animation: none; }
}
/* Mobile: tuck top-right, smaller */
@media (max-width: 720px) {
  .instant-stamp {
    top: 84px;
    right: 10px;
    width: 72px; height: 72px;
  }
  .instant-stamp-text { font-size: 11px; }
}

/* ============================================================
   CURRENCY — inline chip (on relevant steps only) + modal picker
   ============================================================ */
.currency-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
  flex-shrink: 0;
  align-self: flex-start;
}
.currency-chip:hover { background: #fff; border-color: var(--ink); }
.currency-chip svg { width: 12px; height: 12px; }

/* Bundle step: country + days header with currency chip on the right */
.bundle-head-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bundle-head-info { min-width: 0; flex: 1; }
.bundle-head-info .flow-title { margin-bottom: 2px; }
.bundle-head-info .flow-muted { font-size: 14px; }
.checkout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

/* Currency modal — bottom sheet on mobile, centered dialog on desktop */
.currency-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.currency-modal[hidden] { display: none !important; }
.currency-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 60, 0.45);
  backdrop-filter: blur(4px);
  animation: modalFade 0.2s var(--ease) both;
}
.currency-modal-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: modalRise 0.25s var(--ease-out) both;
  box-shadow: 0 -20px 60px -20px rgba(20, 30, 60, 0.3);
}
@media (min-width: 720px) {
  .currency-modal { align-items: center; }
  .currency-modal-panel {
    border-radius: 20px;
    max-height: 70vh;
    animation-name: modalPop;
  }
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes modalPop  { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.currency-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 0;
}
.currency-modal-head h3 {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.currency-modal-close {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--cream-2);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.currency-modal-close:hover { background: var(--line-strong); }
.currency-modal-close svg { width: 16px; height: 16px; }

.currency-search {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--cream-2);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  -webkit-appearance: none;
}
.currency-search:focus { outline: none; border-color: var(--ink); background: #fff; }
.currency-search::placeholder { color: var(--muted); }

.currency-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  flex: 1;
  padding: 2px 0 6px;
}
.currency-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s var(--ease);
}
.currency-item:hover { background: var(--cream-2); }
.currency-item.is-active { background: var(--cream-2); box-shadow: inset 0 0 0 1.5px var(--ink); }
.currency-item-code {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.currency-item-name { color: var(--muted); font-size: 13px; }
.currency-item-symbol { color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.currency-item-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ============================================================
   TYPE TOGGLE (Standard / Unlimited) on /app plan step
   ============================================================ */
.type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: var(--cream-2);
  border-radius: 16px;
  margin-bottom: 16px;
}
.type-toggle-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 10px;
  border: none;
  background: transparent;
  border-radius: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.type-toggle-opt strong {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.type-toggle-opt span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.type-toggle-opt.is-active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 30, 59, 0.12);
}
.type-toggle-opt.is-active strong { color: var(--ink); }
.type-toggle-opt.is-active span { color: var(--ink-soft); }

/* ============================================================
   COMPATIBILITY STEP
   ============================================================ */
.compat-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: clamp(40px, 8vw, 60px) clamp(20px, 4vw, 40px);
}
.compat-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.compat-icon svg { width: 100%; height: 100%; }
.compat-spinner circle:last-child {
  animation: compatSpin 1.1s linear infinite;
  transform-origin: 40px 40px;
}
@keyframes compatSpin { to { transform: rotate(360deg); } }
.compat-check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: compatDraw 0.6s 0.1s ease-out forwards; }
@keyframes compatDraw { to { stroke-dashoffset: 0; } }
.compat-title {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.compat-sub { max-width: 36ch; }
.compat-detail { margin-top: 6px; }
.compat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--cream-2);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}
.compat-continue { max-width: 260px; }

/* ============================================================
   INSTALL STEP — QR code + manual details
   ============================================================ */
.install-qr-wrap,
.install-manual {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  transition: background 0.2s var(--ease);
}
.install-qr-wrap {
  background: color-mix(in srgb, var(--sky) 28%, var(--cream-2));
  border: 1px solid color-mix(in srgb, var(--sky-deep) 40%, transparent);
}
.install-manual {
  background: color-mix(in srgb, var(--plum) 22%, var(--cream-2));
  border: 1px solid color-mix(in srgb, var(--plum) 60%, transparent);
}
.install-qr-wrap summary,
.install-manual summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  padding: 4px 0;
  list-style: none;
  position: relative;
  padding-right: 24px;
  font-size: 14px;
}
.install-qr-wrap summary::-webkit-details-marker,
.install-manual summary::-webkit-details-marker { display: none; }
.install-qr-wrap summary::after,
.install-manual summary::after {
  content: "▾";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  font-size: 12px;
  transition: transform 0.2s var(--ease);
}
details[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
details[open] > summary::after { transform: rotate(180deg); }

.install-qr-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 0 8px;
}
.install-qr {
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 8px -2px rgba(20, 30, 60, 0.08), inset 0 0 0 1px var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-qr canvas { display: block; width: 100%; height: auto; }
.install-qr-hint {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  margin: 0;
  max-width: 360px;
}
.install-manual-rows { padding: 12px 0 4px; display: grid; gap: 10px; }
.install-manual-row label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.install-manual-val {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  inset: 0 0 0 1px var(--line);
  box-shadow: inset 0 0 0 1px var(--line);
}
.install-manual-val code {
  flex: 1;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--ink);
  word-break: break-all;
  user-select: all;
}
.copy-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.copy-btn:hover { background: #0f1828; }

/* Accepted cards row on checkout */
.card-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 14px;
  flex-wrap: nowrap;
  max-width: 100%;
}
.card-brand-ic {
  width: 34px;
  height: 22px;
  display: block;
  border-radius: 4px;
  opacity: 0.95;
  flex-shrink: 0;
}
@media (min-width: 420px) {
  .card-brands { gap: 8px; }
  .card-brand-ic { width: 40px; height: 26px; }
}
.days-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.days-chip {
  flex: 1 0 calc(25% - 8px);
  min-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 8px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.days-chip strong {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.days-chip span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.days-chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.days-chip.is-selected {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.days-chip.is-selected span { color: var(--lime); }
.days-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}
.bundles-empty {
  padding: 18px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 420px) {
  .days-chip { flex: 1 0 calc(33.333% - 8px); padding: 12px 4px; }
  .days-chip strong { font-size: 20px; }
}

/* ============================================================
   NEW HERO — clean cream, floating planes, trust bar on top,
   search always in view.
   ============================================================ */
.hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  padding-top: clamp(24px, 4vh, 40px);
  padding-bottom: clamp(40px, 6vh, 60px);
}

/* Floating plane icons in background — GPU-only transforms, low cost */
.hero-planes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-plane {
  position: absolute;
  width: 80px;
  height: auto;
  color: var(--ink);
  opacity: 0.08;        /* very subtle so it doesn't fight the foreground */
  will-change: transform;
}
.hero-plane--1 { top: 10%;  left: -10%; width: 110px; animation: planeDrift1 28s linear infinite; animation-delay: 0s; }
.hero-plane--2 { top: 60%;  left: -10%; width: 70px;  animation: planeDrift1 36s linear infinite; animation-delay: -10s; opacity: 0.06; }
.hero-plane--3 { top: 30%;  right: -10%; width: 90px; animation: planeDrift2 32s linear infinite; animation-delay: -6s; opacity: 0.07; }
.hero-plane--4 { top: 80%;  right: -10%; width: 60px; animation: planeDrift2 40s linear infinite; animation-delay: -18s; opacity: 0.05; }

@keyframes planeDrift1 {
  0%   { transform: translate(0, 0)        rotate(-6deg); }
  50%  { transform: translate(60vw, -20px) rotate(2deg);  }
  100% { transform: translate(120vw, 10px) rotate(-3deg); }
}
@keyframes planeDrift2 {
  0%   { transform: translate(0, 0)         rotate(186deg); }
  50%  { transform: translate(-60vw, 18px)  rotate(178deg); }
  100% { transform: translate(-120vw, -8px) rotate(184deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-plane { animation: none !important; }
  .hero-plane--3, .hero-plane--4 { display: none; }
}

/* Hero inner content — positioned above the planes */
.hero .hero-inner { position: relative; z-index: 1; }

/* Hide leftover hint (in case any cached HTML still has it) */
.hero-hint { display: none !important; }

/* Trust bar — sits at the very top of the hero */
.trust-bar {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
  padding: 10px 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px -8px rgba(20, 30, 60, 0.12), inset 0 0 0 1px var(--line);
  text-decoration: none;
  color: var(--ink);
  margin: 0 auto clamp(20px, 3vh, 28px);
  font-size: 13px;
  transition: transform 0.2s var(--ease);
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 100%;
}
.trust-bar:hover { transform: translateY(-1px); }
.hero-inner > .trust-bar { display: inline-flex; }
/* Center the trust bar */
.hero-inner { text-align: center; }
.trust-bar-trustpilot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #00b67a;
}
.trustpilot-star { width: 16px; height: 16px; }
.trust-bar-sep {
  width: 1px;
  height: 20px;
  background: var(--line-strong);
  flex-shrink: 0;
}
.trust-bar-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}
.trust-bar-stat strong {
  font-family: var(--font-logo);
  font-size: 15px;
  font-weight: 700;
}
.trust-bar-stat .stars { color: #ffc107; font-size: 12px; letter-spacing: 1px; }
.trust-bar-stat .plus, .trust-bar-stat .unit {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 14px;
}
.trust-bar-label { color: var(--muted); margin-left: 4px; font-size: 12px; }

/* Mobile — stack into 2 lines, smaller font, drop labels */
@media (max-width: 720px) {
  .trust-bar {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 14px;
    border-radius: 18px;
    justify-content: center;
  }
  .trust-bar-sep { display: none; }
  .trust-bar-label { display: none; }
}

/* Search card — clean, always visible, no ocean background */
.hero-search-card {
  max-width: 720px;
  margin: clamp(20px, 3vh, 28px) auto 0;
  padding: clamp(18px, 3vw, 24px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px -28px rgba(20, 30, 60, 0.18), inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;       /* above planes */
}
.hero-search-card .hero-field--where {
  position: relative;
  background: var(--paper);
  border-radius: 16px;
  padding: 12px 16px;
  text-align: left;
}
.hero-search-card .hero-field-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.hero-search-card .hero-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-search-card .hero-field-icon {
  width: 22px;
  height: 22px;
  color: var(--muted);
  flex-shrink: 0;
}
.hero-search-card .hero-field-row input {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  outline: none;
  padding: 0;
}
.hero-search-card .hero-field-row input::placeholder { color: var(--muted); font-weight: 500; }
.hero-search-card .search-clear {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.hero-search-card .search-clear:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }

.hero-search-card .hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
}
.hero-search-card .hero-cta:hover { transform: translateY(-1px); background: #0f1828; }
.hero-search-card .hero-cta svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.hero-search-card .hero-cta:hover svg { transform: translateX(3px); }

/* Search results dropdown — make sure it sits on top of plane bg */
.hero-search-card .search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px -16px rgba(20, 30, 60, 0.18);
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 10;
}

/* Stacking order: search card on top of trust bar / chips */
.hero-search-card .hero-field--where { z-index: 5; }

/* Make hero compact enough that the search card is always above the fold */
@media (min-width: 720px) {
  .hero { padding-top: 40px; padding-bottom: 60px; }
  .hero .hero-headline { margin: 12px 0 8px; }
  .hero .hero-sub { margin: 0 auto 8px; }
}

/* Mobile: tighten everything so everything fits in one viewport height */
@media (max-width: 640px) {
  .hero { padding-top: 18px; padding-bottom: 32px; }
  .hero .hero-headline { font-size: clamp(28px, 9vw, 40px); margin: 8px 0 6px; }
  .hero .hero-sub { font-size: 14px; margin-bottom: 4px; }
  .hero-search-card { padding: 14px; gap: 10px; border-radius: 20px; }
  .hero-search-card .hero-cta { padding: 14px 20px; font-size: 15px; }
  .hero-plane { display: none; }
  .hero-plane--1, .hero-plane--3 { display: block; }
}

/* ============================================================
   POLISH: tighten landing — kill cloud-band gap + restyle chips
   ============================================================ */

/* Remove the empty 120px cloud strip between hero and How section */
.cloud-band { display: none; }

/* Tighter spacing between hero and the next section */
.hero + section,
.hero + .cloud-band + section { margin-top: 0; padding-top: clamp(48px, 8vh, 80px); }

/* Restyle the Popular row — small, airy, blends with hero */
.chips {
  margin: 18px auto 0;
  gap: 6px 8px;
  max-width: 720px;
  padding: 0 12px;
}
.chips-label {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.chip {
  padding: 6px 12px;
  font-size: 13px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-soft);
}
.chip:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
  transform: translateY(-1px);
}

/* ============================================================
   "Start here" hint — points at the Where to search field
   ============================================================ */
.hero-hint {
  display: none;          /* default hidden */
}
@media (min-width: 1180px) {
  .hero-hint {
    display: block;
    position: absolute;
    /* Place to the LEFT of the hero search card. The card is centered
       at 720px max-width; we sit ~80px left of that block. */
    top: 58%;
    left: max(20px, calc(50% - 460px));
    width: 170px;
    z-index: 3;
    pointer-events: none;
    color: var(--coral);
    animation: heroHintBounce 2.6s ease-in-out infinite;
    transform: rotate(-8deg);
    transform-origin: top right;
  }
  .hero-hint-text {
    display: block;
    font-family: var(--font-logo);
    font-weight: 800;
    font-size: 22px;
    color: var(--coral);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
    white-space: nowrap;
  }
  .hero-hint-arrow {
    width: 100%;
    height: auto;
    color: var(--ink);
    display: block;
  }
  @keyframes heroHintBounce {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50%      { transform: rotate(-8deg) translateY(-6px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-hint { animation: none; }
  }
}

/* ============================================================
   ACCENT COLOURS for the in-app experience
   ONLY applied to /signin /account /app /legal — never landing.
   Used moderately as little decorative touches.
   ============================================================ */

/* Account avatar uses sun-deep border accent */
body[data-page="account"] .account-avatar {
  background: var(--ink);
  color: var(--sun);
  box-shadow: 0 0 0 3px var(--sun);
}

/* Account "Buy another" CTA gets a teal undercurl */
body[data-page="account"] .account-cta {
  background: var(--ink);
  position: relative;
}
body[data-page="account"] .account-cta::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: -6px;
  height: 12px;
  background: var(--teal);
  border-radius: 0 0 18px 18px;
  z-index: -1;
  opacity: 0.6;
}

/* App page: small accent dots in the days-picker (only when selected) */
body[data-page="app"] .days-chip.is-selected { background: var(--ink); border-color: var(--ink); }
body[data-page="app"] .days-chip.is-selected span { color: var(--sun); }

/* App page: Most-popular bundle tag uses plum */
body[data-page="app"] .app-bundle-tag { background: var(--plum); color: var(--ink); }

/* App page: progress dots' "is-done" uses sun (yellow) instead of lime */
body[data-page="app"] .flow-progress li.is-done { background: var(--sun-deep); }

/* Signin: trustpilot-style green accent on auth divider */
body[data-page="signin"] .auth-card { border-top: 4px solid var(--teal); }

/* Legal pages: tiny decorative bar on the heading */
body[data-page="legal"] .legal-head h1 {
  position: relative;
  padding-left: 14px;
}
body[data-page="legal"] .legal-head h1::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 4px;
  background: var(--plum);
  border-radius: 2px;
}

@keyframes payspin {
  to { transform: rotate(360deg); }
}

/* Hide landing-only items on non-landing pages */
body:not([data-page="landing"]) .hero,
body:not([data-page="landing"]) .how,
body:not([data-page="landing"]) .coverage,
body:not([data-page="landing"]) .features,
body:not([data-page="landing"]) .cta,
body:not([data-page="landing"]) .plans,
body:not([data-page="landing"]) .clouds,
body:not([data-page="landing"]) .chips,
body:not([data-page="landing"]) .trust {
  display: none !important;
}

/* Only landing shows the hint */
body:not([data-page="landing"]) .hero-hint { display: none !important; }

/* Legal pages — tighten spacing and ensure proper background */
body[data-page="legal"] .legal-shell {
  background: #fff;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: inset 0 0 0 1px var(--line);
  margin: 0 auto;
  max-width: 720px;
}

/* Old dash- classes overlap with account-* cards. Re-scope for account */
.dash-sim {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.dash-sim-flag { font-size: 32px; line-height: 1; }
.dash-sim-info { flex: 1; min-width: 0; }
.dash-sim-title { font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.dash-sim-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: 13px; }
.dash-sim-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--lime) 40%, transparent);
  color: var(--ink);
}
.dash-sim-badge[data-status="pending_install"] { background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--ink); }
.dash-sim-badge[data-status="expired"] { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); }
.dash-sim-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.dash-sim-btn--primary { background: var(--ink); color: #fff; }
.dash-sim-btn--primary:hover { transform: translateY(-1px); background: #0f1828; }
.dash-sim-btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); padding: 7px 14px; }
.dash-sim-btn--ghost:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }

@media (max-width: 520px) {
  .dash-sim { flex-wrap: wrap; }
  .dash-sim-actions { width: 100%; margin-top: 4px; }
  .dash-sim-btn { width: 100%; padding: 10px 16px; }
  .account-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============================================================
   LEGAL + SUPPORT PAGES (hash-routed full pages)
   ============================================================ */
.legal-page {
  min-height: 100vh;
  padding: 96px 20px 80px;
  background: var(--paper);
}
body.is-legal .nav { background: var(--paper); border-bottom: 1px solid var(--line); }
body.is-legal main > section:not(.legal-page) { display: none; }
body.is-legal .footer { display: none; }

.legal-shell {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink);
}
.legal-head { margin-bottom: 28px; }
.legal-head h1 {
  font-family: "Unbounded", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5.5vw, 44px);
  margin: 10px 0 6px;
  letter-spacing: -0.01em;
}
.legal-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.legal-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.legal-breadcrumb:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); transform: translateX(-2px); }

.legal-shell h2 {
  font-family: "Unbounded", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 3vw, 24px);
  margin: 36px 0 10px;
  letter-spacing: -0.01em;
}
.legal-shell h3 {
  font-weight: 700;
  font-size: 17px;
  margin: 24px 0 6px;
}
.legal-shell p, .legal-shell li {
  line-height: 1.65;
  color: var(--ink);
  font-size: 16px;
}
.legal-shell ul, .legal-shell ol {
  padding-left: 20px;
  margin: 8px 0 12px;
}
.legal-shell li { margin-bottom: 6px; }
.legal-shell a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.legal-shell a:hover { text-decoration-color: var(--ink); }

.support-contact, .support-faq, .support-form {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.support-form form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-weight: 600;
  font-size: 14px;
}
.form-field label span { font-weight: 400; color: var(--muted); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field .btn {
  align-self: flex-start;
  padding: 14px 28px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.form-field .btn:hover { transform: translateY(-1px); background: #0f1828; }

/* ============================================================
   SIGN-IN PAGE (#/signin)
   ============================================================ */
.signin-page {
  min-height: 100vh;
  padding: 80px 20px 60px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in srgb, var(--lime) 22%, transparent), transparent 70%),
    var(--paper);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
body.is-signin .nav { background: var(--paper); border-bottom: 1px solid var(--line); }
body.is-signin .nav-cta { display: none; }   /* hide nav CTAs on the sign-in page itself */
body.is-signin main > section:not(.signin-page) { display: none; }
body.is-signin .footer { display: none; }

.signin-shell {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.signin-back {
  display: inline-flex;
  margin-bottom: 18px;
}
.signin-card {
  background: #fff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 40px);
  box-shadow:
    0 30px 80px -32px rgba(20, 30, 60, 0.18),
    0 6px 16px -8px rgba(20, 30, 60, 0.06),
    inset 0 0 0 1px var(--line);
}
.signin-mark {
  width: 44px;
  height: 28px;
  color: var(--ink);
  margin: 0 auto 16px;
}
.signin-mark svg { width: 100%; height: 100%; }
.signin-title {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  text-align: center;
  color: var(--ink);
}
.signin-title em {
  font-style: normal;
  background: var(--lime);
  padding: 0 8px;
  border-radius: 6px;
}
.signin-sub {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.signin-providers {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.signin-or {
  position: relative;
  text-align: center;
  margin: 18px 0;
  height: 1px;
  background: var(--line);
}
.signin-or span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.signin-form { display: grid; gap: 12px; }
.signin-form .form-field input {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
}
.signin-submit {
  width: 100%;
  padding: 14px 20px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}
.signin-form-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}
.signin-guest {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.signin-guest a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lime-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.signin-legal {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 22px 0 0;
}
.signin-legal a {
  color: var(--ink);
  text-decoration: underline;
}

/* Dashboard support link */
.dash-support {
  margin-top: 32px;
  text-align: center;
}
.dash-support a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.dash-support a:hover {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border-color: var(--ink);
}

/* Install-step note under primary CTA */
.app-install-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--lime) 25%, transparent);
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

/* Full-screen app — stronger mobile behaviour */
body.is-app-open { overflow: hidden; }
body.is-app-open .nav,
body.is-app-open .footer,
body.is-app-open main > section:not(.app) { display: none; }
body.is-app-open .app { display: flex; }

.app-bar {
  position: sticky;
  top: 0;
  z-index: 2;
}
.app-step-body {
  padding: 20px 20px 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.app-foot--sticky {
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .app-step-body { padding: 28px 24px 24px; }
}

