/* UsGo! design system — tokens, base, layout, header, footer.
   Brand: Electric Blue #253FEF · Marigold #FFB020 · Deep Navy · Teal highlights */
:root {
  --blue: #253FEF; --blue-600: #1B31D1; --blue-700: #1526A8; --blue-100: #DDE3FF; --blue-50: #F0F3FF;
  --navy: #0A1433; --navy-2: #111E47; --navy-3: #1C2C63;
  --teal: #0B9C9C; --teal-600: #08807F; --teal-50: #E2F6F5;
  --marigold: #FFB020; --marigold-600: #E59A0B; --marigold-50: #FFF5DE;
  --ink: #0E1834; --text: #27314F; --muted: #5E6886; --faint: #687290;
  --line: #E3E7F1; --line-2: #D3D9E8; --bg: #F5F7FC; --white: #fff;
  --ok: #128A4B; --ok-50: #E3F5EA; --warn: #8F5400; --warn-50: #FFF3D9; --bad: #C2283A; --bad-50: #FDE8EA; --info-50: #EAF0FF;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wordmark: 'Nunito', 'Instrument Sans', system-ui, sans-serif;
  --r-xs: 8px; --r-s: 12px; --r-m: 18px; --r-l: 26px; --r-xl: 34px;
  --sh-1: 0 1px 2px rgba(14, 24, 52, .06), 0 2px 8px rgba(14, 24, 52, .05);
  --sh-2: 0 6px 24px rgba(14, 24, 52, .08), 0 2px 6px rgba(14, 24, 52, .05);
  --sh-3: 0 24px 60px rgba(10, 20, 51, .18), 0 6px 18px rgba(10, 20, 51, .08);
  --sh-blue: 0 10px 28px rgba(37, 63, 239, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* Computers show the whole page at 85%. Sizes are in px, so this scales text, spacing and images together.
   Full-height rules divide by --page-zoom so they still fill the screen. Phones and small tablets stay at 100%. */
:root { --page-zoom: 1; }
@media (min-width: 1025px) { :root { --page-zoom: .85; } html { zoom: var(--page-zoom); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: calc(100vh / var(--page-zoom)); display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue-100); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 64px); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.03em; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { text-wrap: pretty; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a, a.link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.i { display: inline-block; vertical-align: -0.2em; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-s { width: 16px; height: 16px; } .i-l { width: 24px; height: 24px; } .i-xl { width: 32px; height: 32px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--marigold); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.container-narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-tint { background: var(--bg); }
.section-navy { background: var(--navy); color: #C9D2EC; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 60ch; margin-top: 10px; font-size: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-navy .eyebrow { color: var(--marigold); }
.lead { font-size: 18px; color: var(--muted); max-width: 64ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }


/* ---------- Page-loading overlay (U! animation) ---------- */
.page-loader { display: none; position: fixed; inset: 0; z-index: 400; place-items: center; background: rgba(255, 255, 255, .94); pointer-events: none; animation: fade .25s ease both; }
.page-loader img { width: 150px; height: 150px; }
html.loader-show:not(.app-ready) .page-loader { display: grid; }
@media (prefers-reduced-motion: reduce) { html.loader-show:not(.app-ready) .page-loader { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid rgba(227, 231, 241, .9); transition: background .3s, border-color .3s, color .3s; }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-word { font: 900 26px/1 var(--wordmark); letter-spacing: -.035em; color: var(--blue); }
.brand-word b { color: var(--marigold); font-weight: 900; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; flex: 1; min-width: 0; }
.main-nav a { padding: 8px 11px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--text); white-space: nowrap; transition: background .2s, color .2s; }
.main-nav a:hover { background: var(--blue-50); color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); background: var(--blue-50); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--ink); transition: background .2s; }
.icon-btn:hover { background: var(--blue-50); color: var(--blue); }
.icon-btn .count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font: 700 11px/18px var(--body); text-align: center; border: 2px solid #fff; }
.menu-btn { display: none; border-color: var(--line); }
.account { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: box-shadow .2s; }
.avatar-btn:hover { box-shadow: var(--sh-1); }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--sh-3); padding: 8px; z-index: 70; animation: pop .18s var(--ease); }
.dropdown .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown .who strong { display: block; color: var(--ink); }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; background: none; border: 0; text-align: left; color: var(--text); }
.dropdown a:hover, .dropdown button:hover { background: var(--bg); color: var(--blue); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
html:not(.is-auth) .auth-only { display: none !important; }
html.is-auth .guest-only { display: none !important; }

/* Transparent header over home hero */
.has-hero .site-header:not(.solid) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header:not(.solid) .main-nav a, .has-hero .site-header:not(.solid) .icon-btn { color: #fff; }
.has-hero .site-header:not(.solid) .main-nav a:hover, .has-hero .site-header:not(.solid) .main-nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: #fff; }
.has-hero .site-header:not(.solid) .brand-word { color: #fff; }
.has-hero .site-header:not(.solid) .btn-quiet { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.has-hero .site-header:not(.solid) .menu-btn { border-color: rgba(255, 255, 255, .4); }
.has-hero .hero { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 56px); }

/* Drawer (mobile & tablet menu) */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 51, .45); z-index: 90; animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 91; box-shadow: var(--sh-3); display: flex; flex-direction: column; animation: slideIn .28s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-body { overflow-y: auto; padding: 10px 12px 24px; flex: 1; }
.drawer-body h4 { font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 18px 10px 8px; }
.drawer-body a, .drawer-body button.drawer-link { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; font-weight: 600; color: var(--ink); background: none; border: 0; width: 100%; text-align: left; font-size: 15.5px; }
.drawer-body a:hover, .drawer-body button.drawer-link:hover, .drawer-body a[aria-current="page"] { background: var(--blue-50); color: var(--blue); }
.drawer-body .i { color: var(--blue); }
.drawer-foot { padding: 14px 18px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: radial-gradient(1200px 400px at 85% -10%, rgba(11, 156, 156, .35), transparent 60%), radial-gradient(900px 500px at 0% 120%, rgba(37, 63, 239, .55), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #D4DBF0; padding: 64px 0 72px; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(32px, 4.6vw, 54px); }
.page-hero p { font-size: 18px; max-width: 62ch; margin-top: 14px; }
.page-hero .eyebrow { color: var(--marigold); }
.page-hero.compact { padding: 44px 0 52px; }
.page-hero.with-search { padding-bottom: 110px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #AFB9D8; margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #AEB8D6; padding: 72px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr; gap: 36px; }
.footer-brand p { margin-top: 14px; max-width: 30ch; }
.footer-brand .brand-word { color: #fff; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: 0; margin-bottom: 14px; font-family: var(--body); }
.site-footer ul li + li { margin-top: 9px; }
.site-footer a { font-size: 14.5px; transition: color .2s; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; margin-top: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 52px; padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom p { max-width: 70ch; }

/* ---------- Animations ---------- */
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.reveal { animation: rise .6s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
.made-by a { color: inherit; text-decoration: underline; }
