/* /sitters/: on top of site.css, landing.css and info.css. It lives in assets/sit/ so it stays closed until the
   launch (campaign/phases.mjs, LAUNCH_ONLY); the screens come from assets/home/. Same language as the homepage and
   /how-it-works/: one warm panel at the top, then open rows with a soft blob of colour behind the phones. */

.shot { display: block; filter: drop-shadow(0 30px 44px rgba(46,24,56,.18)) drop-shadow(0 4px 10px rgba(46,24,56,.08)); }
.shot img { display: block; width: 100%; height: auto; }

/* ── hero ── */
.st-hero { padding: 8px max(12px, env(safe-area-inset-left, 0px)) 0; }
.st-panel { position: relative; overflow: hidden; max-width: 1680px; margin: 0 auto; border-radius: 44px;
  background:
    radial-gradient(60% 70% at 80% 100%, color-mix(in srgb, var(--mint) 55%, transparent) 0%, transparent 70%),
    radial-gradient(70% 80% at 0% 0%, #FFFFFF 0%, transparent 60%),
    linear-gradient(160deg, #FFF0E8 0%, var(--peach) 100%); }
.st-hero-grid { max-width: 1320px; margin: 0 auto; padding-inline: clamp(24px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); }
.st-hero-copy { display: grid; gap: 22px; justify-items: start; align-content: center; padding-block: 72px 80px; }
.st-hero h1 { font-size: clamp(42px, 5vw, 72px); letter-spacing: -0.045em; line-height: .96; max-width: 12em; }
.st-hero .lead { max-width: 31em; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.st-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 9px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: 0 0 0 1px var(--line); font-weight: 700; font-size: 15px; }
.st-facts svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--mint); color: var(--on-mint); }
.st-hero-stage { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 1.6vw, 22px); padding-top: 56px; }
.st-hero-stage .shot { width: clamp(210px, 19vw, 290px); margin-bottom: -26%; animation: st-rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.st-hero-stage .shot.back { margin-bottom: -40%; }
.st-hero-stage .shot.front { animation-delay: .12s; }
@keyframes st-rise { from { translate: 0 60px; opacity: 0; } to { translate: 0 0; opacity: 1; } }

/* ── opening it: three ways, open, no cards ── */
.st-open .ways { gap: clamp(24px, 4vw, 56px); }
.st-open .ways li { background: none; box-shadow: none; border-radius: 0; padding: 0; }

/* ── what you see: the tour ── */
.st-tour { padding-block: 72px 40px; }
.tour-wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.tour-list { display: grid; gap: 6px; }
.tour-tab { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; text-align: left; width: 100%; padding: 16px 18px; border: 0; border-radius: 22px; background: none; color: var(--ink); transition: background .2s; }
.tour-tab:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.tour-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); transition: background .2s, color .2s; }
.tour-ico svg { width: 22px; height: 22px; }
.tour-txt { display: grid; gap: 4px; }
.tour-txt b { font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: -0.015em; }
.tour-txt span { color: var(--muted); font-size: 15.5px; line-height: 1.5; display: none; }
.tour-tab.is-active { background: var(--surface); box-shadow: var(--shadow); }
.tour-tab.is-active .tour-ico { background: var(--ink); color: var(--on-ink); }
.tour-tab.is-active .tour-txt span { display: block; }
.tour-tab.sos .tour-ico { color: var(--siren-text); }
.tour-tab.sos.is-active .tour-ico { background: var(--siren); color: #FFFFFF; }

.tour-stage { position: relative; isolation: isolate; display: grid; justify-items: center; }
.tour-stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; translate: -50% -50%; width: min(520px, 104%); aspect-ratio: 1.05;
  border-radius: 52% 48% 46% 54% / 56% 50% 50% 44%; background: var(--mint); }
/* the blob takes the colour of the chosen screen (red only for SOS, the emergency) */
.tour-stage::before { transition: background .35s ease; }
.tour:has(#tab-codes.is-active) .tour-stage::before { background: var(--butter); }
.tour:has(#tab-ask.is-active) .tour-stage::before { background: #FFD3C4; }
.tour:has(#tab-sos.is-active) .tour-stage::before { background: var(--siren-soft); }
.tour-pane { grid-area: 1 / 1; display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2vw, 24px); opacity: 0; visibility: hidden; translate: 0 14px; transition: opacity .35s ease, translate .35s ease, visibility 0s .35s; }
.tour-pane.is-active { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .35s ease, translate .35s ease; }
.tour-pane .shot { width: clamp(250px, 24vw, 320px); }
.tour-pane.pair .shot { width: clamp(190px, 18vw, 250px); }
.tour-pane.pair .shot.back { margin-top: 56px; }
.tour-cap { display: none; }
.tour-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); margin-top: 64px; }
.tour-extra p { border-top: 2px solid var(--line); padding-top: 16px; color: var(--muted); }
.tour-extra b { color: var(--ink); }

