/* Product Labs: one-screen strategy session page.
   Draft palette (no approved brand system yet): near-black ground, a dot grid
   echoing the Product Labs logo, one cool teal accent. */

:root {
  --bg: #0C0F11;
  --card: rgba(19, 23, 26, 0.86);
  --field: rgba(255, 255, 255, 0.035);
  --field-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #ECEFF1;
  --muted: #A9B2B8;
  --dim: #8D979E;
  --accent: #3DDBC3;
  --accent-hover: #6BE7D4;
  --accent-ink: #05201A;
  --accent-soft: rgba(61, 219, 195, 0.13);
  --danger: #FF9C8F;
  --danger-soft: rgba(255, 120, 100, 0.10);
  --flag: #F3C46E;
  --ok: #7FE3B0;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--accent-ink); }

/* ---------- Backdrop ---------- */
.stage {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70vmax 55vmax at 102% 112%, rgba(61, 219, 195, 0.20), transparent 62%),
    radial-gradient(45vmax 35vmax at -8% -12%, rgba(90, 130, 255, 0.10), transparent 60%),
    var(--bg);
}
.stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.5px);
  background-size: 22px 22px;
  /* Dot field centered on the booking card (right side), fading toward the copy.
     Owner-approved Oct 28. */
  -webkit-mask-image: radial-gradient(ellipse 60% 75% at 74% 50%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 60% 75% at 74% 50%, #000 20%, transparent 78%);
}

/* ---------- Frame ---------- */
.screen {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  max-width: calc(1240px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.mark { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.mark__text { --cap: 0.745em; --dots-gap: 0.32em; display: grid; font: 400 0.9625rem/1.1 var(--font); letter-spacing: 0.155em; text-transform: uppercase; }
.mark__line { display: block; white-space: nowrap; }
/* Eight dots on a square 4 x 2 grid, as in the homepage logo: top row at cap
   height, bottom row on the baseline, last column under the stem of the T. */
.mark__dots { display: inline-block; vertical-align: baseline; height: var(--cap, 0.7em); width: calc(var(--cap, 0.7em) * 39 / 15); margin-left: var(--dots-gap, 0.4em); color: var(--accent); }
.mark:hover { color: var(--text); }
.bar__phone { display: grid; text-align: right; line-height: 1.25; color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.bar__phone-label { font-size: 0.75rem; color: var(--dim); }
.bar__phone:hover { color: var(--accent); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  gap: clamp(40px, 6vw, 104px);
  align-items: center;
  padding: clamp(8px, 2.5vh, 32px) 0 clamp(16px, 3vh, 36px);
}

/* ---------- Pitch (left) ---------- */
.pitch { display: flex; flex-direction: column; gap: clamp(22px, 4.2vh, 48px); min-width: 0; }
.eyebrow { font: 500 0.8125rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: clamp(12px, 2vh, 20px); }
.pitch__title {
  font-weight: 500;
  font-size: clamp(2rem, 0.6rem + 3vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.pitch__line { display: block; }
@media (min-width: 960px) { .pitch__line { white-space: nowrap; } }
.pitch__title em { font-style: normal; color: var(--accent); }
.pitch__sub { margin-top: clamp(14px, 2.4vh, 24px); max-width: 35em; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); color: var(--muted); }

.expect { max-width: 34em; }
.expect__title { font-weight: 500; font-size: 1.0625rem; color: var(--text); margin-bottom: 10px; }
.expect__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(6px, 1.1vh, 12px); }
.expect__list li { display: flex; gap: 12px; align-items: center; font-size: 1.0625rem; }
.expect__check { flex: none; width: 22px; height: 22px; color: var(--accent); }

.pitch__foot { display: grid; gap: 10px; }
.founder { display: flex; align-items: center; gap: 12px; }
.founder__photo { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.founder__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px dashed var(--line-strong); background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.18) 0 20%, transparent 21%), radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.18) 0 42%, transparent 43%), rgba(255,255,255,.04); }
.founder__text { display: grid; line-height: 1.35; font-size: 0.9375rem; }
.founder__text span:last-child { color: var(--muted); font-size: 0.875rem; }
.trust__legal { font-size: 0.8125rem; color: var(--dim); }
.book__legal { margin-top: 14px; text-align: center; font-size: 0.75rem; }
.nowrap { white-space: nowrap; }
.trust__legal a { color: var(--muted); }
.trust__legal a:hover { color: var(--text); }

/* Logo scroller: label, then a masked, continuously moving row. */
.proof { display: grid; gap: clamp(10px, 1.6vh, 18px); min-width: 0; }
.proof__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proof__label { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; color: var(--muted); }
.proof__window {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.proof__track { display: flex; width: max-content; animation: proof-scroll 70s linear infinite; }
.proof__set { display: flex; align-items: center; gap: 48px; margin: 0; padding: 0 48px 0 0; list-style: none; }
@keyframes proof-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .proof__track { animation: none !important; }
}
/* Client logos: white marks (pre-recoloured), sized per logo in session.js
   for even visual weight, centred in a fixed-height row and muted to one tone. */
