/* Compak Ramps — APTA Chicago landing page
   Mobile-first. Brand tokens match compakrampsusa.com. */

@font-face { font-family: "Ubuntu"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/ubuntu-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/ubuntu-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/ubuntu-latin-700-normal.woff2") format("woff2"); }

:root {
  --purple: #3B1F6E;
  --purple-deep: #2B1553;
  --red: #E30613;
  --red-dark: #B9050F;
  --ink: #1A1A1A;
  --body: #4A4A4A;
  --grey-1: #F3F3F3;
  --grey-2: #E8E8E8;
  --white: #FFFFFF;

  --font: "Ubuntu", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --sticky-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
  color: var(--body); background: var(--white); padding-bottom: var(--sticky-h); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--purple); }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 2px; }
.band--purple :focus-visible, .hero :focus-visible, .site-footer :focus-visible,
.sticky-cta :focus-visible, .event-strip :focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--white); color: var(--purple);
  padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--font);
  text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--purple { background: var(--purple); color: var(--white); }
.btn--purple:hover { background: var(--purple-deep); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.text-link { font-weight: 700; color: var(--purple); text-underline-offset: 4px; }

/* 1. Header */
.site-header { background: var(--purple-deep); color: var(--white); }
.event-strip { margin: 0; padding: 7px var(--gutter); background: rgba(0,0,0,.28); color: rgba(255,255,255,.9);
  font-size: .8125rem; font-weight: 500; text-align: center; letter-spacing: .01em; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand img { height: 46px; width: auto; }
.brand__wordmark { font-size: 1.375rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.brand__wordmark span { color: #E8402F; }
.site-nav { display: none; }

/* 2. Hero */
.hero { background: var(--purple); color: var(--white); overflow: hidden; }
.hero__media { position: relative; }
.slides { position: relative; aspect-ratio: 1200 / 720; overflow: hidden; background: var(--purple-deep); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slides__dots { position: absolute; left: var(--gutter); bottom: 12px; display: flex; gap: 8px; }
.slides__dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); background: transparent; padding: 0; cursor: pointer; opacity: .85; }
.slides__dots button[aria-selected="true"] { background: var(--white); }
.hero__caption { margin: 0; padding: 10px var(--gutter) 0; padding-right: 150px; color: rgba(255,255,255,.75); font-size: .8125rem; font-weight: 500; line-height: 1.3; }
.booth-sign { position: absolute; right: var(--gutter); bottom: -34px; background: var(--red); color: var(--white);
  padding: 12px 16px 12px; display: grid; line-height: 1; box-shadow: 0 10px 0 -4px var(--purple-deep); }
.booth-sign__label { font-size: .8125rem; font-weight: 500; }
.booth-sign__number { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.03em; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.booth-sign__meta { font-size: .75rem; line-height: 1.3; font-weight: 500; border-top: 1px solid rgba(255,255,255,.5); padding-top: 6px; }
.hero__body { padding: 40px var(--gutter) 44px; }
.countdown { display: inline-block; margin: 0 0 14px; padding: 6px 12px; background: rgba(0,0,0,.28); font-size: .875rem; font-weight: 700; color: var(--white); border-left: 3px solid var(--red); }
.hero__text { max-width: 620px; margin-inline: auto; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 8.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.hero__sub { margin: 18px 0 26px; font-size: 1.0625rem; color: rgba(255,255,255,.92); }
.hero__actions { display: grid; gap: 12px; }
.hero__proof { margin: 26px 0 0; padding-left: 14px; border-left: 4px solid var(--red); font-weight: 700; font-size: 1.125rem; color: var(--white); }

/* Bands */
.band { padding-block: 56px; }
.band--grey { background: var(--grey-1); }
.band--purple { background: var(--purple); color: rgba(255,255,255,.92); }
.band--purple h2, .band--purple h3 { color: var(--white); }
.band h2 { font-size: clamp(1.625rem, 6vw, 2.375rem); text-wrap: balance; max-width: 20ch; }
.lede { margin: 14px 0 0; font-size: 1.125rem; max-width: 60ch; }

/* 3. Why */
.expansion { margin: 22px 0 0; padding: 18px 20px; background: var(--grey-1); border-left: 4px solid var(--red); color: var(--ink); max-width: 64ch; font-size: 1.0625rem; }
.expansion strong { color: var(--purple); }
.reasons { display: grid; gap: 14px; margin-top: 30px; }
.reason { background: var(--grey-2); border-bottom: 6px solid var(--red); padding: 22px 20px 20px; }
.reason h3 { font-size: 1.25rem; margin-bottom: 8px; }
.reason p { margin: 0; }

.spec { margin-top: 44px; }
.spec__title { font-size: 1.375rem; padding-bottom: 12px; border-bottom: 3px solid var(--purple); }
.spec__list > div { display: grid; gap: 2px; padding: 13px 0; border-bottom: 1px solid var(--grey-2); }
.spec__list dt { font-weight: 700; color: var(--purple); font-size: .9375rem; }
.spec__list dd { color: var(--ink); }
.spec__note { margin: 22px 0 0; padding: 16px 18px; background: var(--grey-1); border-left: 4px solid var(--purple); color: var(--ink); }

/* Mid-page CTA strip */
.cta-strip { background: var(--grey-2); border-top: 6px solid var(--red); padding-block: 28px; }
.cta-strip--purple { background: var(--purple); border-top-color: var(--red); color: var(--white); }
.cta-strip__inner { display: grid; gap: 16px; }
.cta-strip p { margin: 0; font-weight: 700; color: var(--ink); font-size: 1.125rem; text-wrap: balance; }
.cta-strip--purple p { color: var(--white); }

/* 4. Products */
.products { display: grid; gap: 0; }
.product__bar { background: var(--red); color: var(--white); text-align: center; font-size: 1.625rem; padding: 22px var(--gutter); }
.product__media { background: var(--grey-2); }
.product__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product__media.is-missing { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--purple); color: rgba(255,255,255,.85); font-weight: 700; font-size: 1.25rem; }
.product__media.is-missing img { display: none; }
.product__body { padding: 20px var(--gutter) 36px; max-width: 640px; margin-inline: auto; width: 100%; }
.product__body p { color: var(--ink); font-size: 1.125rem; margin-bottom: 12px; }

/* 5. Proof */
.proof { display: grid; gap: 32px; }
.proof__figure { margin: 22px 0 0; font-size: 1.25rem; color: var(--white); max-width: 22ch; line-height: 1.3; }
.proof__figure strong { display: block; font-size: clamp(3.5rem, 17vw, 5.5rem); line-height: .95; letter-spacing: -0.04em; }
.proof__facts { margin-top: 26px; display: grid; gap: 12px; max-width: 56ch; }
.proof__facts li { padding-left: 18px; position: relative; }
.proof__facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--red); }
.proof__media img { width: 100%; }
.proof__names h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.35; max-width: 34ch; }
.names { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 16px 0 0; }
.names span { border: 1px solid rgba(255,255,255,.45); padding: 7px 12px; font-weight: 700; color: var(--white); font-size: 1rem; }
.names--operators span { font-weight: 500; }

/* 5b. Clients */
.clients { background: var(--grey-1); padding-bottom: 48px; }
.marquee { margin: 30px 0 28px; overflow: hidden; background: var(--white); padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 56px; width: max-content; padding-inline: 28px; animation: marquee 45s linear infinite; }
.marquee__track li { flex: none; }
.marquee__track img { height: 54px; width: auto; max-width: 150px; object-fit: contain; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.clients__sub { font-size: 1.125rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.clients .names span { border-color: var(--purple); color: var(--purple); }

/* 6. Meet */
.meet { display: grid; gap: 28px; }
.where { margin-top: 22px; display: grid; gap: 8px; }
.where > div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.where dt { font-weight: 700; color: var(--purple); }
.where dd { color: var(--ink); font-weight: 500; }
.steps { counter-reset: step; margin-top: 24px; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; color: var(--ink); }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: .875rem; }
.meet__team figcaption { font-size: .9375rem; margin-top: 10px; color: var(--ink); }

.form, .success { background: var(--white); padding: 24px 20px 26px; border-top: 6px solid var(--red); }
.field { margin-bottom: 18px; }
.field label, .field__label { display: block; margin: 0 0 6px; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 1rem; }
.optional { font-weight: 400; color: var(--body); font-size: .875rem; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.3 var(--font); color: var(--ink); background: var(--white);
  border: 1.5px solid #8C8C8C; border-radius: 4px; padding: 13px 12px; min-height: 50px; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233B1F6E' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(59,31,110,.35); outline-offset: 0; border-color: var(--purple); }
.field.has-error input, .field.has-error select { border-color: var(--red); border-width: 2px; }
.field__error { margin: 6px 0 0; color: #B9050F; font-size: .9375rem; font-weight: 500; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 500 .9375rem/1 var(--font); color: var(--purple); background: var(--white); border: 1.5px solid var(--purple);
  border-radius: 999px; padding: 0 12px; min-height: 40px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--purple); color: var(--white); }
.hp { position: absolute; left: -9999px; }
.form__status { background: #FDECEE; border-left: 4px solid var(--red); color: var(--ink); padding: 12px 14px; margin-bottom: 16px; }
.form__legal { font-size: .8125rem; line-height: 1.5; margin: 14px 0 0; }
.success h3 { font-size: 1.5rem; margin-bottom: 12px; }
.success:focus { outline: none; }
.meet__alt { margin: 16px 0 0; font-size: .9375rem; }

/* 7. Aftercare */
.aftercare__cols { display: grid; gap: 24px; margin-top: 26px; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .3em; width: 8px; height: 14px;
  border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* WhatsApp button */
.whatsapp { position: fixed; right: 14px; bottom: calc(var(--sticky-h) + 14px + env(safe-area-inset-bottom)); z-index: 51;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 14px 10px 12px; border-radius: 999px;
  background: #25D366; color: #073B1E; font-weight: 700; font-size: .9375rem; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.whatsapp:hover { background: #1FBF5B; }
.whatsapp img, .whatsapp svg { width: 28px; height: 28px; }
.whatsapp span { display: none; }

/* Reveal on scroll (JS adds .is-visible; without JS everything is shown) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reasons .reason:nth-child(2), .js .products .product:nth-child(3) { transition-delay: .08s; }
.js .reasons .reason:nth-child(3), .js .products .product:nth-child(4) { transition-delay: .16s; }
.js .reasons .reason:nth-child(4) { transition-delay: .24s; }

/* Hero entrance: one orchestrated moment on load */
.js .booth-sign { animation: sign-in .7s cubic-bezier(.2,.8,.2,1) .25s both; }
@keyframes sign-in { from { opacity: 0; transform: translateY(24px) rotate(-3deg); } }

/* 8. Footer */
.site-footer { background: var(--purple-deep); color: rgba(255,255,255,.88); padding-block: 44px 28px; font-size: .9375rem; }
.site-footer a { color: var(--white); }
.site-footer__grid { display: grid; gap: 30px; }
.site-footer__logo { height: 56px; width: auto; margin-bottom: 14px; }
.site-footer__title { color: var(--white); font-size: 1rem; margin-bottom: 10px; letter-spacing: 0; }
.site-footer__links { display: flex; gap: 20px; }
.site-footer__links a { display: inline-block; padding-block: 8px; }
.group-logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 6px 0 0; }
.group-logos img { height: 44px; width: auto; }
.group-logos a:first-child img { height: 30px; }
.site-footer__base { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); font-size: .8125rem; color: rgba(255,255,255,.7); }
.site-footer__base p { margin-bottom: .5em; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; inset: auto 0 0 0; z-index: 50; min-height: var(--sticky-h); background: var(--purple-deep); color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); transition: transform .2s ease; }
.sticky-cta p { margin: 0; font-size: .8125rem; line-height: 1.25; }
.sticky-cta strong { display: block; font-size: 1.0625rem; }
.sticky-cta.is-hidden { transform: translateY(110%); }

/* Privacy / simple pages */
.doc { padding-block: 40px 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.875rem, 6vw, 2.5rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.3125rem; margin: 34px 0 10px; }
.doc ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.doc li { margin-bottom: 6px; }
.doc__back { display: inline-block; margin-bottom: 24px; font-weight: 700; }

/* ≥ 640px */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .spec__list > div { grid-template-columns: 170px 1fr; gap: 20px; }
  .form, .success { padding: 32px 30px; }
  .aftercare__cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ≥ 900px: desktop layout, no sticky bar */
@media (min-width: 900px) {
  body { padding-bottom: 0; font-size: 1.125rem; }
  html { scroll-padding-top: 96px; }
  .sticky-cta { display: none; }
  .site-header { position: sticky; top: 0; z-index: 40; }
  .site-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 12px; }
  .site-nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 1rem; padding-block: 10px; border-bottom: 3px solid transparent; }
  .site-nav a:hover { border-bottom-color: var(--red); }
  .brand img { height: 54px; }
  .cta-strip__inner { grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
  .cta-strip p { font-size: 1.25rem; }
  .marquee__track img { height: 64px; max-width: 190px; }
  .whatsapp { right: 24px; bottom: 24px; }
  .whatsapp span { display: inline; }

  .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .hero__media { order: 2; }
  .slides { height: 100%; aspect-ratio: auto; min-height: 560px; }
  .slides__dots { left: auto; right: 24px; bottom: 20px; }
  .hero__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 160px 22px 180px; font-size: .875rem; color: var(--white);
    background: linear-gradient(transparent, rgba(0,0,0,.6)); pointer-events: none; }
  .booth-sign { right: auto; left: -40px; bottom: 56px; padding: 18px 22px; }
  .booth-sign__number { font-size: 4rem; }
  .booth-sign__label { font-size: 1rem; }
  .booth-sign__meta { font-size: .875rem; }
  .hero__body { display: grid; align-items: center; padding: 64px 72px 64px max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); }
  .hero__text { margin: 0; }
  .hero h1 { font-size: clamp(2.625rem, 3.9vw, 3.75rem); }
  .hero__sub { font-size: 1.1875rem; }

  .band { padding-block: 88px; }
  .reasons { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .reason { padding: 26px 22px 24px; }

  .products { grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 0 72px; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
  .product__bar { font-size: 1.375rem; padding: 18px 12px; }
  .product__body { padding: 20px 0 0; }

  .proof { grid-template-columns: 1.1fr .9fr; gap: 48px 64px; align-items: start; }
  .proof__names { grid-column: 1 / -1; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.25); }
  .proof__names h3 { max-width: none; }

  .meet { grid-template-columns: .85fr 1fr; grid-template-areas: "intro form" "team form"; grid-template-rows: auto 1fr; gap: 32px 64px; align-items: start; }
  .meet__intro { grid-area: intro; }
  .meet__form { grid-area: form; }
  .meet__team { grid-area: team; }

  .site-footer__grid { grid-template-columns: 1.1fr 1fr 1.2fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta, .btn { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .booth-sign { animation: none; }
  .slide { transition: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}
body.plain { padding-bottom: 0; }
body.sticky-hidden .whatsapp { bottom: calc(14px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.sticky-hidden .whatsapp { bottom: 24px; } }
.whatsapp { transition: bottom .2s ease; }
