/* בגרות בקלות — landing page
 * Tokens mirror the app's src/components/ui/tokens.ts: every color is a
 * face/edge/tint pair, depth comes from a hard bottom edge, cards are flat
 * with a 2px neutral border. */

:root {
  --brand: #1CB0F6; --brand-edge: #1899D6; --brand-tint: #DDF4FF;
  --green: #58CC02; --green-edge: #58A700; --green-tint: #D7FFB8;
  --red: #FF4B4B; --red-edge: #EA2B2B; --red-tint: #FFDFE0;
  --gold: #FFC800; --gold-edge: #E6AC00; --gold-tint: #FFF4CC;
  --streak: #FF9600; --streak-edge: #E58900; --streak-tint: #FFEACC;
  --purple: #CE82FF; --purple-edge: #A560F0; --purple-tint: #F3E8FF;
  --hist: #E49B0F; --hist-edge: #C6870D; --hist-tint: #FCF2DC;
  --civ: #4FB4E4; --civ-edge: #3B9BC8; --civ-tint: #E4F4FC;
  --heb: #FFC42E; --heb-edge: #D9A518; --heb-tint: #FFF6DA; --heb-on: #4A3800;

  --ink: #3C3C3C;      /* headings */
  --text: #4B4B4B;     /* body — never pure black */
  --text2: #777777;
  --muted: #AFAFAF;
  --border: #E5E5E5;
  --bg: #FFFFFF;
  --bg-alt: #F7F7F7;
  --sky: #E8F6FE;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;
  --edge: 4px;
  --overlay-shadow: 0 8px 24px rgba(0,0,0,.12);

  --f-body: 'Rubik', 'Segoe UI', Tahoma, sans-serif;
  --f-num: 'Fredoka', 'Rubik', sans-serif;

  --wrap: 1140px;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--brand-edge); }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; font-weight: 800; }