.logo { display: flex; flex: none; align-items: center; justify-content: center; height: 40px; }
.logo img { display: block; max-width: none; opacity: 0.72; }

/* ---------- Review annotations (preview only) ---------- */
.slot { border-bottom: 1px dashed var(--flag); color: inherit; }
.slot--inline { margin-left: 6px; }
.flag-note { margin-top: 8px; font-size: 0.75rem; color: var(--flag); }
.flag { font: 500 0.6875rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border: 1px dashed var(--flag); border-radius: 999px; padding: 1px 7px; margin-right: 6px; }
html.annotations-off [data-needs-input],
html[data-mode="production"] [data-needs-input],
html[data-mode="production"] [data-preview-only] { display: none !important; }
html.annotations-off .slot, html[data-mode="production"] .slot { border-bottom: 0; }

/* ---------- Booking card (right) ---------- */
.book { min-width: 0; scroll-margin-top: 12px; }
.book:focus { outline: none; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 3.2vh, 32px) clamp(20px, 2.2vw, 30px);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(61, 219, 195, 0.7), transparent); }
.card__head { margin-bottom: clamp(12px, 2vh, 20px); }
.card__step { font: 500 0.75rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.card__title { font-weight: 500; font-size: clamp(1.375rem, 1.1rem + 0.6vw, 1.625rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 6px; }
.card__support { font-size: 0.9375rem; color: var(--muted); }
.card__fine { margin-top: 12px; font-size: 0.75rem; color: var(--dim); text-align: center; }
.card__fine a { color: var(--muted); }

.form { display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 14px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; min-width: 0; }
.field > :not(label):not(.field__error) { grid-column: 1 / -1; }
.field label { grid-column: 1; font-size: 0.8125rem; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.optional { color: var(--dim); font-weight: 400; }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  font: 400 1rem/1.3 var(--font); color: var(--text);
  background: var(--field);
  border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 8px 8px 2px 2px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.field input:hover, .field select:hover { background: var(--field-hover); }
.field input:focus, .field select:focus { outline: none; background: var(--field-hover); border-bottom-color: var(--accent); box-shadow: 0 1.5px 0 var(--accent); }
.select { position: relative; }
.select select { appearance: none; padding-right: 40px; cursor: pointer; }
.select select option { background: #161A1D; color: var(--text); }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field__hint { margin-top: 5px; font-size: 0.75rem; color: var(--dim); }
.field__error { display: none; grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 4px; font-size: 0.75rem; font-weight: 500; color: var(--danger); text-align: right; }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error select { border-bottom-color: var(--danger); }

.errors { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); border: 1px solid rgba(255, 156, 143, 0.4); font-size: 0.875rem; }
.errors:focus { outline: 2px solid var(--danger); outline-offset: 2px; }
.errors__title { color: var(--danger); font-weight: 500; }
.errors ul { margin: 4px 0 0; padding-left: 18px; }
.errors a { color: var(--danger); }

.cta {
  margin-top: 4px; min-height: 52px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1.0625rem var(--font);
  box-shadow: 0 12px 30px -12px rgba(61, 219, 195, 0.65);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.cta svg { width: 20px; height: 20px; }
.cta:hover { background: var(--accent-hover); }
.cta:active { transform: translateY(1px); }
.cta[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.cta--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.cta--ghost:hover { background: var(--field-hover); color: var(--text); }
.linkbtn { background: none; border: 0; padding: 8px 0; min-height: 40px; font: 500 0.9375rem var(--font); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Flow states inside the card ---------- */
.flow__head { margin-bottom: 14px; }
.flow__head h2 { font-weight: 500; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 6px; }
.flow__head h2:focus { outline: none; }
.flow__head p { color: var(--muted); font-size: 0.9375rem; }
.badge { display: inline-block; margin-bottom: 10px; font: 500 0.75rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.badge--ok { background: rgba(127, 227, 176, 0.12); color: var(--ok); }
.badge--neutral { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.badge--mock { border: 1px dashed var(--flag); color: var(--flag); }
.mock-note { margin-bottom: 12px; font-size: 0.75rem; color: var(--flag); }
.loading { display: flex; align-items: center; gap: 12px; padding: 40px 0; color: var(--muted); }
.spinner { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; font-size: 0.9375rem; }
.alert--error { background: var(--danger-soft); border: 1px solid rgba(255, 156, 143, 0.4); color: #FFD2CB; }
.alert--info { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted); }
.who { margin-bottom: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.who strong { color: var(--text); font-weight: 500; }
.tz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; font-size: 0.8125rem; color: var(--dim); }
.tz select { font: 400 0.875rem var(--font); color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; max-width: 100%; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 6px; scrollbar-width: thin; }
.day { flex: none; min-width: 64px; min-height: 58px; padding: 6px 8px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: 500 0.75rem/1.2 var(--font); cursor: pointer; }
.day strong { font-size: 1.0625rem; color: var(--text); font-weight: 500; }
.day:hover { border-color: var(--accent); }
.day[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 12px; }
.slot-btn { min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 500 0.9375rem var(--font); cursor: pointer; }
.slot-btn:hover { border-color: var(--accent); }
.slot-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.selected { min-height: 1.5em; margin-bottom: 10px; font-size: 0.875rem; color: var(--muted); }
.selected strong { color: var(--text); font-weight: 500; }
.actions { display: grid; gap: 8px; margin-top: 14px; }
.details { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9375rem; }
.details li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.details .k { color: var(--dim); }
.details .v { overflow-wrap: anywhere; }

/* ---------- Short desktop screens: tighten so it still fits ---------- */
@media (min-width: 960px) and (max-height: 820px) {
  .bar { min-height: 60px; }
  .expect__list li { font-size: 1rem; }
  .field input, .field select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
  .cta { min-height: 48px; }
  .card__support { display: none; }
}
@media (min-width: 960px) and (max-height: 780px) {
  .pitch { gap: 20px; }
  .pitch__title { font-size: clamp(2rem, 0.6rem + 2.3vw, 3.125rem); }
  .pitch__sub { margin-top: 12px; font-size: 1rem; }
  .eyebrow { margin-bottom: 10px; }
  .expect__list { gap: 6px; }
  .split { padding-top: 4px; padding-bottom: 12px; }
}
@media (min-width: 960px) and (max-height: 680px) {
  .pitch__sub { display: none; }
}
@media (min-width: 960px) and (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); gap: 36px; }
  .pitch__title { font-size: clamp(1.875rem, 0.4rem + 3vw, 2.5rem); }
}

/* ---------- Tablet and phone: one column, page scrolls ---------- */
@media (max-width: 959px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 8px; padding-bottom: 32px; }
  .pitch { display: contents; }
  .pitch__head { order: 1; }
  .book { order: 2; }
  .expect { order: 3; max-width: none; }
  .pitch__foot { order: 4; }
  .pitch__title { font-size: clamp(1.625rem, 7.2vw, 2.75rem); }
  .proof { order: 5; }
}
@media (max-width: 520px) {
  .row:not(.row--keep) { grid-template-columns: minmax(0, 1fr); }
  .row--keep { gap: 10px; }
  .bar__phone-label { display: none; }
  .mark__text { font-size: 0.8125rem; letter-spacing: 0.26em; }
  .card { border-radius: 16px; }
}

/* ---------- Preview tools (preview only) ---------- */
.preview-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; margin-left: auto; border-radius: 999px; border: 1px dashed var(--flag); background: rgba(243, 196, 110, 0.08); color: var(--flag); font: 500 0.75rem var(--mono); letter-spacing: 0.04em; cursor: pointer; }
.preview-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flag); }
.preview { width: min(560px, calc(100vw - 32px)); max-height: 86vh; padding: 22px; border-radius: 16px; border: 1px solid var(--line-strong); background: #12161A; color: var(--text); }
.preview::backdrop { background: rgba(0, 0, 0, 0.6); }
.preview__head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; }
.preview__head h2 { font-size: 1.125rem; font-weight: 600; }
.preview__close { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 1.25rem; cursor: pointer; }
.preview__lede { font-size: 0.875rem; color: var(--muted); margin-bottom: 14px; }
.preview__grid { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.pv-check { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; }
.pv-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.pv-field { display: grid; gap: 4px; font-size: 0.8125rem; color: var(--muted); }
.pv-field select { font: 400 0.9375rem var(--font); padding: 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: #1A1F23; color: var(--text); }
.pv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pv-button { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: 500 0.875rem var(--font); cursor: pointer; }
.pv-link { font-size: 0.875rem; }
.preview__h3 { margin: 16px 0 6px; font-size: 0.8125rem; font-weight: 600; }
.preview__h3 span { color: var(--dim); font-weight: 400; }
.preview__log { margin: 0; padding: 8px 10px 8px 30px; max-height: 150px; overflow: auto; border-radius: 8px; background: #0B0E10; font: 0.75rem/1.5 var(--mono); color: var(--muted); word-break: break-word; }
.preview__log:empty::before { content: "No events yet."; margin-left: -20px; color: var(--dim); }
.preview__blockers { margin: 0; padding-left: 18px; font-size: 0.8125rem; color: var(--muted); }

.noscript { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px var(--gutter); background: #000; color: #fff; text-align: center; }

/* ---------- Embedded scheduler (LeadConnector) ---------- */
.card--embed { padding-bottom: clamp(14px, 2vh, 20px); }
/* The scheduler grows with each widget step; keep the copy at the top beside it. */
.split:has(.card--embed) { align-items: start; }
.embed { position: relative; margin: 4px -8px 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); scroll-margin-top: 12px; }
.embed__frame { display: block; width: 100%; height: clamp(480px, calc(100vh - 300px), 640px); border: 0; background: #fff; }
.embed__alt { margin-top: 10px; font-size: 0.8125rem; color: var(--dim); text-align: center; }
.embed__alt a { color: var(--muted); }
@media (max-width: 959px) { .embed { margin: 4px 0 0; } .embed__frame { height: 560px; } }
