/* Homeschool Corral homepage only. Loads after /hc-theme.css and /hc.css. */
/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: clamp(560px, calc(92svh - 76px), 860px); display: flex; align-items: flex-end; color: var(--on-navy); background: var(--navy-3); isolation: isolate; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 19, 32, .86) 0%, rgba(12, 19, 32, .66) 34%, rgba(12, 19, 32, .12) 64%, rgba(12, 19, 32, 0) 80%),
    linear-gradient(0deg, rgba(12, 19, 32, .78) 0%, rgba(12, 19, 32, 0) 42%); }
.hero-inner { padding-top: 72px; padding-bottom: clamp(9rem, 6rem + 6vw, 12rem); }
.hero-copy { max-width: 46rem; display: grid; gap: var(--s-5); }
.hero .status { justify-self: start; display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .75rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); font-size: var(--fs-small); font-weight: 600; letter-spacing: .01em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--copper-soft); box-shadow: 0 0 0 4px rgba(231, 165, 122, .22); }
.hero h1 { font-size: var(--fs-hero); font-weight: 600; line-height: 1.02; letter-spacing: -.022em; color: #FFF9EE; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero .lead { font-size: var(--fs-lead); line-height: 1.55; color: #F4F5F7; max-width: 36rem; }

/* the raised strip of four entry points that overlaps the bottom of the hero */
.rail-wrap { position: relative; z-index: 3; margin-top: calc(-1 * clamp(5.5rem, 4rem + 4vw, 7.5rem)); }
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--ivory-2); border-radius: var(--r-4); box-shadow: 0 2px 4px rgba(36, 28, 18, .08), 0 22px 40px -22px rgba(16, 24, 38, .45), var(--sh-inset); border: 1px solid rgba(255, 255, 255, .7); overflow: hidden; }
.rail a { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-5); color: var(--ink); text-decoration: none; transition: background-color var(--t-fast); }
.rail a + a::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.rail img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-2); box-shadow: var(--sh-1); transition: transform var(--t-med) var(--ease); }
.rail b { display: block; font: 650 1.15rem/1.2 var(--font-head); color: var(--navy); }
.rail span { display: block; font-size: var(--fs-small); color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
@media (hover: hover) { .rail a:hover { background: #fff; } .rail a:hover img { transform: scale(1.06) rotate(-1.5deg); } }

/* ---------------------------------------------------------------- sections */
.section { padding: var(--section) 0; }
.section-head { display: grid; gap: var(--s-4); max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head p { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.55; max-width: var(--measure); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy .section-head p { color: var(--on-navy-2); }
.sand { background: var(--stone); }

/* split: text beside a layered photo arrangement */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-copy { display: grid; gap: var(--s-5); align-content: start; }
.split-copy > p { font-size: var(--fs-lead); color: var(--ink-2); line-height: 1.6; max-width: var(--measure); }

/* photographs: rounded, raised, with a faint paper edge */
.photo { position: relative; border-radius: var(--r-3); overflow: hidden; background: var(--stone); box-shadow: var(--sh-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 -40px 60px -40px rgba(16, 24, 38, .25); pointer-events: none; }

/* stack: a big photo with a smaller print laid over one corner */
.stack { position: relative; padding: 0 0 12% 0; }
.stack .photo.main { aspect-ratio: 5 / 4; width: 88%; }
.stack .photo.print { position: absolute; right: 2%; bottom: 0; width: 42%; aspect-ratio: 4 / 5; border: 8px solid var(--ivory-2); border-radius: var(--r-2); box-shadow: var(--sh-3); transform: rotate(2.5deg); }
.stack .photo.print::after { border-radius: 2px; }
.stack.left .photo.main { margin-left: auto; }
.stack.left .photo.print { right: auto; left: 2%; transform: rotate(-2.5deg); }
.on-navy .stack .photo.print { border-color: #2B3E5C; }

/* numbered steps (a real sequence) */
.steps { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: var(--s-4); align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ivory-2); border: 1px solid var(--stone-2);
  box-shadow: var(--sh-1); font: 700 1.15rem/1 var(--font-head); color: var(--copper-2); }
.steps b { display: block; font: 650 1.2rem/1.25 var(--font-head); color: var(--navy); margin: .45rem 0 .15rem; }
.steps span { color: var(--ink-2); }

/* ---------------------------------------------------------------- courses (on navy) */
.courses { position: relative; overflow: hidden; }
.courses::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 600px at 85% -10%, rgba(176, 96, 43, .16), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(80, 110, 160, .18), transparent 60%); pointer-events: none; }
.courses > .wrap { position: relative; }
.courses-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.courses-top .section-head { margin-bottom: 0; }
.duo { position: relative; height: clamp(220px, 18vw + 90px, 320px); }
.duo .photo { position: absolute; box-shadow: var(--sh-navy); }
.duo .a { width: 62%; aspect-ratio: 4 / 5; right: 0; top: 0; transform: rotate(2deg); }
.duo .b { width: 50%; aspect-ratio: 4 / 5; left: 4%; top: 18%; transform: rotate(-3deg); border: 6px solid #2B3E5C; border-radius: var(--r-2); }

.filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-6); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-navy); border-radius: var(--r-pill); }
.seg button { font: 600 var(--fs-small)/1 var(--font-body); color: var(--on-navy-2); background: transparent; border: 0; padding: .7rem 1.05rem; min-height: 42px; border-radius: var(--r-pill); cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast); }
.seg button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.seg button[aria-pressed="true"] { background: var(--ivory); color: var(--navy); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .4); }
.grade { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 600; font-size: var(--fs-small); color: var(--on-navy-2); }
.grade select { font: 600 var(--fs-small) var(--font-body); color: var(--on-navy); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-navy); border-radius: var(--r-pill); padding: .65rem 2.4rem .65rem 1rem; min-height: 42px;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.grade select option { color: var(--ink); }
.cnone { color: var(--on-navy-2); }

