/* eagerlyearn.com. Colors are the app's own (resources/brand in the eagerly-earn repo). */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/lexend-latin.woff2") format("woff2");
}
/* Polish, Turkish and other Latin letters. Lexend has no Cyrillic or CJK, so those use the system font. */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/lexend-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #0E1730;
  --raised: #1D2B4D;
  --rim: #3A4C7A;
  --soft: #B9C6E4;
  --water: #2F6FDE;
  --water-light: #6D9AE8;
  --water-deep: #2659B2;
  --purple: #8E5CF7;
  --teal: #10A5A0;
  --pink: #E94F75;
  --amber: #FFB547;
  --page: #F4F7FD;
  --card: #FFFFFF;
  --ink: #0E1730;
  --muted: #4A5878;
  --line: #DCE3F2;
  --radius: 22px;
  --font: "Lexend", ui-rounded, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", "PingFang SC", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
:lang(ja), :lang(zh-Hans) { line-break: strict; }
/* Japanese headings break only between phrases (at <wbr> and punctuation), never inside a word. */
:lang(ja) :is(.hero h1, .band h2) { word-break: keep-all; }
:lang(ja) .hero h1 { font-size: clamp(30px, 5vw, 56px); }
:lang(ko) { word-break: keep-all; }
:lang(zh-Hans) body, :lang(ja) body { line-height: 1.75; }
img, svg { display: block; }
a { color: var(--water-deep); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; hyphens: auto; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 23, 48, 0.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 19px; white-space: nowrap; }
.brand b { font-weight: 700; letter-spacing: -0.01em; }
.brand span { color: var(--water-light); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: #fff; }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; color: #fff; font-size: 14px; font-weight: 500; padding: 8px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .ic { width: 17px; height: 17px; color: var(--water-light); }
.lang .code { display: none; }
.lang[open] summary { background: rgba(255, 255, 255, 0.16); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; width: 220px; max-height: min(70vh, 520px); overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(14, 23, 48, 0.28); }
.lang li a, .lang li span { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--page); }
.lang li span { font-weight: 600; background: #EEF3FD; }
.lang .tick { width: 17px; height: 17px; color: var(--water); }

/* Hero: deep navy with the app's ocean water rising at the bottom */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1100px 520px at 85% -10%, #22356A 0%, transparent 60%), linear-gradient(180deg, var(--ground) 0%, #0B1328 100%); padding: 72px 0 0; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(180deg, rgba(47, 111, 222, 0) 0%, rgba(47, 111, 222, 0.22) 100%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: end; }
.hero-text { padding-bottom: 96px; }
.eyebrow { display: inline-block; color: var(--water-light); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #B88DFF, #59CBC2 55%, #F684A3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; font-size: 20px; line-height: 1.55; color: #D3DCF0; max-width: 34em; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 34px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 16px; border-radius: 14px; background: #fff; color: var(--ink); }
.store .apple { width: 26px; height: 26px; fill: var(--ink); }
.store small { display: block; font-size: 11.5px; line-height: 1.2; color: var(--muted); }
.store b { display: block; font-size: 20px; line-height: 1.15; font-weight: 600; }
.early { color: var(--soft); font-size: 15px; }
.early a { color: #fff; font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: #D3DCF0; font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts .ic { width: 18px; height: 18px; color: #59CBC2; stroke-width: 2.6; }
.soon-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 7px 16px 7px 7px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: #E6ECFA; font-size: 15px; font-weight: 500; text-decoration: none; }
.soon-line:hover { background: rgba(255,255,255,0.14); }
.soon-line img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.soon-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, #9A5CFF, #12B5A8); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.soon-card { display: flex; align-items: center; gap: 20px; margin-top: 16px; padding: 20px 24px; border-radius: var(--radius); background: var(--card); border: 2px dashed #B9A3F0; color: inherit; text-decoration: none; }
.soon-card:hover { border-style: solid; }
.soon-card img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.soon-card > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.soon-card b { font-size: 20px; letter-spacing: -0.01em; }
.soon-card .text { color: var(--muted); font-size: 15px; line-height: 1.5; }
.soon-note { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.55; }
.soon-note .soon-tag { margin-right: 10px; vertical-align: 1px; }

/* Real screenshots in a phone frame: tilted in the hero, a row of them in the gallery */
.device { position: relative; padding: 9px; border-radius: 50px; background: linear-gradient(150deg, #4A5874, #161C2B 45%, #0B0E16 75%, #343D52); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 40px 80px rgba(4, 10, 30, 0.45); }
.device img { display: block; width: 100%; height: auto; border-radius: 41px; }
.device::after { content: ""; position: absolute; top: 19px; left: 50%; width: 30%; height: 3.4%; margin-left: -15%; border-radius: 999px; background: #000; }
.hero-phone { justify-self: center; width: 330px; perspective: 1600px; margin-bottom: -150px; }
.hero-phone .device { transform: rotateY(-16deg) rotateX(6deg) rotateZ(3deg); transform-origin: 50% 100%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), -30px 50px 90px rgba(0, 0, 0, 0.55), 0 0 120px rgba(154, 92, 255, 0.22); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; max-width: 1000px; margin: 48px auto 0; padding: 0; list-style: none; perspective: 1800px; }
.gallery li { display: flex; flex-direction: column; gap: 16px; }
.gallery .device { padding: 6px; border-radius: 30px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 50px rgba(14, 23, 48, 0.28); transition: transform 0.3s; }
.gallery .device img { border-radius: 25px; }
.gallery .device::after { top: 12px; }
.gallery li:nth-child(odd) .device { transform: rotateY(10deg) rotateZ(-1.5deg); }
.gallery li:nth-child(even) .device { transform: rotateY(-10deg) rotateZ(1.5deg) translateY(28px); }
.gallery li:nth-child(even) p { margin-top: 28px; }
.gallery p { font-weight: 600; font-size: 15px; line-height: 1.35; text-align: center; color: var(--ink); }
.hero-top { position: relative; z-index: 1; text-align: center; }
.hero-top .lede { margin-left: auto; margin-right: auto; max-width: 40em; }
.hero-top .cta { justify-content: center; }
.hero-video { position: relative; z-index: 1; padding-bottom: 64px; text-align: center; }
.hero-video .video { max-width: 1080px; margin: 44px auto 0; }
.hero-video .facts { justify-content: center; margin-top: 28px; }
.hero-video .soon-line { margin-top: 18px; }
.steps-visual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 56px auto 0; padding: 0; list-style: none; max-width: 960px; perspective: 1800px; }
.steps-visual li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.steps-visual .device { width: 100%; max-width: 250px; padding: 7px; border-radius: 36px; }
.steps-visual .device img { border-radius: 30px; }
.steps-visual .device::after { top: 14px; }
.steps-visual li:nth-child(1) .device { transform: rotateY(12deg) rotateZ(-2deg); }
.steps-visual li:nth-child(3) .device { transform: rotateY(-12deg) rotateZ(2deg); }
.steps-visual li + li::before { content: ""; position: absolute; left: -38px; top: 40%; width: 28px; height: 28px; border-top: 4px solid #B9C6E4; border-right: 4px solid #B9C6E4; transform: rotate(45deg); border-radius: 3px; }
.steps-visual h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; text-align: left; }
.steps-visual .n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ground); color: #fff; font-size: 17px; }
.steps-visual li:nth-child(2) .n { background: var(--purple); }
.steps-visual li:nth-child(3) .n { background: var(--teal); }
.feat-chips { display: flex; flex-wrap: wrap; gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.feat-chips li { display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 17px; }
.feat-chips .ic { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #EAF0FB; color: var(--water); }
.feat-chips li:nth-child(6n+2) .ic { background: #F1EAFE; color: var(--purple); }
.feat-chips li:nth-child(6n+3) .ic { background: #E3F5F4; color: var(--teal); }
.feat-chips li:nth-child(6n+4) .ic { background: #FDE9EF; color: var(--pink); }
.feat-chips li:nth-child(6n+5) .ic { background: #E3F2FC; color: #0E87C4; }
.feat-chips li:nth-child(6n+6) .ic { background: #FFF1DE; color: #E07A12; }
.band.dark .tablets .tablet { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.video { margin-top: 36px; border-radius: 28px; overflow: hidden; background: #0B1328; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); aspect-ratio: 16 / 9; position: relative; }
.video video, .video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video video { position: absolute; inset: 0; }
@media (orientation: portrait) and (max-width: 700px) { .hero-video .video { aspect-ratio: 9 / 16; width: min(100%, 420px, calc((100svh - 110px) * 9 / 16)); margin-left: auto; margin-right: auto; } }
@media (orientation: landscape) and (max-height: 500px) { .hero-video .video { width: min(100%, calc((100svh - 80px) * 16 / 9)); margin-left: auto; margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { .video video { display: none; } }
.tablets { position: relative; max-width: 1040px; margin: 48px auto 0; padding-right: 180px; }
.tablets .tablet.port { position: absolute; right: 0; bottom: -40px; width: 300px; margin: 0; padding: 9px; border-radius: 24px; transform: rotate(3deg); }
.tablets .tablet.port img { border-radius: 16px; }
.tablets .tablet.land { margin: 0; max-width: none; }
.fig circle { fill: #fff; }
.fig g { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* The app's move colors (Exercise.color in ChildView.swift). Classes, since the CSP blocks inline styles. */
.mv-jacks { --c: #FF8A1F; }
.mv-squats { --c: #8E5CF7; }
.mv-pushups { --c: #10A5A0; }
.mv-knees { --c: #E94F75; }
.mv-sky { --c: #0EA5E9; }
.mv-toes { --c: #3C9E54; }

/* Sections */
.band { padding: 104px 0; }
.band.alt { background: #EAF0FB; }
.band.dark { background: linear-gradient(180deg, #0E1730, #142046); color: #fff; }
.kicker { color: var(--water); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.dark .kicker { color: var(--water-light); }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; max-width: 22em; text-wrap: balance; }
.sub { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 42em; }
.dark .sub { color: #C9D3EA; }
.sub.strong { color: var(--ink); font-weight: 500; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 48px 0 0; padding: 0; list-style: none; }
.steps li { padding: 30px 28px 32px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.steps .n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--ground); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 20px; }
.steps li:nth-child(2) .n { background: var(--purple); }
.steps li:nth-child(3) .n { background: var(--teal); }
.steps h3 { font-size: 22px; margin-bottom: 10px; }
.steps p, .feats p { color: var(--muted); font-size: 16px; }

.moves { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.moves li { padding: 18px 16px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tile { display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); margin-bottom: 14px; }
.tile .fig { width: 62%; height: 62%; }
.moves h3 { font-size: 17px; letter-spacing: -0.01em; }
.moves p { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* A real screenshot in a plain iPad frame */
.tablet { margin: 48px auto 0; padding: 14px; border-radius: 34px; background: linear-gradient(160deg, #2A3557, #121A30); box-shadow: 0 30px 70px rgba(14, 23, 48, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.tablet.land { max-width: 940px; }
.tablet.port { max-width: 480px; }
.tablet img { width: 100%; height: auto; border-radius: 21px; }
@media (max-width: 620px) {
  .tablet { padding: 8px; border-radius: 22px; margin-top: 32px; }
  .tablet img { border-radius: 15px; }
}

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 48px 0 0; padding: 0; list-style: none; }
.feats li { padding: 28px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.feats .ic { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: #EAF0FB; color: var(--water); margin-bottom: 18px; }
.feats li:nth-child(6n+2) .ic { background: #F1EAFE; color: var(--purple); }
.feats li:nth-child(6n+3) .ic { background: #E3F5F4; color: var(--teal); }
.feats li:nth-child(6n+4) .ic { background: #FDE9EF; color: var(--pink); }
.feats li:nth-child(6n+5) .ic { background: #E3F2FC; color: #0E87C4; }
.feats li:nth-child(6n+6) .ic { background: #FFF1DE; color: #E07A12; }
.feats h3 { font-size: 20px; margin-bottom: 8px; }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.points li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-weight: 500; }
.points .ic { width: 22px; height: 22px; color: #59CBC2; stroke-width: 2.6; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; text-decoration: none; }
.more .ic { width: 18px; height: 18px; transition: transform 0.15s; }
.more:hover .ic { transform: translateX(3px); }
.dark .more { color: #fff; }

.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 20px; margin-top: 44px; }
.price { padding: 28px 28px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.price.best { background: var(--ground); color: #fff; border-color: var(--ground); }
.price .tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #EAF0FB; color: var(--water-deep); margin-bottom: 18px; }
.price.best .tag { background: rgba(89, 203, 194, 0.18); color: #7FE0D7; }
.price b { display: block; font-size: 46px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.price span { display: block; margin-top: 6px; color: var(--muted); }
.price.best span { color: var(--soft); }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }

.math { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.math-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(14, 23, 48, 0.18); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 28px; }
.links .more { margin-top: 0; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--water); color: #fff; font-weight: 600; text-decoration: none; }
.button .ic { width: 18px; height: 18px; }
.button:hover { background: var(--water-deep); }

.faq { margin-top: 32px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa { padding: 22px 0; border-bottom: 1px solid var(--line); }
.qa h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.qa p { margin: 0; color: var(--muted); }

/* Policy and support pages */
.page-head { background: linear-gradient(180deg, var(--ground), #142046); color: #fff; padding: 64px 0 56px; }
.page-head .kicker { color: var(--water-light); }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 700; }
.updated { margin-top: 12px; color: var(--soft); }
.doc { padding: 48px 0 96px; }
.doc section { margin-top: 44px; }
.doc h2 { font-size: 26px; margin-bottom: 14px; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 0; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--water); }
.short { padding: 26px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--teal); }
.short h2 { font-size: 21px; margin-bottom: 8px; }
.note { margin-bottom: 24px; padding: 14px 18px; border-radius: 14px; background: #FFF6E5; color: #6B4A12; font-size: 15px; }
.write { display: flex; gap: 22px; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.write > .ic { width: 52px; height: 52px; padding: 12px; border-radius: 15px; background: #EAF0FB; color: var(--water); }
.write h2 { font-size: 24px; margin-bottom: 8px; }
.write p { color: var(--muted); margin-bottom: 18px; }
.doc .faq { margin-top: 8px; }
.doc .qa h3 { font-size: 17px; }
.help .help-group { margin-top: 48px; scroll-margin-top: 90px; }
.help .help-group h2 { margin-bottom: 0; }
.help .write { margin-top: 0; }
.help .links { margin-top: 48px; }
.jump { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.jump a:hover { border-color: var(--water-light); color: var(--water-deep); }
.guide-card { margin-bottom: 32px; padding: 22px 24px; border-radius: 18px; background: #EAF0FB; border: 1px solid #CFDCF5; }
.guide-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--water-deep); text-decoration: none; }
.guide-head b { font-weight: 600; font-size: 19px; }
.guide-head .ic { width: 22px; height: 22px; flex: none; }
.doc .guide-card ul { list-style: none; margin: 14px 0 0; padding: 0; columns: 2; column-gap: 28px; }
.doc .guide-card li { margin: 0 0 6px; break-inside: avoid; }
.guide-card li a { color: var(--ink); font-size: 15px; }
@media (max-width: 800px) { .doc .guide-card ul { columns: 1; } }
.lost { text-align: center; padding: 96px 0 120px; }
.lost .tile.big { width: 120px; margin: 0 auto 28px; }
.lost .links { justify-content: center; }
.lost .more { color: #fff; }

/* Footer */
.foot { background: var(--ground); color: var(--soft); padding: 56px 0 44px; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 26px 40px; }
.foot-brand p { margin-top: 10px; }
.foot-brand .dev { margin-top: 6px; }
.foot-brand .dev a { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: start; justify-content: end; }
.foot nav a { color: #fff; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }
.legal a { color: var(--soft); }

/* Hero: the kid's iPhone home in front of the iPad, both real screens */
.hero-stack { position: relative; justify-self: end; width: 100%; max-width: 540px; height: 600px; }
.hero-stack .tablet.port { position: absolute; right: 0; bottom: -90px; width: 360px; max-width: none; margin: 0; padding: 9px; border-radius: 26px; transform: rotate(5deg); }
.hero-stack .tablet.port img { border-radius: 18px; }
.hero-stack .device { position: absolute; left: 0; bottom: -150px; width: 270px; z-index: 1; transform: rotate(-4deg); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), -20px 40px 90px rgba(0, 0, 0, 0.55), 0 0 120px rgba(154, 92, 255, 0.22); }
.hero-stack .device img { border-radius: 38px; }
.hero-stack.tilted .device { transform: rotate(-8deg); }
/* The water clip was taken with the phone 6 degrees clockwise, so the frame leans the same way. */
.steps-visual li:nth-child(3) .device.water { transform: rotateY(-12deg) rotateZ(6deg); }
.hero { padding-bottom: 0; }
.steps-visual video, .device video { display: block; width: 100%; height: auto; border-radius: 30px; background: #0c162e; }
.steps-visual h3 { justify-content: center; }

/* One grown-up iPhone, a different plan for each kid: the grown-up's screens, cut to their content */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 48px 0 0; padding: 0; list-style: none; align-items: start; }
.family .screen { padding: 6px; border-radius: 28px; background: linear-gradient(150deg, #5A6886, #2A3350); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.family .screen img { display: block; width: 100%; height: auto; border-radius: 23px; }
.family h3 { margin-top: 20px; font-size: 20px; }
.family p { margin-top: 4px; color: #C9D3EA; font-size: 16px; }

/* Three setup steps */
.setup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.setup li { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.setup .n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: 18px; background: linear-gradient(135deg, #7B4ACC, #0E9186); color: #fff; font-weight: 700; font-size: 18px; }
.setup h3 { font-size: 21px; }
.setup p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Six moves, each with the app's own looping demo */
.moves .demo { display: block; margin-bottom: 14px; border-radius: 18px; overflow: hidden; background: #0c162e; border-bottom: 4px solid var(--c); }
.moves .demo video { display: block; width: 100%; height: auto; }
.gallery.three, .gallery { grid-template-columns: repeat(3, 1fr); max-width: 820px; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 1080px) {
  .moves { grid-template-columns: repeat(3, 1fr); }
  .gallery { gap: 28px; }
  .steps-visual { gap: 28px; }
  .steps-visual li + li::before { display: none; }
  .nav { gap: 20px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-text { padding-bottom: 48px; }
  .hero-stack { height: 440px; max-width: 400px; }
  .hero-stack .tablet.port { width: 270px; }
  .hero-stack .device { width: 220px; bottom: -110px; }
  .family, .setup { grid-template-columns: 1fr; }
  .family { max-width: 420px; }
  .steps, .feats { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .bar { height: 60px; }
  .hero { padding-top: 44px; }
  .lede { font-size: 18px; }
  .band { padding: 72px 0; }
  .sub { font-size: 17px; }
  .steps, .feats { grid-template-columns: 1fr; }
  .moves { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prices { grid-template-columns: 1fr 1fr; gap: 12px; }
  .price { padding: 22px 18px; }
  .price b { font-size: 34px; }
  .math { grid-template-columns: 1fr; gap: 24px; }
  .math-icon { width: 84px; height: 84px; border-radius: 20px; }
  .hero-stack { height: 360px; }
  .hero-stack .tablet.port { width: 62%; bottom: -40px; padding: 6px; border-radius: 18px; }
  .hero-stack .tablet.port img { border-radius: 12px; }
  .hero-stack .device { width: 52%; bottom: -90px; padding: 6px; border-radius: 32px; }
  .hero-stack .device img { border-radius: 26px; }
  .hero-stack .device::after { top: 12px; }
  .family { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 32px -16px 0; padding: 8px 16px 24px; gap: 18px; max-width: none; }
  .family li { flex: 0 0 78%; scroll-snap-align: center; }
  .steps-visual { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 32px -16px 0; padding: 8px 16px 24px; gap: 18px; }
  .steps-visual li { flex: 0 0 62%; scroll-snap-align: center; }
  .steps-visual li:nth-child(n) .device { transform: none; }
  .gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 32px -16px 0; padding: 8px 16px 24px; max-width: none; }
  .gallery li { flex: 0 0 62%; scroll-snap-align: center; }
  .gallery li:nth-child(n) .device { transform: none; }
  .gallery li:nth-child(even) p { margin-top: 0; }
  .tablets { padding-right: 0; margin-bottom: 24px; }
  .tablets .tablet.port { width: 38%; right: -6px; bottom: -28px; padding: 5px; border-radius: 14px; }
  .tablets .tablet.port img { border-radius: 10px; }
  .video { border-radius: 18px; margin-top: 24px; }
  .write { flex-direction: column; padding: 24px; }
  .foot .wrap { grid-template-columns: 1fr; }
  .foot nav { justify-content: start; }
  .lang .full { display: none; }
  .lang .code { display: inline; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Guide: numbered steps with a real screen beside them */
.guide { padding: 40px 0 96px; }
.toc { max-width: 920px; box-sizing: border-box; margin: 0 auto 8px; padding: 20px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.toc p { margin: 0 0 8px; font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.guide-sec { display: grid; grid-template-columns: minmax(0, 1fr) 220px; grid-template-areas: "h shot" "i shot" "s shot"; grid-template-rows: auto auto 1fr; column-gap: 48px; align-items: start; max-width: 920px; margin: 64px auto 0; scroll-margin-top: 90px; }
.guide-sec > h2 { grid-area: h; }
.guide-sec > .gi { grid-area: i; }
.guide-sec > .gsteps, .guide-sec > .points { grid-area: s; }
.guide-sec > .guide-shot { grid-area: shot; }
.guide-sec h2 { font-size: 30px; margin: 0 0 12px; text-wrap: balance; }
.guide-sec .gi p { margin: 0 0 18px; color: var(--muted); max-width: 640px; }
.guide-sec .gsteps, .guide-sec .points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.guide-sec li { max-width: 640px; box-sizing: border-box; display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.guide-sec li b { font-weight: 600; }
.guide-sec li span { color: var(--muted); font-size: 16px; line-height: 1.55; }
.guide-sec .gsteps { counter-reset: step; }
.guide-sec .gsteps li { counter-increment: step; position: relative; padding-left: 62px; }
.guide-sec .gsteps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--water); color: #fff; font-weight: 700; font-size: 15px; }
.guide-shot { margin: 0; position: sticky; top: 100px; }
.guide-shot .device { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 16px 32px rgba(4, 10, 30, 0.25); }
.guide-more { max-width: 920px; margin: 56px auto 0; }
@media (max-width: 800px) {
  .toc ol { columns: 1; }
  .guide-sec { grid-template-columns: 1fr; grid-template-areas: "h" "i" "shot" "s"; grid-template-rows: none; margin-top: 52px; }
  .guide-sec h2 { font-size: 26px; }
  .guide-shot { position: static; width: 170px; margin: 0 auto 22px; }
}
.mores { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }
.mores .more { margin-top: 0; }
.guide-link { margin: 0 0 36px; }
.doc .jump { padding: 0; margin: 0; }
.doc .jump li { margin: 0; }
.safe .points li { background: var(--card); border-color: var(--line); color: var(--ink); }
.safe .points .ic { color: var(--water); }
.safe .sub { margin-top: 14px; }
.safe-note { grid-column: 1 / -1; margin: 0; max-width: 820px; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); color: var(--muted); font-size: 15px; }
