/* Shared responsive adjustments. Page-specific breakpoints live in each module. */
@media (min-width: 981px) and (max-width: 1100px) {
  .site-header .nav-note {
    display: none;
  }
}
@media (min-width: 981px) and (max-width: 1280px) {
  .site-header .nav-wrap {
    gap: 20px;
    width: calc(100% - 40px);
  }
  .site-header .desktop-nav {
    gap: 18px;
  }
  .desktop-nav > a,
  .nav-group > a {
    font-size: 15px;
    letter-spacing: 0;
  }
  .nav-actions {
    gap: 12px;
  }
  .nav-actions .phone-link {
    font-size: 12px;
    padding: 9px 10px;
  }
  .nav-demo {
    font-size: 13px;
  }
  .site-header .brand > span {
    font-size: 22px;
  }
}
@media (max-width: 1150px) {
  .nav-wrap {
    gap: 35px;
    width: calc(100% - 48px);
  }
  .desktop-nav {
    gap: 24px;
  }
  .nav-note {
    font-size: 9px;
    letter-spacing: 0;
  }
  .container {
    width: calc(100% - 64px);
  }
  .product-card {
    padding: 24px 21px 17px;
  }
  .closing h2 {
    font-size: 24px;
  }
  .closing-inner > div:last-child {
    flex-shrink: 0;
  }
  .closing .button {
    gap: 9px;
    padding: 10px 13px;
  }
  .footer-main {
    gap: 20px;
  }
  .footer-seal {
    font-size: 7px;
  }
  .dash-content {
    padding: 16px 12px 12px;
  }
  .dash-sidebar {
    width: 83px;
  }
  .dash-sidebar > span {
    gap: 5px;
    font-size: 7px;
  }
  .dash-sidebar-bottom {
    left: 10px;
  }
}
@media (max-width: 980px) {
  .site-header {
    height: 72px;
  }
  .nav-wrap {
    height: 72px;
  }
  .desktop-nav,
  .nav-note {
    display: none;
  }
  .mobile-toggle {
    display: block;
    margin-left: auto;
  }
  .brand > span {
    font-size: 23px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .section {
    padding-top: 65px;
    padding-bottom: 65px;
  }
  h2 {
    font-size: 28px;
  }
  .section-head p {
    font-size: 12px;
  }
  .section-head > .text-link {
    font-size: 11px;
    gap: 9px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-card > p {
    font-size: 12px;
  }
  .dashboard-wrap {
    max-width: 680px;
    width: 100%;
    margin: auto;
  }
  .dashboard {
    transform: none;
  }
  .dash-sidebar {
    width: 110px;
  }
  .dash-sidebar > span {
    font-size: 9px;
  }
  .dash-content {
    padding: 22px;
  }
  .chart-main {
    height: 125px;
  }
  .dash-metrics strong {
    font-size: 26px;
  }
  .dash-metrics small {
    font-size: 10px;
  }
  .dash-metrics div > span {
    font-size: 8px;
  }
  .dash-title {
    font-size: 13px;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .article-grid {
    gap: 16px;
  }
  .article-content {
    padding: 18px;
  }
  .article-content > strong {
    font-size: 14px;
    min-height: 68px;
  }
  .article-art {
    height: 150px;
    padding: 18px;
  }
  .art-caption {
    font-size: 15px;
    left: 18px;
  }
  .art-shape .icon {
    width: 75px;
    height: 75px;
  }
  .art-shape {
    right: 10px;
    top: 25px;
  }
  .article-meta {
    font-size: 8px;
    gap: 8px;
  }
  .article-meta > span {
    font-size: 8px;
  }
  .article-desc {
    font-size: 10px;
  }
  .closing-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .closing h2 {
    font-size: 28px;
  }
  .footer-main {
    grid-template-columns: 1.3fr 1fr 1fr;
    row-gap: 35px;
  }
  .footer-brand {
    grid-row: span 2;
  }
  .footer-main h3 {
    margin-bottom: 12px;
  }
  .footer-seal {
    font-size: 8px;
  }
  .footer-bottom > span:last-child {
    display: none;
  }
  .page-hero h1 {
    font-size: 40px;
  }
  .page-hero p {
    max-width: 600px;
  }
  .combo-grid {
    gap: 15px;
  }
  .plain-card {
    padding: 24px;
  }
  .plain-card h3 {
    font-size: 18px;
  }
  .plain-card p {
    font-size: 12px;
  }
  .process-grid {
    gap: 15px;
  }
  .process-card {
    padding: 23px 12px;
  }
  .process-card h3 {
    font-size: 15px;
  }
  .related-grid {
    gap: 15px;
  }
  .related-card {
    padding: 23px;
  }
  .approach-grid {
    gap: 15px;
  }
}
@media (max-width: 640px) {
  .container {
    width: calc(100% - 40px);
  }
  .nav-wrap {
    width: calc(100% - 36px);
  }
  .site-header,
  .nav-wrap {
    height: 68px;
  }
  .brand > span {
    font-size: 22px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 2.8px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .section {
    padding-top: 53px;
    padding-bottom: 53px;
  }
  .section-head {
    display: block;
    margin-bottom: 26px;
  }
  .section-head > .text-link {
    margin-top: 18px;
    font-size: 11px;
  }
  .section-head .eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 26px;
    line-height: 1.5;
    letter-spacing: -0.8px;
  }
  .section-head p {
    font-size: 12px;
    line-height: 1.9;
    margin-top: 12px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .product-card {
    padding: 23px 23px 17px;
  }
  .card-top {
    margin-bottom: 17px;
  }
  .icon-box {
    width: 43px;
    height: 43px;
  }
  .product-card > p {
    font-size: 12px;
    margin: 12px 0 18px;
  }
  .product-name h3 {
    font-size: 20px;
  }
  .product-name > span {
    font-size: 11px;
  }
  .card-bottom {
    padding-top: 14px;
  }
  .card-bottom > span:first-child {
    font-size: 10px;
  }
  .card-category {
    font-size: 10px;
  }
  .dashboard-wrap {
    width: 100%;
  }
  .dash-header {
    height: 37px;
    padding: 0 10px;
    gap: 7px;
  }
  .dash-brand {
    font-size: 9px;
  }
  .dash-brand .icon {
    width: 14px;
  }
  .dash-demo {
    font-size: 6px;
  }
  .dash-sidebar {
    width: 68px;
    padding: 12px 4px;
  }
  .dash-sidebar > span {
    font-size: 6px;
    gap: 3px;
    padding: 7px 3px;
  }
  .dash-sidebar .icon {
    width: 10px;
    height: 10px;
  }
  .dash-sidebar-bottom {
    font-size: 5px;
    left: 8px;
    gap: 4px;
  }
  .dash-sidebar-bottom .status-dot {
    width: 3px;
    height: 3px;
  }
  .dash-content {
    padding: 13px 10px 10px;
  }
  .dash-title {
    font-size: 9px;
  }
  .dash-title > span {
    font-size: 6px;
    padding: 1px 5px;
  }
  .dash-metrics {
    gap: 5px;
    margin: 10px 0;
  }
  .dash-metrics > div {
    padding: 7px 5px;
  }
  .dash-metrics small {
    font-size: 6px;
  }
  .dash-metrics strong {
    font-size: 20px;
  }
  .dash-metrics em {
    font-size: 6px;
    margin-left: 2px;
  }
  .dash-metrics div > span {
    font-size: 5px;
  }
  .dash-chart {
    padding: 9px 7px 6px;
  }
  .dash-chart > div:first-child {
    font-size: 6px;
  }
  .dash-chart > div > span {
    font-size: 5px;
  }
  .dash-chart i {
    width: 3px;
    height: 3px;
    margin: 0 2px;
  }
  .dash-chart i:nth-of-type(2) {
    margin-left: 3px;
  }
  .chart-main {
    height: 88px;
    gap: 5px;
    margin-top: 9px;
  }
  .axis {
    font-size: 5px;
  }
  .chart-axis {
    font-size: 5px;
    margin-left: 15px;
  }
  .dash-insight {
    font-size: 5px;
    gap: 3px;
    padding: 7px 4px;
    margin-top: 9px;
  }
  .dash-insight .icon {
    width: 10px;
    height: 10px;
  }
  .dashboard-note {
    font-size: 7px;
  }
  .why-grid {
    gap: 24px 22px;
  }
  .why-card {
    padding: 8px 0 0;
  }
  .why-card > .icon {
    width: 27px;
    height: 27px;
    margin-bottom: 15px;
  }
  .why-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .why-card p {
    font-size: 11px;
    line-height: 1.9;
  }
  .article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .article-art {
    height: 183px;
    padding: 22px;
  }
  .art-caption {
    font-size: 20px;
    left: 24px;
  }
  .art-shape {
    right: 35px;
    top: 30px;
  }
  .art-shape .icon {
    width: 100px;
    height: 100px;
  }
  .article-content {
    padding: 23px;
  }
  .article-meta,
  .article-meta > span {
    font-size: 10px;
  }
  .article-content > strong {
    font-size: 17px;
    min-height: 0;
    line-height: 1.7;
  }
  .article-desc {
    font-size: 12px;
    margin-top: 12px;
  }
  .read-more {
    font-size: 12px;
    margin-top: 18px;
  }
  .closing {
    padding: 39px 0;
  }
  .closing-inner {
    gap: 23px;
  }
  .closing h2 {
    font-size: 25px;
    max-width: 330px;
    line-height: 1.6;
  }
  .closing p {
    font-size: 11px;
  }
  .closing .button {
    font-size: 11px;
    padding: 9px 14px;
    min-height: 43px;
  }
  .site-footer {
    padding-top: 40px;
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 25px;
    padding-bottom: 33px;
  }
  .footer-brand {
    grid-row: auto;
    grid-column: span 2;
    border-bottom: 1px solid var(--line);
    padding-bottom: 27px;
  }
  .footer-main .brand {
    margin-bottom: 15px;
  }
  .footer-brand > p {
    font-size: 11px;
  }
  .footer-motto {
    margin-top: 15px;
  }
  .footer-main h3 {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .footer-main > div > a:not(.brand),
  .footer-main > div > button {
    font-size: 11px;
    line-height: 2.8;
  }
  .footer-bottom {
    font-size: 8px;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 17px;
    padding-bottom: 20px;
  }
  .footer-bottom button {
    font-size: 8px;
  }
  .back-top {
    bottom: 18px;
    right: 14px;
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .page-hero {
    padding: 48px 0 52px;
  }
  .page-hero h1 {
    font-size: 34px;
    line-height: 1.5;
    letter-spacing: -0.8px;
  }
  .page-hero p {
    font-size: 12px;
    line-height: 2;
    max-width: 100%;
    margin-top: 20px;
  }
  .page-orbit {
    width: 320px;
    height: 320px;
    right: -210px;
    top: 15px;
    opacity: 0.6;
  }
  .page-hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .catalog-note {
    font-size: 9px;
    text-align: left;
    line-height: 1.9;
    margin-top: 23px;
  }
  .combo-grid,
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .plain-card {
    padding: 26px;
  }
  .plain-card h3 {
    font-size: 19px;
  }
  .plain-card p {
    font-size: 12px;
  }
  .plain-card .text-link {
    font-size: 12px;
  }
  .breadcrumb {
    font-size: 10px;
    margin-bottom: 28px;
  }
  .feature-number {
    font-size: 27px;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .process-card {
    padding: 20px 5px 12px;
  }
  .process-card h3 {
    font-size: 14px;
    margin-top: 12px;
  }
  .process-card p {
    font-size: 11px;
  }
  .process-card > .icon {
    right: 3px;
    top: 20px;
    width: 15px;
  }
  .deliverable {
    padding: 21px;
    gap: 13px;
    margin-top: 23px;
  }
  .deliverable > .icon {
    width: 21px;
  }
  .deliverable strong {
    font-size: 14px;
  }
  .deliverable p {
    font-size: 11px;
    line-height: 2;
  }
  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .related-card {
    padding: 24px;
  }
  .related-card h3 {
    font-size: 18px;
  }
  .related-card p {
    font-size: 12px;
  }
  .related-card .text-link {
    font-size: 12px;
  }
  .not-found {
    padding-top: 80px;
    padding-bottom: 90px;
  }
  .not-found h1 {
    font-size: 28px;
  }
  .not-found p {
    font-size: 12px;
  }
  dialog {
    padding: 34px 25px;
    width: calc(100% - 28px);
    max-height: 87dvh;
    border-radius: 10px;
  }
  .dialog-close {
    top: -21px;
    margin: -18px -12px 0 10px;
    width: 30px;
    height: 30px;
    font-size: 23px;
  }
  #dialog-body h2 {
    font-size: 24px;
    line-height: 1.6;
  }
  #dialog-body h3 {
    font-size: 16px;
  }
  #dialog-body p {
    font-size: 12px;
  }
  #dialog-body .article-lead {
    font-size: 13px;
  }
  .article-end small {
    font-size: 9px;
  }
}
@media (max-width: 370px) {
  .dash-sidebar {
    width: 60px;
  }
  .dash-content {
    padding: 11px 7px;
  }
  .dash-metrics strong {
    font-size: 17px;
  }
  .dash-metrics small {
    font-size: 5px;
  }
  .dash-metrics div > span {
    font-size: 4px;
  }
  .page-hero h1 {
    font-size: 30px;
  }
  .closing h2 {
    font-size: 23px;
  }
}
/* Late navigation overrides must follow the legacy mobile breakpoints. */
@media (max-width: 980px) {
  .nav-wrap {
    gap: 20px;
  }
  .site-header .mobile-toggle {
    margin-left: 0;
    flex-shrink: 0;
  }
}
@media (max-width: 640px) {
  html {
    scroll-padding-top: 132px;
  }
  .site-header {
    height: 116px;
  }
  .site-header .nav-wrap {
    height: 116px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 56px 60px;
    gap: 0 12px;
  }
  .site-header .brand {
    grid-row: 1;
    grid-column: 1;
  }
  .site-header .mobile-toggle {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }
  .nav-actions {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 8px;
    margin-left: 0;
    align-self: start;
  }
  .nav-actions .phone-link {
    padding: 7px 8px;
    font-size: 13px;
  }
  .nav-demo {
    font-size: 13px;
  }
  .nav-demo .icon {
    display: none;
  }
  .mobile-nav {
    top: 115px;
    max-height: calc(100dvh - 116px);
    overflow-y: auto;
  }
}