p { margin: 0; }
.num { font-family: var(--f-num); font-weight: 700; font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3D pressable button (the app's signature) ---------- */
.btn {
  --face: var(--bg); --edge-c: var(--border); --on: var(--brand-edge);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 22px;
  border: 2px solid var(--edge-c);
  border-radius: var(--r-lg);
  background: var(--face); color: var(--on);
  font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: .01em;
  box-shadow: 0 var(--edge) 0 var(--edge-c);
  transform: translateY(0);
  transition: transform .1s, box-shadow .1s, filter .2s;
  user-select: none;
}
.btn:hover { filter: brightness(1.04); }
.btn:active, .btn.is-pressed { transform: translateY(var(--edge)); box-shadow: 0 0 0 var(--edge-c); }
.btn:disabled { --face: var(--border); --edge-c: var(--border); --on: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.btn-brand { --face: var(--brand); --edge-c: var(--brand-edge); --on: #fff; }
.btn-green { --face: var(--green); --edge-c: var(--green-edge); --on: #fff; }
.btn-outline { --face: #fff; --edge-c: var(--border); --on: var(--brand-edge); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 15px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; color: var(--brand-edge); font-weight: 700; padding: 10px; }

/* ---------- Store buttons ---------- */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store-row.center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 190px; padding: 10px 18px;
  background: #1B1E22; color: #fff; text-decoration: none;
  border: 2px solid #000; border-radius: var(--r-lg);
  box-shadow: 0 var(--edge) 0 #000;
  transition: transform .1s, box-shadow .1s;
}
.store:active { transform: translateY(var(--edge)); box-shadow: 0 0 0 #000; }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--f-num); font-weight: 600; font-size: 20px; direction: rtl; text-align: start; white-space: nowrap; }
.store small { font-family: var(--f-body); font-weight: 400; font-size: 12px; opacity: .85; }
.store.is-primary { order: -1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--brand-edge); font-weight: 800; font-size: 20px; }
.logo img { width: 40px; height: 40px; object-fit: contain; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; }
.nav-links a { color: var(--text2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand-edge); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-inline-start: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--sky), transparent 70%),
    linear-gradient(180deg, #F2FAFF 0%, #fff 100%);
  padding: 48px 0 40px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 14px; border: 2px solid var(--border); border-radius: 999px;
  background: #fff; font-size: 14px; font-weight: 500; color: var(--text2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; margin-inline-start: 6px; }
.dot:first-child { margin-inline-start: 0; }
.dot-hist { background: var(--hist); } .dot-civ { background: var(--civ); } .dot-heb { background: var(--heb); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); margin-top: 18px; letter-spacing: -.01em; }
.hl { color: var(--brand); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .02em; height: .18em;
  background: var(--gold); border-radius: 999px; z-index: -1; opacity: .55;
  transform-origin: right; transform: scaleX(0); animation: underline .8s .6s var(--ease-spring) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text2); margin-top: 18px; max-width: 34em; }

.trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--text2); }
.trust.center { justify-content: center; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.check { width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint); position: relative; flex: none; }
.check::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 10px; border: solid var(--green-edge); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.blob {
  position: absolute; width: 440px; height: 440px; border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
  background: var(--brand-tint); animation: blob 14s ease-in-out infinite;
}
@keyframes blob { 50% { border-radius: 58% 42% 44% 56% / 42% 58% 42% 58%; transform: rotate(8deg) scale(1.04); } }

.phone {
  position: relative; width: 280px; aspect-ratio: 9 / 16;
  border-radius: 40px; border: 10px solid #1B1E22; background: #1B1E22;
  box-shadow: 0 10px 0 #000, 0 30px 60px rgba(28,176,246,.25);
  overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.hero .phone { transform: rotate(-3deg); }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--border); border-radius: var(--r-lg);
  padding: 8px 14px; font-weight: 700; font-size: 15px; color: var(--ink);
  box-shadow: 0 4px 0 var(--border);
  white-space: nowrap;
}
.chip .num { font-size: 22px; }
.chip-streak { top: 12%; inset-inline-start: -2%; } .chip-streak .num { color: var(--streak); }
.chip-xp { top: 46%; inset-inline-end: -4%; } .chip-xp .num { color: var(--gold-edge); }
.chip-days { bottom: 12%; inset-inline-start: 0; border-color: var(--brand); box-shadow: 0 4px 0 var(--brand-edge); background: var(--brand-tint); color: var(--brand-edge); }
.chip-days .num { color: var(--brand-edge); }
.xp-badge { display: inline-grid; place-items: center; background: var(--gold); color: var(--ink); font-family: var(--f-num); font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 8px; box-shadow: 0 3px 0 var(--gold-edge); }
.xp-badge.sm { font-size: 11px; padding: 1px 6px; box-shadow: 0 2px 0 var(--gold-edge); }
.hero-navon { position: absolute; width: 150px; bottom: -6px; inset-inline-end: 0; filter: drop-shadow(0 6px 0 rgba(0,0,0,.06)); }

.float-a { animation: float 5s ease-in-out infinite; }
.float-b { animation: float 6s ease-in-out -2s infinite; }
.float-c { animation: float 5.5s ease-in-out -4s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.bob { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-2deg); } }

.stats {
  list-style: none; margin: 48px 0 0; padding: 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  background: #fff; border: 2px solid var(--border); border-radius: var(--r-xl);
}
.stats li { text-align: center; padding: 6px; }
.stats li + li { border-inline-start: 2px solid var(--bg-alt); }
.stats b { display: block; direction: ltr; unicode-bidi: isolate; font-size: clamp(28px, 4vw, 40px); color: var(--brand); line-height: 1.1; }
.stats li:nth-child(2) b { color: var(--hist); }
.stats li:nth-child(3) b { color: var(--green); }
.stats li:nth-child(4) b { color: var(--streak); }
.stats span { font-size: 14px; color: var(--text2); }

