/* ============================================================
   Devson Labs — design tokens
   Palette: cool paper, ink, cobalt signal, warm creative accent
   ============================================================ */

:root {
  --paper: #F3F4F7;
  --surface: #FFFFFF;
  --surface-alt: #ECEEF2;
  --ink: #0E1014;
  --ink-2: #3A3F4A;
  --muted: #6B7280;
  --hairline: #DFE2E8;
  --hairline-soft: #E9EBF0;
  --cobalt: #1B3BDB;
  --cobalt-dark: #142CA6;
  --cobalt-wash: #E8ECFD;
  --ember: #D9531E;
  --ember-wash: #FCEDE6;
  --ok: #1B7A52;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
  --gutter: 24px;
  --radius: 6px;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 96px;
  --s7: 128px;
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- layout ---------- */

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

.section { padding: var(--s6) 0; border-top: 1px solid var(--hairline); }
.section--flush { border-top: 0; }
.section--tight { padding: var(--s5) 0; }

/* Eyebrow: encodes the section's role in the ad-account vernacular */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s3);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cobalt);
  flex: none;
}

.section-head { max-width: 720px; margin-bottom: var(--s5); }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: var(--s2); }
.section-head p { color: var(--ink-2); font-size: 17px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 244, 247, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--hairline);
  background: rgba(243, 244, 247, 0.95);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--s3);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo__mark {
  width: 20px; height: 20px;
  border: 1.5px solid var(--cobalt);
  border-radius: 3px;
  position: relative;
  flex: none;
}
.logo__mark::after {
  content: "";
  position: absolute;
  left: 3px; bottom: 3px;
  width: 5px; height: 8px;
  background: var(--cobalt);
}
.nav__links { display: flex; gap: var(--s3); align-items: center; }
.nav__links a:not(.btn) {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color 0.15s;
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a.btn { text-decoration: none; }
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 7px 10px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-dark); }
.btn--ghost { border-color: var(--hairline); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- hero ---------- */

.hero { padding: var(--s6) 0 var(--s5); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s5);
  align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  letter-spacing: -0.035em;
  margin-bottom: var(--s3);
}
.hero h1 em {
  font-style: normal;
  color: var(--cobalt);
}
.hero__sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: var(--s4);
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s4); }
.hero__note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border-left: 2px solid var(--hairline);
  padding-left: 12px;
  line-height: 1.6;
}

/* ---------- signature: creative test matrix ---------- */

.matrix {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 18px;
}
.matrix__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline-soft);
  margin-bottom: 16px;
}
.matrix__live { display: flex; align-items: center; gap: 7px; color: var(--ok); }
.matrix__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
}
.matrix__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tile {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  background: var(--surface-alt);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, background 0.35s ease;
}
.tile__tag {
  position: absolute;
  top: 6px; left: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.tile__bar {
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--hairline);
  overflow: hidden;
}
.tile__fill {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--muted);
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}
.tile.is-winner { border-color: var(--cobalt); background: var(--cobalt-wash); }
.tile.is-winner .tile__fill { background: var(--cobalt); }
.tile.is-winner .tile__tag { color: var(--cobalt-dark); }
.matrix__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.matrix__foot span { color: var(--muted); }
.matrix__caption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- channel strip ---------- */

.channels {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--s3) 0;
  background: var(--surface);
}
.channels__inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  justify-content: space-between;
}
.channels__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.channels__list {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

/* ---------- problem columns ---------- */

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.col h3 { font-size: 19px; margin-bottom: 10px; }
.col p { color: var(--ink-2); font-size: 15.5px; }
.col__rule {
  width: 100%; height: 2px;
  background: var(--ink);
  margin-bottom: 18px;
}

/* ---------- service cards ---------- */

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; }
.svc { background: var(--surface); padding: var(--s4); }
.svc__ix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cobalt);
  letter-spacing: 0.1em;
  margin-bottom: var(--s3);
}
.svc h3 { font-size: 21px; margin-bottom: 10px; }
.svc__promise { color: var(--ink-2); font-size: 15.5px; margin-bottom: var(--s3); }
.svc ul { display: grid; gap: 9px; }
.svc li {
  font-size: 14.5px;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.svc li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 1px;
  background: var(--cobalt);
}

/* ---------- reporting table ---------- */

