/* ==========================================================
   Adperformant — site styles
   Plain CSS, no build step. Edit the variables below to
   change colors, fonts and spacing across every page.
   ========================================================== */

:root {
  --ink: #0e0f12;          /* near-black background / text */
  --ink-2: #16181d;        /* raised dark surface */
  --ink-3: #23262d;        /* dark borders */
  --paper: #f7f6f3;        /* off-white background */
  --paper-2: #ffffff;
  --line: #e4e1da;         /* light borders */
  --muted: #6b6f78;        /* secondary text on light */
  --muted-dark: #a3a7b0;   /* secondary text on dark */
  --accent: #f28c28;       /* Adperformant orange */
  --accent-dark: #d9741a;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p  { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--dark p { color: var(--muted-dark); }
.section--white { background: var(--paper-2); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 640px; }
.section--dark .lead { color: var(--muted-dark); }
.section-head { max-width: 760px; margin-bottom: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Draft placeholders (remove before launch) ---------- */
.ph {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.draft-banner {
  background: var(--accent); color: var(--ink);
  font-size: 14px; font-weight: 600; text-align: center;
  padding: 8px var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,15,18,.92);
  backdrop-filter: blur(10px);
  color: #fff;
  border-bottom: 1px solid var(--ink-3);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .04em; font-size: 18px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { white-space: nowrap; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: #d8dae0; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .btn { padding: 10px 18px; font-size: 15px; color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff;
  font-size: 26px; cursor: pointer; padding: 4px 8px;
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--ink); padding: 24px var(--gutter) 32px;
    border-bottom: 1px solid var(--ink-3);
  }
  .nav.is-open { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(242,140,40,.18), transparent 60%),
    var(--ink);
  color: #fff;
  padding: clamp(80px, 12vw, 150px) 0 clamp(64px, 8vw, 100px);
}
.hero h1 { max-width: 920px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--muted-dark); margin-bottom: 36px; }

.channel-strip {
  margin-top: 72px; padding-top: 28px;
  border-top: 1px solid var(--ink-3);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  color: var(--muted-dark); font-size: 15px; font-weight: 600;
}
.channel-strip span:first-child { color: #fff; margin-right: 8px; }
.tag-new {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  background: var(--accent); color: var(--ink);
  padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-top: 2px solid var(--ink); padding-top: 18px; }
.stat-num { font-size: clamp(36px, 4.5vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat-label { color: var(--muted); font-size: 15px; margin-top: 10px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.section--dark .card { background: var(--ink-2); border-color: var(--ink-3); }

.audience-card { padding: 44px; display: flex; flex-direction: column; }
.audience-card h3 { font-size: 28px; }
.audience-card ul { list-style: none; padding: 0; margin: 8px 0 28px; }
.audience-card li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.audience-card li::before { content: "→"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.audience-card .metric { margin-top: auto; font-size: 14px; color: var(--muted); }
.audience-card .metric strong { color: var(--ink); }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.channel { padding: 28px; }
.channel h3 { font-size: 19px; margin-bottom: 6px; }
.channel p { font-size: 15px; margin: 0; }

/* ---------- Process ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  font-size: 15px; font-weight: 800; color: var(--accent);
  border: 1px solid var(--ink-3); border-radius: 999px; padding: 6px 12px;
}
.step p { font-size: 15px; }

/* ---------- Case studies ---------- */
.case { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-top { background: var(--ink); color: #fff; padding: 36px; }
.case-top .case-num { font-size: clamp(44px, 5vw, 64px); font-weight: 800; color: var(--accent); line-height: 1; }
.case-top .case-num-label { color: var(--muted-dark); margin-top: 8px; }
.case-body { padding: 32px 36px 36px; }
.case-meta { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* ---------- AI band ---------- */
.ai-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.chat-mock {
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius);
  padding: 24px; font-size: 15px;
}
.chat-q { background: var(--ink-3); color: #fff; padding: 12px 16px; border-radius: 12px; margin-left: 20%; margin-bottom: 14px; }
.chat-a { color: #d8dae0; padding: 4px 0 12px; }
.chat-ad {
  border: 1px solid var(--accent); border-radius: 12px; padding: 14px 16px; color: #fff;
}
.chat-ad small { display: block; color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 900px) { .ai-band { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.person .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 22px; margin-bottom: 20px;
}
.person .role { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.person p { font-size: 15px; }

/* ---------- Quote ---------- */
.quote blockquote, .quote cite { max-width: 900px; display: block; }
.quote blockquote { margin: 0 0 24px; font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.quote cite { font-style: normal; color: var(--muted-dark); }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.cta-band h2 { max-width: 700px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding: 64px 0 40px; font-size: 15px; border-top: 1px solid var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--ink-3); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 640px) {
  .audience-card, .card { padding: 26px; }
  .case { padding: 0; }
  .case-top, .case-body { padding: 26px; }
}

/* ==========================================================
   Inner pages
   ========================================================== */
.page-hero {
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(242,140,40,.16), transparent 60%),
    var(--ink);
  color: #fff;
  padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 7vw, 88px);
}
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 900px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .lead { color: var(--muted-dark); margin-bottom: 32px; }

/* Two-column text + list */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); position: relative; }
.section--dark .checklist li { border-color: var(--ink-3); color: #d8dae0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 14px; color: var(--accent); font-weight: 800; }
.checklist strong { display: block; }

/* Service groups */
.service-group { padding: 40px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.service-group:last-child { border-bottom: 1px solid var(--line); }
.service-group h2 { font-size: clamp(26px, 3vw, 34px); }
.service-items { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.service-items h3 { font-size: 18px; margin-bottom: 6px; }
.service-items p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .service-group { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) { .service-items { grid-template-columns: 1fr; } }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { border: 1px solid var(--line); background: var(--paper-2); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; }

/* Metric tiles */
.metric-tile { padding: 28px; }
.metric-tile .k { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.metric-tile p { font-size: 15px; margin: 0; }

/* Creative gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery .tile {
  aspect-ratio: 9 / 16; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--ink-3);
  display: grid; place-items: center; text-align: center; padding: 16px;
  color: var(--muted-dark); font-size: 14px; overflow: hidden;
}
.gallery .tile img, .gallery .tile video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Team (About page) */
.team-member { display: grid; grid-template-columns: 160px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.team-member .avatar { width: 160px; height: 160px; border-radius: var(--radius); font-size: 40px;
  background: var(--ink); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.team-member .role { color: var(--muted); margin-bottom: 14px; }
@media (max-width: 640px) { .team-member { grid-template-columns: 1fr; gap: 20px; } .team-member .avatar { width: 96px; height: 96px; font-size: 28px; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--muted); max-width: 760px; }

/* Forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px;
  padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form button { border: 0; cursor: pointer; font-family: inherit; justify-self: start; }
.hidden { display: none; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-card { padding: 32px; }
.contact-card h3 { margin-bottom: 4px; }
.contact-card p { color: var(--muted); }
.contact-card a { font-weight: 700; }

/* Legal / long-form text */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose p, .prose li { color: #33363d; }

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Industry benchmark notes and comparison table */
.case-bench { font-size: 14px; color: var(--muted); margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.case-bench a { color: inherit; }
.bench-card { display: flex; flex-direction: column; gap: 6px; }
.bench-card h3 { margin: 4px 0 0; }
.bench-note { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.bench-note a { color: inherit; }
.bench-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.bench-table th, .bench-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.bench-table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bench-table td:nth-child(2) { font-weight: 800; color: var(--accent-dark); }
.bench-table tbody th { font-weight: 600; }