@media (max-width: 900px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .store-row { justify-content: center; }
  .trust { justify-content: center; }
  .hero-visual { min-height: 500px; }
  .blob { width: 340px; height: 340px; }
  .phone { width: 240px; }
  .hero-navon { width: 110px; inset-inline-end: 4%; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
  .stats li:nth-child(3) { border-inline-start: 0; }
}
@media (max-width: 420px) {
  .store { min-width: 0; flex: 1 1 150px; padding: 10px 12px; }
  .store span { font-size: 16px; }
  .store svg { width: 24px; height: 24px; }
  .chip { font-size: 13px; padding: 6px 10px; }
  .chip .num { font-size: 18px; }
  .chip-xp { inset-inline-end: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.h2 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing: -.01em; }
.sub { color: var(--text2); font-size: clamp(16px, 1.8vw, 19px); margin-top: 12px; max-width: 40em; }
.sub.center { margin-inline: auto; }
.kicker { color: var(--brand-edge); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* contrast */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.vs-card { position: relative; border: 2px solid var(--border); border-radius: var(--r-xl); padding: 28px; background: #fff; }
.vs-card h3 { font-size: 22px; margin-bottom: 14px; }
.vs-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vs-card li { display: flex; gap: 10px; align-items: flex-start; }
.vs-card li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; background-position: center; background-repeat: no-repeat; }
.vs-old { background: var(--bg-alt); color: var(--text2); }
.vs-old h3 { color: var(--text2); }
.vs-old li::before { background-color: var(--red-tint); background-image: linear-gradient(45deg, transparent 45%, var(--red-edge) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--red-edge) 45% 55%, transparent 55%); background-size: 11px 11px; }
.vs-new { border-color: var(--green); box-shadow: 0 6px 0 var(--green-edge); background: linear-gradient(180deg, #F4FFEA, #fff 60%); }
.vs-new h3 { color: var(--green-edge); }
.vs-new li::before { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 14px; }
.vs-navon { position: absolute; width: 84px; top: -46px; inset-inline-end: 18px; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } .vs-new { margin-top: 30px; } }

/* ---------- Demo lesson ---------- */
.demo-sec { background: var(--sky); }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.demo-navon { display: flex; align-items: flex-end; gap: 12px; margin-top: 28px; }
.demo-navon img { width: 120px; transition: transform .3s var(--ease-spring); }
.demo-navon img.pop { transform: scale(1.12) rotate(-4deg); }
.bubble {
  position: relative; background: #fff; border: 2px solid var(--border); border-radius: var(--r-lg);
  padding: 12px 16px; font-weight: 500; color: var(--ink); max-width: 260px; margin-bottom: 60px;
}
.bubble::after { content: ""; position: absolute; bottom: -10px; inset-inline-end: 22px; width: 16px; height: 16px; background: #fff; border-right: 2px solid var(--border); border-bottom: 2px solid var(--border); transform: rotate(45deg); }

.lesson {
  --acc: var(--hist); --acc-edge: var(--hist-edge); --acc-tint: var(--hist-tint); --acc-on: #fff;
  position: relative; overflow: hidden;
  background: #fff; border: 2px solid var(--border); border-radius: var(--r-xl);
  box-shadow: 0 8px 0 #D6EAF5;
  min-height: 560px; display: flex; flex-direction: column;
}
.lesson[data-subject="citizenship"] { --acc: var(--civ); --acc-edge: var(--civ-edge); --acc-tint: var(--civ-tint); }
.lesson[data-subject="hebrew"] { --acc: var(--heb); --acc-edge: var(--heb-edge); --acc-tint: var(--heb-tint); --acc-on: var(--heb-on); }
.lesson-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; flex-wrap: wrap; }
.pills { display: flex; gap: 8px; }
.pill {
  border: 2px solid var(--border); background: #fff; color: var(--text2);
  border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 15px;
  box-shadow: 0 3px 0 var(--border); transition: transform .1s, box-shadow .1s, background .2s;
}
.pill:active { transform: translateY(3px); box-shadow: none; }
.pill.is-active { background: var(--acc); border-color: var(--acc-edge); color: var(--acc-on); box-shadow: 0 3px 0 var(--acc-edge); }
.lesson-meta { display: flex; align-items: center; gap: 10px; }
.xp-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-num); font-weight: 700; color: var(--gold-edge); font-size: 18px; }
.combo { font-family: var(--f-num); font-weight: 700; color: var(--streak); font-size: 18px; animation: pop .4s var(--ease-spring); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.progress { height: 16px; margin: 0 20px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 999px; transition: width .5s var(--ease-spring); box-shadow: inset 0 4px 0 rgba(255,255,255,.3); }
.q-wrap { padding: 22px 20px 12px; flex: 1; }
.q-skill { color: var(--acc-edge); font-weight: 700; font-size: 14px; }
.q-prompt { font-size: clamp(19px, 2.2vw, 22px); margin-top: 8px; line-height: 1.4; }
.options { display: grid; gap: 10px; margin-top: 18px; }
.opt {
  text-align: start; width: 100%;
  background: #fff; color: var(--text); border: 2px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 16px; font-size: 16px; line-height: 1.45; min-height: 56px;
  box-shadow: 0 3px 0 var(--border); transition: transform .1s, box-shadow .1s, background .15s, border-color .15s;
}
.opt:hover:not(:disabled) { background: var(--bg-alt); }
.opt:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.opt[aria-checked="true"] { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-edge); box-shadow: 0 3px 0 var(--brand); }
.opt.is-right { background: var(--green-tint); border-color: var(--green); color: var(--green-edge); box-shadow: 0 3px 0 var(--green); }
.opt.is-wrong { background: var(--red-tint); border-color: var(--red); color: var(--red-edge); box-shadow: 0 3px 0 var(--red); animation: shake .35s; }
.opt:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.lesson-foot { padding: 16px 20px 20px; border-top: 2px solid var(--bg-alt); }

.sheet {
  position: absolute; inset-inline: 0; bottom: 0; padding: 20px 20px 22px;
  background: var(--green-tint); color: var(--green-edge);
  animation: sheetUp .35s var(--ease-spring);
}
.sheet.is-wrong { background: var(--red-tint); color: var(--red-edge); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-head { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; }
.sheet-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 18px; }
.sheet p { margin: 8px 0 14px; color: var(--text); font-size: 15px; }
.sheet .btn { --face: var(--green); --edge-c: var(--green-edge); --on: #fff; }
.sheet.is-wrong .btn { --face: var(--red); --edge-c: var(--red-edge); }

.done { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 28px; animation: pop .45s var(--ease-spring); }
.done img { width: 120px; animation: bob 2.4s ease-in-out infinite; }
.done h3 { font-size: 26px; }
.done p { color: var(--text2); max-width: 26em; }
.done-stats { display: flex; gap: 12px; }
.stat-card { min-width: 110px; border: 2px solid; border-radius: var(--r-lg); padding: 10px 14px; display: grid; }
.stat-card b { font-family: var(--f-num); font-size: 30px; line-height: 1.1; }
.stat-card span { font-size: 13px; font-weight: 700; }
.s-xp { border-color: var(--gold); background: var(--gold-tint); color: var(--gold-edge); box-shadow: 0 4px 0 var(--gold-edge); }
.s-acc { border-color: var(--green); background: var(--green-tint); color: var(--green-edge); box-shadow: 0 4px 0 var(--green-edge); }

.confetti { position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 3px; pointer-events: none; animation: fall 1.4s ease-in forwards; z-index: 5; }
@keyframes fall { to { transform: translateY(620px) rotate(540deg); opacity: 0; } }

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; gap: 28px; }
  .demo-intro { text-align: center; }
  .demo-intro .sub { margin-inline: auto; }
  .demo-navon { justify-content: center; margin-top: 12px; }
  .demo-navon img { width: 84px; }
  .bubble { margin-bottom: 40px; }
  .lesson { min-height: 600px; }
}