.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, .6rem + 1.2vw, 1.75rem); }
.card { position: relative; display: flex; flex-direction: column; background: var(--navy-2); border-radius: var(--r-3); overflow: hidden; color: var(--on-navy); text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, var(--sh-navy); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.card[hidden] { display: none; }
.card .img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-3); }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.card .body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-5); flex: 1; }
.card .t { font: 650 1.4rem/1.15 var(--font-head); color: #FFF9EE; letter-spacing: -.01em; }
.card p { color: var(--on-navy-2); font-size: var(--fs-small); line-height: 1.55; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-1); }
.card .meta span { font-size: var(--fs-tiny); font-weight: 600; color: var(--on-navy-2); padding: .3rem .6rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .07); }
.card .meta .faith { color: #F2D3B9; background: rgba(176, 96, 43, .26); }
.card .go { margin-top: auto; padding-top: var(--s-3); }
.card:hover { color: var(--on-navy); }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 4px 8px rgba(0, 0, 0, .2), 0 34px 60px -24px rgba(0, 0, 0, .7); }
  .card:hover .img img { transform: scale(1.045); }
  .card:hover .more::after, .row a.more:hover::after { transform: translate(3px, 0) rotate(45deg); }
}
/* the featured course runs the full width: photo beside text */
.card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: linear-gradient(135deg, #2A3F60, var(--navy-2)); }
.card.wide .img { aspect-ratio: auto; min-height: 340px; }
.card.wide .body { padding: clamp(1.5rem, 1rem + 2vw, 3rem); justify-content: center; gap: var(--s-4); }
.card.wide .t { font-size: var(--fs-h3); }
.card.wide p { font-size: var(--fs-body); max-width: 46ch; }
.card.wide .kicker { font-size: var(--fs-small); font-weight: 650; color: var(--copper-soft); }
.courses-foot { margin-top: var(--s-6); color: var(--on-navy-2); font-size: var(--fs-small); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }

/* ---------------------------------------------------------------- parent tools: editorial rows */
.rows { display: grid; gap: clamp(4rem, 3rem + 4vw, 7rem); }
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.row:nth-child(even) .row-photo { order: 2; }
.row-photo { position: relative; }
.row-photo .photo { aspect-ratio: 5 / 4; }
.row-photo::before { content: ""; position: absolute; inset: 8% -4% -6% 10%; border-radius: var(--r-4); background: var(--stone); z-index: -1; transform: rotate(-1.5deg); }
.row:nth-child(even) .row-photo::before { inset: 8% 10% -6% -4%; transform: rotate(1.5deg); }
.row-copy { display: grid; gap: var(--s-4); align-content: start; }
.row-copy p { color: var(--ink-2); font-size: 1.09rem; line-height: 1.65; max-width: 52ch; }
.row-copy ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.row-copy li { font-size: var(--fs-small); font-weight: 600; color: var(--navy); background: var(--ivory-2); border: 1px solid var(--line); padding: .35rem .8rem; border-radius: var(--r-pill); box-shadow: var(--sh-1); }
.row-copy .actions { margin-top: var(--s-2); }

/* ---------------------------------------------------------------- landscape band */
.band { position: relative; min-height: clamp(560px, 74vh, 760px); display: flex; align-items: flex-end; color: var(--on-navy); isolation: isolate; overflow: hidden; background: var(--navy-3); }
.band > picture { position: absolute; inset: 0; z-index: -2; }
.band > picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 19, 32, .55) 0%, rgba(12, 19, 32, 0) 45%); }
.band .wrap { padding-top: var(--s-10); padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
.band-copy { max-width: 36rem; display: grid; gap: var(--s-4); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-4); background: rgba(16, 26, 43, .84); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); }
.band-copy h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); }
.band-copy p { font-size: 1.12rem; color: #E6DFD0; line-height: 1.6; }
.band-copy .actions { margin-top: var(--s-2); }

/* ---------------------------------------------------------------- promise */
.promise { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.promise .photo { aspect-ratio: 5 / 4; }
.promise-copy { display: grid; gap: var(--s-4); }
.promise-copy p { color: var(--ink-2); font-size: 1.09rem; line-height: 1.65; max-width: 56ch; }
.pledges { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: grid; gap: var(--s-3); }
.pledges li { display: grid; grid-template-columns: 26px 1fr; gap: var(--s-3); align-items: start; font-weight: 600; color: var(--navy); }
.pledges li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: 0 2px 6px -2px rgba(147, 80, 31, .6); }

/* ---------------------------------------------------------------- motion: one opening moment, plus feedback */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: hc-settle 1.8s var(--ease) both; }
  .hero-copy > * { animation: hc-rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .rail { animation: hc-rise .9s var(--ease) .3s both; }
}
@keyframes hc-settle { from { transform: scale(1.07); filter: saturate(.85) brightness(.92); } to { transform: none; filter: none; } }
@keyframes hc-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail a + a::before { display: none; }
  .rail a:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .rail a:nth-child(even) { border-left: 1px solid var(--line); }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .split, .row, .promise, .courses-top { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child, .row:nth-child(even) .row-photo { order: 0; }
  .duo { display: none; }
  .card.wide { grid-template-columns: minmax(0, 1fr); }
  .card.wide .img { min-height: 0; aspect-ratio: 3 / 2; }
  footer.site .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.site .fabout { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --fs-body: 1.0625rem; }
  .hero { min-height: 0; align-items: stretch; }
  .hero-photo img { object-position: 50% 50%; }
  .hero::before { background: linear-gradient(0deg, rgba(12, 19, 32, .94) 0%, rgba(12, 19, 32, .72) 46%, rgba(12, 19, 32, .2) 76%, rgba(12, 19, 32, .35) 100%); }
  .hero-inner { padding-top: 36vh; padding-bottom: 7rem; }
  .hero .actions .btn { flex: 1 1 100%; }
  .rail-wrap { margin-top: -4.5rem; }
  .rail { grid-template-columns: minmax(0, 1fr); border-radius: var(--r-3); }
  .rail a { grid-template-columns: 52px 1fr; padding: var(--s-4); }
  .rail a:nth-child(n) { border-left: 0; }
  .rail a + a { border-top: 1px solid var(--line); }
  .rail img { width: 52px; height: 52px; }
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .stack .photo.main { width: 92%; }
  .seg { width: 100%; }
  .seg button { padding: .7rem .6rem; }
  .row-photo::before { inset: 6% -2% -4% 6%; }
  .band { min-height: 560px; }
  footer.site .fgrid { grid-template-columns: minmax(0, 1fr); }
  .card .img { aspect-ratio: 16 / 9; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-3); }
  .seg button { border-radius: var(--r-2); }
  .grade { width: 100%; } .grade select { flex: 1; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.12rem; gap: .5rem; }
  .brand svg { width: 32px; height: 26px; }
}

