/* stropk.ai page layout, on top of css/ds.css. Only tokens from the design system. */

html { scroll-padding-top: var(--space-24); }
img, video { max-width: 100%; }
main:focus { outline: none; }

.skip { position: absolute; left: var(--space-16); top: -80px; z-index: 10; padding: var(--space-8) var(--space-16); background: var(--button-fill); color: var(--on-button); border-radius: var(--radius-8); }
.skip:focus { top: var(--space-16); }

.link { color: var(--ink-muted); text-decoration: underline; text-decoration-color: var(--line-control); text-underline-offset: 4px; transition: color 150ms ease; }
.link:hover { color: var(--ink); }

/* Hero: the headline, then the video as the biggest thing on the screen */
.hero { padding: var(--space-48) 0 0; }
.hero__in { display: flex; flex-direction: column; align-items: center; gap: var(--space-32); text-align: center; }
.hero__title { max-width: 1040px; }
.hero__lede { max-width: 640px; }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-12); }

/* The soft glow behind the hero video (Owen 11-10: keep this from the redesign) */
.hero { overflow-x: clip; }
.stage { position: relative; isolation: isolate; display: flex; justify-content: center; width: 100%; }
.stage::before { content: ""; position: absolute; z-index: -1; inset: -14% -8% -10%; background: radial-gradient(closest-side, rgba(242, 242, 244, 0.2), rgba(242, 242, 244, 0.06) 55%, transparent); filter: blur(32px); pointer-events: none; }

/* Keep the whole video on a laptop screen, without going narrower than 640px */
.vsl { position: relative; width: min(100%, max(640px, calc((100svh - 360px) * 16 / 9))); max-width: 1136px; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; background: var(--ground-raised); border: 1px solid var(--line); border-radius: var(--radius-20); }
.vsl video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vsl__play { position: absolute; inset: 0; width: fit-content; height: fit-content; margin: auto; }
.vsl.is-playing .vsl__play { display: none; }

/* Client clip between the hero video and the form */
.proof { padding: var(--space-96) 0 0; }
.proof__in { display: flex; align-items: center; justify-content: center; gap: var(--space-64); }
.clip { position: relative; flex: none; width: 260px; aspect-ratio: 9 / 16; margin: 0; overflow: hidden; background: var(--ground-raised); border: 1px solid var(--line); border-radius: var(--radius-20); }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip__play { position: absolute; left: 50%; bottom: var(--space-24); transform: translateX(-50%); background: var(--button-fill); border-color: var(--button-fill); color: var(--on-button); }
.clip.is-playing .clip__play { display: none; }
.proof__copy { display: flex; flex-direction: column; gap: var(--space-16); max-width: 480px; }
.proof__copy blockquote { margin: 0; }
@media (max-width: 720px) {
  .proof { padding-top: var(--space-64); }
  .proof__in { flex-direction: column; gap: var(--space-32); text-align: center; }
  .clip { width: min(260px, 70vw); }
}

