/* Responsive layout rules */
@media (max-width: 1040px) {
  .hero-content,
  .section-split,
  .section-split-reverse,
  .seo-hero-grid,
  .seo-section-grid {
    grid-template-columns: 1fr;
  }

  .section-split-reverse .section-copy,
  .section-split-reverse .section-visual {
    order: initial;
  }

  .hero-copy {
    padding: 2.5rem;
  }

  .hero-stats,
  .card-grid,
  .steps,
  .result-layout,
  .email-capture,
  .summary-grid,
  .comparison-grid,
  .related-grid,
  .priority-grid,
  .flow-grid,
  .persona-grid,
  .winner-grid,
  .quick-answer-card,
  .priority-choice-grid,
  .wallet-detail-grid,
  .result-preview-grid,
  .seo-compare-grid {
    grid-template-columns: 1fr;
  }


  .hero-media,
  .side-media {
    min-height: 340px;
  }

  .inline-media-grid {
    grid-template-columns: 1fr;
  }

  .hero-wallet-stack {
    grid-template-columns: 1fr;
  }

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

  .infographic-vs {
    display: none;
  }
}

@media (max-width: 767px) {
  .wallet-map-card,
  .wallet-map-legend {
    display: none;
  }

  .wallet-map-mobile {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    display: grid;
    gap: 0.85rem;
  }

  .wallet-map-mobile-card {
    display: flex;
    width: 100%;
  }

  .wallet-map-copy {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .hero,
  .section,
  .footer,
  .page-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 13px;
  }

  .nav.site-nav .brand {
    min-width: 0;
    gap: 0.46rem;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
  }

  .hero {
    padding-bottom: 3.3rem;
  }

  .hero-content {
    padding-top: 3.2rem;
    gap: 1.4rem;
  }

  .hero-copy {
    display: contents;
  }

  .hero-visual-group {
    display: contents;
  }

  .hero-intro {
    order: 1;
    padding: 2rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-lg);
  }

  .hero-visual {
    order: 2;
  }

  .hero-support {
    order: 3;
    display: grid;
    gap: 1.15rem;
  }

  .hero-wallet-stack {
    order: 4;
  }

  .section {
    padding-top: 3.6rem;
    padding-bottom: 3.6rem;
  }

  .quiz-shell,
  .result-card,
  .email-capture,
  .stat-card,
  .info-card,
  .step-card,
  .faq-item {
    border-radius: 22px;
  }

  .button,
  .quiz-controls .button,
  .result-actions .button,
  .nav-actions .button {
    width: 100%;
  }

  .nav-actions,
  .hero-actions,
  .quiz-controls,
  .result-actions,
  .cta-row {
    flex-direction: column;
  }

  .hero-badge,
  .trust-pill {
    width: 100%;
  }

  .hero-wallet-card {
    padding: 1.15rem;
    border-radius: 22px;
  }

  .hero-wallet-top {
    align-items: flex-start;
  }

  .hero-wallet-top > .wallet-card-logo,
  .winner-card-header > .wallet-card-logo,
  .wallet-detail-header > .wallet-card-logo {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.45rem;
    border-radius: 16px;
  }

  .hero-visual-stage {
    min-height: 320px;
    border-radius: 28px;
  }

  .hero-device-visual {
    width: 7.2rem;
    height: 10rem;
  }

  .hero-card-visual {
    width: 9.2rem;
    height: 5.85rem;
  }

  .hero-device-visual-ledger {
    right: 3rem;
    bottom: 3.5rem;
  }

  .hero-device-visual-trezor {
    left: 3rem;
    bottom: 4.3rem;
  }

  .hero-card-visual-tangem {
    bottom: 2rem;
  }

  .hero-visual-badge {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 16px;
  }

  .hero-wallet-meta div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .hero-media,
  .side-media {
    min-height: 280px;
  }

  .quiz-shell,
  .result-card,
  .email-capture {
    padding: 1.3rem;
  }

  .email-capture {
    grid-template-columns: 1fr;
  }

  .quiz-card {
    min-height: auto;
    padding: 1.2rem;
  }

  .answer-option label {
    padding: 0.95rem 0.95rem 0.95rem 3.2rem;
  }

  .result-card::before {
    inset: 0 0 auto 0;
    width: 100%;
    height: 7px;
  }

  .result-media-panel {
    width: 100%;
    height: 190px;
    margin: 1rem 0 0;
    border-radius: 22px;
  }

  .result-media-link {
    position: relative;
    top: auto;
    right: auto;
    border-radius: 22px;
  }

  .result-topline,
  .result-status,
  .result-header {
    max-width: none;
  }

  .result-header {
    align-items: flex-start;
  }

  .wallet-icon-shell {
    width: 112px;
    height: 112px;
    border-radius: 28px;
  }

  .wallet-icon {
    width: 76px;
    height: 76px;
  }

  .wallet-icon-link {
    border-radius: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.6rem;
  }

  .footer {
    padding-top: 3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }

  .footer-column {
    gap: 0.64rem;
  }

  .footer-bottom {
    margin-top: 2rem;
  }

  .compare-table-shell {
    padding: 0.2rem;
    border-radius: 22px;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.85rem 0.9rem;
  }

  .winner-card,
  .quick-answer-card,
  .priority-choice-card,
  .wallet-detail-card,
  .result-preview-card,
  .seo-compare-card {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .asset-image-placeholder {
    margin-bottom: 0.85rem;
    border-radius: 22px;
  }

  .infographic-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .infographic-wallet-card {
    padding: 1rem;
    border-radius: 24px;
  }

  .infographic-product-frame,
  .infographic-product-fallback {
    min-height: 170px;
  }

  .infographic-brand-row {
    justify-content: flex-start;
  }

  .infographic-brand-row h3 {
    font-size: 2rem;
  }

  .infographic-stat-row {
    grid-template-columns: 40px minmax(82px, auto) minmax(0, 1fr);
    gap: 0.62rem;
    padding: 0.52rem 0.65rem;
  }

  .infographic-stat-row-wide {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .infographic-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .infographic-stat-icon .ui-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .infographic-stat-row strong {
    font-size: 1.12rem;
    white-space: normal;
  }

  .infographic-stat-row span:last-child {
    font-size: 0.84rem;
  }

  .wallet-visual-placeholder {
    min-height: 9.5rem;
    margin: 0.9rem 0 1rem;
    border-radius: 22px;
  }

  .wallet-visual-silhouette-device {
    width: 4.9rem;
    height: 6.35rem;
  }

  .wallet-visual-silhouette-card {
    width: 6.35rem;
    height: 4.1rem;
  }

  .quick-answer-card {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .quick-answer-type,
  .eyebrow,
  .hero-badge {
    gap: 0.4rem;
  }

  .ui-icon-pill {
    width: 2.65rem;
    height: 2.65rem;
    flex-basis: 2.65rem;
    border-radius: 15px;
  }

  .ui-icon-pill-sm {
    width: 2.5rem;
    height: 2.5rem;
    flex-basis: 2.5rem;
    border-radius: 14px;
  }

  .ui-icon {
    width: 1.35rem;
    height: 1.35rem;
  }

  .ui-icon-pill-sm .ui-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .quick-answer-actions {
    width: 100%;
    justify-content: stretch;
  }

  .quick-answer-link {
    flex: 1 1 10rem;
    width: auto;
    min-height: 44px;
  }

  .comparison-note-actions {
    width: 100%;
  }

  .comparison-note-cta {
    flex: 1 1 10rem;
    min-height: 44px;
  }

  .page-card {
    padding: 1.45rem;
    border-radius: 22px;
  }

  .content-stack {
    gap: 1rem;
  }

  .content-stack section {
    gap: 0.85rem;
    padding: 1.15rem 1.1rem;
  }

  .page-media {
    min-height: 240px;
  }

  .page-media.is-empty {
    min-height: 220px;
  }

  .inline-media-card {
    min-height: 220px;
  }

  .inline-media-card--compact {
    min-height: 190px;
  }

  .wallet-card-title {
    gap: 0.6rem;
  }

  .wallet-card-logo {
    width: 26px;
    height: 26px;
  }

  .section-kicker {
    font-size: 0.76rem;
    gap: 0.45rem;
  }

  .icon-chip {
    min-width: 2.2rem;
    height: 1.85rem;
    padding: 0 0.58rem;
    font-size: 0.69rem;
  }

  .flow-step {
    width: 2rem;
    height: 2rem;
  }

  .matrix-row {
    gap: 0.75rem;
    padding: 0.95rem;
  }

  .matrix-value {
    padding: 0.75rem 0.8rem;
  }

  .cta-note {
    font-size: 0.94rem;
  }

  .matrix-values {
    grid-template-columns: 1fr;
  }

}
