@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
}

:root {
  --up-black: #111111;
  --up-graphite: #5f5f63;
  --up-violet: #6f2c91;
  --up-violet-deep: #4b1767;
  --up-ink: #160c1b;
  --up-mist: #f8f5fa;
  --up-lavender: #e9d9f1;
  --up-sand: #f3e7d3;
  --up-border: #ddd6e1;
  --up-white: #ffffff;
  --up-serif: "Source Serif 4", Georgia, serif;
  --up-sans: "Source Sans 3", Arial, sans-serif;
  --up-radius: 18px;
  --up-shadow: 0 24px 70px rgb(75 23 103 / 0.1);
  --up-shell: min(100% - 40px, 1240px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--up-white);
  color: var(--up-black);
  font-family: var(--up-sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--up-violet);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--up-violet-deep);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #b77bd2;
  outline-offset: 3px;
}

::selection {
  background: #ead8f1;
  color: #24112e;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 10000;
  top: 14px;
  left: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--up-black);
  color: white;
}

.staging-bar {
  padding: 7px 18px;
  background: var(--up-sand);
  color: #4b3421;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.site-header {
  position: sticky;
  z-index: 900;
  top: 0;
  border-bottom: 1px solid rgb(221 214 225 / 0.9);
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(14px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  display: flex;
  width: var(--up-shell);
  min-height: 88px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-lockup {
  display: inline-flex;
  width: min(270px, 52vw);
  flex-direction: column;
  color: var(--up-black);
  text-decoration: none;
}

.brand-lockup img {
  width: 225px;
}

.brand-lockup span {
  margin: -4px 0 0 62px;
  color: var(--up-graphite);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-navigation,
.primary-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  color: #39323b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  color: var(--up-violet);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--up-border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: auto;
  background: var(--up-black);
  content: "";
}

.menu-toggle-lines::before {
  transform: translateY(-7px);
}

.menu-toggle-lines::after {
  transform: translateY(5px);
}

.button,
button.button,
input.button {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 21px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--up-violet);
  border-radius: 12px;
  background: var(--up-violet);
  color: white;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--up-violet-deep);
  background: var(--up-violet-deep);
  color: white;
  transform: translateY(-1px);
}

.button-secondary {
  border-color: #cbaeda;
  background: white;
  color: var(--up-violet);
}

.button-secondary:hover {
  background: var(--up-mist);
  color: var(--up-violet-deep);
}

.button[disabled],
button[disabled] {
  border-color: #bfb8c3;
  background: #d7d2d9;
  color: #5c575f;
  cursor: not-allowed;
  transform: none;
}

.header-cta {
  white-space: nowrap;
}

.section-shell {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.breadcrumbs {
  width: var(--up-shell);
  margin-inline: auto;
  padding-block: 14px;
  overflow-x: auto;
  color: var(--up-graphite);
  font-size: 13px;
  white-space: nowrap;
}

.breadcrumbs ol {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 9px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 9px;
  color: #a099a3;
  content: "/";
}

.breadcrumbs a {
  color: var(--up-graphite);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--up-violet);
  text-decoration: underline;
}

.proof-grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(to right, rgb(111 44 145 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(111 44 145 / 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to right, transparent, black 38%, black 100%);
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--up-border);
  background: linear-gradient(135deg, rgb(111 44 145 / 0.06), transparent 50%), white;
}

.hero-inner {
  position: relative;
  display: grid;
  width: var(--up-shell);
  margin-inline: auto;
  padding-block: clamp(68px, 9vw, 118px);
  align-items: center;
  gap: clamp(42px, 6vw, 84px);
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
}