/* ── regular sitters ── */
.st-regular { padding-block: 72px 24px; }
.st-row { max-width: 1200px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.st-row-copy { display: grid; gap: 16px; justify-items: start; max-width: 30em; }
.st-row-copy h2 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.035em; line-height: 1; }
.st-row-copy p { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }
.st-row-stage { position: relative; isolation: isolate; display: grid; justify-items: center; }
.st-row-stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; translate: -50% -50%; width: min(500px, 104%); aspect-ratio: 1.05;
  border-radius: 46% 54% 58% 42% / 48% 56% 44% 52%; background: var(--butter); }
.st-row-stage .shot { width: clamp(250px, 24vw, 320px); }

/* ── after the sitting, and help: two open columns ── */
.st-after { padding-block: 56px 8px; }
.st-after-wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 5vw, 72px); }
.st-after-wrap > div { border-top: 2px solid var(--line); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.st-after h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.025em; }
.st-after p { color: var(--muted); }
.st-after a { color: var(--ink); font-weight: 600; }

/* the final call: as wide as the panels */
.cta .wrap { max-width: 1352px; }
.cta-panel { border-radius: 44px; padding-inline: clamp(28px, 6vw, 96px); }

@media (prefers-color-scheme: dark) {
  .shot { filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
  .st-panel { background:
    radial-gradient(60% 70% at 80% 100%, rgba(143,217,182,.14) 0%, transparent 70%),
    radial-gradient(70% 80% at 0% 0%, #3B2147 0%, transparent 60%),
    linear-gradient(160deg, #2A1A31 0%, #24142B 100%); }
  .tour-stage::before { background: color-mix(in srgb, var(--mint) 16%, var(--bg)); }
  .tour:has(#tab-codes.is-active) .tour-stage::before { background: color-mix(in srgb, var(--butter) 14%, var(--bg)); }
  .tour:has(#tab-ask.is-active) .tour-stage::before { background: color-mix(in srgb, var(--coral) 16%, var(--bg)); }
  .tour:has(#tab-sos.is-active) .tour-stage::before { background: var(--siren-soft); }
  .st-row-stage::before { background: color-mix(in srgb, var(--butter) 14%, var(--bg)); }
}

/* ── smaller screens ── */
@media (max-width: 1000px) {
  .st-hero-grid { grid-template-columns: 1fr; }
  .st-hero-copy { padding-block: 44px 8px; }
  .st-hero-stage { padding-top: 16px; }
  .st-hero-stage .shot { width: min(230px, 40vw); margin-bottom: -40%; }
  .st-hero-stage .shot.back { margin-bottom: -56%; }
  .tour, .st-row { grid-template-columns: 1fr; }
  /* the tabs become a row of chips above the phone; the text of the chosen one shows below them */
  .tour-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .tour-tab { width: auto; grid-template-columns: auto auto; gap: 8px; align-items: center; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .tour-tab.is-active { box-shadow: 0 0 0 2px var(--ink); }
  .tour-ico { width: 32px; height: 32px; }
  .tour-ico svg { width: 17px; height: 17px; }
  .tour-txt b { font-size: 16px; }
  .tour-tab .tour-txt span, .tour-tab.is-active .tour-txt span { display: none; }
  /* on smaller screens each screen carries its own line of text below the phone, and the phone fades out halfway */
  .tour-pane { flex-wrap: wrap; }
  .tour-pane .shot { filter: none; }
  .tour-pane .tour-cap { display: block; flex: 0 0 100%; order: 2; text-align: center; color: var(--muted); max-width: 30em; margin: 18px auto 0; }
  .tour-pane picture { max-height: clamp(400px, 72vw, 540px); overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); }
  .tour-stage::before { width: min(420px, 90%); }
  .tour-pane .shot { width: min(300px, 62vw); }
  .tour-pane.pair .shot { width: auto; flex: 0 1 46%; max-width: 240px; }
  .st-row-stage { max-height: clamp(400px, 72vw, 560px); overflow-x: visible; overflow-y: clip;
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); }
  .st-row-stage::before { width: min(420px, 90%); }
  .st-row-stage .shot { width: min(300px, 62vw); }
}
@media (max-width: 640px) {
  .st-hero { padding-top: 4px; }
  .st-panel { border-radius: 32px; }
  .st-hero-copy { gap: 18px; padding: 36px 4px 4px; }
  .st-facts li { font-size: 14px; }
  .st-open .ways { gap: 22px; }
  .st-open .ways li { grid-template-columns: 72px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; }
  .st-open .ways .blobby.small { grid-row: span 2; width: 72px; height: 66px; margin: 0; }
  .st-open .ways .blobby.small svg { width: 34px; height: 34px; }
  .st-open .ways h3 { font-size: 19px; }
  .sit-pin { margin-top: 20px; }
  .st-tour { padding-top: 48px; }
  .tour-tab { padding-right: 12px; }
  .tour-txt b { font-size: 15px; }
  .st-row-stage { max-height: 400px; }
  .tour-pane picture { max-height: 380px; }
  .tour-pane .shot, .st-row-stage .shot { width: min(260px, 66vw); }
  .tour-extra, .st-after-wrap { grid-template-columns: 1fr; }
  .tour-extra { margin-top: 32px; }
  .st-regular { padding-top: 48px; }
  .cta .wrap { padding-inline: max(12px, env(safe-area-inset-left, 0px)); }
  .cta-panel { border-radius: 32px; padding: 32px 22px; }
}