/* Sections */
.head { display: flex; flex-direction: column; align-items: center; gap: var(--space-16); max-width: 760px; margin: 0 auto var(--space-64); text-align: center; }
.narrow { display: flex; flex-direction: column; align-items: center; gap: var(--space-32); max-width: 960px; }
.narrow .lede { max-width: 680px; }
.book { padding-top: var(--space-96); }
.page-hero { padding: var(--space-96) 0 var(--space-64); }
.page-hero .st-page { display: flex; flex-direction: column; align-items: center; gap: var(--space-24); }
.page-hero .h1 { max-width: 960px; }
.page-hero .lede { max-width: 680px; }
.section-tight { padding: 0 0 var(--space-64); }
.closing .st-page { display: flex; flex-direction: column; align-items: center; gap: var(--space-24); }
.closing .lede { max-width: 640px; margin-bottom: var(--space-8); }
.nf { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-16) var(--space-32); margin-top: var(--space-8); }

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.prose { display: flex; flex-direction: column; gap: var(--space-24); max-width: 680px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Calendar */
.cal { display: flex; flex-direction: column; align-items: center; gap: var(--space-24); }
.cal__embed { position: relative; width: 100%; min-height: 640px; }
.cal__embed::before { content: "Loading open times…"; position: absolute; top: var(--space-64); left: 0; right: 0; z-index: 0; text-align: center; font-size: 14px; line-height: 22px; color: var(--ink-faint); }
.cal__embed > * { position: relative; z-index: 1; }
.cal__open { text-decoration: underline; text-underline-offset: 4px; transition: color 150ms ease; }
.cal__open:hover { color: var(--ink); }

/* Step form in front of the calendar: one question per screen */
[hidden] { display: none !important; }
.intake__start { display: flex; flex-direction: column; align-items: center; gap: var(--space-24); text-align: center; }
.intake__start .h2 { max-width: 760px; }
.intake__form { display: flex; flex-direction: column; gap: var(--space-24); width: 100%; max-width: 560px; margin: 0 auto; }
.intake__progress { display: flex; flex-direction: column; gap: var(--space-8); }
.intake__bar { height: 6px; overflow: hidden; background: var(--line); border-radius: var(--radius-pill); }
.intake__bar span { display: block; width: 0; height: 100%; background: var(--ink); border-radius: var(--radius-pill); transition: width 250ms ease; }
.intake__step { display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; margin: 0; padding: 0; border: 0; animation: intake-in 200ms ease; }
fieldset.intake__step { display: block; }
.intake__q { display: block; width: 100%; margin: 0 0 var(--space-8); padding: 0; font: 500 28px/34px var(--font-sans); letter-spacing: -0.02em; color: var(--ink); }
fieldset.intake__step .intake__q { margin-bottom: var(--space-24); }
.intake__choices { display: flex; flex-direction: column; gap: var(--space-12); }
.intake__choice { display: flex; align-items: center; min-height: 56px; padding: var(--space-12) var(--space-16); background: var(--ground-raised); border: 1px solid var(--line-control); border-radius: var(--radius-8); font: 400 16px/24px var(--font-sans); color: var(--ink); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease; -webkit-tap-highlight-color: transparent; }
.intake__choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.intake__choice:hover { border-color: var(--ink); }
.intake__choice:has(input:checked) { background: var(--button-fill); border-color: var(--button-fill); color: var(--on-button); }
.intake__choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
/* The two consent boxes on the last screen: real checkboxes, both unticked, neither required. */
.intake__checks { display: flex; flex-direction: column; gap: var(--space-12); margin-top: var(--space-8); }
.intake__check { display: flex; align-items: flex-start; gap: var(--space-12); padding: var(--space-16); background: var(--ground-raised); border: 1px solid var(--line); border-radius: var(--radius-8); font: 400 14px/22px var(--font-sans); color: var(--ink-muted); cursor: pointer; transition: border-color 150ms ease; -webkit-tap-highlight-color: transparent; }
.intake__check:hover { border-color: var(--line-control); }
.intake__check:has(input:checked) { border-color: var(--ink); }
.intake__check b { font-weight: 500; color: var(--ink); }
.intake__check .link { color: var(--ink); white-space: nowrap; }
.intake__check input { flex: none; -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 1px 0 0; background: var(--ground) center / 14px 14px no-repeat; border: 1px solid var(--line-control); border-radius: 4px; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.intake__check input:checked { background-color: var(--button-fill); border-color: var(--button-fill); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230e0e10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.intake__check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (forced-colors: active) { .intake__check input { -webkit-appearance: auto; appearance: auto; } }
.intake__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.intake__error { margin: 0; color: var(--ink); }
.intake__form [aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.intake__nav { display: flex; gap: var(--space-12); }
.intake__nav .st-btn--primary { flex: 1; justify-content: center; }
.times { outline: none; }
.times .head { margin-bottom: var(--space-48); }
/* While the questions are up, they are the only thing on the page. */
.is-intake main > section:not(#book) { display: none; }
.is-intake #book { padding: var(--space-48) 0 var(--space-96); }
.is-intake-done main > .page-hero { display: none; }
.is-intake-done #book { padding-top: var(--space-48); }
@keyframes intake-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .intake__step { animation: none; }
  .intake__bar span { transition: none; }
}

/* Service rows */

.faq { max-width: 800px; margin: 0 auto; }

/* Legal pages: the old wording, reset to the new type */
.section-legal { padding: var(--space-64) 0 var(--space-96); }
.legal { max-width: 744px; color: var(--ink-muted); }
.legal h1 { font: 500 56px/60px var(--font-sans); letter-spacing: -0.03em; color: var(--ink); margin-bottom: var(--space-12); }
.legal h2 { font: 500 28px/34px var(--font-sans); letter-spacing: -0.02em; color: var(--ink); margin: var(--space-48) 0 var(--space-16); }
.legal h3 { font: 500 20px/31px var(--font-sans); letter-spacing: -0.01em; color: var(--ink); margin: var(--space-32) 0 var(--space-8); }
.legal p, .legal ul { margin: 0 0 var(--space-16); }
.legal ul { padding-left: var(--space-24); }
.legal li { margin-bottom: var(--space-8); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal .st-btn { text-decoration: none; }
.legal-updated { font-size: 14px; line-height: 22px; color: var(--ink-faint); }
.legal-head { margin-bottom: var(--space-48); }
.sms-block { margin: var(--space-32) 0; padding: var(--space-32); background: var(--ground-raised); border: 1px solid var(--line); border-radius: var(--radius-12); }
.sms-block > :first-child { margin-top: 0; }
.sms-block > :last-child { margin-bottom: 0; }

/* Footer */
.foot { margin-top: var(--space-64); padding: var(--space-64) 0 var(--space-32); background: var(--ground-sunk); border-top: 1px solid var(--line); }
.foot__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-48); }
.foot__brand { display: flex; flex-direction: column; gap: var(--space-16); max-width: 320px; }
.foot__logo { height: 26px; }
.foot h2 { margin-bottom: var(--space-16); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-8); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.foot ul a { transition: color 150ms ease; }
.foot ul a:hover { color: var(--ink); }
.foot__base { margin-top: var(--space-48); padding-top: var(--space-24); border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .hero { padding-top: var(--space-24); }
  .hero__in { gap: var(--space-24); }
  .hero__title { font-size: 32px; line-height: 36px; letter-spacing: -0.025em; }
  .vsl { width: 100%; border-radius: var(--radius-12); }
  .vsl__play { min-height: 44px; padding: 6px 6px 6px 20px; font-size: 14px; line-height: 22px; gap: 12px; }
  .vsl__play .st-btn__arrow { width: 32px; height: 32px; }
  .head { margin-bottom: var(--space-48); }
  .page-hero { padding: var(--space-64) 0 var(--space-48); }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: var(--space-32) var(--space-24); }
  .foot__brand { grid-column: 1 / -1; }
  .legal h1 { font-size: 44px; line-height: 48px; }
  .sms-block { padding: var(--space-24); }
  .st-nav { min-height: 72px; gap: var(--space-16); }
  .st-nav .st-btn--sm { padding: 0 var(--space-16); }
}
