/* ================================================================
   Trusted Results Hub — responsive.css
================================================================ */

/* ----------------------------------------------------------------
   <= 1199px — desktop down
---------------------------------------------------------------- */
@media (max-width: 1199px) {
  .container { max-width: 992px; }
  .title-big { font-size: 4.6rem; }
  .reality__title,
  .howto__title { font-size: 3.6rem; }

  .howto-step__title { font-size: 2.3rem; }
}

/* ----------------------------------------------------------------
   <= 991px — tablet (collapse nav into hamburger; stack hero;
   stack reality split; tighten how-it-works)
---------------------------------------------------------------- */
@media (max-width: 991px) {
  .container { max-width: 100%; padding: 0 24px; }

  .toggle-menu { display: flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    background: var(--surface);
    box-shadow: -10px 0 36px rgba(11, 47, 63, 0.18);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 28px 32px;
    transform: translateX(110%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
    overflow-y: auto;
  }
  html.sidebar-open .site-nav { transform: translateX(0); }

  .close-menu {
    display: block;
    position: absolute;
    top: 22px;
    right: 24px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    cursor: pointer;
  }


  .menu-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    width: 100%;
  }
  .site-main-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
  .site-main-menu li { width: 100%; padding: 10px 0; border-bottom: 1px dashed var(--border); }
  .site-main-menu li a { font-size: 1.7rem; }

  .site-nav .btn,
  .site-nav .btn_main {
    width: 100%;
    padding: 14px 24px;
    margin-top: 12px;
  }

  /* Hero stacks */
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero__split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero__text { max-width: 100%; margin: 0 auto; }
  .hero__cta { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__visual { max-width: 540px; margin: 0 auto; width: 100%; }

  /* Boarding pass scales */
  .boarding-pass__value { font-size: 2.05rem; }
  .boarding-pass__path { width: 90px; }
  .boarding-pass__stub { padding: 16px 18px 20px; gap: 14px; }
  .boarding-pass__stamp { width: 84px; height: 84px; font-size: 1.05rem; }
  .boarding-pass__barcode { height: 40px; }

  /* Hero arcs scale down + soften a touch on tablet */
  .hero__arc { opacity: 0.22; }
  .hero__arc--alt { opacity: 0.18; }
  .hero__arc--faint { opacity: 0.10; }

  /* Reality split — stack vertically, divider becomes horizontal */
  .reality { padding: 80px 0 80px; }
  .reality__split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .reality__panel-head,
  .reality__panel--with .reality__panel-head { align-items: center; }
  /* When stacked, pill is centered; clear the desktop alignment insets */
  .reality__panel--without .reality__panel-context,
  .reality__panel--with .reality__panel-context { padding-left: 0; padding-right: 0; }
  .reality__divider { flex-direction: row; height: 56px; gap: 14px; }
  .reality__divider::before {
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    border-left: 0;
    border-top: 2px dashed var(--dash-color);
    transform: translateY(-50%);
  }
  .reality__divider-pill {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
  }
  .reality__divider-arrow {
    width: 56px;
    height: 22px;
    transform: rotate(-90deg);
  }

  /* How it works — stack vertically on tablet */
  .howto { padding: 80px 0 100px; }
  .howto__row {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 540px;
  }
  .howto-step__title { font-size: 2.2rem; }
  .howto-step__desc { font-size: 1.5rem; }
  /* Heads don't need to be height-equalised once stacked */
  .howto-step__head { min-height: 0; margin-bottom: 18px; }
  .howto-step__visual { min-height: 0; }
  .howto-mock { max-width: 480px; margin: 0 auto; }
  .howto-popup-img { max-height: 540px; }
  /* Arrows rotate to vertical when stacked */
  .howto-arrow { margin: 0 auto; transform: rotate(90deg); }
  .howto-arrow svg { width: 24px; height: 56px; }

  /* Footer */
  .footer-wrapper { flex-direction: column; align-items: flex-start; gap: 32px; padding-bottom: 36px; }

  /* Toggle-menu open state */
  html.sidebar-open .toggle-menu .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  html.sidebar-open .toggle-menu .bar:nth-child(2) { opacity: 0; }
  html.sidebar-open .toggle-menu .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ----------------------------------------------------------------
   Inner pages (404 / removed) — tablet
---------------------------------------------------------------- */
@media (max-width: 991px) {
  .inner-page { padding: 130px 0 80px; }
  .inner-figure__svg { width: 240px; }
}

/* ----------------------------------------------------------------
   <= 767px — mobile-landscape
---------------------------------------------------------------- */
@media (max-width: 767px) {
  .title-big { font-size: 3.6rem; }
  .title { font-size: 3rem; }
  .hero__subtitle { font-size: 1.65rem; }

  .reality__title,
  .howto__title { font-size: 2.8rem; }

  /* Boarding pass — tighter route */
  .boarding-pass__route { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .boarding-pass__value { font-size: 1.85rem; }
  .boarding-pass__path { width: 70px; height: 28px; }
  .boarding-pass__details { grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
  .boarding-pass__stub { padding: 14px 16px 18px; }
  .boarding-pass__barcode { height: 36px; gap: 2px; }

  /* Browser mocks */
  .browser-mock__url { font-size: 1.05rem; padding: 4px 10px; }
  .browser-mock__query { font-size: 1.55rem; }
  .browser-mock__title { font-size: 1.3rem; }
  .browser-mock__body { padding: 16px 16px 18px; }
  .reality__stamp { width: 72px; height: 72px; font-size: 0.9rem; bottom: 60px; }

  /* How it works */
  .howto-step__title { font-size: 2rem; }
  .howto-popup-img { max-height: 480px; }

  /* Inner pages */
  .inner-figure { margin-bottom: 32px; }
  .inner-figure__svg { width: 220px; }
}

/* ----------------------------------------------------------------
   <= 575px — mobile-portrait
---------------------------------------------------------------- */
@media (max-width: 575px) {
  .container { padding: 0 18px; }

  .hero { padding: 110px 0 50px; }
  .title-big { font-size: 3.2rem; line-height: 1.15; }
  .hero__eyebrow { font-size: 1.05rem; padding: 6px 12px; letter-spacing: 0.14em; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn,
  .hero__cta .btn_main,
  .hero__cta .btn_ghost { width: 100%; }
  .hero__trust { gap: 14px; font-size: 1.3rem; }

  /* Boarding pass — even tighter */
  .boarding-pass__header { padding: 14px 18px; }
  .boarding-pass__brand { font-size: 1.3rem; }
  .boarding-pass__type { font-size: 0.95rem; }
  .boarding-pass__main { padding: 22px 18px 18px; }
  .boarding-pass__value { font-size: 1.6rem; }
  .boarding-pass__sub { font-size: 1.1rem; }
  .boarding-pass__path { width: 56px; }
  .boarding-pass__plane { font-size: 1.5rem; width: 24px; height: 24px; }
  .boarding-pass__detail dd { font-size: 1.3rem; }

  /* Reality */
  .reality { padding: 70px 0 70px; }

  /* How it works */
  .howto { padding: 70px 0 90px; }
  .howto-step__title { font-size: 1.85rem; }
  .howto-step__desc { font-size: 1.4rem; }
  .howto-popup-img { max-height: 440px; }

  .terms-privacy { padding: 28px 22px; }
  .terms-privacy h2 { font-size: 2rem; }
  .terms-privacy h3 { font-size: 1.6rem; }
}

/* ----------------------------------------------------------------
   <= 480px — small mobile
---------------------------------------------------------------- */
@media (max-width: 480px) {
  html { font-size: 9.5px; }
  .title-big { font-size: 2.9rem; }
  .hero__subtitle { font-size: 1.55rem; }

  .boarding-pass__value { font-size: 1.45rem; }
  .boarding-pass__details { gap: 8px 12px; }
  .boarding-pass__stamp { width: 74px; height: 74px; font-size: 0.9rem; }

  .browser-mock__title { font-size: 1.2rem; }
  .browser-mock__snippet { font-size: 1.1rem; }
  .reality__stamp { width: 64px; height: 64px; font-size: 0.8rem; bottom: 54px; right: 10px; }

  /* Inner pages */
  .inner-figure__svg { width: 200px; }
}