/* ---------- Tour ---------- */
.tour { background: #E8F6FE; transition: background-color .6s ease; }
.tour-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; margin-top: 44px; }
.tour-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tour-list li { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 2px solid transparent; transition: background .25s, border-color .25s; }
.tour-list button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 14px 16px; }
.tour-list button:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: var(--r-lg); }
.t-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); background: #fff; border: 2px solid var(--border); font-size: 22px; }
.tour-list b { display: block; color: var(--ink); font-size: 18px; }
.tour-list small { display: block; color: var(--text2); font-size: 15px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s, opacity .35s, margin .35s; }
.tour-list li.is-active { background: #fff; border-color: var(--border); }
.tour-list li.is-active .t-ico { border-color: var(--c); box-shadow: 0 3px 0 var(--c); }
.tour-list li.is-active small { max-height: 80px; opacity: 1; margin-top: 4px; }
.t-bar { position: absolute; bottom: 0; inset-inline-start: 0; height: 4px; width: 0; background: var(--brand); }
.tour-list li.is-active .t-bar { animation: tbar var(--dur, 5s) linear forwards; }
.tour.is-paused .t-bar { animation-play-state: paused; }
@keyframes tbar { to { width: 100%; } }
.tour-phone { display: grid; place-items: center; }
.tour-phone .phone { width: 300px; }
.tour-phone img { transition: opacity .25s; }
.tour-phone img.is-fading { opacity: 0; }
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: 1fr; gap: 28px; }
  .tour-phone { order: -1; }
  .tour-phone .phone { width: 240px; }
}

