/* The landing: what a visitor who is not signed in sees at / (server.mjs, the door).
   The palette, the font and the easing are the design system's (common/tokens.css, linked
   first); only the landing's own measures are here. */

:root {
  --page: 1296px;
  --gutter: clamp(25px, 6.05vw, 105px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: 25px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2 { font: 630 clamp(2.65rem, 4.7vw, 5.1rem)/1.02 var(--display); letter-spacing: -.062em; word-spacing: .03em; }
h3 { line-height: 1.24; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 4px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--sun); color: var(--forest); }
.wrap { width: min(var(--page), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: clamp(66px, 7vw, 109px); }
.icon { width: 23px; height: 23px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only, .skip:not(:focus), .demo-feedback:empty, [data-coach-result]:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px 18px; background: var(--sun); color: var(--ink); }
.eyebrow { font-size: .76rem; font-weight: 750; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: var(--soft); }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .94rem;
  font-weight: 780;
  line-height: 1.25;
  text-align: center;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}
.button-primary { background: var(--forest); color: var(--white); }
.button-primary:hover { background: var(--forest-hover); }
.button-sun { background: var(--sun); color: #262e1e; }
.button-sun:hover { background: var(--sun-hover); }
.button-outline { background: transparent; border-color: #aaa998; color: var(--forest); }
.button-outline:hover { background: var(--sage); }
.text-link { text-decoration: underline; text-decoration-color: #7b8573; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: currentColor; }
.section-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 11px; font-weight: 730; }

.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}
.brand { display: inline-flex; width: max-content; align-items: center; gap: 9px; font: 760 2.08rem/.94 var(--display); letter-spacing: -.063em; }
.brand svg { width: 26px; height: 29px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; color: var(--berry); }
.primary-nav { display: flex; align-items: center; gap: clamp(27px, 4.2vw, 61px); }
.primary-nav a, .nav-sign-in { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; font-weight: 710; white-space: nowrap; }
.primary-nav a:hover, .nav-sign-in:hover, .site-footer nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-sign-in { justify-self: end; }

.hero {
  --hero-x: 0px;
  --hero-y: 0px;
  position: relative;
  display: grid;
  align-items: center;
  isolation: isolate;
  min-height: clamp(620px, 52.5vw, 845px);
}
.hero-media {
  position: absolute;
  z-index: -1;
  inset: 0 0 9px 51.3%;
  overflow: hidden;
  border-radius: clamp(46px, 8.4vw, 132px) 0 0 0;
  background: #51473b;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 83% 55%;
  transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(1.08);
}
.hero-inner { padding-block: 52px 70px; }
.hero-copy { width: 51%; }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { font-size: clamp(3.45rem, 6.15vw, 7.15rem); line-height: .99; letter-spacing: -.065em; }
.hero-accent { color: var(--berry); }
.hero-sub { max-width: 360px; margin-top: 28px; color: var(--soft); font-size: clamp(1.14rem, 1.48vw, 1.34rem); line-height: 1.49; }

.signup { display: flex; gap: 4px; width: min(100%, 424px); padding: 4px; border: 1px solid #b6b8a8; border-radius: 4px; background: var(--white); }
.hero .signup { margin-top: 31px; }
.signup input { flex: 1 1 0; min-width: 0; padding: 8px 12px; border: 0; border-radius: 3px; background: transparent; color: var(--ink); }
.signup input::placeholder { color: #5c6558; opacity: 1; }
.signup input:focus-visible { outline: 2px solid var(--forest); outline-offset: -1px; }
.signup button { flex: none; white-space: nowrap; }
.hero .signup button { background: var(--forest); color: var(--white); }
.hero .signup button:hover { background: var(--forest-hover); }
.hero .signup-note { margin-top: 7px; }
.hero-example { display: inline-flex; align-items: center; min-height: 44px; margin-top: 5px; font-size: .95rem; font-weight: 780; }
.signup-note { max-width: 424px; font-size: .77rem; line-height: 1.4; color: var(--soft); }
/* What the server says after the form is sent, in place of the note. */
.signup-note.said { font-size: .92rem; font-weight: 700; color: var(--ink); }
.signup-note.said.bad { color: var(--berry); }
.signup button[disabled] { opacity: .6; cursor: default; }

.learning-layout, .two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 8vw, 116px); align-items: center; }
.learning { padding-top: clamp(75px, 10vw, 148px); }
.learning-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.section-copy .eyebrow { margin-bottom: 16px; }
.section-copy > p:not(.eyebrow) { max-width: 420px; margin-top: 17px; color: var(--soft); font-size: clamp(1.04rem, 1.42vw, 1.2rem); }

.demo {
  min-width: 0;
  padding: clamp(23px, 3.5vw, 47px);
  border: 1px solid #dedccd;
  background: #f1efe3;
}
.demo-top p { font-weight: 780; font-size: 1.05rem; }
.topic-switch, .device-switch { display: flex; flex-wrap: wrap; gap: 5px 19px; border-bottom: 1px solid #cecfbf; }
.topic-switch { margin-top: 11px; }
.topic-switch button, .device-switch button {
  min-height: 44px;
  padding: 6px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--soft);
  font-size: .94rem;
  font-weight: 730;
  transition: border-color 180ms, color 180ms;
}
.topic-switch button:hover, .device-switch button:hover { color: var(--forest); }
.topic-switch button[aria-pressed="true"], .device-switch button[aria-pressed="true"] { border-bottom-color: var(--forest); color: var(--forest); }
.demo-stage { min-height: 245px; padding-top: 25px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.demo-step { font-size: .73rem; letter-spacing: .13em; color: var(--soft); font-weight: 790; text-transform: uppercase; }
.demo-question { max-width: 100%; font: 590 clamp(1.8rem, 3.68vw, 3.7rem)/1.08 var(--display); letter-spacing: -.045em; }
.demo-question:focus { outline: none; }
.demo-message { max-width: 440px; color: var(--soft); line-height: 1.43; }
.demo-options, .demo-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.demo-answer { min-width: 78px; min-height: 48px; padding: 7px 14px; border: 1px solid #a4ab98; border-radius: 3px; background: var(--white); font-size: 1.1rem; font-weight: 800; transition: background-color 180ms, color 180ms; }
.demo-answer:hover { background: var(--forest); color: var(--white); }
.demo-feedback { margin-top: 2px; }
.demo-line { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 280px); margin-top: 8px; text-align: center; line-height: 1.3; }
.demo-line::before { content: ""; position: absolute; left: 10%; right: 10%; top: 4px; height: 1px; background: var(--soft); }
.demo-line span { display: grid; justify-items: center; gap: 3px; font-size: .89rem; font-weight: 730; }
.demo-line span::before { content: ""; width: 1px; height: 9px; background: var(--soft); }

.routine {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: center;
  gap: clamp(42px, 8.2vw, 119px);
  margin-top: clamp(115px, 13vw, 200px);
}
.photo-frame { overflow: hidden; background: #ded6c4; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.routine-photo { aspect-ratio: 1.11; border-radius: 0 0 0 clamp(30px, 5.4vw, 88px); }
.routine-photo img { object-position: 46% center; }
.routine-steps { list-style: none; padding: 0; margin-top: 25px; }
.routine-steps li { padding-block: 13px; border-top: 1px solid var(--line); }
.routine-steps h3 { font-size: 1rem; font-weight: 790; }
.routine-steps p { margin-top: 3px; color: var(--soft); line-height: 1.4; }

.device-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  grid-template-areas: "selector theater" "details theater";
  gap: 15px clamp(39px, 7vw, 109px);
}
.device-intro { grid-area: selector; align-self: end; }
.device-switch { width: max-content; max-width: 100%; margin-top: 23px; }
.device-switch button { display: flex; align-items: center; gap: 6px; }
.device-switch .icon { width: 18px; height: 18px; }
.device-details { grid-area: details; min-height: 190px; max-width: 420px; }
.device-details h3 { margin-bottom: 5px; font-size: 1rem; font-weight: 790; }
.device-details p { color: var(--soft); }
.device-pair-button { margin-top: 14px; }
.pair-status:not(:empty) { margin-top: 10px; font-size: .9rem; }
.pair-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.device-theater {
  position: relative;
  grid-area: theater;
  align-self: center;
  width: 100%;
  min-width: 0;
  min-height: 235px;
  aspect-ratio: 1.53;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  border-radius: 0 0 clamp(27px, 4vw, 58px) 0;
  background: radial-gradient(ellipse at 52% 43%, #415845, #263f31 58%, #1d3329);
}
.device-theater::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 58% 9% 10%;
  border-radius: 50%;
  background: #14281e;
  filter: blur(21px);
  opacity: .65;
}
.tablet-visual, .laptop-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transition: opacity 320ms var(--ease), transform 680ms var(--ease), top 680ms var(--ease), left 680ms var(--ease), width 680ms var(--ease);
}
.tablet-visual {
  z-index: 2;
  width: 55%;
  aspect-ratio: 1.47;
  padding: 1.25%;
  border: 1px solid #728478;
  border-radius: clamp(9px, 2.1cqw, 15px);
  background: linear-gradient(165deg, #35483c, #151f1a 56%);
  box-shadow: inset 0 1px #ffffff35, 0 3px 0 #121d17, 0 24px 30px #0c1a12a0;
  transform: translate(-50%, -50%) rotate(-6deg);
}
.laptop-visual {
  z-index: 1;
  width: 68%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -40%) scale(.82);
}
.laptop-lid {
  width: 92%;
  aspect-ratio: 1.6;
  padding: 1.15%;
  margin-inline: auto;
  border: 1px solid #78887b;
  border-radius: clamp(6px, 1.3cqw, 11px) clamp(6px, 1.3cqw, 11px) 2px 2px;
  background: linear-gradient(160deg, #38493e, #17251d);
  box-shadow: inset 0 1px #ffffff4a;
}
.laptop-base {
  position: relative;
  height: clamp(7px, 2.15cqw, 15px);
  margin-top: -1px;
  border-radius: 2px 2px 49% 49%;
  background: linear-gradient(#a2ad97, #6d7c69 55%, #304334 60%, #304334);
  box-shadow: 0 12px 19px #0d1c13a8;
}
.laptop-base i { position: absolute; top: 0; left: 41%; width: 18%; height: 30%; border-radius: 0 0 4px 4px; background: #394b3b; }
.machine-screen {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f4f0e4;
  color: var(--forest);
}
.tablet-screen { border-radius: clamp(5px, 1.32cqw, 10px); }
.laptop-screen { border-radius: 3px; }
.screen-brand {
  position: absolute;
  top: 8%;
  left: 7%;
  color: #60735d;
  font: 750 clamp(7px, 2.35cqw, 15px)/1 var(--display);
}
.mock-question {
  position: absolute;
  top: 55%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: .18em;
  width: max-content;
  max-width: 87%;
  padding-bottom: .12em;
  font: 550 clamp(13px, 5.8cqw, 36px)/1 var(--display);
  transform: translate(-50%, -50%);
  transition: left 400ms var(--ease), font-size 400ms var(--ease);
}
.mock-question i {
  position: absolute;
  right: -.12em;
  bottom: -.05em;
  left: -.12em;
  height: 1px;
  background: #b8bfaa;
}
.written-answer { width: 1.1em; height: 1em; overflow: visible; color: #a74836; }
.typed-answer { color: #a74836; }
.mirrored-answer { display: none; }
.device-pencil {
  position: absolute;
  right: -2%;
  bottom: -9%;
  width: 44%;
  height: 4.4%;
  border-radius: 999px;
  background: linear-gradient(#fff5d6, #d0c29a);
  box-shadow: 0 3px 7px #15271c90;
  transform: rotate(-16deg);
  transition: opacity 280ms var(--ease);
}
.device-pencil::after { content: ""; position: absolute; inset: 8% auto 8% -8%; width: 12%; background: #ede1be; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.screen-pair {
  position: absolute;
  top: 35%;
  right: 17%;
  opacity: 0;
  transform: translateY(-43%) scale(.87);
  transition: opacity 230ms var(--ease), transform 420ms var(--ease);
}
.screen-pair .icon { display: block; width: clamp(20px, 8cqw, 48px); height: auto; }
.device-pulse {
  position: absolute;
  z-index: 3;
  left: 49%;
  top: 73%;
  display: flex;
  gap: clamp(4px, 1.05cqw, 7px);
  opacity: 0;
  transform: rotate(13deg);
}
.device-pulse span { width: clamp(3px, .7cqw, 5px); aspect-ratio: 1; border-radius: 50%; background: #f2d77c; }

.device-theater[data-mode="computer"] .laptop-visual,
.device-theater[data-mode="both"] .laptop-visual { opacity: 1; transform: translate(-50%, -50%); }
.device-theater[data-mode="computer"] .tablet-visual { opacity: 0; transform: translate(-26%, -25%) rotate(-2deg) scale(.76); }
.device-theater[data-mode="both"] .laptop-visual { left: 35%; top: 44%; width: 57%; }
.device-theater[data-mode="both"] .tablet-visual { left: 72%; top: 64%; width: 41%; transform: translate(-50%, -50%) rotate(5deg); }
.device-theater[data-mode="both"] .mock-question { font-size: clamp(11px, 4.85cqw, 32px); }
.device-theater[data-mode="both"] .device-pencil { opacity: 0; }
.device-theater[data-mode="both"][data-paired="false"] .laptop-screen .mock-question { left: 29%; }
.device-theater[data-mode="both"][data-paired="false"] .screen-pair { opacity: 1; transform: translateY(-50%) scale(1); }
.device-theater[data-mode="both"][data-paired="false"] :is(.typed-answer, .written-answer) { visibility: hidden; }
.device-theater[data-mode="both"][data-paired="true"] :is(.device-pulse, .device-pencil) { opacity: 1; }
.device-theater[data-mode="both"][data-paired="true"] .typed-answer { display: none; }
.device-theater[data-mode="both"][data-paired="true"] .mirrored-answer { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .device-theater[data-mode="both"][data-paired="true"] .tablet-visual .written-answer use { stroke-dasharray: 1; animation: ink-appears 650ms 90ms var(--ease) both; }
  .device-theater[data-mode="both"][data-paired="true"] .tablet-visual .written-answer use:nth-child(2) { animation-delay: 290ms; }
  .device-theater[data-mode="both"][data-paired="true"] .mirrored-answer { animation: mirror-answer 430ms 450ms var(--ease) both; }
  .device-theater[data-mode="both"][data-paired="true"] .device-pulse span { animation: mirror-answer 610ms 300ms var(--ease) both; }
  .device-theater[data-mode="both"][data-paired="true"] .device-pulse span:nth-child(2) { animation-delay: 390ms; }
  .device-theater[data-mode="both"][data-paired="true"] .device-pulse span:nth-child(3) { animation-delay: 480ms; }
}
@keyframes ink-appears { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mirror-answer { from { opacity: 0; } to { opacity: 1; } }

.coach-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); }
.coach-photo { order: -1; aspect-ratio: 1.2; width: 94%; border-radius: clamp(28px, 5.4vw, 84px) 0 0 0; }
.coach-photo img { object-position: 52% center; }
.coach-card { max-width: 405px; padding-top: 15px; margin-top: 26px; border-top: 1px solid var(--line); }
.coach-problem { display: flex; justify-content: space-between; align-items: center; gap: 9px; font-weight: 750; }
.coach-problem strong { font: 570 1.43rem/1.1 var(--display); }
.coach-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.coach-buttons button { padding-inline: 14px; }
.coach-buttons [aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--sun); }
[data-coach-result] { margin-top: 11px; color: var(--soft); line-height: 1.45; }

.parents-section .two-column { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.family-card { padding: clamp(18px, 2.7vw, 35px); border: 1px solid #dedccd; background: #f1efe3; }
.family-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.family-head h3 { font: 710 1.55rem/1 var(--display); letter-spacing: -.045em; }
.family-head > span { color: var(--soft); font-weight: 730; font-size: .83rem; }
.family-row { display: grid; grid-template-columns: 35px minmax(0, .72fr) minmax(0, 1.27fr) auto; gap: 9px; align-items: center; border-top: 1px solid #d9d9c9; padding-block: 14px; }
.family-row:last-child { padding-bottom: 0; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--sage); font: 740 .91rem/1 var(--display); }
.avatar-sun { background: #eee3c5; }
.family-child, .family-session { min-width: 0; display: grid; line-height: 1.35; }
.family-child strong, .family-session strong { font-size: .93rem; font-weight: 790; }
.family-child span, .family-session span { margin-top: 2px; font-size: .81rem; color: var(--soft); }
.family-level { font-size: .81rem; font-weight: 730; white-space: nowrap; }

.trust { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: baseline; gap: 18px clamp(40px, 8vw, 116px); padding-block: clamp(29px, 4.5vw, 62px); border-top: 1px solid var(--line); }
.trust h2 { font-size: clamp(2.05rem, 3.05vw, 3.35rem); }
.trust p { max-width: 470px; color: var(--soft); }
.closing { width: min(var(--page), calc(100% - 2 * var(--gutter))); margin-inline: auto; background: var(--forest); color: var(--white); }
.closing-inner { width: auto; padding: clamp(52px, 7.1vw, 105px) clamp(24px, 5.5vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: 29px; }
.closing h2 { font-size: clamp(2.45rem, 4.75vw, 4.7rem); }
.closing-signup { width: min(100%, 424px); justify-self: end; }
.closing .signup-note { margin-top: 8px; color: #f1e9d6; }
.closing .signup-note.said { color: var(--white); }
.closing .signup-note.said.bad { color: var(--sun); }
.closing :focus-visible { outline-color: var(--sun); }
.footer-inner { min-height: 103px; display: flex; justify-content: space-between; align-items: center; gap: 23px; }
.site-footer .brand { font-size: 1.9rem; }
.site-footer .brand svg { width: 22px; height: 25px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1px clamp(14px, 2.45vw, 35px); font-size: .89rem; font-weight: 710; }
.site-footer nav a { min-height: 44px; display: flex; align-items: center; }

@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: photograph-arrive 1000ms var(--ease) both; }
  [data-reveal].is-in-view { animation: editorial-arrive 630ms var(--ease) both; }
  .demo-stage > :is(.demo-step, .demo-question, .demo-message:not(.demo-feedback), .demo-options, .demo-line, .demo-actions) { animation: sample-arrive 260ms var(--ease) both; }
}
@keyframes photograph-arrive {
  from { opacity: .76; scale: 1.025; }
  to { opacity: 1; scale: 1; }
}
@keyframes editorial-arrive {
  from { opacity: .82; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sample-arrive {
  from { opacity: .76; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  .learning-layout, .two-column, .routine { gap: 39px; }
  .hero-media img { object-position: 78% 52%; }
  .family-row { grid-template-columns: 33px 1fr auto; gap: 5px 9px; }
  .family-session { grid-column: 2; grid-row: 2; }
  .family-level { grid-column: 3; grid-row: 1 / span 2; }
  .avatar { width: 33px; height: 33px; }
}
@media (max-width: 830px) {
  :root { --gutter: clamp(22px, 6vw, 44px); }
  html { scroll-padding-top: 14px; }
  .header-inner { min-height: 66px; grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .brand { font-size: 1.86rem; }
  .brand svg { width: 24px; height: 27px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-inner { padding-block: clamp(26px, 5vw, 46px) 23px; }
  .hero-copy { width: 100%; }
  .hero .eyebrow { margin-bottom: 17px; }
  .hero h1 { font-size: clamp(2.85rem, 11.8vw, 6.2rem); }
  .hero-sub { margin-top: 16px; }
  .hero .signup { margin-top: 19px; }
  .hero-media { position: relative; inset: auto; order: 2; width: calc(100% - var(--gutter)); max-height: 490px; aspect-ratio: 1.33; margin-left: auto; border-radius: clamp(43px, 12vw, 79px) 0 0 0; }
  .hero-media img { object-position: center 48%; transform: translate3d(0, calc(var(--hero-y) * .48), 0) scale(1.055); }
  .section { padding-block: 65px; }
  .learning-layout, .two-column, .routine, .parents-section .two-column { grid-template-columns: minmax(0, 1fr); gap: 31px; }
  .routine { margin-top: 85px; }
  .routine-photo { order: 2; aspect-ratio: 1.34; }
  .device-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "selector" "theater" "details"; gap: 21px; }
  .device-switch { margin-top: 13px; }
  .device-details { min-height: 0; }
  .coach-photo { order: 2; width: 94%; justify-self: end; aspect-ratio: 1.48; }
  .trust, .closing-inner { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .closing-signup { justify-self: start; }
}
@media (max-width: 560px) {
  .section { padding-block: 57px; }
  .hero-example { min-height: 39px; }
  .signup button { padding-inline: 13px; }
  .routine { margin-top: 74px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 22px; gap: 9px; }
}
@media (max-width: 350px) {
  .hero h1 { font-size: clamp(2.44rem, 12.4vw, 3.3rem); }
  .signup input { padding-inline: 7px; font-size: .94rem; }
  .signup button { padding-inline: 10px; font-size: .84rem; }
  .device-switch { column-gap: 12px; }
  .device-switch .icon { width: 15px; height: 15px; }
  .family-row { gap: 5px 6px; }
  .family-level { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

