
/* Prevent fallback typography from flashing before the Compass fonts are ready. */
html.fonts-loading body {
  opacity: 0;
}

html.fonts-ready body {
  opacity: 1;
  transition: opacity 120ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  html.fonts-ready body {
    transition: none;
  }
}

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;

  --ink: #111827;
  --ink-2: #1f2937;
  --muted: #667085;
  --muted-2: #98a2b3;

  --navy: #2b3448;
  --navy-2: #3b4660;

  --accent: #2f3192;
  --accent-2: #4346b8;
  --accent-soft: #eef0ff;

  --line: rgba(17, 24, 39, 0.10);
  --line-strong: rgba(17, 24, 39, 0.16);

  --shadow-soft: 0 24px 70px rgba(17, 24, 39, 0.08);
  --shadow-card: 0 14px 38px rgba(17, 24, 39, 0.06);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-xl: 40px;

  --max: 1180px;

  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  cursor: pointer;
}

.site-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(17,24,39,.06);
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  line-height: 1;
}

.brand-name {
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -.055em;
  color: var(--navy);
  line-height: .92;
}

.brand-subtitle {
  margin-top: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #7d8290;
}

.nav-toggle {
  display: none;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(47,49,146,.24);
}

.nav-links a.nav-cta:hover {
  transform: translateY(-1px);
}

.nav-links a.nav-cta:active {
  transform: translateY(0);
}

/* Typography */

h1,
h2 {
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 850;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 0.98;
}

h2 {
  max-width: 780px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
}

h3 {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 850;
}

.eyebrow,
.section-label,
.card-kicker,
.product-label {
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
}

.fineprint {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
}

/* Buttons */

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  border: 1px solid rgba(47, 49, 146, 0.18);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 38px rgba(47, 49, 146, 0.20);
}

.button.secondary {
  color: var(--navy);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

/* Forms */

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--ink);
  padding: 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 49, 146, 0.38);
  box-shadow: 0 0 0 4px rgba(47, 49, 146, 0.10);
}

/* Footer */

.site-footer {
  padding: 42px 0 32px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-shell {
  display: grid;
  gap: 22px;
}

.footer-main-row,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-main-row {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-block h3 {
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.footer-brand-block p {
  margin-top: 8px;
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
}

.footer-small {
  color: var(--muted-2) !important;
  font-size: 13px !important;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-circle,
.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-circle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--navy);
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.support-button {
  min-height: 46px;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(47, 49, 146, 0.16);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.social-circle:hover,
.support-button:hover {
  transform: translateY(-1px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a,
.footer-copy {
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--navy);
}

.footer-copy {
  text-align: right;
}

/* Interior pages */

.site-main {
  min-height: 70vh;
}

.page-hero {
  padding: clamp(52px, 7vw, 88px) 0 32px;
}

.page-hero .feature-panel,
.legal-card,
.card,
.contact-panel .card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.page-hero .feature-panel,
.legal-card {
  padding: clamp(28px, 5vw, 56px);
}

.page-hero h1 {
  margin-top: 12px;
}

.section {
  padding: clamp(52px, 7vw, 86px) 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 26px;
}

.card.featured {
  background:
    radial-gradient(circle at 15% 0%, rgba(6, 26, 51, 0.06), transparent 42%),
    #ffffff;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 22px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
}

.contact-row p {
  margin-top: 6px;
  color: var(--muted);
}

.contact-row a {
  color: var(--navy);
  font-weight: 800;
}

/* Legal pages */

.legal-page {
  max-width: 980px;
}

.legal-prose h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 40px);
}

.legal-prose p,
.legal-prose li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.legal-prose p + p {
  margin-top: 18px;
}

.legal-prose ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-prose a {
  color: var(--navy);
  font-weight: 800;
}

.notice-card {
  margin: 30px 0 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-soft);
}

/* Responsive */

@media (max-width: 980px) {
  .contact-panel,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

/* Final header behavior */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.nav {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-toggle {
  display: none;
}

/* Mobile header */

@media (max-width: 760px) {
  .site-shell {
    width: min(var(--max), calc(100% - 24px));
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 10001;
  }

  .nav-links {
    display: none;
  }

  .nav-links.is-open {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 16px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.18);
  }

  .nav-links.is-open .nav-links-inner {
    display: grid;
    gap: 10px;
  }

  .nav-links.is-open a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--navy);
    font-weight: 800;
  }

  .nav-links.is-open .nav-cta {
    justify-content: center;
    min-height: 52px;
    margin-top: 4px;
  }

  h1 {
    font-size: clamp(44px, 12vw, 62px);
  }

  h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .button {
    width: 100%;
  }

  .footer-main-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-actions,
  .footer-copy {
    margin-left: 0;
  }

  .footer-copy {
    text-align: left;
  }
}

/* Pricing helpers */

.price-line {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.price-line strong {
  display: inline-flex;
  align-items: flex-start;
  line-height: 0.82;
}

.price-cents {
  display: inline-block;
  margin-top: 0.1em;
  margin-left: 0.03em;
  font-size: 0.34em;
  line-height: 1;
  letter-spacing: -0.04em;
}

.review-band {
  display: none !important;
}

.simple-banner {
  margin-top: clamp(32px, 5vw, 56px);
}

/* Preview buttons */

.preview-footer {
  align-items: center;
  gap: 24px;
}

.preview-button,
.preview-footer .preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f3192, #4346b8);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(47, 49, 146, 0.22);
}

.system-copy .button {
  margin-top: 28px;
  width: fit-content;
  min-width: 220px;
}

/* Footer alignment */

.footer-main-row,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-actions {
  margin-left: auto;
}

.footer-links {
  justify-content: flex-start;
}

.footer-copy {
  margin-left: auto;
  text-align: right;
}

/* Mobile CTA button */

@media (max-width: 760px) {
  .nav-links.is-open .nav-cta,
  .nav-links.is-open .nav-cta:visited {
    color: #ffffff !important;
  }
}
/* Universal Compass account actions */
.nav-links a.nav-signin {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(16,24,40,.09);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255,255,255,.82);
}
