/* ==========================================================================
   AP Sales — dark edition brand tokens
   Source of truth: reference_ap_sales_new_branding (2026 PDF + Andrei
   playground board). Do NOT introduce colours or fonts outside this file.
   ========================================================================== */

:root {
  /* Colour */
  --blue: #0062ff;
  --black: #0a0a0b;   /* page base */
  --surface: #111111; /* NEW brand black */
  --ink: #1c1c1e;
  --paper: #f9f9f9;
  --fg: #f9f9f9;
  --fg-dim: #a9a9a9;
  --hairline: rgba(249, 249, 249, 0.10);

  /* Type */
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --text: "Elza", "Inter", system-ui, sans-serif;
  --button: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0; /* zero radius everywhere — brand rule */
}

html {
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--fg);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.band {
  padding: 120px 0;
  border-bottom: 1px solid var(--hairline);
}

/* Alternating section backgrounds — brand rule, never one flat tone */
.band--base { background: var(--black); }
.band--raise { background: var(--surface); }
.band--ink { background: var(--ink); }

/* --- Header ------------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--hairline);
  background: var(--black);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 84px;
}

.logo {
  display: block;
  width: 168px;
  color: var(--fg);
}

.logo svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

/* --- Type --------------------------------------------------------------- */

h1,
h2 {
  font-family: var(--display);
  font-weight: 200; /* extralight — headline treatment */
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 8.5vw, 7rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

/* The one emphasised word/phrase per headline */
.em {
  font-weight: 700;
  font-style: italic;
}

.blue {
  color: var(--blue); /* rationed — one word at most */
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--fg-dim);
  max-width: 46ch;
  margin: 44px 0 0;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--button);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  padding: 20px 34px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 160ms ease-out, color 160ms ease-out;
}

.btn--primary {
  background: var(--blue);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--paper);
  color: var(--black);
}

.btn--ghost {
  border-color: var(--hairline);
  color: var(--fg);
}

.btn--ghost:hover {
  background: var(--surface);
}

/* --- Sticky CTA — one, bottom-right, after the hero --------------------- */

.sticky-cta {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 50;
  /* hairline keeps the blue button readable when it floats over the blue footer */
  border-color: rgba(249, 249, 249, 0.35);
}

/* --- Video slot --------------------------------------------------------- */

.video-slot {
  margin-top: 64px;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--fg-dim);
  font-family: var(--button);
}

/* --- Funnel nav (temporary scaffolding, not final design) --------------- */

.funnel-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 64px;
}

.funnel-nav a {
  background: var(--black);
  color: var(--fg);
  text-decoration: none;
  padding: 40px 32px;
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  transition: background 160ms ease-out, color 160ms ease-out;
}

.funnel-nav a:hover {
  background: var(--blue);
  color: var(--paper);
}

.back {
  display: inline-block;
  margin-top: 56px;
  font-family: var(--button);
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 6px;
}

.back:hover {
  color: var(--fg);
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  margin-top: auto; /* keeps the panel pinned to the bottom on short pages */
  background: var(--blue);
  color: var(--paper);
  padding: 80px 0 64px;
  overflow: hidden;
}

.footer .mark {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(4rem, 16vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 0;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .band { padding: 80px 0; }
  .sticky-cta { right: 16px; bottom: 16px; }
}
