/* =========================================================
   Gapper Marketing LLC — gapper-usa landing page
   Brand: ink #05081F · blue #1E19F5 · gray #B4B4B4
   ========================================================= */

:root {
  --ink: #05081f;
  --ink-soft: #101534;
  --blue: #1e19f5;
  --blue-600: #1512cc;
  --blue-light: #4f4aff;
  --gray: #b4b4b4;
  --gray-line: #e4e6ef;
  --paper: #ffffff;
  --paper-alt: #f5f6fa;
  --text: #05081f;
  --text-muted: #575d78;
  --text-on-dark: #eef0f8;
  --text-on-dark-muted: #a5abc7;

  --shell: 1180px;
  --radius: 18px;
  --radius-sm: 10px;

  --step-1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step1: clamp(1.15rem, 1.08rem + 0.35vw, 1.4rem);
  --step2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step3: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
  --step4: clamp(2.5rem, 1.6rem + 4.2vw, 4.9rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: var(--step0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------------- logo ---------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.logo__mark { width: 34px; height: 34px; flex: none; display: block; }
.logo__star { fill: var(--gray); }
.logo__arrow { fill: var(--blue); }
.logo__word {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.logo__word sup {
  font-size: 0.42em;
  font-weight: 700;
  top: -0.9em;
  margin-left: 0.08em;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(30, 25, 245, 0.9);
}
.btn--primary:hover { background: var(--blue-600); }

.btn--ghost {
  background: transparent;
  border-color: var(--gray-line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--sm { padding: 0.65rem 1.25rem; font-size: var(--step-1); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: var(--step1); }

/* ---------------- eyebrow ---------------- */
.eyebrow {
  margin: 0 0 1.5rem;
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow--light { color: var(--blue-light); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--gray-line);
  box-shadow: 0 8px 30px -24px rgba(5, 8, 31, 0.5);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
}
.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  font-size: var(--step-1);
  font-weight: 600;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--blue); }

@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; min-height: 68px; }
  .logo__word { font-size: 1.25rem; }
  .logo__mark { width: 30px; height: 30px; }
}

/* ============================================================
   FOLD 1 — HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, #eceffb 0%, rgba(236, 239, 251, 0) 60%),
    var(--paper);
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3.5rem, 7vw, 6rem);
}
.hero__watermark {
  position: absolute;
  top: -14%;
  right: -12%;
  width: min(62vw, 720px);
  fill: var(--gray);
  opacity: 0.11;
  pointer-events: none;
}
.hero__inner { position: relative; }

.hero__title {
  font-size: var(--step4);
  max-width: 20ch;
  margin-bottom: 1.75rem;
}
.hero__title em {
  display: block;
  font-style: normal;
  color: var(--blue);
}
.hero__lede {
  max-width: 58ch;
  font-size: var(--step1);
  color: var(--text-muted);
  line-height: 1.55;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.5rem;
}

.industries {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--gray-line);
}
.industries__label {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}
.industries__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.industries__list li {
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--gray-line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.industries__list li:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ============================================================
   FOLD 2 — WHAT WE DO
   ============================================================ */
.services {
  position: relative;
  background: var(--ink);
  color: var(--text-on-dark);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.services__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.services__title { font-size: var(--step3); margin-bottom: 1.25rem; }
.services__lede { font-size: var(--step1); color: var(--text-on-dark-muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--ink);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  transition: background-color 0.22s ease;
}
.card:hover { background: var(--ink-soft); }
.card__num {
  display: block;
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue-light);
  margin-bottom: 1.1rem;
}
.card h3 {
  font-size: var(--step1);
  margin-bottom: 0.65rem;
}
.card p {
  color: var(--text-on-dark-muted);
  font-size: var(--step-1);
  line-height: 1.65;
}

.closer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.9rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--blue) 0%, #3b2df0 55%, #6a2ff0 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  color: #fff;
}
.closer__title { font-size: var(--step2); margin-bottom: 0.65rem; max-width: 24ch; }
.closer__text { color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.closer .btn--primary {
  background: #fff;
  color: var(--blue);
  box-shadow: none;
}
.closer .btn--primary:hover { background: var(--ink); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--gray-line);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: var(--step-1);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .footer__inner { grid-template-columns: 1fr; }
}

.logo--footer .logo__word { font-size: 1.35rem; }
.footer__tagline {
  margin-top: 1rem;
  max-width: 30ch;
  color: var(--text-muted);
}
.footer__heading {
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.footer__address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.85;
}
.footer__address strong { color: var(--ink); }
.footer__list { display: grid; gap: 0.6rem; color: var(--text-muted); }
.footer__list a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer__list a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.footer__note { margin-top: 1.25rem; color: var(--text-muted); }
.footer__note a { color: var(--blue); text-decoration: none; font-weight: 600; }
.footer__note a:hover { text-decoration: underline; }

.footer__bar {
  border-top: 1px solid var(--gray-line);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  color: var(--text-muted);
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal {
  padding-block: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(110% 70% at 90% -10%, #eceffb 0%, rgba(236, 239, 251, 0) 55%),
    var(--paper);
}
.legal__head {
  max-width: 70ch;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-line);
  margin-bottom: 2.5rem;
}
.legal__title { font-size: var(--step3); margin-bottom: 1rem; }
.legal__meta { color: var(--text-muted); }
.legal__body { max-width: 76ch; }
.legal__body h2 {
  font-size: var(--step2);
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
}
.legal__body h3 {
  font-size: var(--step1);
  margin-top: 1.9rem;
  margin-bottom: 0.6rem;
}
.legal__body p { margin-bottom: 1rem; color: var(--text-muted); }
.legal__body strong { color: var(--ink); }
.legal__body ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}
.legal__body li { margin-bottom: 0.5rem; }
.legal__body a { color: var(--blue); font-weight: 600; }
.legal__toc {
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
}
.legal__toc h2 {
  font-size: var(--step-1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.legal__toc ol {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.4rem;
}
.callout {
  margin: 1.75rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #f2f2fe;
}
.callout p:last-child { margin-bottom: 0; }
.callout p { color: var(--ink); }

/* ============================================================
   REVEAL / MOTION
   ============================================================ */
/* The hidden state only applies when JS is running (html.js is set inline in
   <head>), so content is never invisible if the script fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
