/* 2026-07 mobile-first interaction and readability layer */
.customs-method-toggle {
  display: none;
}
@media (max-width: 980px) {
  html {
    overflow-x: hidden;
    scroll-padding-top: 76px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  body.mobile-nav-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  a,
  button,
  input,
  select,
  textarea,
  [role="button"],
  [role="tab"] {
    touch-action: manipulation;
  }

  .scroll-progress {
    display: none !important;
  }

  .topbar,
  .home-page .topbar,
  .landing-page .topbar,
  .customs-page .topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(30, 93, 69, 0.1);
    background: rgba(255, 255, 252, 0.98);
    box-shadow: 0 8px 28px rgba(26, 74, 56, 0.055);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar.nav-open {
    position: fixed;
    inset: 0;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fffefb;
  }

  .nav {
    width: min(calc(100% - 28px), 760px);
    min-height: 66px;
    align-content: flex-start;
    padding: 8px 0;
  }

  .wordmark-brand {
    min-width: 0;
  }

  .brand-wordmark {
    font-size: 20px;
    letter-spacing: -0.045em;
  }

  .brand-signature {
    margin-top: 2px;
    font-size: 6px;
    letter-spacing: 0.11em;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
    margin-left: auto;
    border-color: rgba(15, 118, 86, 0.14);
    border-radius: 14px;
    color: #174638;
    background: #f0f8f4;
  }

  .nav-links,
  .nav-actions,
  .home-page .nav-actions {
    border: 0;
    border-radius: 18px;
    background: #f7fbf8;
    box-shadow: none;
  }

  .nav-open .nav-links {
    margin-top: 14px;
  }

  .nav-open .nav-actions {
    margin-top: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .nav-link,
  .dropdown-trigger,
  .nav-actions .btn,
  .nav-utility-link {
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }

  .nav-open .nav-link,
  .nav-open .dropdown-trigger {
    color: #284f42;
  }

  .nav-link::after,
  .dropdown-trigger::after {
    display: none;
  }

  .nav-actions .nav-utility-link {
    display: flex;
    align-items: center;
    padding: 0 14px;
  }

  .nav-lang {
    display: none;
  }

  .contact-dropdown .contact-menu {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(25, 122, 88, 0.1);
  }

  .section-inner,
  .customs-shell {
    width: min(calc(100% - 32px), 760px);
  }

  .section,
  .home-page .section {
    padding: 64px 0;
  }

  .page-hero {
    min-height: 0;
    padding: 72px 0 54px;
  }

  .page-hero h1,
  .landing-page .page-hero h1 {
    max-width: 680px;
    font-size: clamp(38px, 8vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.045em;
  }

  .page-hero p,
  .landing-page .page-hero p {
    max-width: 680px;
    font-size: 15px;
    line-height: 1.78;
  }

  .section-head,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .section-head h2 {
    font-size: clamp(30px, 7vw, 42px);
    line-height: 1.16;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .catalog-product-grid,
  .product-commerce-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .btn,
  button.btn {
    min-height: 48px;
  }

  input,
  select,
  textarea,
  .field {
    font-size: 16px;
  }

  input,
  select,
  .field {
    min-height: 50px;
  }

  .card,
  .product-card,
  .download-card,
  .form-panel,
  .signal-panel {
    border-radius: 20px;
  }

  .modal,
  .demo-modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-panel,
  .demo-modal-panel {
    width: 100%;
    max-height: min(88dvh, 760px);
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .reveal-up,
  .reveal-up.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .home-page .hero-network-embedded,
  .home-page .hero-network-embedded .hero-inner {
    min-height: max(100svh, 720px);
  }

  .home-page .hero-network-embedded .hero-inner {
    width: min(calc(100% - 28px), 560px);
    padding: 92px 0 28px;
  }

  .home-page .hero-main-title,
  .home-page .hero h1 {
    font-size: clamp(31px, 8.8vw, 38px);
    line-height: 1.1;
  }

  .home-page .hero p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.7;
  }

  .home-page .hero-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .home-page .hero-actions .btn {
    min-height: 50px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .home-page .hero-inline-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .home-page #products .grid-4,
  .growth-metric-grid,
  .network-layout,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .home-page .product-card,
  .home-page .card,
  .home-page .step,
  .home-page .metric-card {
    min-height: 0;
    padding: 22px;
    box-shadow: 0 14px 38px rgba(38, 82, 65, 0.09);
  }

  .home-page .product-links {
    opacity: 1;
    transform: none;
  }

  .home-page .product-purchase-row,
  .product-purchase-row {
    align-items: stretch;
    flex-direction: column;
  }

  .home-page .product-purchase-row .btn,
  .product-purchase-row .btn {
    width: 100%;
  }

  .home-page .timeline .step:nth-child(even) {
    margin-top: 0;
  }

  .network-map,
  .hero-signal-map {
    min-height: 370px;
    border-radius: 20px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-page .hero-network-embedded .network-signal-map .region-node[data-region="上海"],
  .home-page .hero-network-embedded .network-signal-map .region-node[data-region="深圳"],
  .home-page .hero-network-embedded .network-signal-map .region-node[data-region="孟买"],
  .home-page .hero-network-embedded .network-signal-map .region-node[data-region="汉堡"],
  .home-page .hero-network-embedded .network-signal-map .region-node[data-region="墨西哥城"],
  .home-page .hero-network-embedded .network-signal-map .region-node[data-region="圣保罗"] {
    display: none;
  }

  .region-node {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .region-node small,
  .signal-data-layer,
  .signal-live-meter small {
    display: none;
  }

  .network-status {
    right: 10px;
    bottom: 10px;
    left: 10px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 11px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 16px;
    align-items: start;
  }

  .footer-hub.section-inner {
    padding: 38px 0 24px;
  }

  .footer-column {
    min-width: 0;
  }

  .footer-column-title {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.3;
  }

  .footer-links {
    gap: 2px;
  }

  .footer-link {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    margin-top: 34px;
  }

  .footer-tab {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 10px 8px;
    border: 1px solid rgba(34, 95, 72, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.62);
    font-size: 13px;
  }

  .footer-tab svg {
    width: 19px;
    height: 19px;
  }

  .footer-legal {
    gap: 7px 10px;
    padding-top: 20px;
    font-size: 11px;
  }

  .download-card,
  .download-security-panel,
  .download-flow,
  .trial-panel,
  .form-panel {
    padding: 22px;
  }

  .download-card-actions,
  .member-auth-actions,
  .assessment-form-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lead-demo-workbench,
  .lead-export-layout,
  .lead-contact-grid,
  .lead-field-grid {
    grid-template-columns: 1fr;
  }

  .lead-result-table,
  .lead-value-table,
  .docs-code-block,
  .docs-browser-steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Mobile member, checkout and payment */
@media (max-width: 820px) {
  .member-center-page,
  .member-center-page main,
  .member-dashboard-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .member-center-page .section-inner {
    width: min(calc(100% - 24px), 760px);
    max-width: 100%;
  }

  .member-hero {
    padding: 54px 0 42px;
  }

  .member-hero .section-inner,
  .member-dashboard,
  .member-form-grid,
  .member-console-grid {
    grid-template-columns: 1fr;
  }

  .member-hero-copy h1 {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.12;
  }

  .member-hero-console {
    min-height: 0;
    margin-top: 22px;
    padding: 20px;
    border-radius: 20px;
  }

  .member-console-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .member-dashboard-section {
    padding: 52px 0 72px;
  }

  .member-premium-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 22px 18px;
    border-radius: 22px;
    box-shadow: none;
  }

  .member-dashboard,
  .member-account-card,
  .member-checkout-card,
  .member-card-head,
  .member-card-head > div,
  .member-account-identity,
  .member-account-identity > div,
  .member-form-grid,
  .member-field,
  .member-password-field > div,
  .member-auth-actions,
  .member-checkout-step,
  .member-product-picker,
  .member-order-summary {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .member-account-identity {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 13px;
    padding: 15px;
  }

  .member-avatar {
    width: 54px;
    height: 54px;
  }

  .member-center-page .field,
  .member-field input,
  .member-password-field .field,
  .member-auth-actions .btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .member-auth-status,
  .member-card-head p,
  .member-account-identity div > span {
    overflow-wrap: anywhere;
  }

  .member-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .member-field input,
  .member-product-trigger {
    min-height: 54px;
    font-size: 16px;
  }

  .member-product-menu {
    max-height: min(56dvh, 430px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .member-product-menu button {
    min-height: 68px;
  }

  .member-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(154px, 1fr));
    overflow-x: auto;
    padding: 3px 2px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .member-plan-grid .choice {
    min-height: 124px;
    scroll-snap-align: start;
  }

  .member-pay-grid {
    grid-template-columns: 1fr 1fr;
  }

  .member-pay-grid .choice {
    min-width: 0;
    min-height: 104px;
    padding: 14px 12px;
  }

  .member-order-summary {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .member-pay-button,
  .member-license-button {
    min-height: 52px;
  }

  .member-modal-panel {
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
  }

  .member-modal-layout {
    grid-template-columns: 1fr;
  }

  .member-modal-qr {
    display: none;
  }
}

/* Mobile documentation reading */
@media (max-width: 820px) {
  .docs-hero {
    padding: 58px 0 44px;
  }

  .docs-hero .section-inner,
  .docs-layout,
  .docs-info-grid,
  .docs-config-grid,
  .docs-faq-grid,
  .docs-path-grid {
    grid-template-columns: 1fr;
  }

  .docs-hero-copy h1 {
    font-size: clamp(38px, 10vw, 50px);
  }

  .docs-search input {
    min-height: 54px;
    font-size: 16px;
  }

  .docs-search kbd {
    display: none;
  }

  .docs-knowledge-visual {
    min-height: 300px;
    margin-top: 24px;
    transform: scale(0.92);
  }

  .docs-workspace {
    padding-top: 0;
  }

  .docs-sidebar {
    position: sticky;
    top: 66px;
    z-index: 30;
    margin: 0 -16px 20px;
    padding: 8px 16px;
    border: 0;
    border-bottom: 1px solid rgba(28, 104, 76, 0.1);
    border-radius: 0;
    background: rgba(255, 255, 252, 0.97);
    box-shadow: 0 8px 24px rgba(34, 78, 61, 0.06);
  }

  .docs-sidebar-label,
  .docs-sidebar-help {
    display: none;
  }

  .docs-sidebar-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .docs-sidebar-nav::-webkit-scrollbar,
  .docs-product-tabs::-webkit-scrollbar {
    display: none;
  }

  .docs-sidebar-nav a {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 12px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .docs-article {
    scroll-margin-top: 126px;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .docs-article-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .docs-article-heading h2 {
    font-size: 28px;
  }

  .docs-product-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .docs-product-tabs button {
    min-width: max-content;
    min-height: 46px;
  }

  .docs-step-list article,
  .docs-license-map {
    grid-template-columns: 1fr;
  }

  .docs-license-map > i {
    transform: rotate(90deg);
  }
}

/* Mobile customs research and report */
@media (max-width: 820px) {
  .customs-page {
    background: #f7fbf8;
  }

  .customs-hero {
    min-height: 0;
    padding: 54px 0 42px;
  }

  .customs-hero-grid,
  .customs-section-head,
  .customs-builder-grid {
    grid-template-columns: 1fr;
  }

  .customs-hero-copy h1 {
    max-width: 520px;
    margin: 18px 0;
    font-size: clamp(38px, 11vw, 50px);
    line-height: 1.12;
  }

  .customs-hero-copy > p {
    font-size: 15px;
    line-height: 1.78;
  }

  .customs-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .customs-hero-actions .btn {
    justify-content: space-between;
    min-height: 52px;
  }

  .customs-text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
  }

  .customs-trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 24px;
  }

  .customs-trust-row span {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--customs-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.72);
  }

  .customs-hero-visual {
    min-height: 320px;
    margin-top: 24px;
  }

  .customs-preview-card {
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    transform: none;
    box-shadow: 0 20px 55px rgba(30, 92, 68, 0.11);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .customs-preview-metrics {
    padding: 14px;
  }

  .customs-preview-chart {
    height: 128px;
    gap: 7px;
  }

  .customs-orbit,
  .customs-float-note {
    display: none;
  }

  .customs-builder-section,
  .customs-report-section {
    padding: 56px 0 76px;
  }

  .customs-section-head {
    gap: 14px;
    margin-bottom: 24px;
  }

  .customs-section-head h2 {
    font-size: 32px;
    line-height: 1.17;
  }

  .customs-section-head > p {
    font-size: 13px;
    line-height: 1.75;
  }

  .customs-form {
    min-width: 0;
  }

  .customs-form-progress {
    position: sticky;
    top: 66px;
    z-index: 24;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    margin: 0 0 14px;
    padding: 4px;
    border: 1px solid rgba(26, 112, 80, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 252, 0.96);
    box-shadow: 0 10px 28px rgba(33, 79, 61, 0.08);
  }

  .customs-form-progress span,
  .customs-form-progress .is-active {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 5px;
    border: 0;
    border-radius: 10px;
    font-size: 9px;
    text-align: center;
  }

  .customs-form-progress .is-active {
    color: var(--customs-green-dark);
    background: var(--customs-pale);
  }

  .customs-form-card {
    scroll-margin-top: 126px;
    padding: 20px 16px;
    border-radius: 18px;
    box-shadow: none;
  }

  .customs-form-card legend {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .customs-form-card legend > span {
    width: 34px;
    height: 34px;
  }

  .customs-form-card legend strong {
    font-size: 15px;
  }

  .customs-field-grid,
  .customs-choice-row {
    grid-template-columns: 1fr;
  }

  .customs-year-grid {
    grid-template-columns: 1fr 1fr;
  }

  .customs-field input,
  .customs-field select,
  .customs-field textarea {
    min-height: 52px;
    padding-inline: 13px;
    font-size: 16px;
  }

  .customs-field textarea {
    min-height: 112px;
  }

  .customs-choice-row label > span {
    min-height: 64px;
    padding: 13px;
  }

  .customs-chip-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .customs-chip-grid label > span {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    text-align: center;
  }

  .customs-upload {
    min-height: 86px;
    padding: 14px;
  }

  .customs-upload-copy small {
    line-height: 1.55;
  }

  .customs-form-submit {
    position: sticky;
    bottom: 0;
    z-index: 26;
    margin: 4px -4px 0;
    padding: 10px;
    border: 1px solid rgba(38, 106, 80, 0.11);
    border-radius: 16px 16px 0 0;
    background: rgba(255, 255, 252, 0.96);
    box-shadow: 0 -10px 28px rgba(28, 77, 58, 0.09);
    backdrop-filter: none;
  }

  .customs-form-submit > div {
    display: none;
  }

  .customs-submit {
    width: 100%;
    min-height: 52px;
  }

  .customs-method-card {
    margin-top: 18px;
  }

  .customs-method-sticky {
    padding: 20px 16px;
    border-radius: 18px;
    box-shadow: none;
  }

  .customs-method-sticky h3 {
    font-size: 24px;
  }

  .customs-method-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 0 14px;
    border: 1px solid var(--customs-line);
    border-radius: 12px;
    color: var(--customs-green-dark);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
  }

  .customs-method-toggle i {
    font-style: normal;
    font-size: 18px;
    transition: transform .2s ease;
  }

  .customs-method-sticky:not(.is-collapsed) .customs-method-toggle i {
    transform: rotate(45deg);
  }

  .customs-method-sticky.is-collapsed .customs-method-content {
    display: none;
  }

  .customs-method-sticky ol {
    grid-template-columns: 1fr;
  }

  .customs-report-toolbar {
    position: sticky;
    top: 74px;
    bottom: auto;
    z-index: 34;
    margin: 0 -4px 12px;
    padding: 9px;
    border: 1px solid rgba(38, 106, 80, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 252, 0.97);
    box-shadow: 0 -10px 28px rgba(28, 77, 58, 0.1);
    backdrop-filter: none;
  }

  .customs-report-toolbar > div:first-child {
    display: none;
  }

  .customs-report-actions {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 1px;
    -webkit-overflow-scrolling: touch;
  }

  .customs-report-actions .btn,
  .customs-report-actions .btn:last-child {
    min-width: max-content;
    min-height: 46px;
    flex: 1 0 auto;
    padding-inline: 13px;
  }

  .customs-report {
    border-radius: 20px;
    box-shadow: none;
  }

  .customs-report-cover {
    min-height: 430px;
    padding: 26px 18px;
  }

  .customs-report-cover > div:first-child,
  .customs-report-cover-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .customs-report-title h2 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.12;
  }

  .customs-report-product-image {
    right: 18px;
    bottom: 66px;
    width: 84px;
    height: 84px;
    border-radius: 15px;
  }

  .customs-report-summary,
  .customs-report-block,
  .customs-report-sources {
    padding: 28px 16px;
  }

  .customs-report-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
  }

  .customs-report-section-head h3,
  .customs-report-sources h3 {
    font-size: 23px;
  }

  .customs-metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .customs-metric-grid article {
    min-height: 128px;
    padding: 14px;
    border-radius: 15px;
  }

  .customs-metric-grid strong {
    margin: 17px 0 6px;
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .customs-bar-chart,
  .customs-month-chart,
  .customs-table-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .customs-bar-chart {
    min-height: 250px;
    gap: 10px;
    padding-inline: 2px;
  }

  .customs-bar-item,
  .customs-month-item {
    scroll-snap-align: start;
  }

  .customs-table-wrap {
    border-radius: 14px;
  }

  .customs-table-wrap th,
  .customs-table-wrap td {
    padding: 13px 12px;
  }

  .customs-market-grid {
    grid-template-columns: 1fr;
  }

  .customs-donut-panel {
    padding: 8px 0 14px;
  }

  .customs-market-row {
    grid-template-columns: 26px minmax(0, 1fr) 62px;
    gap: 8px;
    padding: 13px 11px;
  }

  .customs-market-row .market-bar {
    display: none;
  }

  .customs-insight-grid {
    grid-template-columns: 1fr;
  }

  .customs-insight-card {
    min-height: 0;
    padding: 18px;
    border-radius: 16px;
  }

  .customs-buyer-boundary {
    grid-template-columns: 1fr;
  }

  .customs-buyer-boundary .btn {
    width: 100%;
  }

  .customs-loading {
    align-items: flex-end;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .customs-loading-panel {
    width: 100%;
    padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
}

/* Mobile assessment */
@media (max-width: 820px) {
  .assessment-hero,
  .assessment-auth-layout,
  .assessment-field-grid,
  .assessment-split-fields,
  .assessment-choice-grid,
  .assessment-choice-grid-three,
  .assessment-trust-grid {
    grid-template-columns: 1fr;
  }

  .assessment-hero {
    padding-top: 52px;
  }

  .assessment-hero-copy h1 {
    font-size: clamp(30px, 8.4vw, 40px) !important;
    letter-spacing: -0.06em;
    white-space: nowrap;
  }

  .assessment-workspace,
  .assessment-auth-card,
  .assessment-result {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .assessment-workspace-head h2 {
    font-size: clamp(28px, 7.7vw, 34px) !important;
    letter-spacing: -0.05em;
    white-space: nowrap;
  }

  .assessment-progress-steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .assessment-choice-field span {
    min-height: 52px;
  }
}

@media (max-width: 560px) {
  .section-inner,
  .customs-shell {
    width: min(calc(100% - 24px), 560px);
  }

  .nav {
    width: calc(100% - 24px);
  }

  .brand-wordmark {
    font-size: 18px;
  }

  .brand-signature {
    display: none;
  }

  .page-hero {
    padding: 54px 0 42px;
  }

  .home-page .hero-actions {
    grid-template-columns: 1fr;
  }

  .customs-kicker {
    font-size: 9px;
    letter-spacing: .08em;
  }

  .customs-year-grid,
  .member-pay-grid,
  .customs-metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .customs-preview-axis {
    font-size: 7px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .card:hover,
  .product-card:hover,
  .step:hover,
  .customs-preview-card:hover,
  .customs-choice-row label > span:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customs-form-progress,
  .customs-report-toolbar,
  .docs-sidebar {
    scroll-behavior: auto;
  }
}

@media print {
  .customs-form-submit,
  .customs-report-toolbar,
  .docs-sidebar {
    position: static !important;
  }
}
