/* Public pages: one-column layout with comfortable touch targets. */
.hero-scene { display: contents; }

@media (max-width: 900px) {
  .search-step,
  .search-step:first-child,
  .step-country { min-height: 0; }
}

@media (max-width: 760px) {
  /* Mobile cover: editorial copy, full-width conversation scene, floating action dock. */
  html[data-landing-theme] .hero { min-height: 0; overflow: hidden; background: var(--page); }
  html[data-landing-theme] .hero::before {
    z-index: 0;
    background: radial-gradient(ellipse 85% 38% at 90% 17%, var(--accent-bg), transparent 78%);
  }
  .hero::after { content: none; }
  .hero-inner {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: 126px;
    padding-bottom: 25px;
  }
  .hero-copy { display: contents; }
  .hero h1 {
    order: 1;
    max-width: 14ch;
    font-size: clamp(38px, 9.4vw, 48px);
    line-height: 1.06;
    letter-spacing: -.055em;
  }
  .hero h1::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin-bottom: 18px;
    border-radius: 3px;
    background: var(--accent);
  }
  .hero h1 em { display: inline; }
  .hero-lead {
    order: 2;
    max-width: 42ch;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.55;
  }
  .hero-scene {
    position: relative;
    order: 3;
    display: block;
    flex: none;
    width: 100vw;
    height: clamp(290px, 86vw, 360px);
    margin: 17px calc(50% - 50vw) 0;
    overflow: hidden;
    background-position: center bottom;
    background-size: 110% auto;
  }
  html[data-landing-theme="night"] .hero-scene {
    background-image: linear-gradient(to bottom, var(--page) 0%, #14141bc9 9%, #14141b15 37%, #14141b32 72%, var(--page) 100%),
      url('/landing-assets/hero/hero-mobile.webp');
  }
  html[data-landing-theme="day"] .hero-scene {
    background-image: linear-gradient(to bottom, var(--page) 0%, #f7f6fc92 12%, #f7f6fc08 40%, #f7f6fc40 73%, var(--page) 100%),
      url('/landing-assets/hero/hero-mobile.webp');
  }
  .hero-scene .speech-bubble {
    display: block;
    padding: 8px 11px;
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 8px 24px #14141b44;
    font-size: 11px;
    line-height: 1.25;
  }
  .hero-scene .speech-first { top: 15%; left: 6%; right: auto; }
  .hero-scene .speech-second { top: 18%; right: 5%; left: auto; }
  .hero-actions {
    position: relative;
    z-index: 2;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    width: 100%;
    margin-top: -87px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 16px 36px #09091240;
  }
  .hero-actions .button { min-height: 54px; border-radius: 12px; font-size: 15px; }
  .watch-link {
    align-self: center;
    gap: 9px;
    min-height: 39px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
  }
  .watch-link > span { width: 34px; height: 34px; border-radius: 50%; }
  .watch-link > span img { width: 13px; height: 13px; }
  .watch-link strong { font-size: 13px; }
  .watch-link small { display: none; }
  .search-area { margin-top: 0; }
  .search-area { position: relative; z-index: 2; }
  .search-panel {
    padding: 23px 16px 18px;
    border-radius: 20px;
  }
  .search-heading {
    align-items: flex-start;
    padding: 0 2px 18px;
    text-align: left;
  }
  .search-heading h2 { font-size: clamp(27px, 7vw, 34px); }
  .search-heading > p { margin-top: 5px; line-height: 1.5; }
  .search-form { gap: 10px; padding: 16px 0 0; }
  .search-step,
  .search-step:first-child,
  .step-country {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--field);
  }
  .step-heading { min-height: 0; margin-bottom: 15px; }
  .step-heading h3 { font-size: 16px; }
  .step-number { width: 40px; height: 40px; font-size: 18px; }
  .select-wrap,
  .select-wrap.country-picker { height: 50px; background: var(--surface); }
  .select-wrap + .select-wrap { margin-top: 10px; }
  .select-trigger { font-size: 15px; }
  .age-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }
  .age-choices legend { float: none; margin-bottom: 9px; font-size: 13px; }
  .age-choices legend small { font-size: 11px; }
  .choice,
  .country-choice { min-width: 0; min-height: 45px; font-size: 13px; white-space: normal; }
  .choice[data-age="any"] { grid-column: auto; }
  .country-choices { gap: 8px; }
  .country-choice { justify-content: flex-start; padding-inline: 10px; }
  .country-choice[data-country="any"] { justify-content: center; }
  .privacy-choice { min-height: 48px; gap: 9px; font-size: 13px; }
  .privacy-choice span { min-width: 0; }
  .search-submit { gap: 10px; padding: 6px 2px 0; }
  .search-submit .button { min-height: 54px; }
  .search-submit p { font-size: 12px; }
  .select-menu { max-width: calc(100vw - 64px); }
  .select-menu { display: flex; flex-direction: column; overflow: hidden; }
  .select-menu[hidden] { display: none; }
  .select-wrap.is-flipped .select-menu { top: auto; bottom: calc(100% + 6px); }
  .select-menu__search { flex: none; }
  .select-menu__list { min-height: 0; max-height: min(300px, 44dvh); overflow-y: auto; }
}

@media (max-width: 400px) {
  .hero-inner { padding-top: 112px; }
  .hero h1 { font-size: clamp(36px, 10.2vw, 40px); }
  .hero-lead { font-size: 14px; }
  .hero-scene .speech-bubble { font-size: 10px; }
  .search-panel { padding-inline: 12px; }
  .search-step,
  .search-step:first-child,
  .step-country { padding: 14px; }
  .country-choice { font-size: 12px; }
}

@media (min-width: 520px) and (max-width: 760px) {
  .hero-scene { background-position: center 65%; }
}

/* On a narrow document header the chat link keeps its accessible name. */
@media (max-width: 360px) {
  .legal-chat-button { min-width: 40px; justify-content: center; }
  .legal-chat-button::before { display: none; }
}
