/* BThereHUB redesign: shared foundation (mechanics only; the look lives in theme.css) */
:root {
  --navy: #02376B;
  --navy-2: #032B52;
  --navy-3: #0B4A8A;
  --cyan: #0DB7EC;
  --cyan-ink: #0A6F93;
  --pale: #DDF2FA;
  --bg: #F5F7F9;
  --surface: #FFFFFF;
  --ink: #0B1F33;
  --muted: #3E5368;
  --radius: 0px;
  --btn-radius: 0px;
  --font-d: Georgia, serif;
  --font-t: system-ui, sans-serif;
  --font-w: 'Manrope', system-ui, sans-serif;
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-small: clamp(.875rem, .85rem + .1vw, .9375rem);
  --t-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --t-lead: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --t-head: clamp(2.1rem, 1.4rem + 2.8vw, 3.75rem);
  --t-hero: clamp(2.75rem, 1.2rem + 5.4vw, 6.25rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { min-height: 100dvh; font-family: var(--font-t); font-size: var(--t-body); line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3 { text-wrap: balance; font-weight: inherit; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: rgb(13 183 236 / .3); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 16px; z-index: 200; }
.skip:focus { left: 16px; }
.nw { white-space: nowrap; }
.kicker { display: none; }

/* Wordmark (brand asset, unchanged) */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__word { font-family: var(--font-w); font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em; }
.brand__word strong { font-weight: 800; color: var(--cyan); }

/* Header mechanics */
.header { position: sticky; top: 0; z-index: 60; background: var(--bg); transition: background .3s, transform .3s; }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.dd { position: relative; }
.dd__btn, .nav__link { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 500; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.dd__btn .chev { transition: transform .2s; }
.dd__btn[aria-expanded='true'] .chev { transform: rotate(180deg); }
.dd__panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 320px; padding: 8px; background: var(--surface); box-shadow: 0 18px 40px rgb(2 30 60 / .16); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; z-index: 70; }
.dd__panel::before { content: ''; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.dd.is-open .dd__panel { opacity: 1; visibility: visible; transform: none; }
.dd__panel ul { list-style: none; display: grid; gap: 2px; }
.dd__panel a { display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.dd__panel a:hover, .dd__panel a:focus-visible { background: var(--bg); }
.dd__panel b { font-size: 1rem; font-weight: 600; }
.dd__panel span { font-size: .9375rem; color: var(--muted); }
.nav a[aria-current='page'], .nav .dd__btn.is-current { color: var(--cyan-ink); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; color: var(--ink); }
[data-theme-toggle] { display: none !important; }
@media (max-width: 1020px) {
  .nav { position: absolute; inset: var(--header-h) 0 auto 0; margin: 0; background: var(--surface); box-shadow: 0 18px 40px rgb(2 30 60 / .16); display: none; max-height: calc(100svh - var(--header-h)); overflow: auto; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 24px; }
  .dd__btn, .nav__link { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.125rem; }
  .dd__panel { position: static; transform: none; min-width: 0; box-shadow: none; padding: 0 0 8px 8px; display: none; opacity: 1; visibility: visible; background: transparent; }
  .dd.is-open .dd__panel { display: block; }
  .nav-toggle { display: inline-grid; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 480px) { .header__actions .btn--sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; font-size: 1rem; font-weight: 600; line-height: 1.1; text-decoration: none; border-radius: var(--btn-radius); white-space: nowrap; transition: background .2s, color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--cyan); color: #01203F; }
.btn--primary:hover { background: #3CC8F2; }
.btn--ghost { color: var(--navy); background: transparent; box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--ghost svg { transition: transform .2s; }
.btn--ghost:hover svg { transform: translateX(3px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--block { width: 100%; }
.link { font-weight: 600; color: var(--cyan-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: rgb(13 183 236 / .5); transition: text-decoration-color .2s, color .2s; }
.link:hover { text-decoration-color: currentColor; }

/* Tabs mechanics */
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: tabIn .45s var(--ease) both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; align-content: start; gap: 8px; font-size: .9375rem; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #B8C6D3; border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 1rem; font-weight: 400; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(13 183 236 / .25); }
.form [aria-invalid='true'] { border-color: #C2362C; }
.form__error { font-size: .9375rem; color: #B32F25; }
.form__success { display: grid; gap: 4px; padding: 16px; background: var(--pale); color: var(--ink); font-size: .9375rem; }
.form__success[hidden], .form__error[hidden] { display: none; }
.form__interest { border: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.form__interest legend { font-size: .9375rem; font-weight: 600; margin-bottom: 10px; width: 100%; }
.form label.cb { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; }
.form .cb input { width: 20px; height: 20px; min-height: 0; accent-color: var(--navy); padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* FAQ mechanics */
.faq__list summary { list-style: none; cursor: pointer; }
.faq__list summary::-webkit-details-marker { display: none; }

/* Legal pages */
.legal { padding-block: 48px 120px; }
.legal__wrap { max-width: 1120px; }
.legal__back { display: inline-block; font-weight: 600; color: var(--cyan-ink); text-decoration: none; margin-bottom: 16px; }
.legal__back:hover { text-decoration: underline; }
.legal__title { font-family: var(--font-d); font-size: var(--t-head); line-height: 1.05; color: var(--navy); letter-spacing: -.02em; }
.legal__meta { font-size: .9375rem; color: var(--muted); margin-top: 12px; }
.legal__grid { display: grid; grid-template-columns: 230px 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 56px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal__toc p { font-size: .9375rem; font-weight: 600; margin-bottom: 12px; }
.legal__toc ol { display: grid; gap: 2px; }
.legal__toc a { display: block; font-size: .9375rem; color: var(--muted); text-decoration: none; padding: 6px 12px; }
.legal__toc a:hover { color: var(--ink); }
.legal__toc a[aria-current] { color: var(--navy); background: var(--pale); font-weight: 600; }
.legal__body { max-width: 72ch; }
.legal__body section { padding-bottom: 40px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body h2 { font-family: var(--font-d); font-size: 1.5rem; line-height: 1.2; margin-bottom: 14px; color: var(--navy); }
.legal__body h3 { font-size: 1.0625rem; font-weight: 600; margin: 20px 0 8px; }
.legal__body p, .legal__body li { color: var(--ink); }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { padding-left: 22px; display: grid; gap: 8px; margin-top: 12px; }
.legal__body b { font-weight: 600; }
.ph { background: #FFF1B8; color: #5C4300; padding: 0 4px; font-weight: 500; }
.legal__other { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.legal__other a { font-size: .9375rem; font-weight: 600; padding: 10px 16px; background: var(--surface); text-decoration: none; color: var(--ink); border-radius: var(--btn-radius); }
.legal__other a[aria-current='page'] { background: var(--navy); color: #fff; }
@media (max-width: 800px) { .legal__grid { grid-template-columns: 1fr; } .legal__toc { position: static; } }

/* Motion helpers */
@media (prefers-reduced-motion: no-preference) { .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); } }
.reveal.is-in { opacity: 1; transform: none; }
.mline { display: block; overflow: hidden; padding-bottom: .06em; }
.mline > span { display: block; animation: mrise 1s var(--ease) both; }
.mline:nth-child(2) > span { animation-delay: .11s; }
.mline:nth-child(3) > span { animation-delay: .22s; }
@keyframes mrise { from { transform: translateY(105%); } to { transform: none; } }
.fade-up { animation: fadeUp .9s .35s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .mline > span, .fade-up { animation: none; } }