@media print {
  header.nav, .rail-wrap, .filter, .duo { display: none !important; }
  .hero, .band, .on-navy { color: #000; background: none; min-height: 0; }
  .hero::before, .band::before, .hero-photo, .band > picture { display: none; }
  .card { box-shadow: none; border: 1px solid #ccc; color: #000; background: #fff; }
}

/* ---------------------------------------------------------------- inside Homeschool Corral: real screens, demonstration data */
.inside { background: linear-gradient(180deg, var(--ivory) 0%, var(--stone) 100%); }
.tour-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: var(--r-pill); width: max-content; max-width: 100%; margin-bottom: var(--s-5); box-shadow: var(--sh-1); }
.tour-tabs [role=tab] { -webkit-appearance: none; appearance: none; font: 650 .975rem/1.2 var(--font-body); letter-spacing: 0; color: var(--navy); background: transparent; border: 1.5px solid transparent; border-radius: var(--r-pill); padding: .7rem 1.15rem; min-height: 46px; white-space: nowrap; cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.tour-tabs [role=tab]:hover { background: rgba(27, 42, 65, .07); border-color: rgba(27, 42, 65, .12); }
.tour-tabs [role=tab][aria-selected=true] { background: var(--navy); color: var(--on-navy); border-color: var(--navy); box-shadow: 0 8px 18px -10px rgba(16, 26, 43, .7); }
.tour-tabs [role=tab]:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--copper); }
.tour-tabs [role=tab][aria-selected=true]:focus-visible { box-shadow: inset 0 0 0 3px var(--copper), 0 8px 18px -10px rgba(16, 26, 43, .7); }
.tour:not(.js) .tour-tabs { display: none; }
.tour:not(.js) .tour-panel + .tour-panel { margin-top: var(--s-7); }
.tour-panel { margin: 0; } .tour-fig { margin: 0; }
.tour-panel[hidden] { display: none; }
.shot-frame { margin: 0; border-radius: var(--r-4); overflow: hidden; background: var(--ivory-2); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.shot-frame img { width: 100%; height: auto; display: block; }
/* the homepage previews: a compact frame with the screen's own proportions (tall pages show their top), space held while loading */
.tour-panel .shot-frame { position: relative; width: 100%; aspect-ratio: var(--ar, 16 / 10); max-height: 440px; background: linear-gradient(100deg, #FFFFFF 30%, #F8F3E8 50%, #FFFFFF 70%) 0 0 / 300% 100%, var(--ivory-2); }
.tour-panel .shot-frame picture { position: absolute; inset: 0; z-index: 1; }
.tour-panel .shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tour-panel .shot-frame.paper { background-color: #fff; max-width: 860px; margin: 0 auto; }
.tour-panel .shot-frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 2; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .94)); pointer-events: none; }
.shot-load { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
.shot-frame.loaded .shot-load { visibility: hidden; }
.shot-frame.loaded { background: var(--ivory-2); }
@media (prefers-reduced-motion: no-preference) { .tour-panel .shot-frame:not(.loaded) { animation: shot-shimmer 1.6s linear infinite; } }
@keyframes shot-shimmer { from { background-position: 100% 0, 0 0; } to { background-position: 0 0, 0 0; } }
.shot-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: .55rem 1rem; font: 650 .9rem/1 var(--font-body); color: var(--on-navy); background: rgba(27, 42, 65, .92); border: 0; border-radius: var(--r-pill); box-shadow: 0 8px 20px -10px rgba(16, 26, 43, .8); cursor: pointer; }
.shot-zoom:hover { background: var(--navy); }
.shot-zoom:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
.shot-dlg { width: min(1200px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: var(--r-4); background: var(--ivory); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.shot-dlg::backdrop { background: rgba(16, 26, 43, .72); }
.shot-dlg[open] { display: flex; flex-direction: column; }
.shot-dlg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.shot-dlg-bar h2 { margin: 0; font-size: 1.15rem; }
.shot-dlg-body { overflow: auto; flex: 1; background: #fff; }
.shot-dlg-body:focus-visible { outline: 3px solid var(--copper); outline-offset: -3px; }
.shot-dlg-body img { display: block; width: 100%; height: auto; }
.shot-dlg-cap { margin: 0; padding: 10px 16px 14px; font-size: var(--fs-small); color: var(--ink-2); border-top: 1px solid var(--line); }
html.dlg-open { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tour-panel figcaption, figure.shot-frame figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.demo { display: inline-block; font-size: var(--fs-tiny); font-weight: 650; color: #7A5413; background: #FFFFFF; border: 1px dashed #C9A86A; border-radius: var(--r-pill); padding: 1px 10px; }
.coop-sec figure.shot-frame { overflow: visible; background: none; border: 0; box-shadow: none; }
.coop-sec figure.shot-frame picture { display: block; border-radius: var(--r-4); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-3); background: var(--ivory-2); }
@media (max-width: 640px) { .tour-tabs { flex-wrap: nowrap; overflow-x: auto; width: auto; border-radius: var(--r-3); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; } .tour-tabs [role=tab] { flex: none; scroll-snap-align: start; padding: .6rem .9rem; font-size: .95rem; } .tour-panel .shot-frame { max-height: 320px; } .shot-zoom { right: 8px; bottom: 8px; } }
.section-head > .tag, .split-copy > .tag { justify-self: start; width: max-content; }

/* ---------------------------------------------------------------- hero: real screens beside the words (wide screens only) */
.hero-shot { display: none; }
@media (min-width: 1081px) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: clamp(2rem, 1rem + 3vw, 4rem); }
  .hero-shot { display: block; position: relative; margin: 0; height: 430px; align-self: end; margin-bottom: 1rem; }
  .hero-shot .hs-back, .hero-shot .hs-front { position: absolute; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .12); }
  .hero-shot img { display: block; width: 100%; height: auto; }
  .hero-shot .hs-back { right: 0; top: 0; width: 92%; transform: rotate(2deg); opacity: .96; }
  .hero-shot .hs-front { left: 4%; top: 64px; width: 54%; transform: rotate(-3deg); border-radius: 6px; max-height: 360px; }
  .hero-shot figcaption { position: absolute; right: 0; bottom: -6px; display: flex; gap: 8px; align-items: center; font-size: var(--fs-tiny); color: #F4F5F7; }
}
@media (min-width: 1081px) and (prefers-reduced-motion: no-preference) {
  .hero-shot .hs-back { animation: hs-in 1s var(--ease) .35s both; }
  .hero-shot .hs-front { animation: hs-in2 1s var(--ease) .5s both; }
  @keyframes hs-in { from { opacity: 0; transform: translateY(24px) rotate(2deg); } to { opacity: .96; transform: rotate(2deg); } }
  @keyframes hs-in2 { from { opacity: 0; transform: translateY(30px) rotate(-3deg); } to { opacity: 1; transform: rotate(-3deg); } }
  .hero-shot:hover .hs-front { transform: rotate(-1.5deg) translateY(-6px); transition: transform .5s var(--ease); }
}

/* ---------------------------------------------------------------- photos: a soft blurred copy until the real one arrives */
img.lq { background-size: cover; background-position: center; }
@media (prefers-reduced-motion: no-preference) { img.lq { transition: filter .5s var(--ease); } }

/* ---------------------------------------------------------------- courses: six first, the rest on request */
.cgrid.collapsed .card[data-more] { display: none; }
.cmore-wrap { display: flex; justify-content: center; margin-top: var(--s-5); }
.cmore[hidden] { display: none; }
.on-navy .cmore { color: var(--on-navy); border-color: rgba(255, 255, 255, .35); }
@media (max-width: 640px) { .card .img { aspect-ratio: 2 / 1; } }

/* ---------------------------------------------------------------- join the beta */
.join-sec { background: linear-gradient(180deg, var(--stone) 0%, var(--ivory) 100%); }
.join-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.join-copy { display: grid; gap: var(--s-4); }
.join-copy .tag { justify-self: start; }
.join-copy p { color: var(--ink-2); font-size: 1.09rem; line-height: 1.65; margin: 0; max-width: 48ch; }
.join-copy .join-alt { font-size: 1rem; }
.join-form { background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--r-4); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); box-shadow: var(--sh-2); max-width: none; }

/* ---------------------------------------------------------------- questions parents ask */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-q { border-bottom: 1px solid var(--line); }
.faq-q summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: 1.1rem .25rem; min-height: 56px; font: 650 1.12rem/1.35 var(--font-head); color: var(--navy); }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(27, 42, 65, .2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231B2A41' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 5v10M5 10h10'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform var(--t-fast); }
.faq-q[open] summary::after { transform: rotate(45deg); }
.faq-q summary:hover span { color: var(--copper-2); }
.faq-q summary:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 6px; }
.faq-a { padding: 0 .25rem 1.2rem; }
.faq-a p { margin: 0; color: var(--ink-2); line-height: 1.65; max-width: 62ch; }
@media (max-width: 880px) { .join-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- motion: ease in once while scrolling */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--rv-d, 0ms), transform .7s var(--ease) var(--rv-d, 0ms); }
  .reveal-on .rv.in { opacity: 1; transform: none; }
  .card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
  @media (hover: hover) { .card:hover { transform: translateY(-4px); } }
}
@media print { .rv { opacity: 1 !important; transform: none !important; } }
.cgrid .card[hidden] { display: none !important; }

