:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #fff;
  --soft: #f5f5f7;
  --purple: #6554c0;
  --purple-deep: #463690;
  --lavender: #eeeafb;
  --line: rgba(29, 29, 31, .1);
  --shadow: 0 30px 80px rgba(52, 39, 110, .16);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(101, 84, 192, .45); outline-offset: 4px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: white; }
.skip:focus { top: 16px; }
.nav { position: absolute; z-index: 10; inset: 0 0 auto; height: 72px; display: flex; align-items: center; justify-content: space-between; width: min(1120px, calc(100% - 48px)); margin: auto; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 650; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(61, 47, 128, .2); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-actions a { font-size: 14px; text-decoration: none; }
.language { color: var(--muted); }
.download-small { padding: 9px 17px; border-radius: 999px; color: white; background: var(--ink); }
.hero { min-height: 860px; padding: 148px 24px 90px; text-align: center; background: radial-gradient(circle at 50% 62%, #eae6ff 0, rgba(238,234,251,.72) 23%, rgba(255,255,255,0) 55%); }
.hero-copy { max-width: 890px; margin: auto; position: relative; z-index: 2; }
h1 { margin: 0; font-size: clamp(48px, 7vw, 86px); line-height: 1.02; letter-spacing: -.058em; font-weight: 720; }
.headline-line { display: block; }
.hero-copy p { max-width: 640px; margin: 26px auto 0; font-size: clamp(18px, 2.1vw, 23px); line-height: 1.55; color: var(--muted); letter-spacing: -.015em; }
.download-row { margin-top: 32px; display: flex; gap: 12px; justify-content: center; }
.button { min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--purple); color: white; box-shadow: 0 10px 24px rgba(101,84,192,.24); }
.button.secondary { background: rgba(255,255,255,.8); color: var(--muted); border: 1px solid var(--line); }
.button[aria-disabled="true"] { cursor: default; }
.mobile-download { display: none; }
.device-stage { width: min(900px, 100%); height: 440px; margin: 64px auto 0; position: relative; }
.section { padding: 130px 24px; }
.section-inner { width: min(1120px, 100%); margin: auto; }
.section-heading { max-width: 720px; margin-bottom: 56px; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -.048em; }
.section-heading p { margin: 20px 0 0; max-width: 600px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.journey { background: var(--soft); }
.journey-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 70px; align-items: center; }
.story-tabs { display: grid; gap: 8px; }
.story-tab { border: 0; border-left: 3px solid #d8d8dc; padding: 20px 22px; text-align: left; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.story-tab strong { display: block; font-size: 21px; color: inherit; letter-spacing: -.025em; }
.story-tab span { display: block; margin-top: 6px; line-height: 1.45; }
.story-tab[aria-selected="true"] { border-left-color: var(--purple); color: var(--ink); background: linear-gradient(90deg, rgba(238,234,251,.9), transparent); }
.story-panel { min-height: 520px; border-radius: 42px; padding: 48px; position: relative; overflow: hidden; color: white; background: #26232e; box-shadow: 0 24px 70px rgba(29,29,31,.16); }
.story-panel[hidden] { display: none; }
.panel-top { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.65); font-size: 13px; }
.panel-body { display: grid; place-items: center; min-height: 390px; text-align: center; }
.panel-body h3 { max-width: 500px; margin: 18px 0 12px; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -.04em; }
.panel-body p { max-width: 450px; margin: 0; color: rgba(255,255,255,.68); line-height: 1.6; }
.rewards { overflow: hidden; }
.reward-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 80px; align-items: center; }
.reward-visual { min-height: 570px; position: relative; display: grid; place-items: center; }
.water-ring { width: 430px; max-width: 90vw; aspect-ratio: 1; border-radius: 50%; padding: 14px; background: conic-gradient(var(--purple) 0 73%, #e5e2ee 73%); box-shadow: 0 24px 65px rgba(81,61,165,.15); }
.water-core { width: 100%; height: 100%; border-radius: 50%; position: relative; overflow: hidden; background: #fff; display: grid; place-items: center; }
.water { position: absolute; inset: 28% 0 0; background: linear-gradient(180deg, #c8bfff, #7665cc); }
.water::before { content: ""; position: absolute; left: -5%; top: -22px; width: 110%; height: 45px; border-radius: 50%; background: #d9d2ff; }
.water-score { position: relative; z-index: 2; text-align: center; margin-top: -70px; }
.water-score strong { display: block; font-size: 66px; letter-spacing: -.06em; }
.water-score span { color: var(--muted); }
.pearl { position: absolute; z-index: 3; width: 90px; aspect-ratio: 1; border-radius: 50%; right: 1%; top: 10%; display: grid; place-items: center; color: var(--purple-deep); font-size: 32px; background: radial-gradient(circle at 34% 28%, #fff 0 8%, #f5efff 26%, #c5b8f2 70%, #9a88de); box-shadow: inset -9px -12px 20px rgba(82,59,152,.2), 0 18px 35px rgba(70,54,144,.22); }
.reward-copy h2 { margin: 0; font-size: clamp(40px, 5vw, 66px); line-height: 1.05; letter-spacing: -.05em; }
.reward-copy p { color: var(--muted); font-size: 19px; line-height: 1.65; }
.feature-list { margin-top: 35px; display: grid; gap: 22px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 15px; align-items: start; }
.feature-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lavender); color: var(--purple); font-weight: 700; }
.feature strong { display: block; margin: 2px 0 5px; }
.feature span { color: var(--muted); line-height: 1.5; }
.closing { padding: 120px 24px; background: var(--soft); }
.closing-card { width: min(1120px, 100%); min-height: 480px; margin: auto; padding: 70px; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; border-radius: 46px; background: var(--purple); color: white; }
.closing-card::before, .closing-card::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; width: 520px; height: 180px; transform: rotate(18deg); }
.closing-card::after { transform: rotate(-25deg); width: 680px; height: 240px; }
.closing-content { position: relative; z-index: 2; }
.closing img { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 12px 30px rgba(29,20,72,.25); }
.closing h2 { margin: 24px auto 14px; max-width: 760px; font-size: clamp(39px, 5.4vw, 65px); letter-spacing: -.05em; line-height: 1.04; }
.closing p { margin: 0 auto; max-width: 550px; color: rgba(255,255,255,.75); font-size: 18px; line-height: 1.6; }
.closing .button.primary { margin-top: 30px; color: var(--ink); background: white; box-shadow: none; }
.footer { padding: 42px 24px; background: var(--soft); }
.footer-inner { width: min(1120px, 100%); margin: auto; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 18px; }
.footer a { text-decoration: none; }
.legal-main, .download-main { min-height: calc(100vh - 150px); padding: 150px 24px 100px; background: var(--soft); }
.legal-paper, .download-paper { width: min(820px, 100%); margin: auto; padding: clamp(30px, 6vw, 72px); border-radius: 32px; background: white; box-shadow: 0 18px 60px rgba(29,29,31,.06); }
.legal-paper h1, .download-paper h1 { font-size: clamp(40px, 6vw, 64px); }
.legal-paper .intro, .download-paper p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.legal-paper section { margin-top: 42px; }
.legal-paper h2 { font-size: 24px; letter-spacing: -.025em; }
.legal-paper p { color: #47474b; line-height: 1.8; }
.back-link { display: inline-flex; margin-bottom: 32px; color: var(--purple); text-decoration: none; font-weight: 600; }
.download-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.download-option { padding: 24px; border-radius: 20px; background: var(--soft); }
.download-option-link { color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.download-option-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(29,29,31,.08); }
.download-option-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.download-option strong { display: block; font-size: 20px; margin-bottom: 7px; }
.download-option span { color: var(--muted); }
@media (max-width: 760px) {
  .nav { height: 62px; width: calc(100% - 32px); }
  .nav-actions > a:not(.language) { display: none; }
  .hero { min-height: 780px; padding: 120px 18px 50px; }
  h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .hero-copy p { font-size: 18px; }
  .download-row .desktop-download { display: none; }
  .mobile-download { display: inline-flex; }
  .device-stage { height: 360px; margin-top: 100px; }
  .section { padding: 90px 20px; }
  .section-heading { margin-bottom: 38px; }
  .journey-grid { grid-template-columns: 1fr; gap: 30px; }
  .story-tabs { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .story-tab { min-width: 180px; border-left: 0; border-bottom: 3px solid #d8d8dc; padding: 12px; }
  .story-tab[aria-selected="true"] { border-bottom-color: var(--purple); background: linear-gradient(0deg, rgba(238,234,251,.9), transparent); }
  .story-panel { min-height: 450px; padding: 28px 22px; border-radius: 28px; }
  .panel-body { min-height: 360px; }
  .reward-grid { grid-template-columns: 1fr; gap: 28px; }
  .reward-visual { min-height: 410px; }
  .water-ring { width: 340px; }
  .pearl { right: 6%; width: 76px; }
  .closing { padding: 72px 16px; }
  .closing-card { min-height: 470px; padding: 46px 22px; border-radius: 30px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .download-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .device-stage { animation: arrive .9s cubic-bezier(.2,.8,.2,1) both; }
  .pearl { animation: float 4s ease-in-out infinite; }
  @keyframes arrive { from { opacity: 0; transform: translateY(18px) scale(.985); } }
  @keyframes float { 50% { transform: translateY(-12px) rotate(5deg); } }
}
/* Actual App captures: preserve the complete iPad viewport at every size. */
.hero { min-height: auto; padding-bottom: 88px; }
.hero-copy, .journey-grid > *, .section-inner { min-width: 0; }
.device-stage { position: relative; width: min(960px, 100%); height: auto; margin: 64px auto 0; }
.real-device { border: 10px solid #252429; border-radius: 30px; background: #faf9f5; overflow: hidden; box-shadow: var(--shadow); }
.real-device img, .actual-panel img { width: 100%; height: auto; display: block; object-fit: contain; }
.device-stage figcaption { margin-top: 20px; font-size: 12px; color: var(--muted); }
.journey-grid { grid-template-columns: 240px minmax(0,1fr); gap: 36px; }
.actual-panel { min-height: 0; padding: 12px; border-radius: 24px; background: white; color: var(--ink); }
.actual-panel img { border-radius: 14px; }
.actual-panel p { text-align: center; margin: 12px 0 2px; font-size: 12px; color: var(--muted); }
.story-tab small { font-size: 12px; margin-right: 8px; color: var(--purple); }
.legal-paper p { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .hero { min-height: auto; padding: 116px 18px 64px; }
  .hero h1 { font-size: clamp(29px, 8vw, 48px); line-height: 1.17; }
  .hero-copy p { font-size: 17px; }
  .device-stage { width: 100%; height: auto; margin-top: 42px; }
  .real-device { border-width: 5px; border-radius: 15px; }
  .journey-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .story-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; overflow: visible; }
  .story-tab { min-width: 0; padding: 12px 5px; }
  .story-tab strong { font-size: 18px; }
  .story-tab span { font-size: 12px; }
  .story-tab small { display: block; margin: 0 0 6px; }
  .actual-panel { padding: 5px; border-radius: 14px; }
  .actual-panel img { border-radius: 10px; }
  .closing-download { display: none; }
  .water-ring { max-width: 100%; }
}
/* Three separate learning stages, always visible. */
.learning-step { overflow: hidden; }
.learning-step-1 { background: #f5f3fa; }
.learning-step-inner { width: min(1040px, 100%); }
.learning-step-copy { position: relative; isolation: isolate; margin-bottom: 48px; padding-top: 38px; }
.step-number { position: absolute; z-index: -1; top: -32px; left: -10px; color: #6554c012; filter: blur(.35px); font-size: clamp(120px, 18vw, 220px); font-weight: 760; line-height: .8; letter-spacing: -.09em; user-select: none; }
.learning-step-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.68fr); gap: 48px; align-items: end; }
.learning-step-heading h2 { margin: 0; font-size: clamp(54px,7vw,88px); line-height: .95; letter-spacing: -.06em; }
.learning-step-heading h3 { margin: 0 0 5px; font-size: clamp(22px,2.7vw,34px); line-height: 1.2; letter-spacing: -.035em; font-weight: 650; }
.learning-step-copy p { max-width: 660px; color: var(--muted); font-size: 19px; line-height: 1.8; margin: 26px 0 0; }
.learning-step-figure { margin: 0; min-width: 0; cursor: default; }
.learning-step-figure img { display: block; width: 100%; height: auto; border: 1px solid #e4e0ee; border-radius: 22px; box-shadow: 0 20px 60px #30245012; }
@media(max-width:760px) {
 .learning-step-copy { margin-bottom: 28px; padding-top: 18px; }
 .step-number { top: -12px; left: -4px; font-size: clamp(88px,30vw,132px); }
 .learning-step-heading { grid-template-columns: minmax(0,1fr); gap: 12px; }
 .learning-step-heading h2 { font-size: clamp(48px,15vw,66px); }
 .learning-step-heading h3 { max-width: 16em; margin: 0; font-size: 22px; }
 .learning-step-copy p { margin-top: 18px; }
 .learning-step-copy p { font-size: 17px; }
 .learning-step-figure img { border-radius: 12px; }
}
