@import url('/site-base.css?v=1f3d0d1f7d31');
@import url('/design.css?v=1f3d0d1f7d31');

/* Mobile QA hardening — 2026-09-03 */
.term-banner { display: none !important; }

html, body { max-width: 100%; }
body { overflow-x: clip; }
.wrap, .hero-grid, .split, .card-grid, .trust-list, .footer-grid,
.hero-grid > *, .split > *, .card, .trust-list > li, .form-card,
.table-scroll, table.menu, fieldset, .field, .notice { min-width: 0; max-width: 100%; }
p, li, a, address, td, th, .wordmark-name, .wordmark-role { overflow-wrap: anywhere; }

/* JavaScript-enhanced mobile navigation. Without JS the normal navigation stays visible. */
.menu-toggle { display: none; }
@media (max-width: 899px) {
  .site-header { position: sticky; top: 0; }
  .site-header .wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .wordmark {
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    margin: 0;
    gap: 10px;
  }
  .wordmark img { width: 58px; height: 58px; }
  .wordmark-text { min-width: 0; text-align: left; }
  .wordmark-name { font-size: clamp(1.02rem, 4.6vw, 1.28rem); white-space: nowrap; }
  .wordmark-role { font-size: .6rem; letter-spacing: .11em; white-space: nowrap; }

  .js .site-header.nav-enhanced .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    width: auto;
    overflow: visible;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    background: rgba(255,255,255,.985);
    border: 1px solid rgba(133,80,97,.16);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(83,55,68,.16);
    padding: 8px;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .js .site-header.nav-enhanced.nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .js .site-header.nav-enhanced .site-nav ul {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 3px;
  }
  .js .site-header.nav-enhanced .site-nav a {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border-radius: 12px;
    white-space: normal;
    font-size: .92rem;
  }
  .js .site-header.nav-enhanced .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 46px;
    padding: 9px 16px;
    border: 1.5px solid rgba(133,80,97,.45);
    border-radius: 999px;
    background: #fff;
    color: var(--berry);
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(83,55,68,.07);
  }
  .js .site-header.nav-enhanced .menu-toggle:hover,
  .js .site-header.nav-enhanced .menu-toggle[aria-expanded="true"] {
    background: var(--blush);
    border-color: var(--rose);
  }

  /* Fixed/frosted effects are attractive on desktop but expensive during mobile scroll. */
  body::before { display: none; }
  .site-header, .action-bar { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-figure:hover img, .card:hover, .trust-list li:hover, .btn:hover { transform: none; }
}

/* Convert service tables into contained cards on phones and zoomed/narrow viewports. */
@media (max-width: 720px) {
  .table-scroll {
    overflow: visible;
    margin: 0 0 38px;
    border-radius: 0;
    box-shadow: none;
  }
  table.menu {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  table.menu caption {
    display: block;
    width: 100%;
    padding: 0 0 14px;
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }
  table.menu thead { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  table.menu tbody { display: grid; gap: 12px; width: 100%; }
  table.menu tbody tr {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(133,80,97,.16);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(83,55,68,.055);
  }
  table.menu tbody th,
  table.menu tbody td,
  table.menu.compact tbody th,
  table.menu.compact tbody td {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px 15px;
    border: 0;
    text-align: left;
    white-space: normal;
  }
  table.menu tbody th[scope="row"] {
    padding-bottom: 8px;
    color: var(--charcoal);
    font-size: 1.02rem;
    line-height: 1.35;
  }
  table.menu td.desc {
    min-width: 0;
    padding-top: 0;
    color: var(--muted);
  }
  table.menu td.desc::before,
  table.menu td.price::before {
    display: block;
    margin-bottom: 3px;
    color: #806d76;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  table.menu td.desc::before { content: "What happens"; }
  table.menu td.price::before { content: "Price"; }
  table.menu td.price {
    padding-top: 10px;
    border-top: 1px solid rgba(133,80,97,.1);
    color: var(--berry);
  }
  table.menu.compact td.price { border-top: 0; padding-top: 0; }
  table.menu .tag { white-space: normal; max-width: 100%; }
}

@media (max-width: 430px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header .wrap { padding-left: 14px; padding-right: 14px; }
  .wordmark img { width: 54px; height: 54px; }
  .wordmark-name { font-size: clamp(.98rem, 4.8vw, 1.15rem); }
  .wordmark-role { font-size: .56rem; }
  .js .site-header.nav-enhanced .menu-toggle { min-width: 70px; padding-left: 14px; padding-right: 14px; }
  .action-bar { gap: 7px; }
  .action-bar .btn { min-width: 0; padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 350px) {
  .wordmark-name { font-size: .93rem; }
  .wordmark-role { display: none; }
  .wordmark img { width: 50px; height: 50px; }
  .js .site-header.nav-enhanced .menu-toggle { min-width: 64px; padding-left: 11px; padding-right: 11px; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .site-header.nav-enhanced .site-nav { transition: none; }
}
