/* The public website's header (see index.html and site.css), for pages that do not load site.css:
   "How we build the plan" (/method.html) and "Build your plan" (/plan.html). Scoped under .aqh so it cannot change
   the page below it. Hidden inside the app (?embed=1), which has its own header. */
.aqh {
  --h-bg:#f6faff; --h-surface:#fff; --h-tint:#eaf3ff; --h-ink:#0a1628; --h-muted:#4a5d76; --h-line:#d6e3f2; --h-brand:#0057ff; --h-brand-d:#0346c8;
  position:sticky; top:0; z-index:60; font:16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background:color-mix(in srgb, var(--h-bg) 86%, transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid color-mix(in srgb, var(--h-line) 70%, transparent); padding-top:env(safe-area-inset-top, 0px);
}
html[data-theme="pro"] .aqh { --h-bg:#0d0f12; --h-surface:#171b20; --h-tint:#1e232a; --h-ink:#f3f5f7; --h-muted:#b7bfc9; --h-line:#272d35; --h-brand:#c6f432; --h-brand-d:#b3e01f; }
html[data-theme="pro"] .aqh .aqh-btn.primary, html[data-theme="pro"] .aqh .aqh-mark { color:#0d0f12; }
html[data-theme="classic"] .aqh { --h-bg:#f7f4ee; --h-tint:#efe9dc; --h-ink:#13213a; --h-muted:#434c5e; --h-line:#e4ded1; --h-brand:#13213a; --h-brand-d:#1e3157; }
html.embed .aqh { display:none; }
.aqh *, .aqh *::before, .aqh *::after { box-sizing:border-box; }
.aqh-bar { display:flex; align-items:center; gap:18px; min-height:68px; width:min(1160px, 100%); margin-inline:auto; padding-inline:20px; position:relative; }
.aqh-brand { display:inline-flex; align-items:center; gap:10px; min-width:44px; min-height:44px; text-decoration:none; color:var(--h-ink); }
.aqh-mark { width:34px; height:34px; border-radius:10px; background:var(--h-brand); display:grid; place-items:center; color:#fff; }
.aqh-mark svg { width:20px; height:20px; }
.aqh-name { font-weight:800; letter-spacing:.14em; font-size:15px; }
.aqh-nav { display:flex; gap:4px; margin-inline-start:12px; flex:1; }
.aqh-nav a { white-space:nowrap; color:var(--h-muted); text-decoration:none; font-weight:600; font-size:14px; padding:8px 12px; border-radius:999px; transition:background .15s, color .15s; }
.aqh-nav a:hover { color:var(--h-ink); background:var(--h-tint); }
.aqh-nav a[aria-current="page"] { color:var(--h-brand); background:var(--h-tint); }
html[data-theme="pro"] .aqh-nav a[aria-current="page"] { color:var(--h-ink); }
.aqh-end { display:flex; align-items:center; gap:8px; margin-inline-start:auto; }
.aqh-lang select { border:1.5px solid var(--h-line); background:var(--h-surface); color:var(--h-ink); border-radius:999px; padding:8px 12px; font:inherit; font-size:14px; }
.aqh-btn { white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; border:1.5px solid transparent; border-radius:999px; padding:10px 18px; font:600 15px/1.2 inherit; text-decoration:none; transition:transform .15s, background .15s; }
.aqh-btn:hover { transform:translateY(-1px); }
.aqh-btn.primary { background:var(--h-brand); color:#fff; }
.aqh-btn.primary:hover { background:var(--h-brand-d); }
.aqh-btn.ghost { color:var(--h-ink); }
.aqh-menu { display:none; background:none; border:0; padding:10px 11px; min-width:44px; min-height:44px; cursor:pointer; }
.aqh-menu span { display:block; width:22px; height:2px; background:var(--h-ink); margin:5px 0; border-radius:2px; }
.aqh :focus-visible { outline:3px solid var(--h-brand); outline-offset:3px; border-radius:6px; }
.aqh-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
@media (max-width:1180px) and (min-width:981px) { .aqh-nav a:nth-child(-n+3) { display:none; } }
@media (max-width:980px) {
  .aqh-menu { display:block; }
  .aqh-nav { display:none; position:absolute; inset-inline:0; top:100%; margin:0; background:var(--h-bg); border-bottom:1px solid var(--h-line); padding:10px 20px 16px; flex-direction:column; }
  .aqh-nav.open { display:flex; }
  .aqh-nav a { padding:12px; }
  .aqh-end .aqh-btn.ghost { display:none; }
}
@media (max-width:560px) { .aqh-lang select { max-width:118px; } .aqh-name { display:none; } .aqh-btn { padding:9px 14px; font-size:14px; } }
@media (prefers-reduced-motion:reduce) { .aqh-btn { transition:none; } .aqh-btn:hover { transform:none; } }
@media print { .aqh { display:none; } }

/* Safari on iPhone zooms into any field under 16px when it is tapped and does not zoom back out: 16px on touch screens. */
@media (pointer: coarse) { input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select, textarea { font-size:16px !important; } }

/* Touch: the header buttons at least 44 px tall (audit 2026-11-17). */
@media (pointer:coarse) { .aqh-btn { min-height:44px; } }
