@media (max-width: 1040px) {
  .main-nav {
    gap: 14px;
  }
  .hero-layout {
    grid-template-columns: 0.72fr 1.28fr;
  }
  .dashboard-window {
    grid-template-columns: 62px 1fr 111px;
  }
  .dashboard-sidebar a span {
    display: none;
  }
  .dashboard-sidebar a {
    justify-content: center;
    font-size: 11px;
  }
  .dash-mini-brand {
    font-size: 0;
    justify-content: center;
  }
  .copilot-layout {
    grid-template-columns: 1fr 1fr;
  }
  .copilot-benefits {
    grid-column: span 2;
    grid-template-columns: repeat(2, 1fr);
  }
  .analytics-layout {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .phone-back {
    left: 10px;
  }
  .phone-front {
    left: 135px;
  }
}

@media (max-width: 830px) {
  .container {
    width: min(100% - 34px, 680px);
  }
  .site-header {
    position: relative;
  }
  .main-nav {
    position: absolute;
    top: 74px;
    right: 17px;
    left: 17px;
    z-index: 15;
    display: none;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open {
    display: grid;
    gap: 15px;
  }
  .mobile-menu-button {
    display: grid;
    gap: 4px;
    width: 32px;
    margin-left: auto;
    padding: 7px;
    border-radius: 5px;
    cursor: pointer;
  }
  .mobile-menu-button span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
  }
  .nav-actions .sign-in {
    display: none;
  }
  .hero-section {
    padding-top: 35px;
  }
  .hero-layout,
  .analytics-layout,
  .mobile-layout,
  .faq-cta-layout {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding-top: 0;
  }
  .hero-visual {
    min-height: 420px;
  }
  .hero-mini-cards {
    margin-bottom: 15px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .command-card {
    grid-row: span 2;
  }
  .copilot-layout {
    grid-template-columns: 1fr;
  }
  .copilot-benefits {
    grid-column: auto;
  }
  .network-visual {
    max-width: 370px;
    margin: auto;
  }
  .analytics-copy {
    max-width: 470px;
  }
  .analytics-board {
    max-width: 680px;
  }
  .lifecycle-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }
  .lifecycle-grid > b {
    display: none;
  }
  .lifecycle-grid article {
    padding: 12px 8px;
  }
  .lifecycle-grid h3 {
    display: block;
    margin: 5px 0 0;
    font-size: 11px;
  }
  .lifecycle-grid p {
    margin: 4px 0 0;
    font-size: 7px;
  }
  .mobile-layout {
    gap: 25px;
  }
  .phones {
    width: 350px;
    margin: auto;
  }
  .mobile-copy {
    text-align: center;
  }
  .mobile-copy > p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }
  .mobile-feature-list {
    justify-items: center;
  }
  .store-buttons {
    justify-content: center;
  }
  .trust-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid > div:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 480px);
  }
  .section-padding {
    padding: 60px 0;
  }
  .brand {
    font-size: 14px;
  }
  .nav-actions .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }
  .hero-copy h1 {
    font-size: 43px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-visual {
    min-height: 289px;
    margin: 12px -4px 0;
  }
  .dashboard-window {
    min-height: 270px;
    grid-template-columns: 38px 1fr 74px;
    border-radius: 9px;
  }
  .dashboard-sidebar {
    gap: 5px;
    padding: 7px 4px;
  }
  .dash-topbar {
    height: 26px;
    padding: 0 7px;
  }
  .dash-body {
    padding: 7px;
  }
  .dash-heading h3 {
    margin: 2px 0 6px;
    font-size: 7px;
  }
  .kpi-grid,
  .dash-chart-grid {
    gap: 3px;
  }
  .kpi-grid article,
  .chart-card,
  .donut-card,
  .payroll-card {
    padding: 4px;
  }
  .kpi-grid b,
  .chart-card > b,
  .payroll-card > b {
    font-size: 8px;
  }
  .line-chart svg {
    height: 32px;
  }
  .donut-wrap {
    margin-top: 4px;
  }
  .donut {
    width: 38px;
    height: 38px;
    border-width: 5px;
  }
  .donut b {
    font-size: 5px;
  }
  .donut-card ul {
    gap: 2px;
  }
  .bar-chart {
    height: 25px;
  }
  .bar-chart i {
    width: 4px;
  }
  .copilot-panel {
    gap: 3px;
    padding: 6px 4px;
  }
  .copilot-panel p,
  .copilot-panel button,
  .copilot-panel .chat-bubble {
    padding: 3px;
    font-size: 4px;
  }
  .ask-input {
    padding: 4px;
    font-size: 4px;
  }
  .dash-tools {
    font-size: 4px;
  }
  .dash-tools img {
    width: 11px;
    height: 11px;
  }
  .search-box {
    padding: 3px 5px;
    font-size: 4px;
  }
  .hero-mini-cards {
    width: 100%;
  }
  .hero-mini-cards article {
    min-height: 50px;
  }
  .logo-row {
    grid-template-columns: repeat(3, 1fr);
    font-size: 10px;
    row-gap: 13px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .command-card {
    grid-row: auto;
    min-height: 310px !important;
  }
  .mini-module {
    min-height: 128px !important;
  }
  .section-heading {
    margin-bottom: 26px;
  }
  .section-heading > p:last-child {
    font-size: 13px;
  }
  .copilot-benefits {
    grid-template-columns: 1fr;
  }
  .network-visual {
    height: 270px;
    transform: scale(0.83);
    margin: -20px auto;
  }
  .analytics-board {
    margin: 0 -2px;
  }
  .analytics-inner {
    padding: 8px;
  }
  .analytics-kpis {
    gap: 3px;
  }
  .analytics-kpis article {
    padding: 4px;
  }
  .analytics-kpis b {
    font-size: 8px;
  }
  .analytics-charts {
    grid-template-columns: 1fr 1fr;
  }
  .analytics-charts article:last-child {
    grid-column: span 2;
    min-height: 76px;
  }
  .analytics-charts article {
    min-height: 86px;
    padding: 5px;
  }
  .analytics-charts svg {
    height: 56px;
  }
  .sentiment {
    gap: 5px;
    font-size: 5px;
  }
  .sentiment > i {
    width: 55px;
  }
  .lifecycle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .lifecycle-grid article {
    min-height: 100px;
  }
  .lifecycle-grid article:last-child {
    grid-column: span 2;
  }
  .phones {
    width: 300px;
    height: 260px;
  }
  .phone {
    width: 128px;
    height: 240px;
    padding: 16px 10px;
    border-width: 4px;
    border-radius: 18px;
  }
  .phone-back {
    left: 30px;
  }
  .phone-front {
    left: 150px;
  }
  .mobile-copy h2 {
    font-size: 31px;
  }
  .mobile-feature-list {
    grid-template-columns: 1fr;
    font-size: 10px;
  }
  .store-buttons a {
    min-width: 115px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .cta-card {
    padding: 28px 22px;
  }
  .cta-card h2 {
    font-size: 27px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .footer-bottom div {
    gap: 9px;
  }
  .faq-cta-section {
    padding: 20px 0 42px;
  }
}

/* refinements for the compact employee lifecycle and mobile-app panel */
@media (max-width: 700px) {
  .lifecycle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lifecycle-grid > b {
    display: none;
  }

  .lifecycle-grid article:last-child {
    grid-column: span 2;
  }

  .mobile-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .mobile-copy {
    text-align: center;
  }

  .mobile-copy > p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .mobile-feature-list,
  .store-buttons {
    justify-content: center;
  }

  .mobile-feature-list {
    grid-template-columns: repeat(2, max-content);
  }
}