.eyebrow {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 12px;
  color: var(--up-violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 38px;
  height: 2px;
  background: var(--up-violet);
  content: "";
}

.hero-copy h1,
.plain-page h1,
.error-page h1 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--up-serif);
  font-size: clamp(48px, 6.6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-deck {
  max-width: 62ch;
  margin: 25px 0 0;
  color: var(--up-graphite);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.68;
}

.hero-actions,
.cta-row {
  display: flex;
  margin: 32px 0 0;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-boundary {
  max-width: 68ch;
  margin-top: 20px;
  color: var(--up-graphite);
  font-size: 14px;
}

.hero-media {
  overflow: hidden;
  margin: 0;
  border: 1px solid #d7c4df;
  border-radius: 24px;
  background: white;
  box-shadow: var(--up-shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 14px 17px;
  border-top: 1px solid var(--up-border);
  color: var(--up-graphite);
  font-size: 12px;
  line-height: 1.5;
}

.governed-body {
  display: grid;
  padding-block: clamp(70px, 9vw, 120px);
  gap: clamp(64px, 8vw, 108px);
}

.governed-section {
  display: grid;
  max-width: 950px;
  gap: 18px;
}

.governed-section + .governed-section {
  padding-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--up-border);
}

.governed-section h2,
.governed-body > h2,
.closing-band h2,
.special-component h2 {
  max-width: 19ch;
  margin: 0;
  font-family: var(--up-serif);
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.governed-section h3 {
  max-width: 34ch;
  margin: 22px 0 0;
  color: var(--up-black);
  font-family: var(--up-serif);
  font-size: clamp(23px, 2.8vw, 31px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.faq-section h3 + p {
  margin-top: -8px;
}

.governed-section p,
.governed-section li,
.governed-body > p,
.special-component p {
  max-width: 76ch;
  margin: 0;
  color: var(--up-graphite);
}

.governed-section p > strong:first-child,
.governed-section li > strong:first-child {
  color: var(--up-black);
}

.governed-section ul,
.governed-section ol {
  display: grid;
  max-width: 880px;
  margin: 6px 0 0;
  padding-left: 26px;
  gap: 11px;
}

.governed-section ol li::marker {
  color: var(--up-violet);
  font-weight: 800;
}

.governed-section > p:has(> strong:first-child) {
  padding: 20px 22px;
  border: 1px solid var(--up-border);
  border-radius: 14px;
  background: white;
}

.evidence-note {
  max-width: 850px;
  padding: 18px 21px;
  border-left: 4px solid var(--up-violet);
  border-radius: 0 12px 12px 0;
  background: var(--up-mist);
  color: #3d1b4d;
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--up-border);
  border-radius: 16px;
  background: white;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #b995c9 var(--up-mist);
}

.table-scroll:focus-visible {
  outline: 3px solid #b77bd2;
  outline-offset: 3px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

td,
th {
  padding: 16px 18px;
  border-bottom: 1px solid var(--up-border);
  text-align: left;
  vertical-align: top;
}

tr:last-child td,
tr:last-child th {
  border-bottom: 0;
}

tr:first-child td {
  background: var(--up-mist);
  color: var(--up-black);
  font-weight: 800;
}

.special-component {
  padding: 0 0 clamp(70px, 9vw, 120px);
}

.component-placeholder,
.component-panel {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #d4b8e0;
  border-radius: 20px;
  background: linear-gradient(145deg, #fdfbfe, #f2e5f7);
  box-shadow: var(--up-shadow);
}

.editorial-record {
  margin-bottom: clamp(54px, 7vw, 86px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--up-border);
  border-radius: 18px;
  background: #faf8fb;
}

.editorial-record h2 {
  margin: 0;
  font-family: var(--up-serif);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.editorial-record dl {
  display: grid;
  margin: 26px 0 18px;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-record dl div {
  padding-top: 14px;
  border-top: 2px solid #d8c3e0;
}

.editorial-record dt {
  color: var(--up-violet-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.editorial-record dd {
  margin: 8px 0 0;
  color: var(--up-black);
  font-size: 14px;
  line-height: 1.55;
}

.editorial-record > p:last-child {
  max-width: 82ch;
  margin: 0;
  color: var(--up-graphite);
  font-size: 14px;
}

.closing-band {
  display: grid;
  width: var(--up-shell);
  margin: 0 auto clamp(72px, 9vw, 120px);
  padding: clamp(34px, 5vw, 56px);
  align-items: center;
  gap: 28px;
  grid-template-columns: 1fr auto;
  border-radius: 22px;
  background: var(--up-ink);
  color: white;
}

.closing-band .eyebrow {
  color: #d9b6e9;
}

.closing-band .eyebrow::before {
  background: #d9b6e9;
}

.closing-band h2 {
  color: white;
}

.closing-band p:not(.eyebrow) {
  max-width: 68ch;
  margin: 14px 0 0;
  color: rgb(255 255 255 / 0.72);
}

.site-footer {
  border-top: 1px solid #3a2244;
  background: var(--up-ink);
  color: white;
}

.footer-grid {
  display: grid;
  width: var(--up-shell);
  margin-inline: auto;
  padding-block: 62px;
  gap: 42px;
  grid-template-columns: 1.25fr 0.72fr 0.72fr 0.82fr;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #d9b6e9;
  font-family: var(--up-sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a {
  color: rgb(255 255 255 / 0.72);
  font-size: 14px;
}

.footer-grid li a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.footer-grid a:hover {
  color: white;
}

.footer-grid ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.footer-brand img {
  width: 250px;
}

.footer-brand .footer-endorsement {
  margin: 0 0 18px;
  color: #d9b6e9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  width: var(--up-shell);
  margin-inline: auto;
  padding-block: 20px;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.55);
  font-size: 12px;
}

.plain-page,
.error-page {
  min-height: 60vh;
  padding-block: 90px;
}

.plain-page h1,
.error-page h1 {
  font-size: clamp(45px, 6vw, 76px);
}

.entry-card {
  padding-block: 26px;
  border-bottom: 1px solid var(--up-border);
}

.ube-core-grid,
.ube-checklist-grid,
.ube-results-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ube-field {
  display: grid;
  gap: 7px;
}

.ube-field label {
  color: var(--up-black);
  font-size: 14px;
  font-weight: 750;
}

.ube-field input,
.ube-field select,
.ube-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #c9c0cd;
  border-radius: 10px;
  background: white;
  color: var(--up-black);
}

.ube-field input:disabled,
.ube-field select:disabled,
.ube-field textarea:disabled {
  background: #f2eff3;
  color: #6b666d;
}

.ube-field small,
.component-status {
  color: var(--up-graphite);
  font-size: 13px;
}

.component-status {
  margin-bottom: 24px !important;
  padding: 14px 16px;
  border-left: 4px solid #a56a19;
  background: #fff8e9;
  color: #513911 !important;
}

.metric-card {
  padding: 18px;
  border: 1px solid var(--up-border);
  border-radius: 13px;
  background: white;
}

.metric-card span {
  display: block;
  color: var(--up-graphite);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--up-serif);
  font-size: 32px;
}

.ube-checklist-group {
  padding: 22px;
  border: 1px solid var(--up-border);
  border-radius: 14px;
  background: white;
}

.ube-checklist-group h3 {
  margin: 0 0 14px;
  font-family: var(--up-serif);
  font-size: 24px;
}

.ube-checklist-group label {
  display: grid;
  margin-top: 11px;
  align-items: start;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  color: var(--up-graphite);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .header-cta {
    display: none;
  }

  .primary-navigation,
  .primary-menu {
    gap: 18px;
  }
}

@media (max-width: 1079px) {
  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--up-border);
    background: white;
    box-shadow: 0 20px 45px rgb(17 17 17 / 0.1);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    gap: 0;
  }

  .primary-menu a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--up-border);
    font-size: 17px;
  }

  .primary-navigation.is-open .header-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 16px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 760px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  :root {
    --up-shell: min(100% - 32px, 1240px);
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand-lockup img {
    width: 200px;
  }

  .brand-lockup span {
    margin-left: 54px;
    font-size: 8px;
  }

  .hero-inner {
    padding-block: 58px 64px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 62px);
  }

  .hero-actions,
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .governed-body {
    padding-block: 64px;
    gap: 58px;
  }

  .governed-section > p:has(> strong:first-child) {
    padding: 17px;
  }

  .table-scroll::before {
    position: sticky;
    left: 0;
    z-index: 1;
    display: block;
    width: fit-content;
    padding: 9px 13px;
    border-right: 1px solid var(--up-border);
    border-bottom: 1px solid var(--up-border);
    border-radius: 0 0 10px 0;
    background: var(--up-mist);
    color: var(--up-violet-deep);
    content: "Swipe to compare →";
    font-size: 12px;
    font-weight: 750;
  }

  .closing-band,
  .editorial-record dl,
  .ube-core-grid,
  .ube-checklist-grid,
  .ube-results-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  .site-header,
  .site-footer,
  .staging-bar,
  .hero-actions,
  .closing-band,
  .no-print {
    display: none !important;
  }

  body {
    color: black;
    background: white;
    font-size: 10pt;
  }

  .page-hero,
  .hero-inner,
  .governed-body,
  .special-component,
  .section-shell {
    width: 100%;
    padding: 0;
    border: 0;
    background: white;
  }

  .hero-media {
    display: none;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 28pt;
  }

  .governed-section,
  .ube-checklist-group,
  .metric-card {
    break-inside: avoid;
  }
}
