/* Home page styles. Tokens and shared components come from tokens.css / base.css. */

/* ---------- 1. Split product hero ---------- */
.hero { padding-block: var(--nav-clearance) var(--sp-8); overflow: clip; }
.hero__layout { display: grid; gap: var(--sp-8); align-items: center; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: left; }
.hero__eyebrow { display: inline-flex; align-items: center; min-height: 34px; margin: 0 0 var(--sp-3); padding: 6px 14px; border: 1px solid var(--mist); border-radius: var(--r-pill); background: var(--mist); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.hero__copy h1 { max-width: 100%; margin: 0 0 var(--sp-3); font-size: clamp(2.75rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.hero__sub { max-width: 46ch; margin: 0 0 40px; font-size: 20px; line-height: 1.45; text-wrap: pretty; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.hero__work-link { min-height: 44px; display: inline-flex; align-items: center; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; list-style: none; margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.hero__proof li { display: inline-flex; align-items: baseline; gap: 8px; }
.hero__proof li + li::before { content: "·"; }
.hero__media::before { content: ""; position: absolute; left: 2%; right: 2%; top: 55%; height: 1px; background: linear-gradient(90deg, transparent, var(--cobalt-a40), transparent); box-shadow: 0 0 16px var(--cobalt-a24); }
.hero__media { position: relative; display: grid; place-items: center; min-width: 0; }
.hero__deck { position: relative; width: min(100%, 300px); aspect-ratio: 9 / 16; isolation: isolate; }
.hero__frame { position: absolute; inset: 0; overflow: hidden; border: 1px solid rgb(13 21 48 / .2); border-radius: 28px; background: var(--mist); box-shadow: 0 24px 64px -24px rgb(13 21 48 / .38), 0 4px 12px -6px rgb(13 21 48 / .22); transition: transform 700ms var(--ease-premium), opacity 700ms var(--ease-premium); }
.hero__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__frame .tag { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.hero__frame:not(.is-front) .tag { visibility: hidden; }
.hero__frame:not(.is-front) { z-index: -1; opacity: .7; filter: blur(1.5px); pointer-events: none; }
.hero__frame.is-back-left { transform: translate(-38px, 18px) rotate(-6deg) scale(.94); }
.hero__frame.is-back-right { transform: translate(38px, 24px) rotate(6deg) scale(.9); }
.hero__frame.is-front { z-index: 2; opacity: 1; transform: none; }
@media (min-width: 64em) {
  .hero__frame.is-back-left { transform: translate(-72px, 18px) rotate(-6deg) scale(.94); }
  .hero__frame.is-back-right { transform: translate(72px, 24px) rotate(6deg) scale(.9); }
  .hero { min-height: min(820px, calc(100svh - 80px)); display: grid; align-items: center; padding-block: max(var(--nav-clearance), 108px) 48px; }
  .hero__layout { grid-template-columns: minmax(0, 58.5fr) minmax(0, 41.5fr); gap: 0; }
  .hero__deck { width: clamp(220px, calc(14.423vw + 72.3px), 280px); }
}
@media (max-width: 63.99em) {
  .hero { padding-top: var(--nav-clearance); }
  .hero__layout { gap: var(--sp-8); }
  .hero__copy { align-items: center; text-align: center; }
  .hero__copy h1 { max-width: 14ch; font-size: clamp(2.5rem, 5vw, 4.5rem); }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; gap: var(--sp-1); }
  .hero__work-link { justify-content: center; }
  .hero__proof { justify-content: center; max-width: 36ch; }
  .hero__proof li:first-child { justify-content: center; flex-basis: 100%; }
  .hero__proof li:nth-child(2)::before { content: none; }
  .hero__deck { width: min(240px, 68vw); }
}
@media (max-width: 400px) {
  .hero { padding-top: 96px; }
  .hero__layout { gap: var(--sp-6); }
}
@media (max-width: 63.99em) { html:not(.js) .hero { padding-top: calc(var(--nav-clearance) + var(--sp-3)); } }
.hero__word { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .home-entering .hero__copy > * { animation: hero-support-arrive 700ms var(--ease-premium) both; }
  .home-entering .hero__eyebrow { animation-delay: 70ms; }
  .home-entering .hero__copy h1 { animation: none; }
  .home-entering .has-line-reveal .hero__word { display: inline-block; animation: headline-line-arrive 700ms var(--ease-premium) both; }
  .home-entering .has-line-reveal .hero__word[data-line="2"] { animation-delay: 70ms; }
  .home-entering .has-line-reveal .hero__word[data-line="3"] { animation-delay: 140ms; }
  .home-entering .has-line-reveal .hero__word[data-line="4"] { animation-delay: 210ms; }
  .home-entering .has-line-reveal .hero__word[data-line="5"] { animation-delay: 280ms; }
  .home-entering .hero__media { animation: hero-support-arrive 700ms var(--ease-premium) 420ms both; }
  .home-entering .hero__sub { animation-delay: 210ms; }
  .home-entering .hero__actions { animation-delay: 280ms; }
  .home-entering .hero__proof { animation-delay: 350ms; }
  .js .hero .vf::before { animation: home-viewfinder-lock 700ms var(--ease-premium) 300ms both; }
}
@keyframes headline-line-arrive { from { opacity: .72; filter: blur(3px); transform: translateY(.14em); clip-path: inset(0 -.1em .1em); } to { opacity: 1; filter: blur(0); transform: none; clip-path: inset(-.1em); } }
@keyframes hero-support-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes home-viewfinder-lock { from { opacity: .1; transform: scale(1.08, 1.18); clip-path: inset(12% 18%); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) { .hero__frame { transition: none; } }

/* ---------- 2. What you get ---------- */
.get {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.get__item { position: relative; padding-block: var(--sp-4); }
.get__item:first-child { padding-top: 0; }
.get__item:last-child { padding-bottom: 0; }
.get__item p { margin-top: var(--sp-1); max-width: 34ch; }

.get__rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
}

@media (min-width: 48em) {
  .get { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .get__item { padding: 0 var(--sp-4); }
  .get__item:first-child { padding-left: 0; }
  .get__item:last-child { padding-right: 0; }
  .get__rule { right: auto; bottom: 0; width: 1px; height: auto; }
}

/* ---------- 3. Process ---------- */
.process__list {
  position: relative;
  display: grid;
  gap: var(--sp-8);
  margin: 0;
  padding: 0 0 0 var(--sp-4);
  list-style: none;
}

.process__track {
  --track-progress: 1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
}

.process__track::after { transition: transform var(--dur-4) var(--ease-out); }

.process__step { display: grid; gap: var(--sp-3); align-content: start; }

.process__num {
  font-family: var(--font-display);
  font-weight: 800;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--cobalt-a40);
  font-size: var(--fs-ui);
  line-height: 1;
  color: var(--ink-muted);
  margin-bottom: var(--sp-1);
}

/* JS adds .is-tracking (motion allowed): the track fills and circles fill step by step */
.process.is-tracking .process__num {
  transition: background-color var(--dur-3) var(--ease-out), color var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out);
}

.process__num.is-reached {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}
.process__text p { margin-top: var(--sp-1); color: var(--text-muted); max-width: 46ch; }
.process__text .process__honest { color: var(--ink); font-weight: 600; margin-top: var(--sp-2); }

.ui-card {
  display: grid;
  gap: var(--sp-2);
  align-content: start;
  padding: var(--sp-3);
  width: 100%;
  max-width: 28rem;
}

.ui-card__label { font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); }

.ui-field-wrap { display: grid; gap: var(--sp-0-5); }
.ui-field__label { font-weight: 600; color: var(--text-muted); }

.ui-field {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--sp-2);
  border: 1px solid var(--border-input);
  border-radius: var(--r-card);
  background: var(--white);
}

.ui-chips { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
.ui-status { display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: 600; }
.ui-status svg { color: var(--cobalt); }

.ui-hooks { display: grid; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }

.ui-hook {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
  padding: var(--sp-2);
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
}

/* label + badge on one line, the hook itself on its own full-width line */
.ui-hook__text { grid-column: 1 / -1; grid-row: 2; }

.ui-hook--on { border-color: var(--cobalt-a40); background: var(--cobalt-a04); }
.ui-hook__tag { font-weight: 600; color: var(--text-muted); white-space: nowrap; }

.ui-edit { display: grid; gap: var(--sp-3); justify-items: center; }
.ui-edit__frame { width: 9rem; margin-top: var(--sp-1); }
.ui-scrub { width: 100%; display: grid; gap: var(--sp-1); }

.ui-scrub__bar {
  --track-progress: 0.5;
  height: 4px;
  border-radius: var(--r-pill);
  overflow: hidden;
}

.ui-scrub__time { display: flex; justify-content: space-between; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.ui-files { display: grid; margin: 0; padding: 0; list-style: none; }

.ui-files li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 48px;
  border-top: 1px solid var(--ink-a08);
}

.ui-files li:first-child { border-top: 0; }
.ui-files svg { color: var(--cobalt); flex: none; }

/* Desktop: sticky card column (class added by home.js) */
@media (min-width: 60em) {
  .process__step { grid-template-columns: 5fr 7fr; gap: var(--sp-8); align-items: start; }

  .process.is-sticky .process__list {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: repeat(4, auto);
    column-gap: var(--sp-8);
    row-gap: 0;
  }

  .process.is-sticky .process__step { display: contents; }
  .process.is-sticky .process__step.is-active h3 { color: var(--cobalt); }
  .process.is-sticky .process__text { grid-column: 1; min-height: 55vh; }

  .process.is-sticky .process__visuals {
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    --visual-height: min(32rem, calc(100vh - 2 * var(--sp-2)));
    top: max(var(--sp-2), calc(50vh - var(--visual-height) / 2));
    align-self: start;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    height: var(--visual-height);
  }

  .process.is-sticky .process__card {
    grid-area: 1 / 1;
    align-self: center;
    justify-self: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-2) var(--ease-out);
  }

  .process.is-sticky .process__card.is-active {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: opacity var(--dur-2) var(--ease-out), visibility 0s;
  }
}

/* ---------- 4. Why Scenevale ---------- */
.compare__cards {
  max-width: 36rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: stretch;
}

.compare__card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--white);
  min-height: 0;
}

.compare__card h3 { margin: 0; min-height: 2.3em; text-wrap: balance; }
.compare__card h3 span { display: block; }
.compare__card p { color: var(--text-muted); max-width: 34ch; margin: 0; }

.compare__visual {
  position: relative;
  height: 13rem;
  min-height: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cobalt);
}