/* ---------------------------------------------------------------- for parents: three cards side by side (shorter page) */
@media (min-width: 881px) {
  .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, .8rem + 1.5vw, 2rem); }
  .row { grid-template-columns: minmax(0, 1fr); align-items: start; align-content: start; gap: var(--s-5); background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--r-4); padding: var(--s-4) var(--s-4) var(--s-5); box-shadow: var(--sh-2); }
  .row:nth-child(even) .row-photo { order: 0; }
  .row-photo::before { display: none; }
  .row-photo .photo { aspect-ratio: 16 / 10; }
  .row-copy { padding: 0 var(--s-2); }
  .row-copy p { font-size: 1rem; }
  .row-copy h3 { font-size: 1.45rem; }
}
@media (max-width: 880px) { .rows { gap: clamp(2.5rem, 2rem + 3vw, 4rem); } .row-photo .photo { aspect-ratio: 16 / 10; } }

/* ---------------------------------------------------------------- tighter rhythm: a shorter page that still breathes */
.section { padding: calc(var(--section) * .8) 0; }
.band { min-height: clamp(460px, 60vh, 620px); }
@media (max-width: 640px) {
  .stack { display: none; }                 /* decorative photos beside "Start with a plan" */
  .promise > .photo { display: none; }      /* decorative photo beside the privacy promise */
  .band { min-height: 440px; }
  .row-photo .photo { aspect-ratio: 2 / 1; }
}