.report {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}
.report__row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr;
  gap: var(--s3);
  padding: 18px var(--s3);
  border-bottom: 1px solid var(--hairline-soft);
  align-items: baseline;
}
.report__row:last-child { border-bottom: 0; }
.report__row--head {
  background: var(--surface-alt);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.report__metric { font-weight: 500; font-size: 15.5px; }
.report__desc { color: var(--ink-2); font-size: 14.5px; }
.report__cadence {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cobalt);
}

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step__n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.step h3 { font-size: 18px; margin-bottom: 9px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.plan {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: var(--s4) var(--s3);
  display: flex;
  flex-direction: column;
}
.plan--mid { border-color: var(--cobalt); }
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.plan__for { font-size: 13.5px; color: var(--muted); margin-bottom: var(--s3); min-height: 40px; }
.plan__price {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan__unit { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: var(--s3); }
.plan ul { display: grid; gap: 8px; margin-bottom: var(--s3); }
.plan li { font-size: 14px; color: var(--ink-2); padding-left: 17px; position: relative; }
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  border: 1px solid var(--cobalt);
}
.plan .btn { margin-top: auto; }

/* ---------- company / about ---------- */

.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.about p { color: var(--ink-2); margin-bottom: var(--s2); }
.factsheet {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
}
.factsheet__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--s2);
  padding: 14px var(--s3);
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14.5px;
}
.factsheet__row:last-child { border-bottom: 0; }
.factsheet__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.factsheet__v { color: var(--ink); }
.factsheet__v a { color: var(--cobalt); text-decoration: none; }
.factsheet__v a:hover { text-decoration: underline; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 22px 40px 22px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.faq__q::after {
  content: "+";
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--cobalt);
  font-weight: 400;
}
.faq__item.is-open .faq__q::after { content: "–"; }
.faq__a {
  display: none;
  padding: 0 60px 24px 0;
  color: var(--ink-2);
  font-size: 15.5px;
}
.faq__item.is-open .faq__a { display: block; }

/* ---------- contact ---------- */

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.contact h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: var(--s2); }
.contact__lede { color: var(--ink-2); font-size: 17px; margin-bottom: var(--s4); max-width: 46ch; }
.contact__direct {
  font-family: var(--font-mono);
  font-size: 15px;
}
.contact__direct a { color: var(--cobalt); text-decoration: none; }
.contact__direct a:hover { text-decoration: underline; }

.form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: var(--s4);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 11px 13px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: transparent; }
.form__note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  padding: var(--s5) 0 var(--s3);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.footer__about { color: var(--ink-2); font-size: 14.5px; max-width: 34ch; margin: 14px 0 16px; }
.footer__mail { font-family: var(--font-mono); font-size: 13.5px; }
.footer__mail a { color: var(--cobalt); text-decoration: none; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 14px;
}
.footer li { margin-bottom: 9px; }
.footer li a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.footer li a:hover { color: var(--cobalt); }
.footer__legal {
  border-top: 1px solid var(--hairline-soft);
  padding-top: var(--s3);
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer__legal a { color: var(--muted); text-decoration: none; }
.footer__legal a:hover { color: var(--ink); }
.footer__entity { font-family: var(--font-mono); font-size: 12px; }

/* ---------- cookie banner ---------- */

.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 150;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  display: none;
  gap: var(--s3);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(14, 16, 20, 0.18);
}
.cookie.is-visible { display: flex; }
.cookie p { font-size: 13.5px; color: #C9CDD6; max-width: 46ch; }
.cookie a { color: #fff; }
.cookie__actions { display: flex; gap: 9px; }
.cookie .btn--primary { background: var(--cobalt); }
.cookie .btn--ghost { background: transparent; border-color: rgba(255,255,255,0.28); color: #fff; }
.cookie .btn--ghost:hover { border-color: #fff; }

/* ---------- legal pages ---------- */

.legal { padding: var(--s6) 0 var(--s5); }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 14px; }
.legal__updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: var(--s5);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--hairline);
}
.legal h2 {
  font-size: 22px;
  margin: var(--s5) 0 var(--s2);
  padding-top: var(--s2);
}
.legal h3 { font-size: 17px; margin: var(--s3) 0 10px; }
.legal p { color: var(--ink-2); margin-bottom: var(--s2); }
.legal ul { list-style: none; margin-bottom: var(--s2); display: grid; gap: 9px; }
.legal ul li {
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.legal ul li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 7px; height: 1px; background: var(--cobalt);
}
.legal a { color: var(--cobalt); }
.legal__callout {
  background: var(--cobalt-wash);
  border-left: 2px solid var(--cobalt);
  padding: 18px 20px;
  margin-bottom: var(--s4);
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .plans { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --s6: 64px; --s5: 44px; }
  .nav__links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 68px;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px var(--gutter); }
  .nav__links .btn { margin: 8px var(--gutter); justify-content: center; }
  .nav__toggle { display: inline-flex; }
  .cols-3 { grid-template-columns: 1fr; gap: var(--s3); }
  .services { grid-template-columns: 1fr; }
  .svc { padding: var(--s3); }
  .steps { grid-template-columns: 1fr; }
  .report__row { grid-template-columns: 1fr; gap: 6px; }
  .report__row--head { display: none; }
  .factsheet__row { grid-template-columns: 1fr; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s3); }
  .matrix__grid { grid-template-columns: repeat(4, 1fr); }
  .form { padding: var(--s3); }
  .faq__q { font-size: 16px; padding-right: 34px; }
  .faq__a { padding-right: 0; }
}
