/* Clever Closer — brand system shared with Clever Closeout */
:root {
  /* Brand palette */
  --black: #0b0b0b;
  --white: #ffffff;
  --yellow: #ffcc00;
  --yellow-dark: #8a6700;
  --yellow-soft: #fff6cf;
  --gray: #5f5f5b;
  --gray-light: #e4e4e0;
  --paper: #f6f6f4;

  /* Derived */
  --text: #1a1a19;
  --line: var(--gray-light);
  --line-strong: #cfcfca;
  --dark-line: #2a2a2a;
  --on-dark-muted: #a3a39e;

  --radius: 16px;

  /* Spacing scale */
  --space-section: 128px;  /* top/bottom of every section */
  --space-head: 56px;      /* section heading -> content */
  --space-gap: 24px;       /* gap between cards in every grid */
  --space-card: 36px;      /* padding inside every card */
  --space-group: 80px;     /* between brand groups */
  --wrap: 1200px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brand: "Roboto", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--black); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--black); font-family: var(--sans); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
h1 mark {
  color: inherit; white-space: nowrap; padding: 0 .08em; margin: 0 -.04em;
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
}
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Placeholder for a fact that hasn't been filled in yet */
.todo {
  background: var(--yellow-soft); color: var(--yellow-dark); border: 1px dashed var(--yellow-dark);
  border-radius: 4px; padding: 0 .35em; font: 500 .9rem/1.5 var(--sans); letter-spacing: 0;
}

.eyebrow {
  font: 600 .78rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em;
  color: var(--gray); margin-bottom: 1em;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); margin-right: 10px; vertical-align: 1px;
}
.eyebrow-light { color: var(--on-dark-muted); }
.lead { font-size: 1.15rem; color: var(--gray); max-width: 620px; }

