.growthy-mobile-toggle,
.growthy-mobile-panel {
  display: none;
}

@media (max-width: 900px) {
  header nav { gap: 8px; }
  .menu > .btn { padding: 10px 11px; font-size: .8rem; white-space: nowrap; }

  .growthy-mobile-toggle {
    display: inline-flex;
    flex: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surf);
    color: var(--ink);
    cursor: pointer;
  }

  .growthy-toggle-lines,
  .growthy-toggle-lines::before,
  .growthy-toggle-lines::after {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .growthy-toggle-lines { position: relative; }
  .growthy-toggle-lines::before,
  .growthy-toggle-lines::after { content: ""; position: absolute; left: 0; }
  .growthy-toggle-lines::before { top: -6px; }
  .growthy-toggle-lines::after { top: 6px; }

  .growthy-mobile-panel:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
    color: var(--ink);
  }

  .gm-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: env(safe-area-inset-top, 0px) 22px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .gm-header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 70px;
    max-width: 620px;
    margin: 0 auto;
  }
  .gm-brand {
    flex: none;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.05em;
    text-decoration: none;
  }
  .gm-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-left: auto;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
  }
  .gm-close {
    display: inline-flex;
    flex: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
  }
  .gm-close-icon { position: relative; display: block; width: 20px; height: 20px; }
  .gm-close-icon::before,
  .gm-close-icon::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 1px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .gm-close-icon::before { transform: rotate(45deg); }
  .gm-close-icon::after { transform: rotate(-45deg); }

  .gm-content {
    max-width: 620px;
    margin: 0 auto;
    padding: 24px 22px calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .gm-eyebrow {
    margin: 0 0 8px;
    color: var(--mut);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  .gm-row {
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: 500 1.2rem/1.3 Inter, system-ui, sans-serif;
    letter-spacing: -.025em;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }
  .gm-row:hover { color: var(--or); }
  .gm-arrow { flex: none; color: var(--mut); font-size: 1.1rem; line-height: 1; }
  .gm-chevron {
    flex: none;
    width: 9px;
    height: 9px;
    margin: -5px 5px 0 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease, margin .2s ease;
  }
  .gm-disclosure[aria-expanded="true"] .gm-chevron {
    margin-top: 5px;
    transform: rotate(225deg);
  }
  .gm-submenu { padding: 8px 0 12px 10px; border-bottom: 1px solid var(--line); }
  .gm-submenu a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 450;
    line-height: 1.35;
    text-decoration: none;
  }
  .gm-submenu a:hover { background: var(--soft); }
  .gm-submenu a span[aria-hidden="true"] { color: var(--mut); }
  .gm-actions { padding-top: 26px; }
  .gm-primary {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--bg);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
  }
  .gm-primary span { color: var(--or); font-size: 1.15rem; }
  .gm-caption { margin: 12px 0 0; color: var(--mut); font-size: .8rem; text-align: center; }
  .growthy-mobile-toggle:focus-visible,
  .growthy-mobile-panel :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
}

@media (max-width: 350px) {
  .gm-header { padding-left: 16px; padding-right: 16px; }
  .gm-brand { font-size: 1.2rem; }
  .gm-header-cta { padding-left: 10px; padding-right: 10px; font-size: .76rem; }
  .gm-content { padding-left: 18px; padding-right: 18px; }
  header nav { gap: 6px; }
  .menu > .btn { padding-left: 9px; padding-right: 9px; font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gm-chevron { transition: none; }
}
