/* ==========================================================================
   Gunankur — Landing Site Stylesheet
   Mobile-first. Umbraco-friendly. Uses CSS variables for theming.
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Primary brand */
  --color-sky:        #DDEEFF;
  --color-sky-soft:   #EAF4FF;
  --color-sky-deeper: #BFDBFE;
  --color-blue:       #2F5BEA;
  --color-blue-dark:  #1E3FB8;
  --color-blue-ink:   #142A6B;

  /* Accent */
  --color-orange:     #FF7A1A;
  --color-orange-dk:  #E0660B;
  --color-yellow:     #FFC93C;
  --color-green:      #4FC38A;
  --color-pink:       #FF8FB1;
  --color-lilac:      #B49CFF;

  /* Surface */
  --color-white:      #FFFFFF;
  --color-cream:      #FFF8F0;
  --color-ink:        #1A2540;
  --color-ink-soft:   #4A5578;
  --color-ink-mute:   #7A8299;
  --color-border:     #E6EDF7;

  /* Type */
  --font-display: "Baloo 2", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm:  0 4px 10px rgba(47, 91, 234, 0.08);
  --shadow-md:  0 10px 30px rgba(47, 91, 234, 0.10);
  --shadow-lg:  0 22px 50px rgba(47, 91, 234, 0.14);
  --shadow-orange: 0 12px 24px rgba(255, 122, 26, 0.30);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-blue); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--color-blue-dark); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-blue-ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p  { text-wrap: pretty; margin: 0 0 var(--space-4); color: var(--color-ink-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-5); }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s;
  font-family: var(--font-display);
  font-size: 1rem;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary  { background: var(--color-orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--color-orange-dk); color: #fff; }

.btn-blue { background: var(--color-blue); color: #fff; box-shadow: 0 10px 24px rgba(47,91,234,.3); }
.btn-blue:hover { background: var(--color-blue-dark); color:#fff; }

.btn-ghost { background: #fff; color: var(--color-blue-ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--color-blue); }

.btn-store {
  background: #0E1530; color: #fff;
  padding: 12px 22px;
  align-items: center;
  text-align: left;
  border-radius: 18px;
}
.btn-store:hover { color:#fff; background: #1c2750; }
.btn-store small { display:block; font-size:.7rem; opacity:.75; font-weight:600; letter-spacing:.04em; text-transform: uppercase; }
.btn-store strong { display:block; font-family: var(--font-display); font-size: 1.05rem; }
.btn-store svg { width: 26px; height: 26px; flex: 0 0 26px; }

/* ---------- 4. Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(234, 244, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(47, 91, 234, .08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: var(--space-5);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: none; gap: var(--space-6); }
.nav-links a {
  color: var(--color-blue-ink); font-weight: 700; font-size: .98rem;
}
.nav-links a:hover { color: var(--color-orange); }
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.nav-toggle span {
  width: 20px; height: 2px; background: var(--color-blue-ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--color-blue-ink);
  transition: transform .25s var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  display: none;
  flex-direction: column; gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-6);
  background: #fff; border-top: 1px solid var(--color-border);
}
.nav-drawer.open { display: flex; }
.nav-drawer a:not(.btn) {
  padding: 12px 14px; border-radius: 12px;
  color: var(--color-blue-ink); font-weight: 700;
}
.nav-drawer a:not(.btn):hover { background: var(--color-sky-soft); }
.nav-drawer .btn {
  align-self: stretch;
  justify-content: center;
  margin-top: 6px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255,122,26,.28);
}
.nav-drawer .btn-primary:hover,
.nav-drawer .btn-primary:focus { background: var(--color-orange-dk); color: #fff; }

@media (min-width: 920px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- 5. Section Frame ---------- */
section { padding: var(--space-8) 0; position: relative; }
@media (min-width: 768px) { section { padding: var(--space-9) 0; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-orange);
  background: #FFF1E6;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.eyebrow.blue { color: var(--color-blue); background: #E6EEFF; }
.eyebrow.green { color: #1F8A5B; background: #DEF5E9; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-7); }
.section-head p { font-size: 1.1rem; }

/* ---------- 6. Sky / Cloud Background ---------- */
.sky {
  background: linear-gradient(180deg, #EAF4FF 0%, #DDEEFF 60%, #EAF4FF 100%);
  position: relative; overflow: hidden;
}
.cloud {
  position: absolute; pointer-events: none; opacity: .9;
  filter: drop-shadow(0 8px 12px rgba(47,91,234,0.06));
}
.cloud svg { width: 100%; height: 100%; }

.star {
  position: absolute; pointer-events: none;
  width: 14px; height: 14px;
  background: var(--color-yellow);
  clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  opacity: .8;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle { 0%,100%{transform:scale(1);opacity:.85} 50%{transform:scale(1.15);opacity:.4} }

@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes floatX { 0%,100%{transform:translateX(0)} 50%{transform:translateX(14px)} }

/* ---------- 7. Hero ---------- */
.hero { padding: var(--space-7) 0 var(--space-8); }
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-copy h1 { color: var(--color-blue-ink); }
.hero-copy h1 .accent { color: var(--color-orange); }
.hero-copy h1 .accent-blue { color: var(--color-blue); }
.hero-copy .lead {
  font-size: 1.15rem; max-width: 560px; color: var(--color-ink-soft);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-6); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: .9rem;
  color: var(--color-blue-ink);
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--color-green); }
.badge.rating { color: var(--color-orange-dk); }
.badge.rating .stars { color: var(--color-yellow); letter-spacing: -1px; }

.hero-visual { position: relative; min-height: 460px; }
.phone-stage { position: relative; height: 100%; min-height: 460px; }
.phone-stage .phone { position: absolute; }
.phone-stage .phone.p1 { left: 0; top: 30px; transform: rotate(-6deg); width: 56%; animation: floatY 6s ease-in-out infinite; }
.phone-stage .phone.p2 { right: 0; top: 0; width: 56%; transform: rotate(4deg); animation: floatY 7s ease-in-out infinite reverse; }

@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: var(--space-8); }
  .hero-visual { min-height: 560px; }
}

/* Hero clouds */
.hero .cloud.c1 { top: 6%; left: -4%; width: 180px; animation: floatX 14s ease-in-out infinite; }
.hero .cloud.c2 { top: 12%; right: 4%; width: 130px; animation: floatX 18s ease-in-out infinite reverse; }
.hero .cloud.c3 { bottom: 8%; left: 8%; width: 100px; opacity:.7; animation: floatX 22s ease-in-out infinite; }
.hero .star.s1 { top: 22%; left: 42%; }
.hero .star.s2 { top: 48%; right: 12%; width: 10px; height: 10px; animation-delay: .8s; }
.hero .star.s3 { bottom: 22%; left: 48%; width: 18px; height: 18px; animation-delay: 1.4s; }

/* ---------- 8. Phone Mockup (CSS) ---------- */
.phone-mock {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #0E1530;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-mock::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 18px; background: #0E1530; border-radius: 999px; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #EAF4FF, #DDEEFF);
  position: relative;
  display: flex; flex-direction: column;
}
.phone-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px; font-size: .72rem; font-weight: 800; color: var(--color-blue-ink);
}
.phone-statusbar .right { display: inline-flex; gap: 6px; align-items: center; }
.phone-statusbar .right .pill { width: 18px; height: 9px; border: 1.5px solid var(--color-blue-ink); border-radius: 3px; position: relative; }
.phone-statusbar .right .pill::after { content:""; position:absolute; inset:1px; background: var(--color-blue-ink); border-radius:1.5px; width: 80%; }

/* Phone — Daily Activities mock */
.phone-card {
  background: #fff; margin: 8px 14px; padding: 12px 14px; border-radius: 18px;
  box-shadow: 0 6px 16px rgba(47,91,234,.06);
}
.phone-card .title { display:flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--color-blue-ink); font-size: .8rem; margin-bottom: 8px;}
.phone-card .title .streak { font-size: .7rem; color: var(--color-orange); background: #FFEDDB; padding: 3px 8px; border-radius: 999px; }
.weekdays { display: flex; justify-content: space-between; gap: 4px; }
.weekdays .day {
  flex: 1; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--color-sky-soft); border-radius: 10px;
  font-size: .55rem; font-weight: 800; color: var(--color-blue-ink);
}
.weekdays .day.active { background: var(--color-blue); color: #fff; }
.weekdays .day.done { background: var(--color-green); color: #fff; }

.phone-tile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 14px;
}
.phone-tile {
  background: var(--color-blue); color: #fff; border-radius: 14px; padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: .65rem; font-weight: 800; min-height: 60px;
}
.phone-tile.lt { background: #fff; color: var(--color-blue-ink); }
.phone-tile.org { background: var(--color-orange); }
.phone-tile.yl { background: var(--color-yellow); color: var(--color-blue-ink); }
.phone-tile.gr { background: var(--color-green); }
.phone-tile .ico {
  width: 22px; height: 22px; border-radius: 8px; background: rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.phone-tile.lt .ico { background: var(--color-sky-soft); }

.phone-plant {
  margin: 6px 14px; padding: 10px 12px; background: #fff; border-radius: 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 6px 16px rgba(47,91,234,.06);
}
.phone-plant .pot {
  width: 38px; height: 38px; flex: 0 0 38px;
  background: var(--color-green); border-radius: 10px; position: relative;
}
.phone-plant .pot::before {
  content:""; position: absolute; left: 50%; top: -10px; transform: translateX(-50%);
  width: 20px; height: 18px; background: #2a9d6f; border-radius: 0 100% 0 100%;
}
.phone-plant .t { font-size: .7rem; color: var(--color-blue-ink); font-weight: 800; }
.phone-plant .s { font-size: .58rem; color: var(--color-ink-mute); }

.phone-tabbar {
  margin-top: auto;
  display: flex; justify-content: space-around;
  padding: 10px 14px 16px;
  background: #fff;
  border-top: 1px solid rgba(47,91,234,.08);
}
.phone-tabbar .tab {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--color-sky-soft); display: flex; align-items: center; justify-content: center;
  font-size: .58rem; font-weight: 800; color: var(--color-blue-ink);
}
.phone-tabbar .tab.active { background: var(--color-blue); color: #fff; }

/* Phone — Leaderboard mock */
.phone-screen.leaderboard {
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,.6) 0, transparent 50%),
    repeating-conic-gradient(from 0deg at 50% 14%, #3a72ff 0deg 12deg, #2F5BEA 12deg 24deg);
}
.lb-title { text-align: center; color: #fff; font-family: var(--font-display); font-weight: 800; padding: 6px 0 8px; }
.lb-podium { display: flex; justify-content: center; align-items: end; gap: 8px; padding: 4px 18px 12px; }
.lb-spot { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: .55rem; font-weight:800; }
.lb-spot .av { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid #ffd35a; }
.lb-spot.first .av { width: 46px; height: 46px; }
.lb-spot .bar { width: 36px; background: rgba(255,255,255,.18); border-radius: 6px 6px 0 0; }
.lb-spot.first .bar { width: 46px; background: #ffd35a; color:#3a2300; height: 36px; }
.lb-spot:nth-child(1) .bar { height: 24px; }
.lb-spot:nth-child(3) .bar { height: 20px; }
.lb-list { background: #fff; border-radius: 22px 22px 0 0; flex: 1; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.lb-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: .65rem; font-weight: 800; color: var(--color-blue-ink); }
.lb-row.you { background: var(--color-sky-soft); }
.lb-row .rank { width: 18px; color: var(--color-ink-mute); }
.lb-row .av { width: 22px; height: 22px; border-radius:50%; background: var(--color-sky-deeper); }
.lb-row .name { flex: 1; }
.lb-row .up { color: var(--color-green); font-size: .7rem; }
.lb-row .down { color: #e85a5a; font-size: .7rem; }

/* ---------- 9. About ---------- */
.about-grid {
  display: grid; gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 920px) { .about-grid { grid-template-columns: 1fr 1.1fr; } }

.about-visual { position: relative; padding: var(--space-5); }
.about-collage {
  position: relative; aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 30% 30%, #F4F8FF 0%, #DDEEFF 70%, #C3DCFB 100%);
  border-radius: 40% 60% 40% 60% / 50% 40% 60% 50%;
  display: flex; align-items: center; justify-content: center;
}
.about-collage .phone-mock { width: 60%; transform: rotate(-3deg); }
.about-orbit {
  position: absolute; inset: 0; pointer-events: none;
}
.orbit-chip {
  position: absolute;
  background: #fff; padding: 10px 14px; border-radius: 16px;
  font-weight: 800; color: var(--color-blue-ink); font-size: .9rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 8px;
  animation: floatY 5s ease-in-out infinite;
}
.orbit-chip .emoji {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--color-sky);
}
.orbit-chip.c1 { top: 8%; left: -8%; animation-delay: 0s; }
.orbit-chip.c2 { top: 22%; right: -6%; animation-delay: .6s; }
.orbit-chip.c3 { bottom: 18%; left: -6%; animation-delay: 1.2s; }
.orbit-chip.c4 { bottom: 6%; right: -4%; animation-delay: 1.8s; }

.values-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: var(--space-5); }
.value-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-sm); font-weight: 700; color: var(--color-blue-ink);
}
.value-pill .vico {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-family: var(--font-display);
}

/* ---------- 10. Features ---------- */
.features-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: #fff; padding: var(--space-5); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
  transition: transform .3s var(--ease-out), box-shadow .3s;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card .ficon {
  width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-sky); color: var(--color-blue);
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  margin-bottom: var(--space-2);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.feature-card p { font-size: .95rem; margin: 0; }
.feature-card.accent-orange .ficon { background: #FFEAD2; color: var(--color-orange); }
.feature-card.accent-green  .ficon { background: #DEF5E9; color: #1F8A5B; }
.feature-card.accent-yellow .ficon { background: #FFF4CD; color: #C28B00; }
.feature-card.accent-pink   .ficon { background: #FFE2EC; color: #C5446A; }
.feature-card.accent-lilac  .ficon { background: #EBE3FF; color: #6B4FD0; }

/* ---------- 11. App Screens Showcase ---------- */
.screens-rail-wrap { position: relative; }
.screens-rail {
  display: flex; gap: var(--space-5);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  padding: var(--space-5) max(24px, calc((100vw - var(--container)) / 2 + 24px)) var(--space-6);
  scrollbar-width: none;
}
.screens-rail::-webkit-scrollbar { display: none; }
.screen-card {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
  text-align: center;
}
.screen-card .phone-mock { margin: 0 auto var(--space-4); }
.screen-card h4 {
  font-family: var(--font-display); font-weight: 800; color: var(--color-blue-ink);
  margin: 0 0 4px; font-size: 1.05rem;
}
.screen-card p { font-size: .9rem; margin: 0; }

.screen-placeholder {
  width: 100%; height: 100%; border-radius: 28px;
  background:
    repeating-linear-gradient(135deg, #C7DAFC 0 14px, #DCE9FF 14px 28px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem; color: var(--color-blue-ink); font-weight: 700;
}

/* ---------- 12. How It Works ---------- */
.steps {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1fr;
  counter-reset: step;
  position: relative;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: #fff; padding: var(--space-5); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); position: relative;
  text-align: center;
}
.step .step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-3);
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(47,91,234,.30);
}
.step:nth-child(2) .step-num { background: var(--color-orange); box-shadow: 0 8px 20px rgba(255,122,26,.3); }
.step:nth-child(3) .step-num { background: var(--color-yellow); color: var(--color-blue-ink); box-shadow: 0 8px 20px rgba(255,201,60,.4); }
.step:nth-child(4) .step-num { background: var(--color-green); box-shadow: 0 8px 20px rgba(79,195,138,.4); }
.step h4 { font-family: var(--font-display); color: var(--color-blue-ink); margin: 0 0 6px; font-size: 1.1rem; }
.step p { font-size: .95rem; margin: 0; }

.steps::before {
  content: "";
  display: none;
}
@media (min-width: 720px) {
  .steps::before {
    display: block;
    position: absolute; top: 56px; left: 12%; right: 12%; height: 3px;
    background-image: linear-gradient(90deg, var(--color-blue) 0 12px, transparent 12px 24px);
    background-size: 24px 3px;
    z-index: -1;
  }
}

/* ---------- 13. Benefits ---------- */
.benefits-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
.benefit-card {
  background: #fff; border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative; overflow: hidden;
}
.benefit-card.kids { background: linear-gradient(160deg, #FFF1E1 0%, #FFFAF2 100%); }
.benefit-card.parents { background: linear-gradient(160deg, #E6EEFF 0%, #F4F8FF 100%); }
.benefit-card .bhead {
  display: flex; align-items: center; gap: 14px; margin-bottom: var(--space-4);
}
.benefit-card .biz {
  width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  background: #fff; box-shadow: var(--shadow-sm); color: var(--color-orange);
}
.benefit-card.parents .biz { color: var(--color-blue); }
.benefit-card h3 { margin: 0; font-size: 1.5rem; }
.benefit-list { display: flex; flex-direction: column; gap: 10px; }
.benefit-list li {
  display: flex; align-items: center; gap: 12px; font-weight: 700;
  color: var(--color-blue-ink);
}
.benefit-list .tick {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 24px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--color-green); font-weight: 900;
  box-shadow: var(--shadow-sm);
}

/* ---------- 14. Testimonials ---------- */
.testi-rail {
  display: flex; gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testi-rail::-webkit-scrollbar { display: none; }
.testi-rail > .testi-card {
  flex: 0 0 86%;
  scroll-snap-align: center;
}
@media (min-width: 640px) {
  .testi-rail > .testi-card { flex: 0 0 calc((100% - var(--space-5)) / 2); }
}
@media (min-width: 980px) {
  .testi-rail > .testi-card { flex: 0 0 calc((100% - 2 * var(--space-5)) / 3); scroll-snap-align: start; }
}

.testi-card {
  background: #fff; padding: var(--space-6); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); position: relative;
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.testi-card .stars { color: var(--color-yellow); letter-spacing: 2px; font-size: 1.1rem; }
.testi-card blockquote {
  margin: 0; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.45;
  color: var(--color-blue-ink); font-weight: 600;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-author .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-sky-deeper); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; color: var(--color-blue-ink);
}
.testi-author .meta strong { display: block; color: var(--color-blue-ink); }
.testi-author .meta small { color: var(--color-ink-mute); }

/* ---------- 15. Download CTA ---------- */
.cta-banner {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.4) 0, transparent 30%),
    radial-gradient(circle at 88% 80%, rgba(255,255,255,.25) 0, transparent 32%),
    linear-gradient(135deg, #2F5BEA 0%, #4A78F5 60%, #6BA0FF 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-6);
  color: #fff; position: relative; overflow: hidden;
}
.cta-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) { .cta-grid { grid-template-columns: 1.4fr 1fr; } }
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.9); font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

.qr-card {
  background: #fff; padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: inline-block;
}
.qr-card .qr {
  width: 140px; height: 140px;
  background-image:
    linear-gradient(45deg, #142A6B 25%, transparent 25%),
    linear-gradient(-45deg, #142A6B 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #142A6B 75%),
    linear-gradient(-45deg, transparent 75%, #142A6B 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  border-radius: 12px;
  margin: 0 auto 10px;
}
.qr-card small { font-family: var(--font-display); font-weight: 700; color: var(--color-blue-ink); }

/* Floating decorative shapes on CTA banner */
.cta-banner::before, .cta-banner::after {
  content:""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.10);
  pointer-events: none;
}
.cta-banner::before { width: 200px; height: 200px; top: -60px; right: -60px; }
.cta-banner::after  { width: 120px; height: 120px; bottom: -40px; left: 20%; }

/* ---------- 16. Footer ---------- */
.footer {
  background: linear-gradient(180deg, #EAF4FF 0%, #C7DDFB 100%);
  padding: var(--space-8) 0 var(--space-5);
  position: relative; overflow: hidden;
}
.footer-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h5 {
  font-family: var(--font-display); font-weight: 800; color: var(--color-blue-ink);
  margin: 0 0 var(--space-3); font-size: 1.05rem; letter-spacing: .02em;
}
.footer-brand p { color: var(--color-ink-soft); max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--color-blue-ink); font-weight: 600; }
.footer-links a:hover { color: var(--color-orange); }
.footer-contact li { display: flex; gap: 10px; align-items: center; color: var(--color-blue-ink); font-weight: 600; padding: 4px 0; }
.footer-contact .ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-blue); flex: 0 0 28px;
}
.social-row { display: flex; gap: 10px; margin-top: var(--space-4); }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-blue); box-shadow: var(--shadow-sm);
}
.social-row a:hover { background: var(--color-blue); color: #fff; }

.footer-base {
  margin-top: var(--space-7); padding-top: var(--space-5);
  border-top: 1px solid rgba(47,91,234,.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--color-blue-ink); font-size: .9rem; font-weight: 600;
}

.footer .cloud.fc1 { top: 0; left: 4%; width: 120px; opacity: .8; }
.footer .cloud.fc2 { top: 30px; right: 10%; width: 100px; opacity: .7; }

/* ---------- 17. Legal / Inner pages ---------- */
.page-hero {
  background: linear-gradient(180deg, #EAF4FF 0%, #DDEEFF 100%);
  padding: var(--space-8) 0 var(--space-8);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { font-size: 1.1rem; max-width: 580px; margin: 0 auto; }

.legal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  margin: calc(var(--space-7) * -1) auto var(--space-8);
  position: relative; z-index: 2;
  box-shadow: var(--shadow-md);
  max-width: 880px;
}
.legal h2 { font-size: 1.4rem; margin-top: var(--space-5); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: var(--space-4); }
.legal ul { padding-left: 1.2em; list-style: disc; color: var(--color-ink-soft); }
.legal ul li { margin-bottom: 6px; }
.legal p { color: var(--color-ink-soft); }
.toc {
  background: var(--color-sky-soft); border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-5);
}
.toc h4 { margin: 0 0 8px; font-family: var(--font-display); color: var(--color-blue-ink); }
.toc ol { padding-left: 1.2em; color: var(--color-blue); margin: 0; }
.toc ol li { margin: 4px 0; }
.toc a { font-weight: 700; }

/* ---------- 18. Forms ---------- */
.form-card {
  background: #fff; border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
  max-width: 720px; margin: 0 auto;
}
.form-grid { display: grid; gap: var(--space-4); }
.form-row { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

label {
  display: block; font-weight: 800; color: var(--color-blue-ink);
  margin-bottom: 6px; font-size: .95rem;
}
label .hint { font-weight: 600; color: var(--color-ink-mute); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: var(--font-body); font-size: 1rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  color: var(--color-ink);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--color-blue);
  box-shadow: 0 0 0 4px rgba(47,91,234,.12);
}
textarea { resize: vertical; min-height: 120px; }

.checkbox-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px; background: var(--color-sky-soft); border-radius: 12px;
}
.checkbox-row input[type="checkbox"] {
  width: 22px; height: 22px; accent-color: var(--color-blue);
  margin-top: 1px; flex: 0 0 22px;
}
.checkbox-row span { color: var(--color-blue-ink); font-weight: 600; font-size: .95rem; }

.form-success {
  display: none;
  background: #DEF5E9; color: #1F8A5B;
  border-radius: 14px; padding: 14px 16px; font-weight: 700;
  margin-bottom: var(--space-5);
}
.form-success.show { display: block; }

/* ---------- 19. FAQ Accordion ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 800; color: var(--color-blue-ink);
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; color: var(--color-orange);
  transition: transform .25s;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer {
  padding: 0 22px 18px; color: var(--color-ink-soft);
}

/* ---------- 20. Contact info cards ---------- */
.info-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-7);
}
@media (min-width: 700px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  background: #fff; padding: var(--space-5); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); text-align: center;
}
.info-card .iico {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--color-sky); color: var(--color-blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.info-card h4 { font-family: var(--font-display); margin: 0 0 4px; color: var(--color-blue-ink); }
.info-card p  { margin: 0; color: var(--color-ink-soft); }

/* Solo email card — horizontal layout, centered, not full-width */
.info-card-solo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-align: left;
  padding: var(--space-5);
}
.info-card-solo .iico { margin-bottom: 0; flex: 0 0 auto; }
.info-card-solo .info-card-body { min-width: 0; }
.info-card-solo h4 { font-size: 1.15rem; }
.info-card-solo p + p { margin-top: 4px; }
.info-card-solo a { word-break: break-word; }

/* Two-column contact layout: info panel + form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-6); }
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .contact-aside { position: sticky; top: 96px; }
}
.contact-aside-note {
  background: var(--color-sky);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.contact-aside-note strong {
  display: block;
  font-family: var(--font-display);
  color: var(--color-blue-ink);
  margin-bottom: 6px;
}
.contact-aside-note span { color: var(--color-ink-soft); font-size: .95rem; }
@media (max-width: 480px) {
  .info-card-solo { flex-direction: column; text-align: center; gap: var(--space-3); }
  .info-card-solo .iico { margin: 0 auto; }
}

/* ---------- 21. Helpers ---------- */
.center { text-align: center; }
.mt-7 { margin-top: var(--space-7); }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } }

/* Reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal].in { opacity: 1; transform: none; transition: none; }
  .hero .cloud, .star, .orbit-chip, .phone-stage .phone { animation: none !important; }
}

/* Testimonial carousel arrows — only shown on mobile where the rail scrolls */
.carousel-controls {
  display: flex; gap: 14px; justify-content: center; align-items: center;
  margin-top: var(--space-5);
}
.carousel-controls button {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-blue);
  border: 2px solid transparent;
  transition: transform .25s var(--ease-out), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.carousel-controls button svg { width: 22px; height: 22px; display: block; }
.carousel-controls button:hover {
  background: var(--color-blue); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47,91,234,.30);
}
.carousel-controls button:active { transform: translateY(0); }
.carousel-controls button:disabled {
  opacity: .35;
  cursor: default;
  box-shadow: var(--shadow-sm);
}
.carousel-controls button:disabled:hover {
  background: #fff; color: inherit; transform: none;
}
/* Screens carousel controls align with page container */
.screens-rail-wrap .carousel-controls {
  padding: 0 24px;
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
}

/* Scroll-to-top button */
.to-top {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  bottom: calc(clamp(16px, 4vw, 32px) + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px;
  border: none; border-radius: 50%;
  background: var(--color-blue); color: #fff;
  box-shadow: 0 10px 26px rgba(47,91,234,.34);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), background .2s, box-shadow .2s;
  z-index: 70;
}
.to-top svg { width: 22px; height: 22px; display: block; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--color-blue-ink); transform: translateY(-3px) scale(1); box-shadow: 0 14px 32px rgba(47,91,234,.42); }
.to-top:active { transform: translateY(0) scale(.96); }
.to-top:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255,122,26,.30); }
@media (max-width: 767px) {
  .to-top { width: 48px; height: 48px; }
  .to-top svg { width: 21px; height: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s; transform: none; }
  .to-top.show { transform: none; }
}
.carousel-controls button:focus-visible {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(255,122,26,.20);
}
.carousel-dots {
  display: flex; gap: 6px;
  align-items: center;
}
.carousel-dots button {
  width: 8px; height: 8px; padding: 0;
  border-radius: 999px;
  background: rgba(47,91,234,.25);
  border: 0; cursor: pointer;
  transition: width .3s var(--ease-out), background .25s;
}
.carousel-dots button:hover { background: rgba(47,91,234,.5); }
.carousel-dots button[aria-current="true"] {
  width: 24px;
  background: var(--color-blue);
}
.carousel-dots button:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

/* ==========================================================================
   22. Responsive Layer — fluid tuning across all viewports
   Order: XS phone → S phone → tablet → small laptop → large desktop
   ========================================================================== */

/* Offset anchor jumps so targets clear the sticky navbar */
html { scroll-padding-top: 88px; }

/* Never let a stray wide element cause horizontal scroll */
.hero-visual, .about-visual, .screens-rail-wrap { max-width: 100%; }

/* Prevent iOS auto-zoom on focus (inputs must be ≥16px) */
@media (max-width: 767px) {
  input[type="text"], input[type="email"], input[type="tel"],
  textarea, select {
    font-size: 16px;
  }
}

/* ---- Phones & small tablets (≤ 640px): tame oversized paddings ---- */
@media (max-width: 640px) {
  .form-card { padding: var(--space-5); }
  .legal { padding: var(--space-5); }
  .testi-card { padding: var(--space-5); }
  .benefit-card { padding: var(--space-5); }
  .cta-banner { padding: var(--space-6) var(--space-5); }
  .section-head { margin-bottom: var(--space-6); }
}

/* ---- Very narrow phones (≤ 360px): stack 2-up grids ---- */
@media (max-width: 360px) {
  .values-list { grid-template-columns: 1fr; }
  .phone-tile-grid { gap: 6px; }
  .hero-badges .badge { font-size: .76rem; }
}

/* ---- XS phones (≤ 380px) ---- */
@media (max-width: 380px) {
  :root {
    --space-7: 36px;
    --space-8: 48px;
    --space-9: 64px;
  }
  body { font-size: 16px; }
  .container,
  .container-narrow { padding: 0 16px; }

  .nav-inner { height: 64px; gap: 12px; }
  .nav-logo img { height: 32px; }
  .nav-toggle { width: 40px; height: 40px; }

  .hero { padding: 32px 0 40px; }
  .hero-copy .lead { font-size: 1rem; }
  .hero-cta { gap: 10px; }
  .btn { padding: 12px 18px; font-size: .95rem; }
  .btn-store { padding: 10px 16px; }
  .btn-store svg { width: 22px; height: 22px; flex: 0 0 22px; }
  .btn-store strong { font-size: .95rem; }
  .btn-store small { font-size: .62rem; }

  .hero-badges .badge { font-size: .8rem; padding: 6px 10px; }

  .feature-card,
  .step,
  .info-card,
  .testi-card { padding: 20px; }
  .feature-card .ficon { width: 48px; height: 48px; font-size: 1.4rem; }
  .step .step-num { width: 48px; height: 48px; font-size: 1.25rem; }

  .benefit-card { padding: 24px 20px; }
  .benefit-card h3 { font-size: 1.25rem; }

  .cta-banner { padding: 32px 22px; border-radius: var(--radius-lg); }
  .qr-card .qr { width: 110px; height: 110px; }

  .form-card { padding: 22px 18px; border-radius: var(--radius-lg); }
  .legal { padding: 26px 20px; border-radius: var(--radius-lg); }

  .orbit-chip { padding: 8px 10px; font-size: .78rem; }
  .orbit-chip .emoji { width: 26px; height: 26px; font-size: 14px; }

  .footer { padding: 56px 0 24px; }
  .footer-base { font-size: .82rem; }
}

/* ---- Small phones (≤ 480px) ---- */
@media (max-width: 480px) {
  .hero-visual { min-height: 380px; }
  .phone-stage { min-height: 380px; }
  .phone-stage .phone.p1 { width: 58%; top: 40px; left: -2%; }
  .phone-stage .phone.p2 { width: 58%; top: 0; right: -2%; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-store { width: 100%; justify-content: flex-start; }

  /* About collage scales down — keep the phone legible */
  .about-collage { border-radius: 36px; }
  .about-collage .phone-mock { width: 64%; }
  .orbit-chip.c1 { top: 4%; left: 0; }
  .orbit-chip.c2 { top: 16%; right: 0; }
  .orbit-chip.c3 { bottom: 14%; left: 0; }
  .orbit-chip.c4 { bottom: 2%; right: 0; }

  .section-head { margin-bottom: var(--space-6); }
  .section-head p { font-size: 1rem; }

  .cta-grid { gap: var(--space-5); }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner p  { font-size: 1rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-store { width: 100%; }

  .faq summary { padding: 16px 18px; font-size: 1rem; }
  .faq .answer { padding: 0 18px 16px; font-size: .95rem; }

  .footer-base { flex-direction: column; align-items: flex-start; gap: 6px; }

  .screen-card { width: 210px; }

  /* Tighter legal page top spacing on small screens (legal has negative margin) */
  .legal { margin-top: calc(var(--space-6) * -1); }
}

/* ---- Tablets / large phones (481–767px) ---- */
@media (min-width: 481px) and (max-width: 767px) {
  .hero-visual { min-height: 440px; }
  .phone-stage { min-height: 440px; }
}

/* ---- Tablets (768–919px) ---- */
@media (min-width: 768px) and (max-width: 919px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer-brand { grid-column: 1 / -1; }

  /* Stack hero so phones aren't squeezed at this awkward width */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 560px; margin: 0 auto; }

  .about-grid { gap: var(--space-6); }
}

/* ---- Small desktops (920–1099px) ---- */
@media (min-width: 920px) and (max-width: 1099px) {
  .nav-links { gap: var(--space-5); }
  .hero-grid { gap: var(--space-6); }
}

/* ---- Large desktops (≥ 1400px) ---- */
@media (min-width: 1400px) {
  :root { --container: 1280px; }
}

/* ---- Ultra-wide guard (no content stretching past max) ---- */
@media (min-width: 1700px) {
  body { font-size: 18px; }
}

/* ---- Touch-target safety on all small viewports ---- */
@media (max-width: 767px) {
  .nav-drawer a { padding: 14px 14px; min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 44px; }
  .footer-links a { padding: 6px 0; min-height: 32px; display: inline-flex; align-items: center; }
}

/* ---- Landscape phone (short height) ---- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 32px 0; }
  .hero-visual,
  .phone-stage { min-height: 320px; }
  .nav { position: relative; }
}

/* ---- Print: hide chrome, keep content readable ---- */
@media print {
  .nav, .footer, .cta-banner, .carousel-controls,
  .cloud, .star, .rainbow, .to-top,
  .nav-toggle, .nav-drawer { display: none !important; }
  body { color: #000; background: #fff; font-size: 12pt; }
  .container, .container-narrow { max-width: 100%; padding: 0; }
  section { padding: 16pt 0; break-inside: avoid; }
  .legal { box-shadow: none; padding: 0; margin: 0; }
  a { color: #000; text-decoration: underline; }
}

/* Rainbow accent under hero */
.rainbow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 360px; height: 180px;
  background:
    radial-gradient(circle at 50% 100%, transparent 50%, transparent 51%),
    conic-gradient(from 270deg at 50% 100%,
      #FF7A1A 0deg, #FFC93C 25deg, #4FC38A 50deg, #2F5BEA 75deg, #B49CFF 100deg, transparent 110deg);
  -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 56%, #000 57%, #000 100%, transparent 100%);
          mask-image: radial-gradient(circle at 50% 100%, transparent 56%, #000 57%, #000 100%, transparent 100%);
  opacity: .35;
  pointer-events: none;
}
