/* Shared site chrome copied from the homepage; scoped to the two .uph wrappers. */
.uph {
  --gutter: clamp(20px, 3vw, 72px);
  --bg: #F3FAFF;
  --surface: #FFFFFF;
  --surface-nav: rgba(255,255,255,.94);
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #64748B;
  --blue: #00A3FF;
  --blue-a11y: #0076C8;
  --blue-deep: #005E9F;
  --blue-text: #0070BD;
  --blue-tint: #EAF6FF;
  --icon: #078BFF;
  --mint: #34D399;
  --mint-ink: #00784E;
  --border: #E2E8F0;
  --outline: #79D5FF;
  --card-shadow: 0 8px 28px rgba(35,99,140,.07);
  --hover-shadow: 0 14px 36px rgba(35,99,140,.13);
  --pref-bg: linear-gradient(180deg, #F6FBFF 0%, #DDF4FF 100%);
  --pref-border: #9BDDFF;
  --mint-bg: linear-gradient(135deg, #E7FBF4 0%, #F0FFFB 100%);
  --mint-border: #CDEFE2;
  --divider: #CFE9DF;
  --scrim: linear-gradient(90deg, rgba(239,248,255,.80) 0%, rgba(239,248,255,.55) 22%, rgba(239,248,255,.28) 34%, rgba(239,248,255,0) 54%);
  --focus: #003A66;
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-ui: cubic-bezier(.2,.7,.2,1);

  font-family: "Asap", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html.dark .uph {
  --bg: #0c1324;
  --surface: #151b2d;
  --surface-nav: rgba(21,27,45,.92);
  --ink: #F1F5F9;
  --ink-2: #CBD5E1;
  --ink-3: #94A3B8;
  --blue-text: #6CC6FF;
  --blue-tint: rgba(41,169,255,.12);
  --icon: #3DB2FF;
  --mint-ink: #4ADE9F;
  --border: rgba(148,163,184,.18);
  --outline: #2F7FB5;
  --card-shadow: 0 8px 28px rgba(0,0,0,.28);
  --hover-shadow: 0 14px 36px rgba(0,0,0,.4);
  --pref-bg: linear-gradient(180deg, #16243d 0%, #13304d 100%);
  --pref-border: #2C78AE;
  --mint-bg: linear-gradient(135deg, #0f2a2b 0%, #10262c 100%);
  --mint-border: rgba(52,211,153,.18);
  --divider: rgba(52,211,153,.2);
  --scrim: linear-gradient(90deg, rgba(12,19,36,.86) 0%, rgba(12,19,36,.66) 24%, rgba(12,19,36,.32) 38%, rgba(12,19,36,0) 58%);
  --focus: #9ED8FF;
}
:where(.uph) *, :where(.uph) *::before, :where(.uph) *::after { box-sizing: border-box; }
:where(.uph) :where(img, video, svg) { display: block; max-width: 100%; }
:where(.uph) :where(a) { color: inherit; }
:where(.uph) :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
:where(.uph) :where(ul, ol) { padding: 0; list-style: none; }
:where(.uph) :where(button) { font: inherit; color: inherit; }
.uph .tnum, .uph .uph-price, .uph .uph-spec__value { font-variant-numeric: tabular-nums; }
.uph-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.uph :focus { outline: none; }
.uph :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; border-radius: 6px; }
.uph [tabindex="-1"]:focus { outline: none; box-shadow: none; }
.uph-theming .uph, .uph-theming .uph * { transition: background-color 180ms linear, color 180ms linear, border-color 180ms linear !important; }

.uph-skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--blue-a11y); color: #fff !important; padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.uph-skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.uph-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 12px;
  font-weight: 700; font-size: 18px; text-decoration: none; line-height: 1.1; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 180ms var(--ease-ui), background-color 180ms var(--ease-ui), box-shadow 180ms var(--ease-ui), border-color 180ms var(--ease-ui), color 180ms var(--ease-ui);
}
.uph-btn--fill { background: var(--blue-a11y); color: #fff !important; box-shadow: 0 6px 18px rgba(0,118,200,.28); }
.uph-btn--outline { background: var(--blue-tint); color: var(--blue-text) !important; border-color: var(--blue-a11y); }
html.dark .uph-btn--outline { border-color: #3DA6EC; }
.uph-btn--pill { border-radius: 999px; }
.uph-btn:active { transform: translateY(0) scale(.985); transition-duration: 90ms; }
.uph-btn--fill:focus-visible { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,94,159,.34), 0 0 0 3px #fff; }
.uph-btn--outline:focus-visible { background: #D6EEFF; transform: translateY(-2px); }
html.dark .uph-btn--outline:focus-visible { background: rgba(41,169,255,.22); }
@media (hover: hover) and (pointer: fine) {
  .uph-btn--fill:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,94,159,.34); }
  .uph-btn--outline:hover { background: #D6EEFF; transform: translateY(-2px); }
  html.dark .uph-btn--outline:hover { background: rgba(41,169,255,.22); }
  .uph-btn:active { transform: translateY(0) scale(.985); }
}

/* ---------- Navigation ---------- */
.uph-nav {
  position: fixed; top: 16px; left: var(--gutter); right: var(--gutter); z-index: 50;
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 12px 0 22px;
  background: #fff; background: var(--surface-nav);
  border: 1px solid rgba(255,255,255,.9); border-radius: 999px;
  box-shadow: 0 6px 22px rgba(35,99,140,.08);
  transition: box-shadow 200ms var(--ease-ui);
}
html.dark .uph-nav { border-color: rgba(148,163,184,.16); }
@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .uph-nav { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.uph-nav.is-scrolled { box-shadow: 0 10px 30px rgba(35,99,140,.16); }
html.dark .uph-nav.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.uph-logo { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; flex-shrink: 0; }
.uph-logo img { height: 34px; width: auto; }
.uph .logo-dark { display: none; }
html.dark .uph .logo-light { display: none; }
html.dark .uph .logo-dark { display: block; }
.uph-nav__links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px); }
.uph-nav__links a, .uph-footer__links a, .uph-linkbtn {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 500; font-size: 16px; color: var(--ink);
}
.uph-nav__links a::after, .uph-footer__links a::after, .uph-linkbtn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--blue-a11y); transform: scaleX(0); transform-origin: left; transition: transform 160ms var(--ease-ui);
}
html.dark .uph-nav__links a::after, html.dark .uph-footer__links a::after, html.dark .uph-linkbtn::after { background: var(--blue-text); }
.uph-nav__links a:hover::after, .uph-nav__links a:focus-visible::after,
.uph-footer__links a:hover::after, .uph-footer__links a:focus-visible::after,
.uph-linkbtn:hover::after, .uph-linkbtn:focus-visible::after { transform: scaleX(1); }
.uph-nav__actions { display: flex; align-items: center; gap: 10px; }
.uph-iconbtn {
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color 160ms var(--ease-ui);
}
.uph-iconbtn:hover { background: rgba(0,118,200,.08); }
html.dark .uph-iconbtn:hover { background: rgba(255,255,255,.08); }
.uph-iconbtn svg { width: 22px; height: 22px; }
.uph-theme .i-sun { display: none; }
html.dark .uph-theme .i-sun { display: block; }
html.dark .uph-theme .i-moon { display: none; }
.uph-nav .uph-btn { min-height: 44px; padding: 0 22px; font-size: 16px; }
.uph-menu-btn { display: none; }

/* Drawer */
.uph-drawer {
  position: fixed; inset: 0 0 auto 0; margin: 12px var(--gutter) auto; width: auto; max-width: none;
  padding: 20px; border: 1px solid var(--border); border-radius: 24px;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(15,23,42,.2);
  font-family: "Asap", ui-sans-serif, system-ui, sans-serif;
}
.uph-drawer[open] { animation: uph-drawer-in 200ms var(--ease-ui) both; }
.uph-drawer::backdrop { background: rgba(15,23,42,.18); animation: uph-fade-in 160ms linear both; }
.uph-drawer.is-closing { animation: uph-drawer-out 160ms var(--ease-ui) both; }
.uph-drawer.is-closing::backdrop { animation: uph-fade-out 160ms linear both; }
.uph-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.uph-drawer__links a { display: flex; align-items: center; min-height: 52px; padding: 0 8px; font-size: 19px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--border); }
.uph-drawer__links li:last-child a { border-bottom: 0; }
.uph-drawer .uph-btn { width: 100%; margin-top: 12px; }
@keyframes uph-drawer-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes uph-drawer-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes uph-fade-in { from { opacity: 0; } }
@keyframes uph-fade-out { to { opacity: 0; } }