/* ---------- Planner ---------- */
.planner {
  display: grid; grid-template-columns: .85fr 1.15fr; margin-top: 40px;
  border: 2px solid var(--border); border-radius: var(--r-xl); overflow: hidden; background: #fff;
}
.planner-form { padding: 28px; background: var(--bg-alt); display: grid; gap: 22px; align-content: start; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn {
  flex: 1 1 0; min-width: 64px; min-height: 48px; padding: 8px 10px;
  background: #fff; border: 2px solid var(--border); border-radius: var(--r-md);
  font-weight: 700; color: var(--text2); box-shadow: 0 3px 0 var(--border);
  transition: transform .1s, box-shadow .1s;
}
.seg-btn:active { transform: translateY(3px); box-shadow: none; }
.seg-btn.is-active { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-edge); box-shadow: 0 3px 0 var(--brand); }
#planMinutes .seg-btn { font-family: var(--f-num); font-size: 18px; }
.field {
  width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; color: var(--ink); font-weight: 500;
  background: #fff; border: 2px solid var(--border); border-radius: var(--r-md);
}
.field:focus { border-color: var(--brand); outline: none; }

.planner-out { padding: 28px; display: grid; gap: 18px; align-content: start; }
.countdown { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--brand-tint); border: 2px solid var(--brand); border-radius: var(--r-lg); box-shadow: 0 4px 0 var(--brand-edge); }
.countdown img { width: 76px; flex: none; }
.countdown small { color: var(--brand-edge); font-weight: 700; }
.countdown .big { display: flex; align-items: baseline; gap: 8px; color: var(--brand-edge); font-weight: 800; font-size: 20px; }
.countdown .big b { font-size: 56px; line-height: 1; }
.p-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p-card { border: 2px solid; border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 2px; }
.p-card b { font-family: var(--f-num); font-size: 30px; line-height: 1.15; }
.p-card span { color: var(--text2); font-size: 14px; font-weight: 500; }
.p-blue { border-color: var(--civ); background: var(--civ-tint); color: var(--civ-edge); }
.p-gold { border-color: var(--hist); background: var(--hist-tint); color: var(--hist-edge); }
.p-gold b { font-size: 24px; padding-top: 4px; }
.p-track { display: flex; height: 16px; background: var(--border); border-radius: 999px; overflow: hidden; }
.p-learn { background: var(--green); transition: width .6s var(--ease-spring); }
.p-review { background: var(--purple); transition: width .6s var(--ease-spring); }
.p-legend { display: flex; gap: 18px; font-size: 13px; color: var(--text2); margin-top: -8px; }
.p-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; }
.lg-learn { background: var(--green); } .lg-review { background: var(--purple); }
@media (max-width: 860px) {
  .planner { grid-template-columns: 1fr; }
  .planner-form, .planner-out { padding: 20px; }
  .countdown .big b { font-size: 44px; }
}

/* ---------- Steps ---------- */
.steps-sec { background: var(--bg-alt); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border: 2px solid var(--border); border-radius: var(--r-xl); padding: 26px; }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--f-num); font-weight: 700; font-size: 22px; box-shadow: 0 4px 0 var(--brand-edge); margin-bottom: 16px; }
.steps li:nth-child(2) .step-n { background: var(--green); box-shadow: 0 4px 0 var(--green-edge); }
.steps li:nth-child(3) .step-n { background: var(--streak); box-shadow: 0 4px 0 var(--streak-edge); }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--text2); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 40px;
}

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; margin-top: 44px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--border); border-radius: var(--r-xl); padding: 30px 26px 26px; background: #fff; }
.plan-card h3 { font-size: 22px; }
.plan-best { border-color: var(--green); box-shadow: 0 8px 0 var(--green-edge); }
.ribbon { position: absolute; top: -16px; inset-inline-start: 50%; transform: translateX(50%); background: var(--gold); color: var(--ink); font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 0 var(--gold-edge); white-space: nowrap; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.price b { font-family: var(--f-num); font-size: 52px; color: var(--ink); line-height: 1.05; }
.price span { color: var(--text2); font-weight: 500; }
.price-note { color: var(--text2); font-size: 15px; min-height: 1.6em; }
.feat { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; }
.feat li { display: flex; gap: 10px; align-items: center; }
.feat li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2358A700' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fine { color: var(--muted); font-size: 13px; margin-top: 24px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-alt); }
.faq-list { display: grid; gap: 12px; margin-top: 36px; }
details { background: #fff; border: 2px solid var(--border); border-radius: var(--r-lg); transition: border-color .2s; }
details[open] { border-color: var(--brand); }
summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-edge); font-family: var(--f-num); font-size: 20px; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 20px 18px; color: var(--text2); }

