/* kidbud.app site design: tokens, layout and shared components. */
:root {
  --ground: #F6F5FC;
  --surface: #FFFFFF;
  --ink: #15183A;
  --body: #34385A;
  --muted: #4A4E6B;
  --subtle: #5A5E7A;
  --line: #E7E7F3;
  --line-strong: #D9DAEE;
  --indigo: #3A4DE0;
  --indigo-deep: #2733B8;
  --indigo-tint: #ECEEFD;
  --coral: #F2603D;
  --coral-text: #C4401F;
  --coral-tint: #FFE3D6;
  --cream: #FFF4EC;
  --on-dark: #C9CBE0;
  --on-dark-accent: #B9BFFF;
  --match: #1F7A5C;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --shadow-card: 0 1px 2px rgba(21, 24, 58, .06), 0 24px 48px -12px rgba(21, 24, 58, .22);
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); overflow-x: clip; }
img { max-width: 100%; }
a { color: var(--indigo); }
a:hover { color: var(--indigo-deep); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); }
.eyebrow.coral { color: var(--coral-text); }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); }
.section-title { font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; }
.feature-title { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; font-weight: 800; }
.shot { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow-card); }

/* Header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--indigo); }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--subtle); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }

/* Buttons and store badges */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 15px; }
.btn:hover { color: #FFFFFF; background: #262A55; }
.btn.light { background: #FFFFFF; color: var(--ink); min-height: 56px; padding: 0 28px; font-size: 17px; font-weight: 700; }
.btn.light:hover { color: var(--ink); background: var(--indigo-tint); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stores a { display: inline-flex; border-radius: 10px; }
.stores img { display: block; height: 54px; width: auto; }
.stores.small img { height: 48px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; font-weight: 800; }
.hero-note { font-size: 14px; color: var(--subtle); }
.hero-art { flex: 1 1 480px; min-width: 0; position: relative; min-height: 600px; overflow: visible; }
.hero { overflow-x: clip; }
.hero-art .blob { position: absolute; right: -180px; top: -40px; width: 620px; height: 620px; border-radius: 50%; background: var(--coral-tint); }
.hero-art .dot { position: absolute; left: 4%; bottom: 0; width: 120px; height: 120px; border-radius: 50%; background: var(--coral); }
.hero-art .shot { position: absolute; }
.hero-art .a { left: 0; top: 0; width: 60%; transform: rotate(-3deg); }
.hero-art .b { right: 0; top: 30%; width: 56%; transform: rotate(2deg); }
.hero-art .c { left: 10%; bottom: 6%; width: 52%; border-radius: 16px; }

/* Bands and facts */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.what { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
.what > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.what h2 { font-size: 32px; font-weight: 700; }
.what p { font-size: 18px; line-height: 1.6; color: var(--body); }
.facts { flex: 1 1 360px; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.facts dt { color: var(--subtle); }
.facts dd { margin: 6px 0 0; font-size: 17px; font-weight: 600; }

/* Features */
.features { display: flex; flex-direction: column; gap: 112px; padding-top: 112px; padding-bottom: 48px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.feature.reverse { flex-wrap: wrap-reverse; }
.feature-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.feature-copy p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.feature-art { flex: 1 1 560px; min-width: 0; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--body); }
.steps li { display: flex; gap: 10px; align-items: baseline; }
.steps b { color: var(--indigo); }
.panel { border-radius: 32px; padding: 48px; }
.panel.cream { background: var(--cream); display: flex; gap: 24px; align-items: flex-start; }
.panel.cream .shot { flex: 1 1 0; min-width: 0; }
.panel.cream .shot + .shot { margin-top: 64px; }
.panel.indigo { background: var(--indigo-tint); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.panel.indigo .shot { max-width: 440px; align-self: center; }
.panel.indigo { container-type: inline-size; }
.legs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.leg { background: var(--surface); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.leg strong { font-size: 17px; }
.leg small { font-size: 13px; color: var(--subtle); }
.pill { display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--indigo); color: #FFFFFF; font-size: 13px; font-weight: 600; }
.pill.ink { background: var(--ink); }

/* The three legs read as rows whenever their panel is narrow, at any screen width */
@container (max-width: 560px) {
  .legs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .leg { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; }
  .leg .eyebrow { flex: 0 0 96px; white-space: nowrap; }
  .leg strong { flex: 1 1 auto; font-size: 17px; }
  .leg small { flex: 1 1 auto; text-align: right; }
  .leg .pill { align-self: center; }
}
.phone-stage { display: flex; justify-content: center; position: relative; padding: 24px 0; }
.phone-stage::before { content: ""; position: absolute; inset: 12% 8% 0 8%; border-radius: 40px; background: var(--coral-tint); }
.phone { position: relative; width: 330px; max-width: 80%; padding: 10px; border-radius: 52px; background: var(--ink); box-shadow: 0 40px 80px -24px rgba(21, 24, 58, .45); }
.phone img { display: block; width: 100%; height: auto; border-radius: 42px; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.tile { background: var(--surface); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.tile h2 { font-size: 36px; line-height: 1.08; font-weight: 800; }
.tile p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.tile .shot { margin-top: 12px; max-width: 420px; }
.tile.dark { background: var(--ink); overflow: hidden; }
.tile.dark h2 { color: #FFFFFF; }
.tile.dark p { color: var(--on-dark); }
.tile.dark .eyebrow { color: var(--on-dark-accent); }

/* Discover class cards, in the app's card style */
.tile.dark { container-type: inline-size; }
.class-cards { list-style: none; margin: auto 0 0; padding: 28px 0 44px; display: grid; place-items: center; position: relative; }
.class-cards::before { content: ""; position: absolute; left: 50%; top: 52%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 96, 61, .45), rgba(242, 96, 61, 0)); }
.class-card { grid-area: 1 / 1; width: min(236px, 52cqw); background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 44px -14px rgba(0, 0, 0, .6); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.class-card:nth-child(1) { z-index: 3; transform: translateY(-6px); }
.class-card:nth-child(2) { z-index: 1; transform: translateX(-56%) translateY(18px) rotate(-9deg); }
.class-card:nth-child(3) { z-index: 2; transform: translateX(56%) translateY(18px) rotate(9deg); }
.class-card:hover { z-index: 4; box-shadow: 0 32px 60px -14px rgba(0, 0, 0, .7); }
.class-card:nth-child(1):hover { transform: translateY(-18px) scale(1.03); }
.class-card:nth-child(2):hover { transform: translateX(-60%) translateY(0) rotate(-5deg) scale(1.03); }
.class-card:nth-child(3):hover { transform: translateX(60%) translateY(0) rotate(5deg) scale(1.03); }
@container (max-width: 420px) {
  .class-card { width: 50cqw; }
  .class-card:nth-child(2) { transform: translateX(-42%) translateY(16px) rotate(-7deg); }
  .class-card:nth-child(3) { transform: translateX(42%) translateY(16px) rotate(7deg); }
  .class-card:nth-child(2):hover { transform: translateX(-46%) rotate(-4deg) scale(1.03); }
  .class-card:nth-child(3):hover { transform: translateX(46%) rotate(4deg) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { .class-card { transition: none; } }
.class-photo { position: relative; aspect-ratio: 16 / 10; }
.class-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.class-heart { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(21, 24, 58, .55); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.class-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.class-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); }
.class-name { font-weight: 700; font-size: 17px; color: var(--ink); }
.class-meta { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.class-match { font-size: 13px; font-weight: 600; color: var(--match); }

/* How it works */
.how { padding-top: 96px; padding-bottom: 96px; }
.how ol { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--line-strong); }
.how li { padding: 32px 32px 32px 0; display: flex; flex-direction: column; gap: 10px; }
.how .num { font-family: var(--display); font-weight: 800; font-size: 56px; color: var(--indigo); line-height: 1; }
.how h3 { font-size: 22px; font-weight: 700; }
.how p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Pricing */
.pricing { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-bottom: 96px; }
.pricing > div:first-child { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pricing > div:first-child p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.plans { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.plan { background: var(--surface); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 8px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; }
.plan .price small { font-size: 18px; font-weight: 500; color: var(--subtle); }
.plan p { font-size: 16px; color: var(--muted); }
.plan.featured { background: var(--ink); color: #FFFFFF; box-shadow: none; }
.plan.featured .eyebrow { color: var(--on-dark-accent); }
.plan.featured .price small, .plan.featured p { color: var(--on-dark); }

/* Guide cards */
.guides { padding-top: 96px; padding-bottom: 96px; }
.guides-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 24px; background: var(--indigo-tint); color: var(--ink); text-decoration: none; min-height: 240px; }
.card:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--indigo); }
.card.cream { background: var(--cream); }
.card.plain { background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); }
.card-title { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.2; }
.card-summary { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: auto; }

.guides-lede { margin-top: 18px; max-width: 640px; }
.guide-group { margin-top: 56px; }
.guide-group .section-title { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 20px; }

/* FAQ accordion */
.faq { max-width: 880px; margin: 0 auto; padding: 96px 24px; }
.faq h2 { margin-bottom: 32px; }
.qa { border-top: 1px solid var(--line-strong); }
.qa details { border-bottom: 1px solid var(--line-strong); padding: 22px 0; }
.qa summary { display: flex; justify-content: space-between; gap: 16px; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--indigo); font-size: 24px; line-height: 1; transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding-top: 12px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Call to action */
.cta { position: relative; overflow: hidden; border-radius: 40px; background: var(--indigo); padding: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: var(--coral); }
.cta h2 { position: relative; z-index: 1; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; font-weight: 800; color: #FFFFFF; max-width: 640px; }
.cta .stores { position: relative; z-index: 1; }
.cta-wrap { padding-bottom: 96px; }

/* Article pages: guides, support and legal */
.page { max-width: 1180px; margin: 0 auto; padding: 32px 24px 96px; }
.breadcrumb { font-size: 14px; color: var(--subtle); margin-bottom: 20px; }
.page h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; font-weight: 800; max-width: 900px; }
.byline { margin-top: 18px; font-size: 15px; color: var(--subtle); }
.article { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; margin-top: 40px; }
.prose { min-width: 0; max-width: 760px; }
.article > .prose { flex: 999 1 640px; }
.prose p, .prose li { font-size: 18px; line-height: 1.7; color: var(--body); }
.prose p { margin: 0 0 20px; }
.prose h2 { font-size: 32px; line-height: 1.15; font-weight: 700; margin: 56px 0 18px; }
.prose h3 { font-size: 21px; font-weight: 700; margin: 28px 0 10px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .sources li { font-size: 15px; }
.answer { background: var(--surface); border-radius: 24px; padding: 28px 32px; box-shadow: inset 0 0 0 1.5px var(--line-strong); margin-bottom: 40px; }
.answer .eyebrow { margin-bottom: 10px; }
.prose .answer p { margin: 0; font-size: 19px; color: var(--ink); }
.table-box { overflow-x: auto; margin: 0 0 24px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.table-box table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; min-width: 680px; }
.table-box th { vertical-align: bottom; }
.table-box th { text-align: left; font-weight: 600; color: var(--ink); background: var(--indigo-tint); padding: 12px 14px; }
.table-box td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--body); vertical-align: top; }
.figure { margin: 8px 0 28px; background: var(--indigo-tint); border-radius: 24px; padding: 32px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: flex-start; }
.figure.cream { background: var(--cream); }
.figure img { display: block; flex: 1 1 260px; min-width: 0; max-width: 420px; height: auto; border-radius: 20px; box-shadow: 0 24px 48px -16px rgba(21, 24, 58, .25); }
.figure figcaption { flex-basis: 100%; font-size: 14px; color: var(--muted); text-align: center; }
.download { background: var(--ink); border-radius: 24px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 0 40px; }
.download > div:first-child { flex: 1 1 320px; min-width: 0; }
.prose .download p { margin: 0; font-size: 16px; color: var(--on-dark); }
.prose .download .download-title { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.2; color: #FFFFFF; }
.aside { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.aside nav, .aside .related { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.aside .related a { font-weight: 600; line-height: 1.4; }

/* Phones and small tablets */
@media (max-width: 760px) {
  .wrap { padding-left: 20px; padding-right: 20px; }

  /* Header: keep the nav, as a second row of large tap targets */
  .site-header { flex-wrap: wrap; row-gap: 4px; padding-top: 14px; padding-bottom: 6px; }
  .site-nav { order: 3; width: 100%; gap: 4px; justify-content: space-between; font-size: 15px; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  .site-nav a:first-child { padding-left: 0; }
  .site-nav a:last-child { padding-right: 0; }

  .eyebrow { letter-spacing: .1em; font-size: 11px; }
  .lede { font-size: 17px; }
  .section-title { font-size: 30px; line-height: 1.1; }
  .feature-title { font-size: 32px; }

  /* Hero: copy first, then two readable screenshots, badges side by side */
  .hero { gap: 36px; padding-top: 20px; padding-bottom: 56px; }
  .hero-copy { gap: 18px; flex-basis: 100%; }
  .hero h1 { font-size: 36px; line-height: 1.05; }
  .stores { gap: 10px; }
  .stores img, .stores.small img { height: 44px; }
  .hero-art { flex-basis: 100%; min-height: 0; display: flex; flex-direction: column; padding: 8px 0 16px; }
  .hero-art .blob { width: 300px; height: 300px; right: -90px; top: 10px; }
  .hero-art .dot, .hero-art .c { display: none; }
  .hero-art .shot { position: relative; }
  .hero-art .a { left: auto; top: auto; width: 88%; transform: rotate(-2deg); }
  .hero-art .b { right: auto; top: auto; width: 84%; align-self: flex-end; margin-top: -8px; transform: rotate(2deg); }

  .what { gap: 32px; padding-top: 48px; padding-bottom: 48px; }
  .what h2 { font-size: 28px; }
  .what p { font-size: 17px; }
  .facts { gap: 20px 16px; }
  .facts dd { font-size: 16px; }

  /* Features: copy always above its picture, tighter rhythm */
  .features { gap: 72px; padding-top: 64px; padding-bottom: 24px; }
  .feature, .feature.reverse { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 28px; }
  .feature-copy, .feature-art { flex: 0 0 auto; }
  .feature.reverse .feature-copy { order: -1; }
  .feature-copy p { font-size: 17px; }
  .panel { border-radius: 24px; padding: 20px; }
  .panel.cream .shot:first-child { display: none; }
  .panel.cream .shot + .shot { margin-top: 0; }
  .panel.indigo { padding: 20px; }
  .panel.indigo .shot { display: none; }
  .phone { width: 260px; padding: 8px; border-radius: 42px; }
  .phone img { border-radius: 34px; }
  .duo { gap: 16px; }
  .tile { border-radius: 24px; padding: 24px; }
  .tile h2 { font-size: 28px; }
  .tile p { font-size: 16px; }
  .class-cards { margin-top: 8px; padding: 20px 0 32px; }
  .class-body { padding: 10px 12px 12px; }
  .class-name { font-size: 15px; }
  .class-meta, .class-match { font-size: 12px; }

  .how { padding-top: 64px; padding-bottom: 56px; }
  .how ol { margin-top: 24px; }
  .how li { padding: 24px 0; gap: 8px; border-bottom: 1px solid var(--line); }
  .how .num { font-size: 40px; }
  .how h3 { font-size: 20px; }

  .pricing { gap: 24px; padding-bottom: 64px; }
  .plan { border-radius: 24px; padding: 24px; }
  .plan .price { font-size: 40px; }

  .guides { padding-top: 64px; padding-bottom: 64px; }
  .guides-head { margin-bottom: 24px; }
  .guides-head a { display: inline-flex; align-items: center; min-height: 44px; }
  .cards { gap: 16px; }
  .card { min-height: 0; padding: 24px; border-radius: 20px; }
  .card-title { font-size: 21px; }
  .card-summary { margin-top: 4px; }

  .faq { padding: 64px 20px; }
  .faq h2 { margin-bottom: 16px; }
  .qa details { padding: 18px 0; }
  .qa summary { font-size: 17px; align-items: flex-start; }
  .qa p { font-size: 16px; }

  .cta-wrap { padding-bottom: 64px; }
  .cta { border-radius: 28px; padding: 32px 20px; gap: 24px; }
  .cta .stores img { height: 42px; }
  .cta::after { width: 180px; height: 180px; right: -60px; bottom: -70px; }
  .cta h2 { font-size: 30px; }

  .site-footer .wrap { padding-top: 28px; padding-bottom: 28px; gap: 12px; }
  .site-footer nav { gap: 0 20px; }
  .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Article pages */
  .page { padding: 16px 20px 64px; }
  .breadcrumb { margin-bottom: 14px; }
  .breadcrumb a { display: inline-block; padding: 10px 0; }
  .page h1 { font-size: 32px; line-height: 1.08; }
  .byline { margin-top: 12px; font-size: 14px; }
  .article { gap: 0; margin-top: 28px; }
  .prose p, .prose li { font-size: 17px; line-height: 1.65; }
  .prose h2 { font-size: 26px; margin: 44px 0 14px; }
  .prose h3 { font-size: 19px; }
  .answer { padding: 20px; border-radius: 20px; margin-bottom: 32px; }
  .prose .answer p { font-size: 17px; }
  .table-box table { font-size: 14px; min-width: 640px; }
  .table-box th, .table-box td { padding: 10px 12px; }
  .figure { padding: 16px; border-radius: 20px; gap: 12px; }
  .figure img { flex-basis: 100%; max-width: 100%; }
  .download { padding: 24px 20px; border-radius: 20px; }
  .download .stores img { height: 42px; }
  .prose .download .download-title { font-size: 22px; }
  .aside { gap: 20px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
  .aside nav[aria-label="Table of contents"] { display: none; }
  .aside .related a { display: inline-block; padding: 6px 0; }
}

/* Motion. Hidden states apply only after motion.js adds .motion to <html>, so content shows without JS. */
@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@keyframes drop-in { from { opacity: 0; translate: 0 -48px; scale: .94; } }
@keyframes slide-in { from { opacity: 0; translate: 72px 0; } }
@keyframes pop { from { opacity: 0; scale: .7; } }
@keyframes float { to { translate: 0 -10px; } }
@keyframes breathe { to { scale: 1.06; } }
@keyframes fan-in { from { opacity: 0; transform: translateY(48px) scale(.92) rotate(0deg); } }
@keyframes phone-up { from { opacity: 0; translate: 0 80px; rotate: 4deg; } }

.motion .reveal:not(.is-in),
.motion :is(.facts, .legs, .duo, .how ol, .plans, .cards, .qa).reveal:not(.is-in) > * { opacity: 0; }
.motion :is(.facts, .legs, .duo, .how ol, .plans, .cards, .qa).reveal:not(.is-in) { opacity: 1; }
.motion .class-cards.reveal:not(.is-in) { opacity: 1; }
.motion .class-cards.reveal:not(.is-in) .class-card { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: copy rises, the app cards arrive like notifications and then float */
  .hero-copy > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .hero-art .a { animation: drop-in .9s .3s cubic-bezier(.2, .8, .2, 1) backwards, float 6s 1.4s ease-in-out infinite alternate; }
  .hero-art .b { animation: slide-in .9s .55s cubic-bezier(.2, .8, .2, 1) backwards, float 7s 1.6s ease-in-out infinite alternate-reverse; }
  .hero-art .c { animation: pop .7s .85s cubic-bezier(.3, 1.4, .5, 1) backwards, float 5s 1.8s ease-in-out infinite alternate; }
  .hero-art .blob { animation: breathe 9s ease-in-out infinite alternate; }
  .hero-art .dot { animation: pop .6s 1s cubic-bezier(.3, 1.4, .5, 1) backwards, float 4.5s 1.6s ease-in-out infinite alternate; }

  /* Scroll reveals */
  .motion .reveal.is-in { animation: rise .8s cubic-bezier(.2, .8, .2, 1) backwards; }
  .motion :is(.facts, .legs, .duo, .how ol, .plans, .cards, .qa).reveal.is-in { animation: none; }
  .motion :is(.facts, .duo, .how ol, .plans, .cards, .qa).reveal.is-in > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 90ms); }

  /* Drop-off, class, pickup: one after another, the driver pills pop last */
  .motion .legs.reveal.is-in > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 220ms); }
  .motion .legs.reveal.is-in .pill { animation: pop .5s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(var(--i) * 220ms + .4s); }

  /* Discover: the cards start stacked and fan out */
  .motion .class-cards.reveal.is-in { animation: none; }
  .motion .class-cards.reveal.is-in .class-card { animation: fan-in 1s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 140ms); }
  .motion .class-cards.reveal.is-in .class-card:nth-child(1) { animation-delay: .32s; }

  /* The calendar phone rises into its stage */
  .motion .phone-stage.is-in .phone { animation: phone-up 1.1s .1s cubic-bezier(.2, .8, .2, 1) backwards; }

  .cta::after { animation: breathe 7s ease-in-out infinite alternate; }

  /* Hover and press */
  .stores a, .card, .plan, .btn { transition: translate .25s ease, box-shadow .25s ease, background .2s ease, scale .15s ease; }
  .stores a:hover { translate: 0 -3px; }
  .card:hover, .plan:hover { translate: 0 -4px; box-shadow: 0 18px 36px -18px rgba(21, 24, 58, .35); }
  .card.plain:hover, .plan:not(.featured):hover { box-shadow: inset 0 0 0 1.5px var(--line-strong), 0 18px 36px -18px rgba(21, 24, 58, .35); }
  .btn:active, .stores a:active { scale: .97; }
}