.compare__visual--timeline { min-height: 13rem; }
.compare__card .compare__days { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.compare__days span { color: var(--cobalt); font-size: 1.9em; }
.compare__foot { max-width: 36rem; margin-inline: auto; display: grid; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.compare__visual--approval { width: min(100%, 240px); height: auto; min-height: 0; aspect-ratio: 4 / 5; justify-self: center; overflow: hidden; background: var(--mist); }
.compare__review-chip { position: absolute; z-index: 2; left: var(--sp-2); bottom: var(--sp-2); max-width: calc(100% - 32px); padding: 8px 14px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; }

.compare__visual--hooks { height: auto; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: var(--sp-1); }
.compare__hook-item { min-width: 0; display: grid; gap: var(--sp-1); text-align: center; }
.compare__hook-item > span { color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.2; }
.compare__frame { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 8px; background: var(--mist); }
.compare__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__frame::after { content: ""; position: absolute; inset: 42% 0 0; border-radius: inherit; background: linear-gradient(transparent, rgb(13 21 48 / .82)); pointer-events: none; }
.compare__frame-hook { position: absolute; z-index: 1; right: 4px; bottom: 8px; left: 4px; color: #fff; font-size: clamp(14px, 1.1vw, 18px); font-weight: 700; line-height: 1.2; text-align: center; text-shadow: 0 1px 3px rgb(0 0 0 / .45); }
.compare__sample-label { grid-column: 1 / -1; color: var(--text-muted); font-size: 16px; text-align: center; }
.compare__frame--back { transform: translateY(5px); }
.compare__frame--mid { transform: translateY(-5px); }
.compare__frame--front { transform: translateY(5px); }
.compare__link { display: inline-flex; width: fit-content; margin: 0; }

@media (min-width: 60em) {
  .compare__foot { max-width: none; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-4); }
  .compare__cards { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
  .compare__card { padding: var(--sp-4); grid-template-rows: 19rem auto auto; align-items: center; }
  .compare__visual { height: 100%; min-height: 0; }
  .compare__visual--approval { height: auto; }
  .compare__visual--hooks { align-content: center; }
  .compare__card h3 { min-height: 2.3em; }
}

/* ---------- 5. Featured work ---------- */
.featured__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ad-card__brand .card__link { display: flex; align-items: center; min-height: 44px; }
.ad-card__body { padding-block: var(--sp-1) var(--sp-2); }
.featured__grid .tag--on-media { top: var(--sp-1); left: var(--sp-1); }
.featured__foot { display: grid; gap: var(--sp-1); margin-top: var(--sp-4); justify-items: start; }

.featured__foot { padding-top: var(--sp-3); border-top: 1px solid var(--cobalt-a24); }
.ad-card .ad-frame img { transition: transform var(--dur-4) var(--ease-out); }

@media (hover: hover) {
  .ad-card:hover .ad-frame img { transform: scale(1.03); }
}

@media (min-width: 37.5em) {
  .featured__grid { gap: var(--sp-3); }
}

@media (min-width: 60em) {
  .featured__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 6. Founder ---------- */
.founder__card {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  max-width: 45rem;
  margin-inline: auto;
}

.founder__photo {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: var(--r-card);
  background: var(--mist);
  color: var(--cobalt);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  aspect-ratio: 1;
  overflow: hidden;
}
.founder__photo::after { border-radius: inherit; }

.founder__body { display: grid; gap: var(--sp-1); justify-items: start; }
.founder__body p { color: var(--text-muted); max-width: 52ch; }

@media (min-width: 37.5em) {
  .founder__card { grid-template-columns: 120px 1fr; align-items: center; gap: var(--sp-4); }
  .founder__photo { width: 120px; height: 120px; }
}

/* ---------- 7. FAQ ---------- */
.faq-section__grid { display: grid; gap: var(--sp-6); }

@media (min-width: 60em) {
  .faq-section__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-4); align-items: start; }
  .faq-section__grid h2 { grid-column: 1 / span 4; max-width: 12ch; }
  .faq-section__grid .faq { grid-column: 6 / span 7; }
}

/* ---------- 8. Final CTA ---------- */
.final { padding-top: 0; }

.final__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  padding-block: var(--sp-8);
  padding-inline: var(--sp-3);
}

.final__inner { position: relative; z-index: 1; justify-items: start; text-align: left; }
.final__panel h2 { color: var(--white); }
.final__panel p { color: rgb(255 255 255 / .72); }
.final__panel .beam-wrap { width: 100%; }
.final__panel .beam-button { width: 100%; }

.beam-wrap { position: relative; display: inline-flex; }

.beam-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Keyboard focus: a short static beam burst above the button, no JS needed */
.beam-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 160px;
  height: 56px;
  margin-left: -80px;
  background: linear-gradient(to top, var(--cobalt-a40), transparent);
  clip-path: polygon(40% 100%, 60% 100%, 100% 0, 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-1) var(--ease-out);
}

.beam-wrap:has(.beam-button:focus-visible)::before { opacity: 1; }

@media (min-width: 37.5em) {
  .final__panel { padding-block: var(--sp-12); }
  .final__inner { justify-items: center; text-align: center; }
  .final__panel .beam-wrap,
  .final__panel .beam-button { width: auto; }
}

.ad-frame__caption { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 36px 12px 14px; background: linear-gradient(transparent, rgb(13 21 48 / .82)); color: #fff; font-size: clamp(14px, 1.2vw, 16px); font-weight: 700; line-height: 1.2; text-align: center; text-wrap: balance; text-shadow: 0 1px 3px rgb(0 0 0 / .45); }
