/* Give the content the same presence on a wide screen as on a phone. */
:root {
  --preview-height: 0px;
  --page-width: 1560px;
  --page-gutter: clamp(20px, 4vw, 76px);
  --reading-size: clamp(16px, 1.15vw, 20px);
}
.container { width: min(var(--page-width), calc(100% - 2 * var(--page-gutter))); }
.hero.container, .schedule-intro.container {
  width: min(var(--page-width), calc(100% - 2 * var(--page-gutter)));
}
.discovery > .container, .start-container { max-width: var(--page-width); }
.button { font-size: 16px; }
.eyebrow { font-size: 12px; }
.section-space { padding-block: clamp(52px, 9svh, 100px); }
.pace-section, .parents-layout { gap: clamp(36px, 7vw, 110px); }
.pace-intro > p:not(.eyebrow), .parents-copy > p:not(.eyebrow),
.pace-items article p, .ritual-grid p, .app-copy > p,
.faq-section > div > p:not(.eyebrow), .faq-list details p {
  font-size: var(--reading-size);
  line-height: 1.65;
}
.pace-intro > p:not(.eyebrow), .app-copy > p { max-width: 55ch; }
.pace-intro .pace-small { font-size: var(--reading-size) !important; line-height: 1.65 !important; }
.pace-items h3, .ritual-grid h3 { font-size: clamp(21px, 1.6vw, 27px); }
.check-list, .faq-list summary { font-size: var(--reading-size); }
.parent-visual > .eyebrow, .message-label, .scenario-label, .ritual-footer { font-size: 13px; }
.online-link, .app-kicker { font-size: 14px; }
.footer-main, .footer-bottom { font-size: 13px; }

@media (min-width: 601px) and (min-height: 481px) {
  :root { --header-height: 76px; }
  .brand img { width: 207px; height: 69px; }
  .site-header nav { font-size: clamp(13px, .85vw, 16px); gap: 9px; }
  .site-header nav > a, .site-header nav .nav-cta { padding-inline: clamp(12px, 1vw, 19px); }
  .home-section { min-height: 0; padding: 18px 0 22px; gap: 18px; }
  .hero.container { grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 4vw, 70px); }
  .hero h1 { font-size: clamp(36px, 6.8svh, 68px); max-width: 800px; line-height: 1.08; }
  .hero .eyebrow { font-size: 12px; margin-bottom: 18px; }
  .hero-description { font-size: clamp(17px, 2.7svh, 23px); line-height: 1.55; max-width: 52ch; margin-top: 20px; }
  .hero-actions { margin-top: 22px; gap: 18px; }
  .hero-actions .button { font-size: 16px; padding: 14px 20px; }
  .hero-note { font-size: 13px; }
  .hero-audience { font-size: 14px; padding: 10px 16px; margin-top: 16px; }
  .hero-art { height: min(100%, 62svh, 680px); padding: 0 15px; }
  .art-note { font-size: 15px; bottom: 28px; }
  .art-note strong { font-size: 25px; }
  .schedule-intro.container { min-height: 92px; padding: 17px 26px; }
  .schedule-intro h2 { font-size: clamp(20px, 1.4vw, 25px); }
  .schedule-intro p { font-size: var(--reading-size); margin-top: 5px; }

  .discovery.section-space { min-height: 0; padding: 22px 0; }
  .discovery > .container { gap: 22px; }
  .discovery .section-heading h2, .start-heading h2 { font-size: clamp(30px, 4.5svh, 48px); }
  .discovery .section-heading > p, .start-heading > p:last-child { font-size: 16px; }
  .discovery .section-heading .eyebrow { font-size: 11px; }
  .discovery-layout, .start-layout { gap: clamp(28px, 4vw, 65px); }
  .demo-tabs { gap: clamp(12px, 1.7svh, 20px); }
  .demo-tabs button { min-height: clamp(70px, 10svh, 108px); padding: 16px 22px; }
  .demo-tabs strong, .start-tabs strong { font-size: clamp(18px, 1.5vw, 25px); }
  .demo-tabs small, .start-tabs small { font-size: 15px; line-height: 1.4; margin-top: 5px; }
  #demo-quote { font-size: clamp(18px, 1.4vw, 23px); }
  #demo-description { font-size: 16px; line-height: 1.6; }
  .window-top { font-size: 13px; padding: 10px 18px; }
  .capture-heading p { font-size: 18px; }
  .capture-heading > span, .capture-controls > span { font-size: 12px; }
  .capture-caption { font-size: 15px; max-width: 52ch; }
  .illustrative-label { font-size: 12px; }
  .getting-started { min-height: 0; padding: 22px 0; }
  .start-tabs button { min-height: clamp(82px, 12svh, 116px); }
  .start-note { font-size: 15px; }
  #start-explanation { font-size: 17px; line-height: 1.55; max-width: 58ch; }
  .start-caption { font-size: 12px; }
  .start-capture > span { font-size: 14px; }
  .pace-intro h2, .parents-copy h2, .little-steps h2,
  .faq-section h2, .app-copy h2 { font-size: clamp(36px, 3.2vw, 56px); }
}