/* ---------- Logo lockup (icon + stacked wordmark) ---------- */
.logo {
  --s: 44px;
  display: inline-flex; align-items: center; gap: calc(var(--s) * .27);
  text-decoration: none; color: var(--black);
}
.mark { width: var(--s); height: var(--s); flex: none; display: block; border-radius: 25.6%; }
.mark-bg { fill: var(--black); }
.mark-fg { fill: var(--white); }
.wordmark {
  font: 700 calc(var(--s) * .489) / .815 var(--brand);
  letter-spacing: -0.02em; white-space: nowrap;
}
.logo-light { color: var(--white); }
.logo-light .mark { box-shadow: 0 0 0 1px var(--dark-line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 246, 244, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .94rem;
  padding: 9px 16px; border-radius: 999px; transition: background .15s;
}
.site-nav a:not(.btn):hover { background: var(--gray-light); }
.site-nav a[aria-current="page"] { background: var(--black); color: var(--white); }
.site-nav .btn { margin-left: 16px; }
.nav-toggle {
  display: none; font: 600 .9rem var(--sans); color: var(--black);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font: 600 .94rem/1 var(--sans);
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 11px 18px; font-size: .88rem; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #262626; }
.btn-ghost { border-color: var(--line-strong); color: var(--black); background: var(--white); }
.btn-ghost:hover { border-color: var(--black); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: #ffd633; }
.btn-outline-light { border-color: #3a3a3a; color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); }
.actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link {
  font-weight: 600; font-size: .94rem; text-decoration: none; color: var(--black);
  border-bottom: 2px solid var(--yellow); padding-bottom: 2px; white-space: nowrap;
}
.text-link:hover { color: var(--yellow-dark); }

/* ---------- Hero ---------- */
.hero { padding: 136px 0 128px; position: relative; overflow: hidden; }
.hero::before {
  /* Concentric rings echoing the brand mark */
  content: ""; position: absolute; width: 760px; height: 760px; right: -260px; top: -240px; border-radius: 50%;
  border: 110px solid rgba(11, 11, 11, .035);
  box-shadow: inset 0 0 0 40px var(--paper), inset 0 0 0 150px rgba(11, 11, 11, .035);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-copy { max-width: 780px; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { margin-bottom: 2.6em; }

/* Hero logo mosaic */
.hero-split .hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.hero-split::before { opacity: .6; }
.hero-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-decoration: none; }
.hero-logo {
  aspect-ratio: 1.25; display: grid; place-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px -24px rgba(11, 11, 11, .35);
  transition: transform .25s, border-color .25s;
}
.hero-logo:nth-child(3n + 2) { transform: translateY(24px); }
.hero-logos:hover .hero-logo { border-color: var(--line-strong); }
.hero-logo .brand-logo { max-width: 76%; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--black); color: var(--white); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats > div { padding: 52px 36px; border-left: 1px solid var(--dark-line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.stats dd { margin: 14px 0 0; font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--white); }
.stats dd.dd-small { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; padding-top: 6px; }
.stat-note { display: block; margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--yellow); }

/* ---------- Page hero ---------- */
.page-hero { background: var(--black); color: var(--white); padding: 120px 0 104px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -140px; top: -180px; width: 560px; height: 560px; border-radius: 50%;
  border: 80px solid rgba(255, 204, 0, .08);
  box-shadow: inset 0 0 0 30px var(--black), inset 0 0 0 110px rgba(255, 204, 0, .08);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-width: 840px; margin-bottom: .45em; }
.page-hero .eyebrow { color: var(--on-dark-muted); }
.page-hero .lead { color: #c4c4bf; }

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: var(--space-head); }
.section-head > div { max-width: 660px; }
.section-head h2 { margin-bottom: 0; }
.section-head p:not(.eyebrow) { color: var(--gray); margin: 18px 0 0; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 96px; align-items: start; }
.prose p { color: #3b3b38; line-height: 1.75; margin-bottom: 1.2em; }
.prose h2 { margin-bottom: .7em; }
.prose .text-link { display: inline-block; margin-top: 16px; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; }
.section-alt .panel { background: var(--paper); }
.panel h2, .panel h3 { margin-bottom: 28px; }

/* Numbered columns */
.numbered { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
.numbered article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-card); }
.section:not(.section-alt) .numbered article { background: var(--white); }
.numbered .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow); color: var(--black); font-weight: 700; font-size: .85rem; margin-bottom: 28px;
}
.numbered h3 { margin-bottom: 12px; }
.numbered p { color: var(--gray); margin: 0; line-height: 1.7; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-card); }
.feature h3 { padding-bottom: 14px; border-bottom: 2px solid var(--yellow); margin-bottom: 24px; display: inline-block; }
.feature p { color: var(--gray); line-height: 1.7; }
.feature p:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-gap); counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-card); }
.steps h3 { margin-bottom: 12px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--black); color: var(--yellow); font-weight: 700; margin-bottom: 28px;
}
.steps p { color: var(--gray); margin: 0; line-height: 1.7; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tags a {
  display: inline-block; text-decoration: none; background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 11px 20px; font-weight: 500; font-size: .94rem;
}
.tags a:hover { border-color: var(--black); }

/* ---------- Brand wall ---------- */
.brand-wall {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-gap);
}
.brand-wall li > a, .brand-wall li > div {
  min-height: 176px; padding: 28px 24px; text-decoration: none; color: inherit; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.section-alt .brand-wall li > a, .section-alt .brand-wall li > div { background: var(--paper); }
.brand-wall li > a:hover { border-color: var(--black); transform: translateY(-2px); }
.brand-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--black); line-height: 1.2; }
.brand-count { font-size: .82rem; color: var(--gray); }
.logo-box { height: 80px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.brand-logo { height: auto; max-width: 84%; max-height: 100%; display: block; transition: transform .25s; }
.brand-wall li > a:hover .brand-logo { transform: scale(1.05); }
.badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--black); background: var(--yellow); border-radius: 999px; padding: 4px 10px;
}
.fine-print { font-size: .82rem; color: var(--gray); max-width: 760px; margin-top: 48px; line-height: 1.7; }

