/* October mobile homepage revision, authored against the 750px Lanhu board.
   The existing site-shell zoom scales these values to each phone width.
   The 88px device status bar is deliberately excluded from the website. */
@media (max-width: 800px) {
  /* Figma uses Inter's regular text metrics; automatic optical sizing would
     narrow the display font and change the approved line breaks. */
  .keyway-home .site-shell { font-family: 'KeywayMobileInter', Inter, Arial, sans-serif; font-optical-sizing: none; }
  .keyway-home .hero { background-image: url('images/mobile-home-202610/hero-factory.webp'); background-size: 750px 1000px; }
  .keyway-home .intro { min-height: 2015px; }
  .keyway-home .intro .section-kicker, .keyway-home .intro .orange-rule,
  .keyway-home .applications .section-kicker, .keyway-home .applications .orange-rule { display: none; }
  .keyway-home .intro-grid { margin-top: 0; }
  .keyway-home .intro-copy h2 { line-height: 58px; font-weight: 600; }
  .keyway-home .intro-copy .inline-link { line-height: 38px; text-decoration: underline; }
  .keyway-home .applications { min-height: 1942px; }
  .keyway-home .applications h2 { margin-top: 0; }
  .keyway-home .application-card { height: auto; min-height: 160px; border: 1px solid #d6d6cf; border-radius: 20px; }
  .keyway-home .application-card:nth-child(1) { min-height: 218px; }
  .keyway-home .application-card:nth-child(2), .keyway-home .application-card:nth-child(3) { min-height: 186px; }
  .keyway-home .application-card > div { margin-bottom: 24px; }
  .keyway-home .process { height: auto; min-height: 2069px; background-image: url('images/mobile-home-202610/process-factory.webp'); background-size: 750px 2069px; }
  .keyway-home .process-lead { display: block; width: 686px; margin: 32px 0 0; font-size: 28px; line-height: 38px; }
  .keyway-home .process-grid { height: auto; margin-top: 80px; }
  .keyway-home .process-step { height: auto; min-height: 321px; }
  .keyway-home .process-step p { width: 686px; max-width: 100%; }
  .keyway-home .builds { min-height: 2594px; background: #f5f5f2; }
  .keyway-home .builds h2 { min-height: 58px; line-height: 58px; }
  .keyway-home .builds .section-lead { min-height: 68px; margin-top: 32px; line-height: 34px; }
  .keyway-home .build-grid { gap: 28px; margin-top: 64px; }
  .keyway-home .build-card { min-height: 532px; border: 1px solid #d6d6cf; border-radius: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
  .keyway-home .build-visual::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .76)); pointer-events: none; }
  .keyway-home .build-overlay { z-index: 1; bottom: 20px; }
  .keyway-home .build-overlay h3 { font-size: 36px; line-height: 44px; font-weight: 600; }
  .keyway-home .build-overlay span { margin-top: 8px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: 0; }
  .keyway-home .build-card-body { min-height: 230px; padding: 24px 24px 22px; }
  .keyway-home .build-card-body p { font-size: 24px; line-height: 34px; }
  .keyway-home .build-card-body p:first-child { min-height: 76px; font-size: 28px; line-height: 38px; font-weight: 600; }
  .keyway-home .build-card-body p + p { margin-top: 24px; }
  .keyway-home .build-card-body p.accent { margin-top: 16px; font-weight: 600; }
  .keyway-home .reasons { background-image: url('images/mobile-home-202610/certificates-showroom.webp'); background-position: -154px top; background-size: 1212px 520px; }
  .keyway-home .reasons-inner { height: auto; min-height: 1849px; }
  .keyway-home .reasons-panel { height: auto; min-height: 1329px; }
  .keyway-home .reasons h2 { font-weight: 600; }
  .keyway-home .reason { position: relative; margin-bottom: 55px; }
  .keyway-home .reason:not(:last-child)::after { content: ''; position: absolute; left: 80px; right: 0; bottom: -28px; height: 1px; background: rgba(185, 189, 185, .3); }
  .keyway-home .reason:first-of-type p, .keyway-home .reason:nth-of-type(3) p { margin-top: 36px; }
  .keyway-home .reason:last-child { margin-bottom: 0; }
  .keyway-home .metrics { height: 236px; }
  .keyway-home .certifications h2 { margin-top: 0; line-height: 58px; }
  .keyway-home .certifications .section-lead { margin-top: 32px; font-size: 28px; line-height: 40px; }
  .keyway-home .certification-grid { gap: 32px; }
  .keyway-home .cert-column { border-color: #d6d6cf; border-radius: 18px; }
  .keyway-home .cert-column h3 { padding: 22px 24px 20px; font-size: 28px; line-height: 34px; font-weight: 600; }
  .keyway-home .cert-column h3::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 12px; background: var(--orange); }
  .keyway-home .cert-table { font-size: 26px; line-height: 36px; }
  .keyway-home .cert-table td { padding: 18px 24px; vertical-align: top; }
  .keyway-home .cert-table td:first-child { width: 220px; padding-right: 0; white-space: nowrap; }
  .keyway-home .cert-column:last-child .cert-table tr:last-child td:first-child { white-space: normal; }
  .keyway-home .cert-table tr:last-child td { border-bottom: 0; }
  .keyway-home .cert-badges { gap: 16px; margin-top: 32px; }
  .keyway-home .cert-badge { min-height: 138px; padding: 24px; gap: 12px; border: 1px solid #d6d6cf; border-radius: 18px; }
  .keyway-home .cert-badge strong { font-size: 26px; line-height: 36px; }
  .keyway-home .cert-badge span { font-size: 28px; line-height: 40px; font-weight: 600; }
  .keyway-home .cert-note { margin-top: 40px; padding-top: 40px; border-top: 1px solid #d6d6cf; font-size: 26px; line-height: 38px; }
  .keyway-home .cert-note .inline-link { position: relative; margin-top: 24px; padding-left: 27px; font-size: 26px; line-height: 38px; font-weight: 600; }
  .keyway-home .cert-note .inline-link::before { position: absolute; left: 0; top: 14px; width: 10px; height: 10px; margin: 0; }
  .keyway-home .quote { min-height: 2060px; }
  .keyway-home .quote-head { height: auto; min-height: 216px; padding: 36px 24px 28px; border-radius: 18px; background: #2b2e2b; }
  .keyway-home .quote-head h2 { font-size: 48px; line-height: 58px; }
  .keyway-home .quote-head p { margin-top: 14px; font-size: 28px; line-height: 40px; color: #bdbfb5; }
  .keyway-home .quote-form { min-height: 1652px; margin-top: 32px; padding: 58px 24px; border-color: #e0e0db; border-radius: 18px; }
  .keyway-home .form-grid { row-gap: 32px; }
  .keyway-home .field label { font-size: 26px; line-height: 36px; }
  .keyway-home .field input, .keyway-home .field select, .keyway-home .field textarea { padding: 20px 22px; border-radius: 14px; font-size: 26px; line-height: 36px; }
  .keyway-home .field input, .keyway-home .field select { height: 78px; }
  .keyway-home .field select { padding-right: 60px; background-image: url('images/mobile-home-202610/icon-24.png'); background-size: 28px; background-repeat: no-repeat; background-position: right 22px center; color: #8c8f87; }
  .keyway-home .field input::placeholder { color: #8c8f87; }
  .keyway-home #name::placeholder, .keyway-home #phone::placeholder { color: transparent; }
  .keyway-home .field.full { margin-top: -8px; }
  .keyway-home .field textarea { height: 230px; min-height: 230px; }
  .keyway-home .form-helper, .keyway-home .form-details-help { font-size: 24px; line-height: 34px; }
  .keyway-home .form-helper.full { min-height: 136px; margin-top: -2px; }
  .keyway-home .form-details-help { min-height: 136px; margin-top: 24px; }
  .keyway-home .quote-submit { width: 167px; height: 72px; min-height: 72px; margin-top: 34px; border-radius: 14px; font-size: 28px; line-height: 34px; font-weight: 600; }
  .keyway-home .quote-note { margin-top: 40px; padding-top: 27px; font-size: 24px; line-height: 34px; }
  .keyway-home .quote-note > br { display: none; }
  .keyway-home .quote-note-drawing { display: block; margin-top: 18px; }
  .keyway-home .quote-note .inline-link { text-decoration: none; }
}
