/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --paper: #f3f5f8;
  --paper-deep: #e9edf3;
  --surface: #ffffff;
  --surface-raised: #f6f8fb;
  --ink: #0b1630;
  --ink-2: #14213f;
  --slate: #5a6478;
  --blue: #1257e3;
  --blue-bright: #6c9bff;
  --blue-soft: #e8effd;
  --profit: #22c07a;
  --profit-ink: #0b8a50;
  --profit-soft: #e2f6ec;
  --loss: #f08a4b;
  --loss-ink: #c25412;
  --loss-soft: #fdebdf;
  --line: rgba(11, 22, 48, 0.12);

  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;

  --wrap: 1240px;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 32px;
}

.wrap--narrow {
  max-width: 760px;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.page-main {
  display: flex;
  flex-direction: column;
}

.page-section {
  display: flex;
  flex: 1;
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}

.page-content {
  width: 100%;
}

.page-card {
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -42px rgba(15, 23, 42, 0.35);
}

.page-kicker {
  margin-bottom: 12px;
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  max-width: 18ch;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-description {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--slate);
  font-size: 18px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--blue-bright);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Consistent, visible focus ring across all interactive elements */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 16px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  flex-shrink: 0;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: 40px;
  color: var(--ink);
}

.section-intro {
  max-width: 720px;
  margin: -24px 0 40px;
  color: var(--slate);
  font-size: 18px;
}

.section-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}

.section-action p,
.section-note {
  color: var(--slate);
  font-size: 14px;
}

.section-note {
  max-width: 720px;
  margin-top: 24px;
}

#problem-heading {
  max-width: 26ch;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.btn--primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.35),
    0 12px 28px -12px rgba(18, 87, 227, 0.55);
}

.btn--primary:hover {
  background: #0d47c2;
  box-shadow:
    0 0 0 1px var(--blue-bright),
    0 10px 28px -6px rgba(59, 130, 246, 0.55);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
}

.btn--secondary:hover {
  border-color: rgba(59, 130, 246, 0.38);
  color: var(--blue);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  color: var(--ink);
  background: rgba(59, 130, 246, 0.08);
}

.btn--large {
  padding: 16px 32px;
  font-size: 17px;
}

.btn--nav {
  padding: 10px 20px;
  font-size: 15px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding-block: 15px;
  gap: 30px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.2px;
}

.logo__mark {
  display: block;
  object-fit: contain;
}

.logo__text-culmin {
  color: var(--blue);
}

.logo__text-app {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  cursor: pointer;
}