/* ---------- Final CTA ---------- */
.final { background: var(--brand); color: #fff; padding: 80px 0 90px; position: relative; overflow: hidden; }
.final::before, .final::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.final::before { width: 420px; height: 420px; top: -180px; inset-inline-start: -120px; }
.final::after { width: 300px; height: 300px; bottom: -140px; inset-inline-end: -60px; }
.final-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.final img { width: 150px; margin-bottom: 8px; }
.final h2 { color: #fff; font-size: clamp(32px, 5vw, 52px); }
.final p { margin-top: 12px; font-size: 19px; color: #E8F7FF; }
.final .store { border-color: #000; }
.trust-light { color: #E8F7FF; }
.trust-light .check { background: rgba(255,255,255,.95); }

/* ---------- Footer ---------- */
.footer { padding: 32px 0 110px; border-top: 2px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text2); }
.footer nav { display: flex; gap: 18px; }
.footer nav a { color: var(--text2); text-decoration: none; }
.footer nav a:hover { color: var(--brand-edge); }
.footer .logo { font-size: 17px; }
.footer .logo img { width: 32px; height: 32px; }
@media (min-width: 861px) { .footer { padding-bottom: 32px; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; gap: 12px;
  background: #fff; border: 2px solid var(--border); border-radius: var(--r-lg);
  padding: 10px 12px; box-shadow: var(--overlay-shadow);
  transform: translateY(140%); transition: transform .35s var(--ease-spring);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta img { width: 40px; height: 40px; border-radius: 10px; }
.sticky-cta div { flex: 1; display: grid; line-height: 1.3; }
.sticky-cta b { color: var(--ink); font-size: 15px; }
.sticky-cta small { color: var(--text2); font-size: 12px; }
@media (max-width: 860px) { .sticky-cta { display: flex; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s var(--ease-spring); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Above the fold never waits for an observer: it animates in on load. */
.js .hero .reveal { opacity: 1; transform: none; animation: rise .7s var(--ease-spring) both; }
.js .hero .reveal:nth-child(2) { animation-delay: .06s; }
.js .hero .reveal:nth-child(3) { animation-delay: .12s; }
.js .hero .reveal:nth-child(4) { animation-delay: .18s; }
.js .hero .reveal:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

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

/* ---------- Google Play: coming soon ---------- */
button.store { font: inherit; cursor: pointer; }
.store-play { background: #3A3F45; border-color: #24282C; box-shadow: 0 var(--edge) 0 #24282C; }
.store-play:active { box-shadow: 0 0 0 #24282C; }
.store-play small { color: var(--gold); opacity: 1; font-weight: 700; }

.soon {
  width: min(92vw, 400px); padding: 28px 24px 18px; border: 2px solid var(--border); border-radius: var(--r-xl);
  text-align: center; color: var(--text); background: #fff; box-shadow: var(--overlay-shadow);
}
.soon[open] { animation: pop .4s var(--ease-spring); }
.soon::backdrop { background: rgba(0,0,0,.45); }
.soon img { width: 110px; margin: 0 auto 6px; }
.soon-badge { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 14px; padding: 4px 14px; border-radius: 999px; box-shadow: 0 3px 0 var(--gold-edge); }
.soon h2 { font-size: 24px; margin: 12px 0 8px; }
.soon p { color: var(--text2); }
.soon .soon-sub { margin: 10px 0 18px; font-weight: 500; color: var(--ink); }
.soon .linkish { margin-top: 6px; }
.soon-close-form { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; }
.soon-x { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); background: #fff; color: var(--text2); font-size: 16px; line-height: 1; }

/* Demo intro line reads larger (it's the instruction for the interactive block). */
.demo-intro .sub { font-size: clamp(19px, 2.3vw, 23px); color: var(--ink); font-weight: 500; }
