/* Louie's public page. Tokens come from base.css. Sections are full-width bands with a .wrap inside. */
main { max-width: none; padding: 0; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--s4); }
.narrow { max-width: var(--measure); }
.center { text-align: center; }
.band { padding: var(--s7) 0; }
.band-tint { background: var(--band); }
.band h2 { margin: 0 0 var(--s5); font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
.band h2:has(+ .sub) { margin-bottom: var(--s3); }
.sub { color: var(--ink-soft); font-size: 1.125rem; line-height: 1.6; max-width: 38rem; margin: 0 auto var(--s7); text-wrap: pretty; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.hero { padding: var(--s6) 0 var(--s7); }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }
.hero-text h1 { font-size: clamp(2rem, 8vw, 3.25rem); margin-bottom: var(--s4); }
.hero-text p:not(.cta-row) { margin-bottom: var(--s5); }
/* A small line above the headline, like a rating line: icon and short text, no box. */
.eyebrow { display: flex; align-items: center; gap: var(--s2); font-size: .9375rem; font-weight: 600; color: var(--ink-soft); }
.hero-text .eyebrow { margin-bottom: var(--s3); }
.eyebrow .icon { width: 1.25em; height: 1.25em; color: var(--coral); }
.hero-dek { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); max-width: 30rem; text-wrap: pretty; }
.mark { display: inline-block; font-weight: 800; font-size: clamp(1.25rem, 5vw, 1.75rem); line-height: 1.2; padding: var(--s1) var(--s3); background: var(--lime); color: var(--onyx); border-radius: 8px; }
/* Photos come in a <picture> (AVIF, WebP, fallback); the img stays the layout item. */
.hero-grid picture, .meet picture, .thanks picture { display: contents; }
/* Without this the <source> tags take grid cells too and push the photo into the next row. */
picture > source { display: none; }
.hero-photo { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 2px solid var(--edge); aspect-ratio: 3 / 2; object-fit: cover; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0; }
.chip { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9375rem; }
.chip .icon { width: 1.25em; height: 1.25em; color: var(--coral); }
.chips { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }

.icon-disc { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--disc); margin-bottom: var(--s4); }
.icon-disc .icon { width: 1.75rem; height: 1.75rem; }

/* The sessions band has no visible heading, so it sits evenly round the cards instead of the full section gap. */
@media (min-width: 48rem) { #sessions { padding-block: var(--s8); } }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); grid-template-columns: 1fr; }
.session-card { margin: 0; padding: var(--s6) var(--s5); }
.session-card h3 { margin-bottom: var(--s2); }
.session-card p { color: var(--ink-soft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s7) var(--s5); grid-template-columns: 1fr; }
.steps h3 { margin-bottom: var(--s2); }
.steps p { color: var(--ink-soft); max-width: 16rem; margin-inline: auto; }
/* Phones: the steps are a plain left-aligned list with keylines between rows, the icon beside the text. */
@media (max-width: 39.99rem) {
  .steps { gap: 0; text-align: left; }
  .steps li { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: var(--s4); padding-block: var(--s4); border-top: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 1px solid var(--line); }
  .steps .icon-disc { grid-row: span 2; width: 2.75rem; height: 2.75rem; margin: 0; }
  .steps .icon-disc .icon { width: 1.375rem; height: 1.375rem; }
  .steps h3 { margin-bottom: var(--s1); }
  .steps p { max-width: none; margin: 0; }
}

.price-cards { display: grid; gap: var(--s5); max-width: 38rem; margin: var(--s7) auto var(--s6); }
.price-card { position: relative; margin: 0; padding: var(--s6) var(--s5); text-align: center; }
.price-card h3 { margin-bottom: var(--s2); }
.price-card .price { font-size: 3rem; font-weight: 800; margin: 0 0 var(--s1); line-height: 1.1; }
.price-card .muted { margin: 0; }
.price-card-accent { border: 2px solid var(--edge); }
.flag { position: absolute; top: calc(var(--s3) * -1); right: var(--s4); background: var(--lime); color: var(--onyx); border-color: var(--onyx); }
.reassure { display: flex; align-items: center; justify-content: center; gap: var(--s2); margin: 0; font-weight: 600; text-align: left; text-wrap: balance; }
.reassure .icon { color: var(--ok); }

.meet { display: grid; gap: var(--s5); align-items: center; }
.meet-photo { width: 100%; max-width: 22rem; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--edge); display: block; }
/* Meet Louie: five photos in the photo frame (/js/meet.js moves them along and shows the controls).
   From 48rem a stack: the front whole, two peeking out below, smaller and shaded; the front lifts away and the next
   comes forward, straight with no tilt. Phones: a row to swipe like the Zebbo hero, neighbours peeking, smaller and
   faded. Only transform and opacity animate, so it stays smooth. */