/* ---------------------------------------------------------------- beside each account action: the beta's invite rule, one line (17 Oct 2026) */
.hero-try { max-width: 60ch; }
.hero-try a { color: #FFF9EE; font-weight: 650; text-decoration-color: var(--copper-soft); text-underline-offset: .18em; }
.split-copy > p.btn-note, p.btn-note { margin: calc(-1 * var(--s-2)) 0 0; font-size: var(--fs-small); color: var(--ink-2); max-width: 52ch; line-height: 1.5; }
.btn-note a, #parents .section-head p a { color: var(--navy); font-weight: 650; text-underline-offset: .18em; }

/* ---------------------------------------------------------------- each day: kid mode and the record book, real screens (17 Oct 2026) */
.each-day { background: linear-gradient(180deg, var(--ivory) 0%, var(--stone) 100%); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, .8rem + 1.5vw, 2rem); }
.pair-card { display: grid; gap: var(--s-3); align-content: start; background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--r-4); padding: var(--s-4) var(--s-4) var(--s-5); box-shadow: var(--sh-2); }
.pair-fig { margin: 0; }
.pair-card .shot-frame { position: relative; aspect-ratio: 5 / 4; background: #fff; }
.pair-card .shot-frame picture { position: absolute; inset: 0; }
.pair-card .shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pair-card figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.pair-card h3 { font-size: 1.45rem; margin: var(--s-2) var(--s-2) 0; }
.pair-card p { margin: 0 var(--s-2); color: var(--ink-2); line-height: 1.6; }
.pair-note { margin: var(--s-6) 0 0; max-width: var(--measure); color: var(--ink-2); line-height: 1.55; }
.pair-note a { color: var(--navy); font-weight: 650; }
@media (max-width: 880px) { .pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pair-card .shot-frame { aspect-ratio: 4 / 3; } }

/* ---------------------------------------------------------------- funding: find, understand, track, export (6 Oct 2026) */
.fund-sec { background: linear-gradient(180deg, var(--stone) 0%, var(--ivory) 100%); }
.fund-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); counter-reset: none; }
.fund-steps li { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s-3); padding: var(--s-6) var(--s-5) var(--s-5); background: var(--ivory-2); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--sh-1); }
.fund-steps li + li::before { content: ""; position: absolute; left: calc(-1 * var(--s-5)); top: 2.6rem; width: var(--s-5); height: 2px; background: var(--copper-soft); opacity: .7; }
.fund-n { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--navy); color: #FFF9EE; font: 650 1.15rem/1 var(--font-head); }
.fund-steps h3 { font: 650 1.3rem/1.2 var(--font-head); color: var(--navy); margin: 0; }
.fund-steps p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.fund-steps a { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 650; color: var(--navy); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--copper-soft); }
.fund-steps a svg { width: 1rem; height: 1rem; flex: none; }
.fund-steps a:hover { color: var(--copper-2); }
.fund-note { margin: var(--s-6) 0 0; max-width: var(--measure); padding: var(--s-4) var(--s-5); border-left: 3px solid var(--copper); background: var(--ivory-2); border-radius: 0 var(--r-3) var(--r-3) 0; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 1080px) { .fund-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fund-steps li:nth-child(odd)::before { display: none; } }
@media (max-width: 640px) { .fund-steps { grid-template-columns: minmax(0, 1fr); } .fund-steps li::before { display: none; } }
@media print { .fund-steps { grid-template-columns: 1fr 1fr; } .fund-steps li { box-shadow: none; break-inside: avoid; } }
/* phone: the hero's button within the first screen (23 Oct 2026 review: it started at 817px of 844) */
@media (max-width: 640px) { .hero { min-height: 0; align-items: flex-start; } .hero-inner { padding-top: 36px; padding-bottom: 3.5rem; } }