/* ---------- Category cards ---------- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
.category-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-card);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.section-alt .category-card { background: var(--paper); }
.category-card:hover { border-color: var(--black); transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(11, 11, 11, .35); }
.category-card h3 { margin-bottom: 12px; font-size: 1.35rem; }
.category-card p { color: var(--gray); margin: 0 0 32px; line-height: 1.7; }
.cat-num { font-size: .8rem; font-weight: 700; color: var(--yellow-dark); letter-spacing: .06em; margin-bottom: 24px; }
.cat-logos {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; min-height: 76px;
  padding: 22px 0; margin-top: auto; border-top: 1px solid var(--line);
}
.cat-logos .brand-logo { max-width: none; }
.cat-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--gray); }
.cat-foot .card-link { margin: 0; }
.card-link { font-size: .88rem; font-weight: 600; color: var(--black); }
.card-link::after { content: " →"; }
.category-card:hover .card-link { color: var(--yellow-dark); }

.brand-more { background: var(--black) !important; border-color: var(--black) !important; }
.brand-more .brand-name { color: var(--white); }
.brand-more .brand-count { color: var(--yellow); }

.panel-btn { margin-top: 36px; }
.steps-cta { margin-top: 48px; }
.contact-locations { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-gap); margin-top: 48px; }
.location {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s;
}
.location:hover { border-color: var(--black); }
.location-label { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.location .card-link { margin-top: 12px; }

/* ---------- Brand groups ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 var(--space-group); }
.jump a {
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--text);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 20px;
}
.jump a:hover { border-color: var(--black); }
.brand-group { scroll-margin-top: 100px; }
.brand-group + .brand-group { margin-top: var(--space-group); }
.group-title {
  display: flex; align-items: baseline; gap: 14px; font-size: 1.35rem;
  padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--line-strong);
}
.group-title span { font: 500 .85rem var(--sans); color: var(--gray); letter-spacing: 0; }
.brand-group .brand-wall { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-gap); }
.brand-group .brand-wall li > a { min-height: 176px; }
.brand-ask {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: var(--space-group); padding: 44px 48px; border-radius: var(--radius); background: var(--black); color: var(--white);
}
.brand-ask h3 { color: var(--white); margin-bottom: 10px; }
.brand-ask p { margin: 0; color: #c4c4bf; }
.preview-bar { background: var(--yellow); color: var(--black); text-align: center; font: 600 .85rem var(--sans); padding: 8px 16px; }

/* ---------- Company details ---------- */
.details { margin: 0; display: grid; gap: 18px; }
.details > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.details dt { color: var(--gray); font-size: .88rem; }
.details dd { margin: 0; font-weight: 500; }

/* ---------- CTA ---------- */
.cta { background: var(--black); color: var(--white); }
.cta-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap;
  padding-block: 104px; border-bottom: 1px solid var(--dark-line);
}
.cta h2 { color: var(--white); margin-bottom: .55em; }
.cta p:not(.eyebrow) { color: #c4c4bf; margin: 0; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #c4c4bf; padding: 96px 0 0; font-size: .94rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer h4 { color: var(--white); font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 26px; }
.site-footer .logo { --s: 52px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .6fr 1.5fr; gap: 72px; padding-bottom: 88px; }
.footer-brand p { margin: 28px 0 0; max-width: 320px; line-height: 1.7; }
.footer-brand .footer-est { color: var(--yellow); font-weight: 600; }
.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.site-footer .details dt { color: #8a8a85; }
.site-footer .details dd { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--dark-line); padding-top: 28px; padding-bottom: 32px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: #8a8a85;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .site-nav a:not(.btn) { padding: 8px 10px; }
  .site-nav .btn { margin-left: 6px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 10px 16px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 16px; }
  .site-nav .btn { margin: 12px 0 0; }
  :root { --space-section: 104px; --space-head: 48px; --space-group: 64px; }
  .split, .footer-grid, .hero-split .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 36px 24px; border-left: 0; border-top: 1px solid var(--dark-line); }
  .stats > div:nth-child(-n+2) { border-top: 0; }
  .stats > div:first-child { padding-left: 24px; }
  .stats > div:nth-child(odd) { border-right: 1px solid var(--dark-line); }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-logos { max-width: 560px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --space-section: 80px; --space-head: 36px; --space-gap: 14px; --space-card: 26px; --space-group: 52px; }
  .wrap { padding-inline: 20px; }
  .logo { --s: 40px; }
  .hero { padding: 72px 0 80px; }
  .hero::before { width: 420px; height: 420px; right: -220px; top: -140px; border-width: 60px; }
  .page-hero { padding: 76px 0 68px; }
  .page-hero::after { width: 320px; height: 320px; right: -160px; top: -120px; border-width: 50px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .stats dd { font-size: 2rem; }
  .steps, .numbered { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .hero-logos { gap: 10px; }
  .hero-logo:nth-child(3n + 2) { transform: translateY(10px); }
  .contact-locations { grid-template-columns: 1fr; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .brand-group .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .brand-group .brand-wall li > a { min-height: 132px; }
  .group-title { font-size: 1.2rem; margin-bottom: 24px; }
  .logo-box { height: 68px; }
  .brand-ask { padding: 30px 26px; }
  .brand-wall li > a, .brand-wall li > div { min-height: 132px; padding: 20px 12px; gap: 10px; }
  .brand-name { font-size: 1.1rem; }
  .details > div { grid-template-columns: 1fr; gap: 4px; }
  .details { gap: 20px; }
  .panel { padding: 30px 26px; }
  .cta-inner { padding-block: 80px; gap: 32px; }
  .site-footer { padding-top: 72px; }
  .footer-grid { gap: 48px; padding-bottom: 64px; }
  .stats > div { padding: 30px 20px; }
}