.meet-deck { width: 100%; max-width: 22rem; min-width: 0; }
.meet-card { position: relative; margin: 0; }
.meet-card::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: #000; opacity: 0; pointer-events: none; }
.meet-controls { display: flex; align-items: center; justify-content: center; gap: var(--s3); margin-top: var(--s4); }
.meet-controls[hidden] { display: none; }
.meet-dots { display: flex; align-items: center; gap: var(--s1); }
.meet-dot { display: grid; place-items: center; width: auto; min-width: .75rem; height: 1.75rem; padding: 0; border: 0; background: none; cursor: pointer; }
.meet-dot::before { content: ""; width: .5rem; height: .5rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 30%, transparent); transition: width .3s ease, background-color .3s ease; }
.meet-dot[aria-pressed="true"]::before { width: 1.25rem; background: var(--coral); }
.meet-dot:focus-visible, .meet-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.meet-arrow { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.5rem; height: 2.5rem; padding: 0; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.meet-arrow:hover { background: var(--lime); color: var(--onyx); border-color: var(--onyx); }
.meet-arrow .icon { width: 1.25rem; height: 1.25rem; }

@media (min-width: 48rem) {
  .meet-track { display: grid; padding-bottom: 2rem; }
  .meet-card { grid-area: 1 / 1; transform-origin: 50% 100%; will-change: transform, opacity; transition: transform .8s cubic-bezier(.65, 0, .35, 1), opacity .8s cubic-bezier(.65, 0, .35, 1); }
  .meet-card::after { transition: opacity .8s cubic-bezier(.65, 0, .35, 1); }
  .meet-card[data-pos="0"] { z-index: 4; }
  .meet-card[data-pos="1"] { z-index: 3; transform: translateY(1rem) scale(.93); }
  .meet-card[data-pos="1"]::after { opacity: .3; }
  .meet-card[data-pos="2"] { z-index: 2; transform: translateY(2rem) scale(.86); }
  .meet-card[data-pos="2"]::after { opacity: .5; }
  .meet-card[data-pos="back"] { z-index: 1; transform: translateY(2rem) scale(.86); opacity: 0; transition: none; }
  .meet-card[data-pos="back"]::after { opacity: .5; transition: none; }
  .meet-card[data-pos="out"] { z-index: 5; transform: translateY(-1.5rem) scale(1.03); opacity: 0; pointer-events: none; transition: transform .8s cubic-bezier(.23, 1, .32, 1), opacity .6s cubic-bezier(.23, 1, .32, 1); }
  .meet-controls { margin-top: var(--s3); }
}

@media (max-width: 47.99rem) {
  .meet-deck { max-width: none; }
  .meet-track { --slide: 78%; --gap: var(--s3); display: flex; gap: var(--gap); margin-inline: calc(var(--s4) * -1); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .meet-track::-webkit-scrollbar { display: none; }
  .meet-track::before, .meet-track::after { content: ""; flex: 0 0 calc((100% - var(--slide)) / 2 - var(--gap)); }
  .meet-card { flex: 0 0 var(--slide); scroll-snap-align: center; transition: transform .3s ease, opacity .3s ease; }
  .meet-card:not([data-pos="0"]) { opacity: .45; transform: scale(.94); }
  .meet-card .meet-photo { max-width: none; }
  .meet-arrow { display: none; }
}
.meet-text h2 { margin-bottom: var(--s4); }
.meet-text p { font-size: 1.125rem; line-height: 1.6; max-width: 34rem; text-wrap: pretty; }
.meet-social { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.meet-social .icon { width: 1.25rem; height: 1.25rem; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 var(--s4); margin-bottom: var(--s3); }
summary { min-height: calc(var(--control) + var(--s3)); padding-block: var(--s2); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
/* Chevron on the right: points down when closed, up when open. */
summary .icon { flex: none; width: 1.5rem; height: 1.5rem; color: var(--ink-soft); transition: transform .2s ease; }
details[open] summary .icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { summary .icon { transition: none; } }
details p { margin-bottom: var(--s4); }
.closed { background: var(--lime); color: var(--onyx); border: 2px solid var(--onyx); border-radius: var(--radius); padding: var(--s4); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Phones and tablets: the photo leads, edge to edge, straight under the header. */
@media (max-width: 59.99rem) {
  .band.hero { padding-top: 0; }
  .hero-photo { order: -1; width: calc(100% + 2 * var(--s4)); max-width: none; margin-inline: calc(var(--s4) * -1); border: 0; border-radius: 0; }
}
/* Phones and tablets: the header's Book button waits until the hero's buttons have scrolled away and steps aside
   at the booking section (/js/header.js adds .show-cta). On tablets it keeps its space. */
.header-cta { transition: opacity .2s ease, transform .2s cubic-bezier(.23, 1, .32, 1), visibility .2s; }
@media (max-width: 59.99rem) {
  body:has(.hero .cta-row) .site-header:not(.show-cta) .header-cta { opacity: 0; visibility: hidden; transform: translateY(-6px); }
}
/* Phones: with the Book button away it gives up its space and the logo takes the room (30px slim header). */
@media (max-width: 47.99rem) {
  body:has(.hero .cta-row) .header-end { position: relative; }
  body:has(.hero .cta-row) .site-header:not(.show-cta) .header-cta { position: absolute; right: 100%; }
  body:has(.hero .cta-row) .site-header:not(.show-cta) .brand img { height: 40px; }
  body:has(.hero .cta-row) .site-header.is-compact:not(.show-cta) .brand img { height: 30px; }
}
/* Phones: the hero buttons stack full width, edge to edge with the text. */
@media (max-width: 39.99rem) { .hero .cta-row { display: grid; } }
@media (min-width: 48rem) and (max-width: 59.99rem) {
  .hero-photo { width: calc(100% + 2 * var(--s6)); margin-inline: calc(var(--s6) * -1); }
}
@media (min-width: 40rem) {
  .hero-dek { font-size: 1.125rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 48rem) {
  .wrap { padding: 0 var(--s6); }
  .band { padding: var(--s8) 0; }
  .meet { grid-template-columns: 22rem 1fr; gap: var(--s7); }
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: var(--s7); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .band { padding: var(--s9) 0; }
  .hero { padding: var(--s8) 0 var(--s9); }
}

/* Intro, on every home visit (src/intro.ts). Pure CSS, so it also plays and leaves without JS;
   /js/intro.js only lets a tap or key skip it. About 2.9s: high five, ting, wordmark, then the curtain lifts. */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--ground); color: var(--ink); animation: intro-lift .75s cubic-bezier(.77, 0, .175, 1) 2.2s forwards; }
.intro-logo { width: min(68vw, 320px); height: auto; overflow: visible; animation: intro-logo-out .5s cubic-bezier(.77, 0, .175, 1) 2.15s forwards; }
.intro-logo g { transform-box: fill-box; }
/* 1. The two figures swing in and meet, a little past the touch, then settle. */
.intro-left, .intro-right { transform-origin: 50% 100%; animation: intro-left .65s cubic-bezier(.23, 1, .32, 1) .15s both; }
.intro-right { animation-name: intro-right; }
@keyframes intro-left { 0% { opacity: 0; transform: translate(-70px, 24px) rotate(-14deg); } 60% { opacity: 1; transform: translate(6px, -2px) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes intro-right { 0% { opacity: 0; transform: translate(70px, 24px) rotate(14deg); } 60% { opacity: 1; transform: translate(-6px, -2px) rotate(-2deg); } 100% { opacity: 1; transform: none; } }
/* 2. Ting: each dash bursts out from the hands along its own line and stays. */
.intro-ting path { transform-box: fill-box; transform-origin: center; animation: intro-ting .5s cubic-bezier(.23, 1, .32, 1) .62s both; }
.intro-ting path:nth-child(1) { --x: -49px; --y: -31px; }
.intro-ting path:nth-child(2) { --x: -14px; --y: -48px; animation-delay: .66s; }
.intro-ting path:nth-child(3) { --x: 21px; --y: -34px; animation-delay: .7s; }
@keyframes intro-ting { 0% { opacity: 0; transform: translate(calc(var(--x) * -.6), calc(var(--y) * -.6)) scale(.3); } 45% { opacity: 1; transform: translate(calc(var(--x) * .12), calc(var(--y) * .12)) scale(1.15); } 100% { opacity: 1; transform: none; } }
/* 3. The wordmark rises letter by letter, then the line under it. */
.intro-word > g { transform-origin: 50% 100%; animation: intro-letter .45s cubic-bezier(.34, 1.56, .64, 1) both; }
.intro-word > g:nth-child(1) { animation-delay: 1s; }
.intro-word > g:nth-child(2) { animation-delay: 1.045s; }
.intro-word > g:nth-child(3) { animation-delay: 1.09s; }
.intro-word > g:nth-child(4) { animation-delay: 1.135s; }
.intro-word > g:nth-child(5) { animation-delay: 1.18s; }
.intro-word > g:nth-child(6) { animation-delay: 1.225s; }
.intro-word > g:nth-child(7) { animation-delay: 1.27s; }
.intro-word > g:nth-child(8) { animation-delay: 1.315s; }
@keyframes intro-letter { 0% { opacity: 0; transform: translateY(36px) scale(.9); } 100% { opacity: 1; transform: none; } }
.intro-tag { animation: intro-fade .5s cubic-bezier(.23, 1, .32, 1) 1.55s both; }
@keyframes intro-fade { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
/* 4. The curtain lifts and the logo drifts up with it; the hero photo settles and the hero text rises in. */
@keyframes intro-lift { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes intro-lift-now { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes intro-logo-out { 100% { opacity: 0; transform: translateY(-40px); } }
.intro + .hero { --intro-start: 2.45s; overflow: clip; }
.intro + .hero .hero-photo { animation: intro-photo 1.1s cubic-bezier(.23, 1, .32, 1) calc(var(--intro-start) - .25s) both; }
@keyframes intro-photo { 0% { transform: scale(1.08); } 100% { transform: none; } }
.intro + .hero .hero-text > * { animation: intro-rise .6s cubic-bezier(.23, 1, .32, 1) both; }
.intro + .hero .hero-text > :nth-child(1) { animation-delay: var(--intro-start); }
.intro + .hero .hero-text > :nth-child(2) { animation-delay: calc(var(--intro-start) + 70ms); }
.intro + .hero .hero-text > :nth-child(3) { animation-delay: calc(var(--intro-start) + 140ms); }
.intro + .hero .hero-text > :nth-child(4) { animation-delay: calc(var(--intro-start) + 210ms); }
.intro + .hero .hero-text > :nth-child(5) { animation-delay: calc(var(--intro-start) + 280ms); }
@keyframes intro-rise { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: none; } }
/* Skipped with a tap or key: lift now, hero follows straight away. */
.intro.is-skipped { animation: intro-lift-now .4s cubic-bezier(.77, 0, .175, 1) forwards; }
.intro.is-skipped .intro-logo { animation: intro-logo-out .3s cubic-bezier(.77, 0, .175, 1) forwards; }
.intro.is-skipped + .hero { --intro-start: .2s; }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .intro + .hero .hero-photo, .intro + .hero .hero-text > * { animation: none; }
}

/* Request sent: the photo beside Louie's thanks and what happens next. */
.thanks { display: grid; gap: var(--s6); align-items: center; }
.thanks-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 22%; border-radius: var(--radius); border: 2px solid var(--edge); }
.thanks-text h1 { margin: 0 0 var(--s3); font-size: clamp(2rem, 7vw, 3rem); }
.thanks-lead { margin: 0 0 var(--s3); max-width: 32rem; font-size: 1.125rem; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.thanks-text h2 { margin: var(--s6) 0 var(--s3); font-size: 1.125rem; }
.next-steps { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; gap: var(--s3); }
.next-steps li { display: flex; align-items: center; gap: var(--s3); font-weight: 600; line-height: 1.4; }
.next-steps .icon-disc { flex: none; width: 2.5rem; height: 2.5rem; margin: 0; }
.next-steps .icon-disc .icon { width: 1.25rem; height: 1.25rem; }
@media (min-width: 48rem) {
  .thanks { grid-template-columns: 22rem 1fr; gap: var(--s8); }
  .thanks-photo { aspect-ratio: 3 / 4; }
}
