/* Final responsive pass. Kept separate so it wins over the legacy theme layers. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
iframe {
  max-width: 100%;
}

.site-nav,
.nav-links,
.nav-links a,
.nav-cta {
  white-space: nowrap;
}

.nav-account {
  gap: 7px;
  justify-content: center;
}

.nav-account svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.concept-grid,
.presence-grid,
.product-grid,
.download-grid,
.seal-grid {
  min-width: 0;
}

.concept-grid,
.presence-grid,
.product-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.concept-grid {
  gap: 64px;
}

.concept-grid > *,
.presence-grid > *,
.product-grid > *,
.download-card,
.feature > div:last-child {
  min-width: 0;
}

.concept-grid .section-head h2,
.presence-grid .section-head h2 {
  font-size: 46px;
  line-height: 1.12;
}

.product-scene {
  min-height: 620px;
  justify-self: stretch;
}

.download-grid {
  align-items: stretch;
}

.package-meta span,
.download-card p,
.feature span {
  overflow-wrap: anywhere;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(201, 154, 69, 0.72);
  outline-offset: 3px;
}

@media (max-width: 1040px) and (min-width: 861px) {
  .site-nav {
    gap: 14px;
  }

  .nav-links {
    gap: 13px;
    font-size: 13px;
  }

  .nav-cta {
    padding-inline: 12px;
  }
}

@media (max-width: 860px) {
  header[id],
  section[id] {
    scroll-margin-top: 88px;
  }

  .site-nav {
    min-height: 64px;
    gap: 10px;
  }

  .nav-links {
    display: flex;
    margin-left: auto;
    gap: 0;
  }

  .nav-links > a:not(.nav-account) {
    display: none;
  }

  .nav-account {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .hero-inner {
    width: min(100% - 32px, 1120px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .hero-actions .button {
    min-width: 0;
    padding-inline: 10px;
    text-align: center;
  }

  .below-hint.identity-hint {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    scroll-snap-type: none;
  }

  .identity-hint .hint-item {
    min-width: 0;
    min-height: 58px;
    padding: 10px 2px;
    display: grid;
    place-items: center;
    text-align: center;
  }

  .identity-hint .hint-item strong {
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .identity-hint .hint-item span {
    display: none;
  }

  section.band {
    padding: 66px 0;
  }

  .section-head,
  .presence-copy {
    width: 100%;
    max-width: none;
  }

  .section-head h2,
  .concept-grid .section-head h2,
  .presence-grid .section-head h2 {
    font-size: 36px;
    line-height: 1.16;
  }

  .section-head p {
    font-size: 16px;
    line-height: 1.75;
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step {
    min-width: 0;
    min-height: 184px;
    padding: 18px 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .flow-step:nth-child(even) {
    border-right: 0;
  }

  .flow-step:last-child {
    grid-column: 1 / -1;
    min-height: auto;
    border-right: 0;
    border-bottom: 0;
  }

  .flow-step small {
    font-size: 24px;
  }

  .flow-step h3 {
    margin-top: 10px;
    font-size: 18px;
  }

  .flow-step p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.62;
  }

  .concept-grid,
  .presence-grid,
  .product-grid,
  .download-grid,
  .seal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .concept-grid {
    gap: 38px;
  }

  .concept-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding-block: 18px;
  }

  .concept-item b {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }

  .concept-item strong {
    font-size: 19px;
  }

  .concept-item span {
    font-size: 15px;
    line-height: 1.65;
  }

  .concept-device {
    width: 100%;
    min-height: auto;
    padding: 24px 16px;
    align-content: initial;
  }

  .personality-orbit {
    width: min(318px, 100%);
  }

  .persona-quote {
    width: min(318px, 100%);
    margin-top: 18px;
    padding: 13px 14px;
    font-size: 14px;
  }

  .presence-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .presence-actions span {
    min-width: 0;
    min-height: 116px;
    padding: 14px 10px;
    font-size: 13px;
  }

  .presence-actions strong {
    font-size: 16px;
  }

  .elder-scene,
  .elder-scene img {
    min-height: 440px;
  }

  .voice-bubble {
    padding: 15px;
  }

  .voice-bubble strong {
    font-size: 16px;
  }

  .feature {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .feature-icon {
    width: 42px;
    height: 42px;
  }

  .feature strong {
    font-size: 18px;
  }

  .download-grid {
    gap: 14px;
  }

  .download-card {
    min-height: auto;
    padding: 20px 18px;
  }

  .download-actions {
    margin-top: 20px;
  }

  .seal {
    min-height: auto;
  }

  .seal::after {
    top: 12px;
    right: 12px;
    width: 58px;
    height: 58px;
  }

  .cta-copy {
    width: 100%;
  }

  .cta-copy h2 {
    font-size: 36px;
    line-height: 1.16;
  }
}

@media (max-width: 360px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .identity-hint .hint-item strong {
    font-size: 11px;
  }

  .presence-actions {
    grid-template-columns: 1fr;
  }

  .presence-actions span {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-scene img,
  .elder-scene,
  .personality-orbit::before {
    transform: none;
    animation: none;
  }
}
