/* Phone-only composition. The media-qualified link leaves desktop untouched.
   !important is limited to properties locked by the legacy hero overrides. */
@media (max-width: 700px) {
  .hero {
    --hero-gutter: 20px;
    --hero-white: #fff;
    --hero-mint: #bce1d7;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: block;
    background-position: 55% center;
  }

  .hero-overlay {
    pointer-events: none;
    background: linear-gradient(180deg,
      rgba(15, 68, 76, .50) 0%,
      rgba(0, 0, 0, .80) 100%);
  }

  .site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header .header-inner {
    width: calc(100% - 40px) !important;
    min-height: 68px;
    padding-top: env(safe-area-inset-top, 0px);
    display: flex;
    gap: 12px;
    justify-content: space-between;
  }
  .site-header .brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -.01em;
    text-shadow: 0 1px 12px rgba(0, 18, 24, .35);
  }
  .site-header .menu-toggle {
    width: 44px;
    height: 44px;
    margin: 0 -8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header .menu-toggle span { left: 10px; width: 24px; height: 1.5px; }
  .site-header .menu-toggle span:nth-child(1) { top: 14px; }
  .site-header .menu-toggle span:nth-child(2) { top: 21px; }
  .site-header .menu-toggle span:nth-child(3) { top: 28px; }
  .site-header .menu-toggle.is-open span:nth-child(1),
  .site-header .menu-toggle.is-open span:nth-child(3) { top: 21px; }
  .site-header .menu-toggle:active { background: rgba(255, 255, 255, .14); }
  .site-header .main-nav {
    top: calc(68px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    padding: 12px 18px;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    background: rgba(12, 44, 47, .96);
  }
  .site-header .main-nav a { display: flex; align-items: center; min-height: 44px; font-size: 16px; }

  .hero .hero-grid {
    width: calc(100% - var(--hero-gutter) * 2) !important;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: calc(clamp(84px, calc(100svh - 520px), 185px) + env(safe-area-inset-top, 0px)) 0
      max(clamp(24px, 5svh, 48px), env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: clamp(24px, 4svh, 38px) !important;
  }
  /* Share spare height between the existing text groups, not one empty spacer.
     Intrinsic content can still grow beyond a short viewport or enlarged text. */
  .hero .hero-copy {
    width: 100%;
    margin: 0;
    transform: none;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
  }
  .hero .hero-copy .hero-eyebrow {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    min-height: 34px;
    margin: 0 0 16px !important;
    padding: 6px 13px;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 999px;
    background: rgba(48, 64, 64, .58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--hero-white);
    font-size: 14px !important;
    line-height: 1.4;
    font-weight: 450;
    letter-spacing: 0;
  }
  .hero .hero-eyebrow span { flex: none; width: 8px; height: 8px; background: var(--hero-mint); box-shadow: none; }
  .hero h1 {
    width: 100%;
    margin: 0 0 18px !important;
    font-size: clamp(34px, 10.2vw, 44px) !important;
    line-height: 1.06 !important;
    letter-spacing: -.035em !important;
    font-weight: 650;
    color: var(--hero-white);
    text-wrap: initial;
    text-shadow: 0 2px 18px rgba(0, 15, 20, .18);
  }
  .hero h1 em { color: inherit; font-style: normal; }
  .hero .hero-copy .hero-lead {
    width: min(100%, 340px);
    margin: 0 0 24px !important;
    color: rgba(255, 255, 255, .94);
    font-size: 16px !important;
    font-weight: 400;
    line-height: 1.45 !important;
    letter-spacing: 0;
    text-wrap: pretty;
  }
  .hero .button-primary {
    width: 100% !important;
    min-height: 58px !important;
    padding: 10px 12px 10px 20px !important;
    justify-content: space-between !important;
    border: 1px solid rgba(185, 230, 224, .46);
    border-radius: 18px;
    background: linear-gradient(120deg, #216c73, #124d56);
    box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 8px 22px rgba(0, 22, 28, .17);
    font-size: 18px;
    font-weight: 550;
    letter-spacing: -.01em;
  }
  .hero .button-primary::after { display: none; animation: none; }
  .hero .button-primary .arrow { width: 36px; height: 36px; font-size: 24px; }
  .hero .button-primary:hover { transform: none; background: #216c73; }
  .hero .button-primary:active { background: #124d56; }

  /* Quiet trust list: all benefits visible, no separate card surfaces. */
  .hero .hero-benefits {
    width: 100% !important;
    display: flex !important;
    flex-direction: column;
    gap: 6px !important;
    padding: 14px 0 0 !important;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(235,248,240,.24);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    overflow: visible;
    scroll-snap-type: none;
  }
  .hero .hero-benefits::before { display: none; animation: none; }
  .hero .hero-benefit {
    flex: none;
    min-width: 0;
    min-height: 24px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 11px !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    color: rgba(255,255,255,.92);
    font-size: 14.5px !important;
    line-height: 1.35 !important;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0,18,20,.35);
    overflow: visible !important;
  }
  .hero .hero-benefit img {
    flex: none;
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    opacity: .85;
    animation: none;
  }
  .hero .hero-benefit span { min-width: 0; max-width: none; overflow-wrap: break-word; }
  .hero .hero-benefit:hover,
  .hero .hero-benefit:hover img { transform: none; box-shadow: none; }
}

@media (max-width: 350px) {
  .hero { --hero-gutter: 16px; }
  .site-header .header-inner { width: calc(100% - 32px) !important; }
}

@media (min-width: 500px) and (max-width: 700px) {
  .hero .hero-grid { max-width: 520px; }
}

@media (max-width: 700px) and (orientation: landscape) {
  .hero .hero-grid { padding-top: 110px !important; }
}

/* Short phones: recover space from margins, never from readable type/tap sizes. */
@media (max-width: 700px) and (max-height: 650px) and (orientation: portrait) {
  .hero .hero-grid {
    gap: 20px !important;
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important;
  }
  .hero .hero-copy .hero-eyebrow { margin-bottom: 12px !important; }
  .hero h1 { margin-bottom: 14px !important; }
  .hero .hero-copy .hero-lead { margin-bottom: 20px !important; }
}
