/* Mobile layout fixes for static hosting build */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Photographic summit background with the brand-blue overlay. */
.blue-plane {
  background-image:
    linear-gradient(rgba(35, 96, 236, 0.84), rgba(35, 96, 236, 0.92)),
    url("./hero-mountain-climbers.png");
  background-size: cover;
  background-position: 62% center;
  background-repeat: no-repeat;
}

.hero-grid,
.hero-copy,
.product-stage,
.dashboard-shell,
.dashboard-grid,
.chart-card,
.split-heading,
.process-heading,
.cycle-layout,
.cycle-grid,
.visibility-grid,
.start-grid,
.faq-grid {
  min-width: 0;
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
    max-width: none;
  }

  .site-header {
    height: 74px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
    font-size: 19px;
  }

  .brand img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .button-small {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 0;
  }

  .hero-grid {
    display: block;
    min-height: auto;
  }

  .hero-copy {
    width: 100%;
    padding: 64px 0 38px;
  }

  .eyebrow {
    margin-bottom: 24px;
    flex-wrap: wrap;
    font-size: 12px;
    line-height: 1.45;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: clamp(38px, 10.4vw, 43px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    overflow-wrap: break-word;
  }

  .hero-lead {
    width: 100%;
    max-width: 100%;
    margin-top: 26px;
    font-size: 16px;
    line-height: 1.58;
    overflow-wrap: break-word;
  }

  .hero-actions {
    width: 100%;
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0 16px;
    text-align: center;
    white-space: normal;
  }

  .hero-proof {
    width: 100%;
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
  }

  .hero-proof > div {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0 14px;
    white-space: normal;
  }

  .product-stage {
    width: calc(100% + 32px);
    min-height: 0;
    margin: 0 -16px;
    padding: 26px 16px 44px;
    display: block;
    background-image:
      linear-gradient(rgba(35, 96, 236, 0.86), rgba(35, 96, 236, 0.94)),
      url("./hero-mountain-climbers.png");
    background-size: cover;
    background-position: 62% center;
    background-repeat: no-repeat;
  }

  .blue-plane {
    display: none;
  }

  .dashboard-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 16px;
    border-radius: 5px;
    transform: none;
    box-shadow: 0 18px 44px rgba(14, 27, 55, 0.22);
  }

  .dashboard-topline {
    gap: 10px;
  }

  .site-selector {
    min-width: 0;
  }

  .site-selector strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 19px;
  }

  .period-button {
    width: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .dashboard-tabs {
    gap: 26px;
    margin-top: 22px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-metrics {
    display: none;
  }

  .chart-card {
    width: 100%;
    padding: 15px 12px 12px;
  }

  .chart-heading strong {
    font-size: 28px;
  }

  .chart-canvas {
    width: 100%;
    height: 190px;
    padding-left: 31px;
  }

  .chart-canvas svg {
    height: 164px;
  }

  .chart-dates {
    left: 31px;
    gap: 8px;
  }

  .chart-dates span:nth-child(2),
  .chart-dates span:nth-child(4) {
    display: none;
  }

  .recommendation {
    min-height: 76px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .ai-spark {
    width: 38px;
    height: 38px;
  }

  .recommendation strong {
    font-size: 11px;
    line-height: 1.35;
  }

  .statement-grid {
    min-height: 0;
    padding: 24px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .statement-grid > span:first-child {
    margin-bottom: 5px;
  }

  .statement-grid .statement-arrow {
    display: none;
  }

  .statement-grid strong {
    font-size: 16px;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading h2,
  .visibility-copy h2,
  .start-copy h2,
  .faq-grid .section-heading h2 {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 42px);
    line-height: 1.04;
    overflow-wrap: break-word;
  }

  .split-heading,
  .process-heading,
  .visibility-grid,
  .start-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .split-heading > p,
  .process-heading > p:last-child,
  .visibility-copy > p:last-child,
  .start-copy > p:nth-of-type(2) {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.65;
  }

  .direction-grid,
  .process-grid,
  .cycle-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .direction-grid,
  .cycle-layout,
  .process-grid {
    margin-top: 48px;
  }

  .direction-card {
    min-height: 350px;
    padding: 25px;
  }

  .direction-card h3 {
    margin-top: 48px;
    font-size: 29px;
  }

  .process-grid article {
    min-height: 210px;
    padding: 24px;
  }

  .process-grid h3 {
    margin-top: 48px;
  }

  .cycle-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cycle-card,
  .cycle-card:last-child {
    grid-column: auto;
    min-height: 260px;
    padding: 24px;
  }

  .cycle-card h3 {
    margin-top: 46px;
    font-size: 27px;
  }

  .plan-board {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 100%;
    margin: 12px 0 0;
    padding: 18px;
  }

  .plan-score strong {
    font-size: 42px;
  }

  .visibility-section {
    padding: 86px 0;
  }

  .visibility-surfaces article {
    min-height: 132px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
  }

  .visibility-surfaces article > strong {
    display: none;
  }

  .visibility-surfaces p {
    line-height: 1.5;
  }

  .domain-form > div {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .domain-form .button {
    grid-column: 1 / -1;
    width: calc(100% - 8px);
    min-height: 54px;
    margin: 0 4px 4px;
  }

  .demo-result {
    width: 100%;
    min-height: 0;
    padding: 14px;
  }

  .demo-empty {
    min-height: 390px;
    padding: 32px 20px;
  }

  .demo-empty strong {
    font-size: 27px;
  }

  .demo-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-kpis article {
    min-height: 108px;
  }

  .demo-actions article {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .demo-actions article > strong {
    line-height: 1.4;
  }

  .faq-grid .section-heading {
    position: relative;
    top: auto;
  }

  .faq-list summary {
    min-height: 84px;
    gap: 16px;
    font-size: 17px;
    line-height: 1.35;
  }

  .faq-list details p {
    margin: -4px 24px 26px 0;
    font-size: 14px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
    padding-bottom: 54px;
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .footer-bottom {
    padding-top: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 370px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero h1,
  .section-heading h2,
  .visibility-copy h2,
  .start-copy h2,
  .faq-grid .section-heading h2 {
    font-size: 35px;
  }

  .product-stage {
    width: calc(100% + 24px);
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .dashboard-shell {
    padding: 12px;
  }

  .site-selector strong {
    max-width: 155px;
    font-size: 17px;
  }
}
