:root {

  --bg: #ffffff;
  --bg-raised: rgba(246, 245, 242, 0.92);
  --line: #e4e1da;
  --text: #0e0e10;
  --text-body: #4a4844;
  --text-muted: #66686f;
  --descriptor: #8d8f96;
  --accent: #1266a8;
  --focus: #1266a8;
  --header-bg: rgba(255, 255, 255, 0.96);
  --step-bg: rgba(255, 255, 255, 0.6);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg transform='translate(48 48) scale(0.55)' fill='none' stroke='%230e0e10' stroke-opacity='0.05' stroke-width='2.6'%3E%3Crect x='-13' y='-33' width='46' height='14' rx='7'/%3E%3Crect x='19' y='-13' width='14' height='46' rx='7'/%3E%3Crect x='-33' y='19' width='46' height='14' rx='7'/%3E%3Crect x='-33' y='-33' width='14' height='46' rx='7'/%3E%3C/g%3E%3C/svg%3E");

  --blue-1: #1FB0DE;
  --blue-2: #1573BE;
  --blue-3: #123C8C;
  --gradient: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 55%, var(--blue-3) 100%);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --bg-raised: rgba(22, 22, 26, 0.88);
    --line: #2a2a2e;
    --text: #ffffff;
    --text-body: #c4c4cb;
    --text-muted: #8d8f96;
    --descriptor: #8d8f96;
    --accent: #4f9ed4;
    --focus: #9fd6f7;
    --header-bg: rgba(14, 14, 16, 0.96);
    --step-bg: rgba(14, 14, 16, 0.55);
    --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg transform='translate(48 48) scale(0.55)' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2.6'%3E%3Crect x='-13' y='-33' width='46' height='14' rx='7'/%3E%3Crect x='19' y='-13' width='14' height='46' rx='7'/%3E%3Crect x='-33' y='19' width='46' height='14' rx='7'/%3E%3Crect x='-33' y='-33' width='14' height='46' rx='7'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 104px; }
html.js-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: var(--bg); padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; z-index: 10; }

.lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.lockup img { width: 48px; height: 48px; flex: none; }
.lockup-text { display: flex; flex-direction: column; gap: 4px; }
.lockup-name {
  font-size: 24px; font-weight: 700; letter-spacing: -0.028em;
  color: var(--text); line-height: 1.02;
}
.lockup-sub { font-size: 13px; color: var(--descriptor); line-height: 1.1; }
.lockup-sub span { color: var(--accent); }
.lockup:hover .lockup-name { color: var(--text); }
.site-header .lockup-name,
.site-footer .lockup-name { text-transform: uppercase; letter-spacing: 0.04em; }

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

  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 88px; gap: 24px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--text-body); text-decoration: none; font-size: 15px;
}
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font: 700 15px/1 var(--font); letter-spacing: 0.01em;
  color: #fff; text-decoration: none;
  background: var(--gradient);
  border: 0; border-radius: 4px;
  transition: filter .15s ease;
}
.btn:hover { color: #fff; filter: brightness(1.12); }
.nav .btn { min-height: 40px; padding: 0 18px; color: #fff; }

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center; gap: 48px;
}
.eyebrow {
  margin: 0 0 20px;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow span { color: var(--accent); }

h1, h2, h3 { color: var(--text); font-weight: 700; letter-spacing: -0.028em; margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; max-width: 15ch; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; max-width: 22ch; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }

.lede {
  margin: 28px 0 36px; max-width: 58ch;
  font-size: clamp(18px, 1.6vw, 20px); color: var(--text-body);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

.hero-mark { position: relative; justify-self: center; width: min(100%, 360px); }
.hero-mark img { position: relative; width: 100%; height: auto; }

body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--pattern);
  background-size: 96px 96px;

  mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.6) 35%, transparent 75%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.6) 35%, transparent 75%);
}