/* Keep navigation readable before it needs a mobile menu. */
@media (min-width: 1001px) and (max-width: 1250px) {
  .header-inner { width: calc(100% - 40px); }
  .brand img { width: 174px; height: 58px; }
  .site-header nav { gap: 6px; }
  .site-header nav > a, .site-header nav .nav-cta { font-size: 12px; padding-inline: 10px; }
}
@media (min-width: 601px) and (max-width: 1000px) and (min-height: 481px) {
  .hero h1 { font-size: clamp(33px, 4.7vw, 46px); }
  .hero-actions { flex-wrap: wrap; gap: 8px; }
  .hero-actions .button { font-size: 14px; padding: 12px 15px; }
  .hero-art { max-height: 52svh; }
  .demo-tabs button { padding-inline: 15px; gap: 12px; }
  .demo-tabs strong, .start-tabs strong { font-size: 18px; }
}
@media (min-width: 601px) and (min-height: 481px) and (max-height: 680px) {
  :root { --header-height: 66px; }
  .brand img { width: 180px; height: 60px; }
  .home-section { padding: 12px 0 16px; gap: 12px; }
  .hero h1 { font-size: clamp(34px, 6.7svh, 43px); }
  .hero .eyebrow { font-size: 10px; margin-bottom: 12px; }
  .hero-description { font-size: 17px; margin-top: 14px; }
  .hero-actions { margin-top: 15px; }
  .hero-actions .button { font-size: 14px; padding: 11px 16px; }
  .hero-note { font-size: 12px; margin-top: 11px; }
  .hero-audience { display: none; }
  .schedule-intro.container { padding: 13px 22px; min-height: 82px; }
  .schedule-intro p { font-size: 15px; }
  .discovery.section-space, .getting-started { padding: 14px 0; }
  .discovery > .container, .start-container { gap: 12px; }
  .demo-tabs button { min-height: 64px; padding: 11px 17px; }
  .demo-tabs strong, .start-tabs strong { font-size: 18px; }
  .demo-tabs small { display: none; }
  .demo-explanation { margin-top: 16px; }
  #demo-description { font-size: 14px; line-height: 1.5; }
  .capture-caption { font-size: 13px; }
  #start-explanation { font-size: 15px; }
  .start-note, .start-tabs small { font-size: 13px; }
}

@media (max-width: 600px) {
  :root { --header-height: 64px; --page-gutter: 20px; }
  .header-inner { width: calc(100% - 30px); }
  .hero.container { width: calc(100% - 32px); gap: 13px; }
  .hero h1 { font-size: clamp(29px, 4.5svh, 39px); }
  .hero-art { max-height: 28svh; height: 28svh; }
  .hero-description { font-size: 16px; line-height: 1.5; }
  .hero-actions { width: 100%; flex-wrap: wrap; gap: 6px 12px; }
  .hero-actions .button { font-size: 13px; padding: 12px 14px; }
  .hero-actions .text-button { font-size: 12px; padding: 10px 3px; }
  .hero-note { font-size: 12px; }
  .schedule-intro.container { width: calc(100% - 28px); padding: 14px 16px; }
  .schedule-intro h2 { font-size: 17px; }
  .schedule-intro p { font-size: 14px; line-height: 1.45; }
  .discovery.section-space { padding: 12px 0 16px; }
  .discovery .section-heading h2 { font-size: 27px; }
  .discovery .section-heading > p { font-size: 13px; }
  .demo-tabs strong { font-size: 14px; }
  .demo-tabs button { min-height: 66px; padding: 10px; }
  .usage-details-button { font-size: 13px; }
  .capture-heading p { font-size: 14px; }
  .capture-caption { font-size: 13px; }
  .capture-controls > span { font-size: 12px; }
  .start-heading h2 { font-size: 27px; }
  .start-heading > p:last-child { font-size: 14px; }
  .start-tabs strong { font-size: 13px; }
  #start-explanation { font-size: 14px; }
  .start-caption { font-size: 11px; }
  .faq-list summary { font-size: 16px; }
  .parent-visual > .eyebrow { font-size: 10px; }
}
@media (max-width: 600px) and (max-height: 680px) {
  .hero.container { gap: 8px; }
  .hero h1 { font-size: 28px; }
  .hero-art { max-height: 16svh; height: 16svh; }
  .hero-description { font-size: 14px; line-height: 1.4; }
  .hero-actions { gap: 4px; }
  .hero-actions .button { font-size: 12px; padding: 10px; }
  .hero-actions .text-button { font-size: 11px; padding: 7px 2px; }
  .hero-note { font-size: 11px; }
  .schedule-intro.container { padding: 11px 13px; }
  .schedule-intro h2 { font-size: 15px; }
  .schedule-intro p { font-size: 12px; }
  .discovery .section-heading h2 { font-size: 23px; }
  .demo-tabs button { min-height: 55px; padding: 8px; }
  .demo-tabs strong { font-size: 12px; }
  .start-heading h2 { font-size: 23px; }
  .start-heading > p:last-child { font-size: 12px; }
  .start-tabs strong { font-size: 12px; }
  #start-explanation { font-size: 12px; }
  .start-caption { font-size: 10px; }
}
@media (min-width: 601px) and (max-height: 480px) {
  .hero.container, .schedule-intro.container { width: calc(100% - 48px); }
  .schedule-intro p { font-size: 13px; }
}

