.mobile-menu { display: none; }

@media (max-width: 670px) {
  .mobile-menu:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 7px 12px;
    border: 1px solid currentColor;
    border-radius: 7px;
    color: inherit;
    background: transparent;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-menu span {
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .mobile-menu[aria-expanded=true] span { transform: translateY(2px) rotate(225deg); }
  .mobile-menu:not([hidden])[aria-expanded=false] + #site-navigation { display: none; }
  #site-navigation {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    width: 100%;
    padding: 6px 0 10px;
    border-top: 1px solid var(--mobile-nav-line);
  }
  #site-navigation a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
    padding: 6px 0;
    border: 0;
    font-size: .9rem;
  }
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
  .form-actions .button { width: 100%; }
  .contact-form textarea { min-height: 104px; }
}

@media (max-width: 670px) {
  .site-header { --mobile-nav-line: #ffffff30; }
  .site-header .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
    min-height: 62px;
    padding-block: 8px;
  }
  .site-header .header > .button { display: none; }
  .site-header .header .logo { width: min(156px, 100%); }
  .hero.wrap { gap: 20px; padding-block: 30px 24px; }
  .hero h1 { font-size: clamp(2.05rem, 10vw, 3.5rem); line-height: 1.03; }
  .hero .eyebrow { margin-bottom: 10px; letter-spacing: .08em; }
  .hero .lead { margin-top: 14px; line-height: 1.55; }
  .hero .actions { gap: 6px 14px; margin-top: 18px; }
  .hero .actions .plain { display: inline-flex; align-items: center; min-height: 44px; }
  .hero .subnote { margin-top: 4px; }
  .hero-capture figcaption { margin-top: 8px; text-align: left; }
  .standards, .features, .chile, .contact-section { padding-block: 36px; }
  .consulting-wrap, .demo-wrap { margin-top: 30px; }
  main h2 { font-size: clamp(1.85rem, 7vw, 2.65rem); line-height: 1.13; }
  .standards-grid, .feature-grid, .product-captures, .chile-layout, .chile-laws { gap: 12px; }
  .standards-grid article, .feature-grid article, .chile-intro, .chile-laws article, .consulting, .demo-card { padding: 18px; }
  .feature-heading .index { display: none; }
  .site-footer {
    --footer-mobile-logo: clamp(124px, 36vw, 154px);
    --footer-mobile-row: 64px;
  }
  .site-footer::before {
    width: calc(var(--footer-gutter) + var(--footer-mobile-logo) + 32px);
    height: var(--footer-mobile-row);
    clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
  }
  .site-footer .footer {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: var(--footer-mobile-row) auto;
    align-items: center;
    gap: 0 16px;
    padding-block: 0 18px;
  }
  .site-footer .footer-brand .logo { width: var(--footer-mobile-logo); }
  .site-footer .footer-content { display: contents; }
  .site-footer .footer-content p {
    grid-area: 2 / 1 / 3 / -1;
    text-align: center;
    text-wrap: balance;
    margin: 0;
    padding-top: 14px;
    font-size: .88rem;
    font-weight: 400;
  }
  .site-footer .footer-top {
    grid-area: 1 / 2;
    min-height: 44px;
    padding-inline: 11px;
    font-size: .8125rem;
    font-weight: 500;
    white-space: nowrap;
  }
}