.section { padding: clamp(56px, 7.5vw, 96px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 20px; margin-bottom: 44px; }
.section-head p { margin: 0; max-width: 62ch; }
.kicker {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 0;
}

.split {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.split p { margin: 0 0 20px; max-width: 60ch; }
.split p:last-child { margin-bottom: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.step + .step { border-left: 1px solid var(--line); }
.step { background: var(--step-bg); padding: 36px 32px 40px; display: flex; flex-direction: column; gap: 16px; }
.step-num {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { margin: 0; }

.step p + p { margin-top: -4px; }

.levels {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.level {
  position: relative;
  background: var(--bg-raised); border: 1px solid var(--line);
  padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 12px;
}
.level::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: var(--gradient); opacity: .35;
}
.level:nth-child(2)::before { opacity: .55; }
.level:nth-child(3)::before { opacity: .78; }
.level:nth-child(4)::before { opacity: 1; }
.level-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.level p { margin: 0; font-size: 16px; }

.included { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.sub-head { font-size: 26px; margin-bottom: 16px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.split .checklist { margin-top: 28px; }
.included .checklist { margin-top: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px;
  background: url("../brand/maldrin-5c-blue-small.svg") center / contain no-repeat;
}

.terms { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.terms > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.terms dt { color: var(--text); font-weight: 700; }
.terms dd { margin: 0; }

.rules {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px);
}
.rules li { border-top: 2px solid; border-image: var(--gradient) 1; padding-top: 24px; }
.rules h3 { margin-bottom: 12px; }
.rules p { margin: 0; }

.page-head {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5.5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-top: 20px; max-width: 20ch; font-size: clamp(36px, 5vw, 60px); }

.grad-text {
  background: linear-gradient(90deg, var(--blue-1) 0%, var(--blue-2) 55%, var(--blue-3) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.page-head h1:first-child { margin-top: 0; }
.page-head h1.page-head-center { margin-left: auto; margin-right: auto; text-align: center; max-width: 26ch; }

.nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: 22px 0; color: var(--text); font-weight: 700; font-size: 18px; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq summary:hover { color: var(--accent); }
.split .faq p { margin: 0 0 20px; }
.split .faq details p:last-child { margin-bottom: 26px; }
.split > div > h2 { position: sticky; top: 120px; }

.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.fact { padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact-value {
  display: block; color: var(--text); font-weight: 700;
  font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1;
}
.fact-label { display: block; margin-top: 10px; font-size: 15px; color: var(--text-muted); }
.facts-note { margin: 40px 0 0; max-width: 62ch; }

.contact {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 32px clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px; align-items: end;
}
.contact p { margin: 20px 0 0; max-width: 54ch; }

.contact { align-items: center; }
.contact-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; text-align: center;
}
.lockup-stacked { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lockup-stacked { gap: 10px; }
.lockup-stacked img {
  width: clamp(88px, 9.5vw, 120px); height: auto; margin-bottom: 12px;

  margin-top: calc(clamp(88px, 9.5vw, 120px) * -0.225);
}

.contact .contact-side { gap: 16px; }
.lockup-stacked .lockup-name { font-size: clamp(26px, 2.7vw, 34px); text-transform: uppercase; letter-spacing: 0.04em; }
.lockup-stacked .lockup-sub { font-size: clamp(14px, 1.3vw, 17px); }
.contact-details { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.contact-details a { width: fit-content; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 15px; }
.offices h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; }
.offices p { margin: 0; }

.site-footer { padding: 56px 0 64px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.footer-links a { color: var(--text-body); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
.footer-legal {
  flex-basis: 100%; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--text-muted); font-size: 13px; line-height: 1.6; max-width: none;
  text-align: center;
}

.updated { margin: 16px 0 0; color: var(--text-muted); font-size: 15px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 48px 0 16px; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.legal-table th { color: var(--text); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-table td:first-child { width: 42%; color: var(--text); }
.company { margin: 0; border-top: 1px solid var(--line); }
.company > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.company dt { color: var(--text-muted); }
.company dd { margin: 0; color: var(--text); }
@media (max-width: 640px) {
  .company > div { grid-template-columns: 1fr; gap: 2px; }
  .legal-table thead { display: none; }
  .legal-table tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .legal-table td { display: block; border: 0; padding: 2px 0; width: auto !important; }
}

@media (max-width: 900px) {
  .hero .wrap, .split, .contact { grid-template-columns: 1fr; }
  .hero-mark { order: -1; width: 140px; justify-self: start; }
  .steps, .rules { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .split > div > h2 { position: static; }
  .levels { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }

  .site-header .wrap { min-height: 72px; gap: 10px; }
  .site-header .lockup { gap: 8px; }
  .site-header .lockup img { width: 32px; height: 32px; }
  .site-header .lockup-name { font-size: 16px; }
  .site-header .lockup-sub { font-size: 10px; }
  .nav { gap: 8px; }
  .nav .btn { padding: 0 12px; }
  .lockup-name, .lockup-sub, .btn { white-space: nowrap; }
  .offices, .levels { grid-template-columns: 1fr; }
  .terms > div { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }