/* Phone and tablet layouts for the assessment catalog. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.btn { min-height: 44px; }
.cardAction,.iconBtn { width: 44px; height: 44px; }
.cardAction { font-size: 22px; }
.sideClose { display: none; }
.modal { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modalTop > div,.heroGrid > *,.catalogTop,.catalogTools { min-width: 0; }
.modal h3 { line-height: 1.25; }
@media (max-width: 1100px) {
  .menuBtn { width: 44px; height: 44px; flex: 0 0 44px; }
  .sidebar { width: min(320px,calc(100% - 48px)); height: 100dvh; padding: 22px 16px max(24px,env(safe-area-inset-bottom,0px)); overscroll-behavior: contain; }
  .sidebar:not(.open) { visibility: hidden; pointer-events: none; }
  .sidebar.open { visibility: visible; pointer-events: auto; }
  .sideClose { display: grid; place-items: center; position: absolute; right: 16px; top: 14px; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 9px; background: #15151a; font-size: 24px; cursor: pointer; }
  .sideTitle { min-height: 44px; padding: 6px 54px 16px 10px; font-size: 16px; }
  .sideNav a,.sideFilter { min-height: 44px; font-size: 15px; line-height: 1.5; }
  .sideLabel { font-size: 12px; }
  .sideMeta { font-size: 13px; }
}
@media (max-width: 760px) {
  .topbar { padding: env(safe-area-inset-top,0px) max(14px,env(safe-area-inset-right,0px)) 0 max(14px,env(safe-area-inset-left,0px)); height: auto; min-height: 64px; gap: 10px; }
  .brand { flex: 1; gap: 8px; min-width: 0; }
  .topActions { flex-shrink: 0; }
  .topActions .btn:first-child { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; padding: 10px 12px; white-space: nowrap; }
  .hero,.section { padding-left: max(20px,env(safe-area-inset-left,0px)); padding-right: max(20px,env(safe-area-inset-right,0px)); }
  .hero { padding-top: 44px; padding-bottom: 48px; }
  .heroGrid { gap: 32px; }
  h1 { font-size: clamp(2.125rem,10vw,3.25rem); line-height: 1.1; letter-spacing: -.045em; }
  h2 { font-size: clamp(1.875rem,7.5vw,2.5rem); line-height: 1.15; }
  .heroCopy { font-size: 17px; }
  .heroStats { margin-top: 28px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .heroStats div { font-size: 14px; line-height: 1.6; }
  .heroStats strong { font-size: 15px; }
  .heroStats div:last-child { grid-column: 1/-1; }
  .kicker { font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
  .sectionIntro { gap: 18px; margin-bottom: 24px; }
  .sectionIntro p,.process p,.cta p { font-size: 16px; line-height: 1.65; }
  .featuredGrid { gap: 16px; }
  .priceCard { padding: 24px 20px; min-height: 0; }
  .priceCard h3 { font-size: 23px; line-height: 1.3; }
  .priceCard p { font-size: 16px; line-height: 1.65; }
  .priceCard .tag { font-size: 12px; line-height: 1.5; }
  .priceCard > .availabilityTag { margin-bottom: 4px; }
  .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-right: 42px; }
  .price small { font-size: 14px; margin-left: 0; }
  .cardTop { flex-wrap: wrap; }
  .heroActions { display: grid; grid-template-columns: 1fr; width: 100%; gap: 10px; margin-top: 24px; }
  .heroActions .btn { min-height: 48px; width: 100%; font-size: 15px; text-align: center; }
  .catalogTools { gap: 10px; }
  .search,select { width: 100%; height: 48px; font-size: 16px; min-width: 0; max-width: 100%; flex: none; }
  .count { font-size: 13px; }
  .moduleRow { min-height: 180px; padding: 22px 20px; }
  .moduleFamily { font-size: 13px; line-height: 1.5; }
  .moduleName { font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
  .modulePrice { font-size: 23px; }
  .moduleOffer { gap: 8px 12px; }
  .availabilityTag { font-size: 14px; }
  .process { padding: 24px 20px; min-height: 0; }
  .processNum { margin-bottom: 18px; }
  .process h3 { font-size: 19px; }
  .cta { margin: 24px 20px 48px; padding: 24px 20px; gap: 22px; }
  .cta .btn { width: 100%; min-height: 48px; font-size: 15px; }
  .workspace { grid-template-columns: 1fr; min-height: 0; }
  .miniSide { display: none; }
  .miniMain { padding: 20px 16px; }
  .workspaceHead { flex-wrap: wrap; gap: 12px; }
  .workspaceHead small,.windowTitle,.score,.analysisHead,.aiNote small { font-size: 12px; line-height: 1.5; }
  .workspaceHead strong { font-size: 17px; }
  .finding { grid-template-columns: 50px minmax(0,1fr); gap: 8px; padding: 14px 10px; align-items: start; }
  .findingText { font-size: 13px; line-height: 1.55; white-space: normal; overflow: visible; text-overflow: clip; }
  .sev { font-size: 12px; line-height: 1.5; }
  .trace { grid-column: 2; font-size: 12px; text-align: left; }
  .aiNote p { font-size: 13px; line-height: 1.6; }
  .floatingBadge { position: static; width: fit-content; max-width: 100%; margin: 12px 0 0; font-size: 13px; line-height: 1.5; }
  .backdrop { padding: max(12px,env(safe-area-inset-top,0px)) 12px max(12px,env(safe-area-inset-bottom,0px)); }
  .modal { width: 100%; max-height: calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); padding: 22px 18px; }
  .modalTop { gap: 12px; }
  .modal h3 { font-size: 24px; overflow-wrap: anywhere; }
  .modalMeta { font-size: 12px; line-height: 1.5; }
  .modalActions .btn { width: 100%; min-height: 48px; font-size: 15px; text-align: center; }
  .footer { padding: 24px 20px; font-size: 13px; line-height: 1.6; }
}
@media (max-width: 420px) {
  .brandSub { display: none; }
  .brandName { font-size: 14px; }
  .topbar { gap: 8px; }
  .topActions .btn:first-child { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