.nav-toggle__box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.nav-toggle__bar {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.site-nav__list {
  display: flex;
  gap: 30px;
  list-style: none;
}

.site-nav__list a {
  text-decoration: none;
  font-size: 15px;
  color: var(--slate);
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav__list a:hover {
  color: var(--blue);
}

.site-nav__cta {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.site-header__login {
  color: var(--slate);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-header__login:hover {
  color: var(--blue);
}

@media (max-width: 860px) {
  .site-header__inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .site-nav[data-open="true"] {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 18px;
  }

  .site-nav__cta {
    display: inline-flex;
    width: fit-content;
  }

  .site-header__actions {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* ==========================================================================
   Landing
   The 1.0× break-even line is the page's recurring device: green above,
   amber below, wherever ROAS is shown.
   ========================================================================== */
.landing {
  background: var(--paper);
}

.landing section[id] {
  scroll-margin-top: 80px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.sec-head--center {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.sec-head--center .sec-title {
  max-width: 26ch;
}

.sec-title {
  max-width: 22ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.sec-head--center .sec-title {
  margin-inline: auto;
}

.sec-intro {
  max-width: 60ch;
  margin-top: 20px;
  color: var(--slate);
  font-size: 18px;
}

.sec-head--center .sec-intro {
  margin-inline: auto;
}

.sec-head--dark .eyebrow {
  color: var(--blue-bright);
}

.sec-head--dark .sec-title {
  color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.chip--apply {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.chip--warn {
  border-color: transparent;
  background: var(--loss-soft);
  color: var(--loss-ink);
}

.chip--stop {
  border-color: transparent;
  background: #eceef2;
  color: var(--ink);
}

.chip--go {
  border-color: transparent;
  background: var(--profit-soft);
  color: var(--profit-ink);
}

.is-up {
  color: var(--profit-ink);
}

.is-down {
  color: var(--loss-ink);
}

/* Hero --------------------------------------------------------------------
   Centered copy with room to breathe, then the full product window on the
   whole grid width. Its top shows in the first screen. */
.hero {
  position: relative;
  padding-block: clamp(48px, 5vw, 72px) clamp(56px, 7vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(18, 87, 227, 0.1), transparent 70%),
    var(--paper);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
  text-align: center;
}

.hero__stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--slate);
  font-size: 14px;
}

.hero__stack-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.hero__stack-item img {
  height: 18px;
  width: auto;
}

.hero__stack-plus {
  color: var(--slate);
  font-weight: 600;
}

.landing h1 {
  max-width: 22ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.2rem + 3.4vw, 4.5rem);
  font-stretch: 106%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.landing h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero__lead {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--slate);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  margin-top: 32px;
}

.hero__note {
  margin-top: 16px;
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 13px;
}

.hero__visual {
  position: relative;
  margin-top: clamp(40px, 4vw, 56px);
  container-type: inline-size;
}

/* Soft panel behind the lower part of the window, anchoring it. */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 18% -32px -32px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(18, 87, 227, 0.1), rgba(18, 87, 227, 0.02));
}

/* Hero dashboard ----------------------------------------------------------
   Built in HTML/SVG. Sizes are in em and the em follows the container
   width (98em wide at full size), so the window scales as one piece. */
.dash {
  position: relative;
  margin: 0;
  font-size: min(12.5px, 100cqw / 94);
}

.dash__win {
  overflow: hidden;
  border: 1px solid rgba(11, 22, 48, 0.08);
  border-radius: 1.4em;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  box-shadow:
    0 0.2em 0.6em rgba(11, 22, 48, 0.04),
    0 3em 6em -2em rgba(18, 87, 227, 0.25);
}

.dash__chrome {
  display: flex;
  align-items: center;
  gap: 1.6em;
  padding: 0.9em 1.4em;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.dash__dots {
  display: flex;
  gap: 0.5em;
}

.dash__dots i {
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.dash__dots i:nth-child(2) {
  background: #febc2e;
}

.dash__dots i:nth-child(3) {
  background: #28c840;
}

.dash__url {
  padding: 0.3em 1em;
  border-radius: 1em;
  background: var(--surface);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 0.95em;
}

.dash__body {
  display: grid;
  gap: 1.6em;
  padding: 2em 2.4em 2.4em;
}

.dash__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.dash__h {
  font-family: var(--font-display);
  font-size: 2.4em;
  font-stretch: 108%;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash__filters {
  display: flex;
  gap: 0.6em;
}

.dfilter {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5em 2.2em 0.5em 1em;
  border: 1px solid var(--line);
  border-radius: 0.7em;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dfilter:hover,
.dfilter:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.25em var(--blue-soft);
}

/* Chevron */
.dfilter::after {
  content: "";
  position: absolute;
  right: 0.9em;
  top: 50%;
  width: 0.45em;
  height: 0.45em;
  border-right: 1.5px solid var(--slate);
  border-bottom: 1.5px solid var(--slate);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.dfilter select {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.dfilter select:focus {
  outline: none;
}

.dfilter em {
  margin-right: 0.3em;
  color: var(--slate);
  font-style: normal;
  font-weight: 400;
}

.dash__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1em;
}

.kpi {
  padding: 1.2em 1.4em;
  border-radius: 1em;
  background: var(--paper);
}

.kpi--accent {
  background: var(--profit-soft);
}

.kpi__label,
.kpi__sub {
  overflow: hidden;
  color: var(--slate);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi__value {
  margin-block: 0.15em;
  font-family: var(--font-display);
  font-size: 2.6em;
  font-stretch: 104%;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.kpi__value--up {
  color: var(--profit-ink);
}

.dash__charts,
.dash__tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
}

.dash__tables {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.chart,
.panel {
  padding: 1.3em 1.4em 1.1em;
  border: 1px solid var(--line);
  border-radius: 1em;
}

.chart__title,
.panel__title {
  font-size: 1.2em;
  font-weight: 600;
}

.chart__sub {
  color: var(--blue);
  font-size: 0.95em;
}

.chart__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.6em;
  color: var(--slate);
  font-size: 0.9em;
}

.lg {
  display: inline-block;
  width: 1.3em;
  margin-left: 0.7em;
  border-radius: 1em;
}

.lg:first-child {
  margin-left: 0;
}

.lg--bar {
  height: 0.8em;
  border-radius: 0.2em;
  background: #dfe6f3;
}

.lg--line {
  height: 0.25em;
  background: var(--blue);
}

.lg--be {
  border-top: 0.2em dashed var(--blue-bright);
}

.lg--cpi {
  height: 0.25em;
  background: var(--loss);
}

.lg--arpu {
  height: 0.25em;
  background: var(--profit);
}

.lg--profit {
  height: 0.8em;
  border-radius: 0.2em;
  background: #bfeed6;
}

.lg--trend {
  height: 0.25em;
  background: var(--blue-bright);
}

.chart__plot {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  margin-top: 1em;
}

.chart__y {
  position: relative;
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 0.85em;
}

.chart__y span {
  position: absolute;
  top: calc(var(--y) * 1%);
  right: 0.8em;
  transform: translateY(-50%);
}

.chart__x {
  display: flex;
  justify-content: space-between;
  margin: 0.5em 0 0 3.2em;
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 0.85em;
}

.chart__svg {
  display: block;
  width: 100%;
  height: 12em;
  overflow: visible;
}

.chart__grid line {
  stroke: #eef1f6;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart__bars rect {
  fill: #e3e9f4;
}

.chart__profit rect {
  fill: #bfeed6;
}

.chart__profit rect.neg {
  fill: #fbd3bb;
}

.chart__be {
  stroke: var(--blue-bright);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}

.chart__zero {
  stroke: #cfd6e2;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart__line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  vector-effect: non-scaling-stroke;
  animation: dash-draw 1.4s cubic-bezier(0.3, 0.7, 0.2, 1) 0.3s backwards;
}

.chart__line--roas {
  stroke: var(--blue);
}

.chart__line--cpi {
  stroke: var(--loss);
  stroke-width: 1.8;
}

.chart__line--arpu {
  stroke: var(--profit);
}

.chart__line--trend {
  stroke: var(--blue-bright);
  stroke-width: 1.8;
}

/* Narrower containers: fewer parts, larger scale, so text stays legible. */
@container (max-width: 820px) {
  .dash {
    font-size: calc(100cqw / 66);
  }
  .dash__filters,
  .dash__tables .panel:first-child {
    display: none;
  }
  .dash__tables {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container (max-width: 520px) {
  .dash {
    font-size: calc(100cqw / 44);
  }
  .dash__charts .chart:last-child {
    display: none;
  }
  .dash__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash__charts {
    grid-template-columns: minmax(0, 1fr);
  }
  .dtable--kw .kw__btn {
    display: none;
  }
}

@keyframes dash-draw {
  from {
    stroke-dashoffset: 1;
  }
}

/* Tables */
.tabs {
  display: flex;
  gap: 0.4em;
  margin-bottom: 0.8em;
}

.tabs button {
  padding: 0.45em 1em;
  border: 0;
  border-radius: 0.6em;
  background: var(--paper);
  color: var(--slate);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tabs button:hover {
  color: var(--ink);
}

.tabs [aria-selected="true"] {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.panel__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8em;
  padding-block: 0.45em;
}

.panel__title span {
  color: var(--slate);
  font-size: 0.75em;
  font-weight: 400;
}

.dtable {
  width: 100%;
  border-collapse: collapse;
}

.dtable th {
  padding: 0 0.7em 0.6em;
  color: var(--slate);
  font-size: 0.9em;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.dtable td {
  padding: 0.7em;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dtable td:first-child {
  font-weight: 500;
}

.dtable--kw td:nth-child(n + 2) {
  font-family: var(--font-body);
}

.dtable--kw b {
  font-weight: 600;
}

.camp__ico {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.6em;
  vertical-align: -0.2em;
  fill: none;
  stroke: var(--profit-ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roas {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 0.5em;
  font-family: var(--font-body);
  font-weight: 500;
}

.roas--up {
  background: var(--profit-soft);
  color: var(--profit-ink);
}

.roas--warn {
  background: #fdf1d6;
  color: #9a6400;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--slate);
}

.status::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: var(--profit);
}

.status--warn::before {
  background: var(--loss);
}

.kw__btn {
  display: inline-block;
  min-width: 8.4em;
  padding: 0.35em 0.9em;
  border: 1px solid var(--blue);
  border-radius: 2em;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.kw__btn:hover {
  transform: translateY(-1px);
}

.kw__btn:active {
  transform: scale(0.96);
}

.kw__btn--ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.kw__btn[aria-pressed="true"] {
  border-color: var(--profit);
  background: var(--profit-soft);
  color: var(--profit-ink);
}

.kw__btn[aria-pressed="true"]::before {
  content: "✓ ";
}

.dtable td:last-child {
  text-align: right;
}

.dtable--kw tr.is-applied td[data-bid] {
  color: var(--profit-ink);
  font-weight: 600;
}

/* Rows enter one after another when a table re-renders. */
.dtable tr.is-in {
  animation: row-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 70ms);
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(0.6em);
  }
}

/* Chart hover readout */
.chart__area {
  position: relative;
  cursor: crosshair;
}

.chart__guide,
.chart__tip {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.chart__guide {
  top: 0;
  bottom: 0;
  border-left: 1px dashed var(--slate);
}

.chart__tip {
  top: 0;
  z-index: 2;
  margin-left: 0.8em;
  padding: 0.5em 0.8em;
  border-radius: 0.6em;
  background: var(--ink);
  color: #fff;
  font-size: 0.85em;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 0.6em 1.2em -0.4em rgba(11, 22, 48, 0.4);
}

.chart__tip b {
  display: block;
  color: var(--blue-bright);
  font-weight: 600;
}

.chart__tip.is-left {
  transform: translateX(calc(-100% - 1.6em));
}

.chart__area.is-hover .chart__guide,
.chart__area.is-hover .chart__tip {
  opacity: 1;
}

/* Toast */
.dash__win {
  position: relative;
}

.dash__toast {
  position: absolute;
  top: 0.45em;
  right: 1.2em;
  max-width: 60%;
  overflow: hidden;
  padding: 0.45em 1.1em;
  border-radius: 2em;
  background: var(--ink);
  color: #fff;
  font-size: 0.95em;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1em 2em -0.8em rgba(11, 22, 48, 0.5);
  opacity: 0;
  transform: translateY(-0.6em);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.dash__toast.is-on {
  opacity: 1;
  transform: none;
}

/* Feedback pulse on anything that just changed */
.is-flash {
  animation: flash 0.7s ease;
}

@keyframes flash {
  30% {
    box-shadow: 0 0 0 0.3em rgba(18, 87, 227, 0.18);
  }
}

/* Apps -------------------------------------------------------------------- */
.apps {
  padding-block: 8px clamp(56px, 7vw, 88px);
}

.apps__inner {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  align-items: center;
  gap: 24px 56px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--surface);
}

.apps__label {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
}

.apps__label strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.apps__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
  list-style: none;
}

.apps__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-stretch: 108%;
  font-weight: 700;
}

.apps__list img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 6px 14px -8px rgba(11, 22, 48, 0.35);
}

/* Results ----------------------------------------------------------------- */
.results {
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--ink);
  color: #c9d2e3;
}

.results__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.result {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.result__label {
  color: #c9d2e3;
  font-size: 15px;
  font-weight: 500;
}

.result__value {
  margin-top: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  font-stretch: 104%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.result__value small {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0;
  color: #c9d2e3;
}

.result__arrow {
  color: var(--profit);
}

.result__app {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #93a0b8;
  font-family: var(--font-body);
  font-size: 13px;
}

.result-chart {
  position: relative;
  height: 120px;
  margin-top: 28px;
}

/* ROAS: one scale split at break-even; the result crosses from loss to profit.
   Scale runs 0.6×–1.4×, so 0.83× sits at 28.75%, 1.0× at 50%, 1.2× at 75%. */
.rscale {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.rscale__track {
  position: relative;
  height: 56px;
}

.rscale__zone {
  position: absolute;
  top: 24px;
  height: 8px;
  width: 50%;
}

.rscale__zone--loss {
  left: 0;
  border-radius: 999px 0 0 999px;
  background: rgba(240, 138, 75, 0.28);
}

.rscale__zone--profit {
  left: 50%;
  border-radius: 0 999px 999px 0;
  background: rgba(34, 192, 122, 0.28);
}

.rscale__path {
  position: absolute;
  top: 24px;
  left: 28.75%;
  width: 46.25%;
  height: 8px;
  background: linear-gradient(90deg, var(--loss), var(--profit));
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.rscale__be {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  border-left: 2px dashed var(--blue-bright);
}

.rscale__be b {
  position: absolute;
  top: -14px;
  left: 0;
  color: var(--blue-bright);
  font-size: 11px;
  font-weight: 600;
  transform: translateX(-50%);
}

.rscale__dot {
  position: absolute;
  top: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px var(--ink-2);
}

.rscale__dot--before {
  left: 28.75%;
  background: var(--loss);
}

.rscale__dot--after {
  left: 75%;
  background: var(--profit);
  transition: left 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s, opacity 0.3s ease 0.2s;
}

.rscale__labels {
  display: flex;
  justify-content: space-between;
  color: #93a0b8;
  font-size: 12px;
}

.js [data-reveal]:not(.is-in) .rscale__path {
  transform: scaleX(0);
}

.js [data-reveal]:not(.is-in) .rscale__dot--after {
  left: 28.75%;
  opacity: 0;
}

/* Break-even: 16 months of tied-up spend; after, only 3 stay amber. */
.rtime {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.rtime__flags {
  position: relative;
  height: 18px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.rtime__flag {
  position: absolute;
  bottom: 0;
}

.rtime__flag--after {
  left: 0;
  color: var(--profit);
  transition: opacity 0.4s ease 1.1s;
}

.rtime__flag--before {
  right: 0;
  color: #93a0b8;
  text-decoration: line-through;
  transition: opacity 0.4s ease;
}

.rtime__cells {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 3px;
}

.rtime__cells i {
  height: 26px;
  border-radius: 4px;
  background: var(--loss);
  transition: background-color 0.35s ease;
  transition-delay: calc((15 - var(--i)) * 55ms);
}

/* Months after payback turn to profit, from month 16 back to month 4. */
.rtime__cells i:nth-child(n + 4) {
  background: var(--profit);
}

.rtime__axis {
  display: flex;
  justify-content: space-between;
  color: #93a0b8;
  font-size: 11px;
}

.js [data-reveal]:not(.is-in) .rtime__cells i:nth-child(n + 4) {
  background: var(--loss);
}

.js [data-reveal]:not(.is-in) .rtime__flag--after {
  opacity: 0;
}

.js [data-reveal].is-in .rtime__flag--before {
  opacity: 0.7;
}

/* Spend: six months of rising spend while ROAS holds above 1.0× */
.rspend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: auto;
}

.rspend__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.rspend__be {
  stroke: var(--blue-bright);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.rspend__roas {
  fill: none;
  stroke: var(--profit);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.3, 0.7, 0.2, 1) 0.5s;
}

.rspend__bar {
  fill: #3d4c6e;
  transform-box: fill-box;
  transform-origin: bottom;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i) * 90ms);
}

.rspend__bar--last {
  fill: var(--profit);
}

.rspend__tag {
  fill: #93a0b8;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
}

.rspend__tag--roas {
  fill: var(--profit);
}

.rspend__tag--be {
  fill: var(--blue-bright);
}

.rspend__tag--add {
  fill: var(--profit);
  font-size: 10px;
  font-weight: 700;
  transition: opacity 0.4s ease 0.8s;
}

.rspend__axis {
  display: flex;
  justify-content: space-between;
  color: #93a0b8;
  font-size: 11px;
}

.js [data-reveal]:not(.is-in) .rspend__bar {
  transform: scaleY(0);
}

.js [data-reveal]:not(.is-in) .rspend__roas {
  stroke-dashoffset: 1;
}

.js [data-reveal]:not(.is-in) .rspend__tag--add {
  opacity: 0;
}

/* Bars start collapsed only when JS can reveal them. */
/* Features ---------------------------------------------------------------- */
.features {
  padding-block: clamp(80px, 10vw, 136px);
}

.feature-tag {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.feature-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--surface);
}

.feature-lead + .feature-lead {
  margin-top: 24px;
}

.feature-lead--flip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.feature-lead--flip .feature-lead__copy {
  order: 2;
}

.feature-lead h3,
.feature-card h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.feature-lead h3 {
  max-width: 18ch;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
}

.feature-lead__copy > p:not(.feature-tag) {
  margin-top: 16px;
  color: var(--slate);
  font-size: 17px;
}

.feature-lead__copy > .feature-aside {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--ink);
  font-size: 15px;
}

/* Mock UI panels */
.mock {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 14px;
}

.mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mock__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.mock__hint,
.mock__foot {
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 12px;
}

.mock__foot {
  margin-top: 14px;
}

.mock__seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 12px;
}

.mock__seg button {
  padding: 3px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--slate);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.mock__seg button:hover {
  color: var(--ink);
}

.mock__seg [aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

.roas-rows {
  display: grid;
  gap: 8px;
}

.roas-row {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 4rem;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
}

.roas-row__name {
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 0–2.0× scale: the break-even tick sits at 50%. */
.roas-row__meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e6eaf0;
}

.roas-row__meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(100%, calc(var(--v) / 2 * 100%));
  border-radius: inherit;
  background: var(--profit);
}

.roas-row__meter.is-down i {
  background: var(--loss);
}

.roas-row__meter::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  bottom: -5px;
  border-left: 2px dashed var(--blue);
}

.roas-row__val {
  font-family: var(--font-body);
  font-weight: 500;
  text-align: right;
}

.bid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: -8px;
}

.bid-table th,
.bid-table td {
  padding: 12px 10px;
  background: var(--surface);
  text-align: left;
  white-space: nowrap;
}

.bid-table th {
  border-radius: 10px 0 0 10px;
  color: var(--ink);
  font-weight: 600;
}

.bid-table td {
  font-family: var(--font-body);
}

.bid-table td:last-child {
  border-radius: 0 10px 10px 0;
  text-align: right;
}

.bid-table s {
  color: var(--slate);
}

.bid-table b {
  color: var(--ink);
  font-weight: 500;
}

.bid-table b.is-up {
  color: var(--profit-ink);
}

/* Secondary features grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--surface);
}

.feature-card h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.65rem);
}

.feature-card > p:not(.feature-tag) {
  margin-top: 12px;
  color: var(--slate);
}

.feature-card > :last-child {
  margin-top: auto;
}

.action-list,
.chat,
.pop-list,
.payback {
  padding-top: 24px;
}

.action-list,
.pop-list {
  display: grid;
  gap: 8px;
  list-style: none;
}

.action-list li,
.pop-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 14px;
}

.chat {
  display: grid;
  gap: 12px;
}

.chat__thread {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.chat__thread:empty {
  display: none;
}

.chat__msg {
  max-width: 88%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  animation: row-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.chat__msg--me {
  justify-self: end;
  border-radius: 14px 14px 4px 14px;
  background: var(--blue);
  color: #fff;
}

.chat__msg--bot {
  justify-self: start;
  border-radius: 14px 14px 14px 4px;
  background: var(--paper);
  color: var(--ink);
}

.chat__dots {
  display: inline-flex;
  gap: 4px;
  padding-block: 4px;
}

.chat__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate);
  animation: typing 1s ease-in-out infinite;
}

.chat__dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.chat__dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  50% {
    opacity: 0.3;
    transform: translateY(-3px);
  }
}

.chat__asks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat__asks button {
  padding: 8px 12px;
  border: 1px solid rgba(18, 87, 227, 0.3);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.chat__asks button:hover {
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.chat__asks [aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.pop-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 14px;
}

.chat {
  display: grid;
  justify-items: end;
  gap: 8px;
  list-style: none;
}

.chat li {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}

.chat li:nth-child(2) {
  opacity: 0.85;
}

.chat li:nth-child(3) {
  opacity: 0.7;
}

.pop-list li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) 2rem;
}

.pop {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 0 / calc(var(--v) * 100%) 100%, #e6eaf0;
  transition: background-size 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pop-list li:nth-child(2) .pop {
  transition-delay: 0.12s;
}

.pop-list li:nth-child(3) .pop {
  transition-delay: 0.24s;
}

.js .pop-list:not(.is-in) .pop {
  background-size: 0 100%, auto;
}

.pop-list b {
  font-family: var(--font-body);
  font-weight: 500;
  text-align: right;
}

.payback {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.payback__days {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 3rem;
  font-stretch: 112%;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.payback__unit {
  display: block;
  margin-top: 6px;
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.payback__chart {
  flex: 1;
  min-width: 0;
  max-height: 120px;
  overflow: visible;
}

.payback__axis {
  stroke: var(--line);
  stroke-width: 1;
}

.payback__be {
  stroke: var(--loss);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
}

.payback__drop {
  stroke: var(--slate);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.6;
}

.payback__curve {
  fill: none;
  stroke: var(--profit);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.js .payback:not(.is-in) .payback__curve {
  stroke-dashoffset: 1;
}

.payback__tag {
  fill: var(--slate);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
}

.payback__tag--rev {
  fill: var(--profit-ink);
}

.payback__tag--day {
  fill: var(--ink);
  font-weight: 700;
}

.payback__dot {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 1s;
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 2;
}

/* How it works ------------------------------------------------------------ */
.how {
  padding-block: clamp(80px, 10vw, 128px);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
}

/* Connector running through the step numbers */
.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 28px;
  border-top: 2px solid var(--line);
}

.step {
  position: relative;
}

.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 8px var(--surface);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.step h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-stretch: 108%;
  font-weight: 800;
}

.step p {
  max-width: 32ch;
  margin-top: 8px;
  color: var(--slate);
}

.step__logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.step__logos img {
  height: 22px;
  width: auto;
}

/* Audience ---------------------------------------------------------------- */
.audience {
  padding-block: clamp(80px, 10vw, 128px);
}

.audience__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(40px, 6vw, 96px);
}

.audience__list {
  list-style: none;
  border-top: 2px solid var(--ink);
}

.audience__list li {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.audience__list h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-stretch: 108%;
  font-weight: 800;
}

.audience__list p {
  color: var(--slate);
}

.audience__operator {
  grid-column: 1 / -1;
  margin: clamp(24px, 4vw, 48px) 0 0;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.audience__operator p {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  font-stretch: 108%;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Testimonials ------------------------------------------------------------ */
.testimonials {
  padding-block: clamp(80px, 10vw, 128px);
  background: var(--ink);
}

.quotes {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.quote blockquote {
  margin: 0;
  color: #e6ebf4;
  font-size: 17px;
  line-height: 1.55;
}

.quote--feature {
  background: var(--blue);
  border-color: transparent;
}

.quote--feature blockquote {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  font-stretch: 106%;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #93a0b8;
  font-size: 14px;
}

.quote--feature figcaption {
  color: #d6e2fb;
}

.quote figcaption b {
  display: block;
  color: #fff;
  font-weight: 600;
}

.quote__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
}

/* Pricing ----------------------------------------------------------------- */
.pricing {
  padding-block: clamp(80px, 10vw, 136px);
}

.pricing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

/* Price estimator */
.calc {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--surface);
}

.calc__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.calc__label {
  color: var(--slate);
  font-size: 14px;
}

.calc__spend {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

/* Filled track up to the thumb (--p is set by script). */
.calc__range {
  --p: 10%;
  width: 100%;
  height: 24px;
  margin: 16px 0 4px;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.calc__range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) var(--p), #e6eaf0 var(--p));
}

.calc__range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e6eaf0;
}

.calc__range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.calc__range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(11, 22, 48, 0.18);
  transition: box-shadow 0.15s ease;
  appearance: none;
}

.calc__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(11, 22, 48, 0.18);
}

.calc__range:hover::-webkit-slider-thumb,
.calc__range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 6px var(--blue-soft), 0 2px 6px rgba(11, 22, 48, 0.18);
}

.calc__range:focus-visible {
  outline: none;
}

.calc__range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 6px var(--blue-soft);
}

.calc__ticks {
  display: flex;
  justify-content: space-between;
  color: var(--slate);
  font-size: 12px;
}

.calc__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 14px;
}

.calc__breakdown span {
  color: var(--ink);
  font-weight: 600;
}

.calc__breakdown small {
  font-size: 13px;
}

.calc__price output {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.plan {
  padding: clamp(28px, 4vw, 44px);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--ink);
  color: #c9d2e3;
  box-shadow: 0 40px 80px -40px rgba(11, 22, 48, 0.5);
}

.plan__name {
  color: var(--blue-bright);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  font-weight: 600;
}

.plan__price {
  margin-top: 14px;
  color: #c9d2e3;
  font-size: 16px;
}

.plan__amount {
  color: #fff;
  font-family: var(--font-display);
  font-size: 4rem;
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.plan__plus {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.plan__currency {
  margin-top: 6px;
  color: #93a0b8;
  font-size: 14px;
}

.plan__list {
  display: grid;
  gap: 12px;
  margin-block: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
}

.plan__list li {
  position: relative;
  padding-left: 28px;
  color: #e6ebf4;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--profit);
  border-bottom: 2px solid var(--profit);
  transform: rotate(-45deg);
}

.plan__cta {
  width: 100%;
}

.plan__note {
  margin-top: 14px;
  color: #93a0b8;
  font-family: var(--font-body);
  font-size: 12px;
  text-align: center;
}

/* FAQ --------------------------------------------------------------------- */
.faq {
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px clamp(40px, 6vw, 96px);
}

.faq__intro {
  align-self: start;
  position: sticky;
  top: 100px;
}

.faq__intro .sec-title {
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
}

.faq__intro > p:last-child {
  margin-top: 20px;
  color: var(--slate);
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-size: 20px;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 62ch;
  padding: 0 56px 24px 0;
  color: var(--slate);
}

/* Final CTA --------------------------------------------------------------- */
.final {
  position: relative;
  padding-block: clamp(80px, 10vw, 128px);
  overflow: hidden;
  background: var(--blue);
  color: #d6e2fb;
  text-align: center;
}

.final__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final .sec-title {
  max-width: 18ch;
  color: #fff;
}

.final__inner > p:not(.final__note) {
  max-width: 52ch;
  margin-block: 20px 36px;
  font-size: 18px;
}

.final__note {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 13px;
}

.btn--light {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.4);
}

.btn--light:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px -14px rgba(0, 0, 0, 0.45);
}

.final :focus-visible,
.results :focus-visible,
.testimonials :focus-visible,
.plan :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

.js .payback:not(.is-in) .payback__dot {
  transform: scale(0);
}

/* Interactive chips in feature mocks */
.chip--btn {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chip--btn:hover {
  transform: translateY(-1px);
}

.chip--btn:active {
  transform: scale(0.95);
}

.chip--btn[aria-pressed="true"] {
  border-color: var(--profit);
  background: var(--profit);
  color: #fff;
}

.chip--btn[aria-pressed="true"]::before {
  content: "✓ ";
}

.bid-table .chip--btn {
  background: var(--surface);
  color: var(--blue);
  border-color: rgba(18, 87, 227, 0.4);
}

.bid-table tr:first-child .chip--btn {
  background: var(--blue);
  color: #fff;
}

.bid-table .chip--btn[aria-pressed="true"] {
  border-color: var(--profit);
  background: var(--profit);
  color: #fff;
}

.bid-table s {
  transition: opacity 0.3s ease;
}

.bid-table tr.is-applied s {
  opacity: 0.35;
}

.bid-table tr.is-applied b {
  color: var(--profit-ink);
}

.bid-table tr.is-applied th,
.bid-table tr.is-applied td {
  background: var(--profit-soft);
  transition: background-color 0.3s ease;
}

.action-list small {
  margin-left: 6px;
  color: var(--slate);
  font-size: 12px;
}

.action-list li {
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.action-list li.is-done {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.action-list li.is-done > span {
  color: var(--slate);
  text-decoration: line-through;
  text-decoration-color: rgba(90, 100, 120, 0.4);
}

.action-list {
  margin-top: auto;
}

/* Scroll reveal for content blocks (only when JS can reveal them) */
.js .rise {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease var(--d, 0ms),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms);
}

.js .rise.is-in {
  opacity: 1;
  transform: none;
}

/* Hero entrance: copy lines in sequence, then the product window */
.hero__copy > *,
.hero__visual {
  animation: hero-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hero__copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero__copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero__copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero__copy > :nth-child(5) {
  animation-delay: 0.3s;
}

.hero__visual {
  animation-duration: 1.1s;
  animation-delay: 0.35s;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
}

/* Landing responsive ------------------------------------------------------ */
@media (max-width: 1000px) {
  .feature-lead,
  .pricing__grid,
  .faq__grid,
  .audience__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-lead--flip .feature-lead__copy {
    order: 0;
  }
  .results__grid,
  .quotes {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq__intro {
    position: static;
  }
}

@media (max-width: 860px) {
  .wrap {
    padding-inline: 24px;
  }
  .feature-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    border-top: 0;
    border-left: 2px solid var(--line);
  }
  .step {
    padding-left: 80px;
  }
  .step__num {
    position: absolute;
    left: 0;
    top: 0;
  }
  .audience__list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .apps__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }
  .apps__list {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 16px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__visual::before {
    inset: 18% -16px -24px;
    border-radius: 20px;
  }
  .hero__stack-for {
    width: 100%;
  }
  .mock {
    padding: 14px;
  }
  .roas-row {
    grid-template-columns: minmax(0, 1fr) 3.5rem;
  }
  .roas-row__meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .bid-table th,
  .bid-table td {
    padding: 10px 6px;
    font-size: 12px;
  }
  .bid-table td:nth-child(2) {
    display: none;
  }
  .bid-table th {
    white-space: normal;
  }
  .bid-table .chip {
    padding-inline: 8px;
    font-size: 11px;
  }
  .pop-list li {
    grid-template-columns: minmax(0, 1fr) 4rem 2rem;
  }
  .payback {
    flex-direction: column;
    align-items: stretch;
  }
  .faq-item p {
    padding-right: 0;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #c9d2e3;
  padding-top: 64px;
}

.site-footer .logo__text-culmin {
  color: var(--blue-bright);
}

.site-footer .logo__text-app {
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.site-footer__tagline {
  margin-top: 12px;
  color: #93a0b8;
  font-size: 14.5px;
  max-width: 32ch;
}

.site-footer__nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav a,
.site-footer__contact > a,
.site-footer__social a {
  text-decoration: none;
  color: #c9d2e3;
  font-size: 14.5px;
}

.site-footer__nav a:hover,
.site-footer__contact > a:hover,
.site-footer__social a:hover {
  color: #fff;
}

.site-footer__social {
  margin-top: 18px;
}

.site-footer__social ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.site-footer__social a::after {
  content: "\2197";
  font-size: 0.8em;
  line-height: 1;
  transition: transform 0.15s ease;
}

.site-footer__social a:hover::after {
  transform: translate(1px, -1px);
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 20px;
}

.site-footer__legal p {
  font-family: var(--font-body);
  font-size: 13px;
  color: #93a0b8;
}

@media (max-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Legal documents */
.legal-main {
  padding-block: clamp(36px, 6vw, 80px);
}
.legal-wrap {
  max-width: 1180px;
}
.legal-heading {
  max-width: 850px;
  margin-bottom: 28px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--slate);
  font-size: 14px;
  text-underline-offset: 4px;
}
.legal-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.legal-intro {
  margin-top: 20px;
  max-width: 680px;
  font-size: 18px;
  color: var(--slate);
}
.legal-version {
  margin-top: 16px;
  color: var(--slate);
  font-size: 13px;
}
.legal-draft {
  padding: 16px 20px;
  margin-bottom: 36px;
  border: 1px solid #e4cf95;
  border-radius: 10px;
  background: #fffaf0;
  color: #705214;
  font-size: 14px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 100px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-height: calc(100vh - 125px);
  overflow-y: auto;
}
.legal-toc p {
  font-weight: 600;
  margin-bottom: 12px;
}
.legal-toc ol {
  list-style: none;
  display: grid;
  gap: 12px;
}
.legal-toc a {
  font-size: 13px;
  line-height: 1.5;
  color: var(--slate);
  text-decoration: none;
}
.legal-toc a:hover,
.legal-doc-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.legal-article {
  padding: clamp(20px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
  overflow-wrap: anywhere;
}
.legal-article section {
  scroll-margin-top: 110px;
}
.legal-article section + section {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.legal-article h2 {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 16px;
}
.legal-article p,
.legal-article ul,
.legal-article dl {
  margin-top: 14px;
}
.legal-article p,
.legal-article li,
.legal-article dd {
  color: #334155;
}
.legal-article ul {
  padding-left: 22px;
}
.legal-article li + li {
  margin-top: 10px;
}
.legal-article a,
.legal-contact a {
  color: var(--blue);
  text-underline-offset: 3px;
}
.legal-article code {
  font-family: var(--font-body);
  font-size: 0.86em;
}
.legal-details {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px 20px;
}
.legal-details dt {
  font-weight: 600;
}
.legal-details dd {
  margin: 0;
}
.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-block: 20px;
}
.legal-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}
.legal-table-wrap caption {
  text-align: left;
  color: var(--slate);
  font-size: 13px;
  padding-bottom: 12px;
}
.legal-table-wrap th,
.legal-table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border: 1px solid var(--line);
  min-width: 125px;
}
.legal-table-wrap th {
  background: var(--surface-raised);
}
.legal-guarantee {
  padding: 20px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  background: var(--surface-raised);
}
.legal-guarantee h3 {
  font-size: 17px;
}
.legal-contact {
  margin-top: 32px;
  color: var(--slate);
  font-size: 14px;
}
.legal-doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 32px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--slate);
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
}
.legal-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.legal-card:hover,
.legal-card:focus-within {
  border-color: var(--blue-bright);
  box-shadow: 0 8px 24px -14px #1d4ed840;
}
.legal-card__number {
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 12px;
}
.legal-card h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.3;
}
.legal-card h2 a {
  text-decoration: none;
}
.legal-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.legal-card p {
  margin-top: 14px;
  color: var(--slate);
}
.legal-card__hint {
  display: block;
  margin-top: 24px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 12px;
}
.site-footer__legal-links a {
  text-underline-offset: 3px;
}
@media (max-width: 800px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .legal-toc {
    position: static;
    max-height: none;
  }
  .legal-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
  }
}
@media (max-width: 540px) {
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-toc ol {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .legal-details dd {
    margin-bottom: 14px;
  }
  .legal-card {
    padding: 24px;
  }
  .legal-article {
    padding: 20px;
  }
}
@media print {
  .site-header,
  .site-footer,
  .legal-toc,
  .legal-doc-nav,
  .legal-back,
  .crisp-client,
  .skip-link {
    display: none !important;
  }
  body,
  .legal-article {
    background: white;
    color: black;
  }
  .legal-main {
    padding: 0;
  }
  .legal-layout {
    display: block;
  }
  .legal-article {
    padding: 0;
    border: none;
  }
  .legal-table-wrap {
    overflow: visible;
  }
  .legal-article h2 {
    break-after: avoid;
  }
  .legal-article tr {
    break-inside: avoid;
  }
  .legal-grid {
    display: block;
  }
  .legal-card {
    margin-bottom: 16px;
    break-inside: avoid;
  }
}