/* ---------- Footer ---------- */
.uph-footer { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--border); padding: 30px var(--gutter) 34px; text-align: center; }
.uph-footer .uph-logo { margin: 0 auto; justify-content: center; }
.uph-footer .uph-logo img { height: 36px; }
.uph-footer hr { border: 0; height: 1px; background: var(--border); margin: 20px 0 10px; }
.uph-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 30px; }
.uph-footer__links a, .uph-linkbtn { font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.uph-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; }
.uph-footer__copy { margin-top: 10px; font-size: 13px; color: var(--ink-3); }


.up-shell { display: flow-root; }
.up-shell .uph-logo img { max-width: none; }
.up-shell .uph-footer { margin-top: 64px; }
@media (max-width: 1100px) {
  .uph-nav__links { gap: 22px; }
  .uph-nav__links a { font-size: 15px; }
}
@media (max-width: 1023px) {
  .uph-nav { height: 62px; padding: 0 8px 0 18px; }
  .uph-nav nav, .uph-nav__members { display: none; }
  .uph-menu-btn { display: inline-flex; }
  .uph-logo img { height: 30px; }
}
@media (max-width: 599px) {
  .uph { font-size: 17px; }
  .uph-nav { top: 10px; height: 60px; }
  .uph-footer__links { gap: 0 20px; }
}
@media (max-width: 359px) { .uph { --gutter: 16px; } }
@media print { .uph-nav { position: static; } .uph-nav__actions, .uph-drawer { display: none !important; } }