.community-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.community-link { background: #e4d7fa; color: #23395d; border-radius: 20px; box-shadow: 0 4px 0 #ccb9e5; font-size: 16px; padding: 14px 20px; }
.community-link:hover { background: #d8c6f2; }
.community-link:focus-visible { outline: 3px solid #605080; outline-offset: 4px; }

.community-cafe { background: #d4f0eb; box-shadow: 0 4px 0 #a8dcd7; }
.community-cafe:hover { background: #bfe6df; }

/* The community links share the illustration's column and centre line. */
.home-community.container { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 4vw, 70px); flex-shrink: 0; }
.home-community .community-group { grid-column: 2; margin-top: 0; display: flex; justify-content: center; flex-wrap: nowrap; gap: 12px; min-width: 0; }
.home-community .community-link { min-height: 44px; padding: 10px 16px; gap: 10px; font-size: 14px; text-align: center; }
.button.community-link > .community-label:last-child:not([data-icon]) { font-size: inherit; line-height: 1.3; }
.community-link svg { width: 22px; height: 22px; flex-shrink: 0; }
.community-link .facebook-mark { stroke: none; }
.community-link .cafe-mark { color: #26756c; }
.family-login { background: #e4d7fa; color: #23395d; border-radius: 20px; box-shadow: 0 4px 0 #ccb9e5; }
.family-login:hover { background: #d8c6f2; }
.family-access-note { color: #506078; font-size: 15px; line-height: 1.55; max-width: 52ch; margin: 18px auto 0; text-align: center; }
.family-access-note strong { display: block; color: #23395d; font-weight: 700; }
@media (min-width: 601px) and (max-width: 1250px) {
  .home-community .community-link { flex: 1; min-width: 0; padding: 9px 11px; gap: 8px; font-size: 12px; }
}
@media (min-width: 601px) and (min-height: 481px) and (max-height: 680px) {
  .family-access-note { font-size: 13px; margin-top: 14px; }
}
@media (max-width: 600px) {
  .home-community.container { display: block; width: calc(100% - 28px); }
  .home-community .community-group { gap: 10px; }
  .home-community .community-link { flex: 1; min-width: 0; gap: 8px; padding: 9px 10px; font-size: 13px; border-radius: 17px; }
  .community-link svg { width: 20px; height: 20px; }
  .family-access-note { order: 4; flex-shrink: 0; margin: 0; font-size: 13px; line-height: 1.4; }
  .family-access-note strong { display: inline; }
  .hero-actions .family-login { font-size: 13px; padding: 12px 14px; }
}
@media (max-width: 600px) and (max-height: 680px) {
  .hero.container { gap: 6px; }
  .hero-actions .family-login { font-size: 12px; padding: 10px; }
  .family-access-note { font-size: 12px; line-height: 1.4; }
}
@media (max-width: 360px) and (max-height: 680px) {
  .hero-actions .primary { padding-inline: 8px; }
  .hero-actions .family-login { padding-inline: 8px; }
}
@media (min-width: 601px) and (max-height: 480px) {
  .home-community.container { width: calc(100% - 48px); gap: 30px; }
  .home-community .community-link { min-height: 36px; padding: 6px 10px; font-size: 12px; }
  .home-section { gap: 10px; padding-top: 10px; }
  .hero.container { grid-template-rows: minmax(0, 1fr); }
  .hero h1 { font-size: 24px; }
  .hero-description { line-height: 1.35; margin-top: 8px; }
  .hero-actions { margin-top: 8px; }
  .hero-actions .button { min-height: 36px; padding: 7px 12px; }
  .hero-actions .button > span:last-child { font-size: 16px; }
  .hero-art { height: min(100%, 50svh); }
  .family-access-note { font-size: 11px; margin-top: 8px; line-height: 1.3; }
  .family-access-note strong { display: inline; }
}

/* A larger illustration shares the full height of the home screen. */
.hero-art .art-frame img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 23%; }
@media (min-width: 601px) and (min-height: 481px) {
  .home-section {
    width: min(1680px, calc(100% - 2 * var(--page-gutter)));
    container-type: inline-size;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: clamp(24px, 3vw, 54px);
    row-gap: 14px;
    padding: 16px 0 20px;
  }
  .home-section .hero.container { display: contents; }
  .home-section .home-community.container { grid-column: 2; grid-row: 1; width: 100%; display: block; }
  .home-section .hero-copy { grid-column: 1; grid-row: 1 / 3; align-self: center; min-width: 0; }
  .home-section .hero h1 { font-size: clamp(36px, 4.2vw, 64px); }
  .home-section .hero-art {
    grid-column: 2;
    grid-row: 2 / 4;
    width: min(100%, calc((100svh - var(--header-height) - 100px) * .95));
    height: 100%;
    max-height: min(100%, calc((100cqw - clamp(24px, 3vw, 54px)) / 2.05 * 4 / 3));
    aspect-ratio: auto;
    padding: 0;
    align-self: center;
    justify-self: center;
  }
  .home-section .art-frame { width: 100%; height: 100%; border-width: 4px; border-radius: 36px; box-shadow: 0 7px 0 #d9c7ec; }
  .home-section .schedule-intro.container { grid-column: 1; grid-row: 3; width: 100%; min-height: 86px; padding: 15px 18px; }
  .home-section .schedule-intro h2 { font-size: clamp(17px, 1.3vw, 22px); }
  .home-section .schedule-intro p { font-size: clamp(14px, 1.05vw, 18px); }
}
@media (min-width: 601px) and (min-height: 481px) and (max-height: 680px) {
  .home-section { padding: 12px 0 16px; row-gap: 12px; }
  .home-section .hero h1 { font-size: clamp(34px, 6.7svh, 43px); }
  .home-section .hero-art { width: min(100%, calc((100svh - var(--header-height) - 90px) * .95)); }
  .home-section .schedule-intro.container { min-height: 72px; padding: 12px 14px; }
}
@media (max-width: 600px) {
  .hero-art { aspect-ratio: .95; }
  .hero-art .art-frame { width: 100%; }
}
@media (max-width: 600px) and (max-height: 680px) {
  .hero h1 { font-size: 24px; }
  .hero-art { max-height: 27svh; height: 27svh; }
  .hero-actions .button { min-height: 40px; padding-block: 8px; }
  .hero-actions .button > span:last-child { font-size: 16px; }
  .schedule-intro.container { gap: 10px; padding: 10px 12px; }
  .schedule-intro-icon { width: 30px; height: 30px; }
  .schedule-intro h2 { font-size: 14px; line-height: 1.2; }
  .schedule-brand, .schedule-source { display: none; }
}
