/* RetenOffer — offer page styles. MediaMagic design tokens. */

:root {
  /* Surfaces — cream-tinted, never cool gray */
  --canvas: #fffaf0;
  --surface-soft: #faf5e8;
  --surface-card: #f5f0e0;
  --surface-strong: #ebe6d6;
  --surface-dark: #0a1a1a;
  --surface-dark-elevated: #1a2a2a;

  /* Text */
  --ink: #0a0a0a;
  --body: #3a3a3a;
  --body-strong: #1a1a1a;
  --muted: #6a6a6a;
  --muted-soft: #9a9a9a;
  --hairline: #e5e5e5;
  --hairline-soft: #f0f0f0;
  --on-dark: #ffffff;
  --on-dark-soft: #a0a0a0;

  /* Saturated brand rotation */
  --pink: #ff4d8b;
  --teal: #1a3a3a;
  --lavender: #b8a4ed;
  --peach: #ffb084;
  --ochre: #e8b94a;
  --mint: #a4d4c5;
  --coral: #ff6b5a;

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --content: 1180px;
  --section: 112px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--pink);
  color: #fff;
}

img { max-width: 100%; }

/* ─────────────────────────────  type  ───────────────────────────── */

.display {
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1.04;
  margin: 0;
}

.d-xl { font-size: clamp(38px, 6.2vw, 74px); letter-spacing: -0.055em; }
.d-lg { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -0.05em; }
.d-md { font-size: clamp(25px, 3.1vw, 38px); }
.d-sm { font-size: clamp(21px, 2.3vw, 29px); letter-spacing: -0.035em; }

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--body-strong);
  margin: 0;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  opacity: 0.35;
  flex: none;
}

.lede {
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.5;
  color: var(--body-strong);
  letter-spacing: -0.012em;
  max-width: 62ch;
}

strong, b { color: var(--body-strong); font-weight: 600; }

/* ────────────────────────────  layout  ──────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 28px;
}

section.band { padding: var(--section) 0; }
section.band + section.band { padding-top: 0; }

.band-dark {
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  padding: var(--section) 0;
}

/* A preceding .band already contributes its bottom padding as the gap;
   adding margin here would double the cream space before the dark block. */
section.band + .band-dark { margin-top: 0; }
.band-dark .display,
.band-dark h3 { color: var(--on-dark); }
.band-dark .eyebrow { color: var(--on-dark-soft); }
.band-dark .eyebrow::before { background: var(--on-dark); opacity: 0.4; }
.band-dark .lede { color: rgba(255, 255, 255, 0.82); }
/* `b` also has to be reset here: the global rule paints it near-black, which is
   invisible on the dark band. */
.band-dark strong,
.band-dark b { color: #fff; }

.sec-head { margin-bottom: 48px; max-width: 78ch; }
.sec-head .lede { margin-top: 20px; }

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

/* ─────────────────────────────  cards  ──────────────────────────── */

.card {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
}

.card-plain {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
}

.card h3 + p { margin-top: 10px; }
.card p { font-size: 15px; }

.card-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-soft);
  display: block;
  margin-bottom: 14px;
}

/* Saturated feature cards — the Clay "brand rotation" */
.c-pink { background: var(--pink); border-color: var(--pink); color: rgba(255,255,255,0.9); }
.c-teal { background: var(--teal); border-color: var(--teal); color: rgba(255,255,255,0.78); }
.c-lav { background: var(--lavender); border-color: var(--lavender); color: rgba(10,10,10,0.72); }
.c-peach { background: var(--peach); border-color: var(--peach); color: rgba(10,10,10,0.72); }
.c-ochre { background: var(--ochre); border-color: var(--ochre); color: rgba(10,10,10,0.72); }
.c-mint { background: var(--mint); border-color: var(--mint); color: rgba(10,10,10,0.72); }
.c-coral { background: var(--coral); border-color: var(--coral); color: rgba(255,255,255,0.88); }

.c-pink h3, .c-coral h3, .c-teal h3 { color: #fff; }
.c-lav h3, .c-peach h3, .c-ochre h3, .c-mint h3 { color: var(--ink); }
.c-pink .card-num, .c-coral .card-num, .c-teal .card-num { color: rgba(255,255,255,0.65); }
.c-lav .card-num, .c-peach .card-num, .c-ochre .card-num, .c-mint .card-num { color: rgba(10,10,10,0.5); }

/* ─────────────────────────────  quote  ──────────────────────────── */

.quote {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 22px;
  margin: 0;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 500;
}
.band-dark .quote { border-left-color: var(--ochre); color: #fff; }

/* ────────────────────────────  topbar  ──────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 240, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-in {
  max-width: var(--content);
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--pink);
  flex: none;
}
.topbar nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.topbar nav a:hover { color: var(--ink); background: var(--surface-card); }

.lang {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  overflow: hidden;
  flex: none;
}
.lang button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.lang button.on { background: var(--ink); color: #fff; }

/* ─────────────────────────────  hero  ───────────────────────────── */

.hero { padding: 92px 0 var(--section); }
.hero .d-xl { max-width: 17ch; }
.hero .lede { margin-top: 26px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.hero-meta b { color: var(--ink); font-weight: 500; }

.thesis {
  margin-top: 44px;
  background: var(--teal);
  border-radius: var(--r-xl);
  padding: 40px;
  color: rgba(255,255,255,0.8);
}
.thesis .d-sm { color: #fff; max-width: 26ch; }
.thesis p { margin-top: 16px; max-width: 58ch; font-size: 15.5px; }

/* ───────────────────────────  diagrams  ─────────────────────────── */

.fig {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: var(--surface-soft);
  padding: 34px;
  overflow: hidden;
}
.band-dark .fig {
  background: var(--surface-dark-elevated);
  border-color: rgba(255,255,255,0.1);
}
.fig figcaption {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  line-height: 1.5;
}
.band-dark .fig figcaption { border-top-color: rgba(255,255,255,0.12); color: var(--on-dark-soft); }

.fig-scroll { overflow-x: auto; }
.fig-scroll > svg { display: block; min-width: 720px; width: 100%; height: auto; }

/* ─────────────────────────────  steps  ──────────────────────────── */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step-n {
  counter-increment: step;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-soft);
  padding-top: 3px;
}
.step-n::before { content: "0" counter(step); }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; }

/* ──────────────────────  duty lists (we / you)  ─────────────────── */

.duty {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.duty li {
  border: 1px solid var(--hairline);
  background: var(--canvas);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--body-strong);
  letter-spacing: -0.01em;
}
.duty li span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.c-mint .duty li { background: rgba(255, 250, 240, 0.8); border-color: rgba(10,10,10,0.12); }
.duty-rest {
  margin-top: 22px;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ──────────────────────────  check list  ────────────────────────── */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 640px;
}
.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--hairline);
  background: var(--surface-soft);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--body-strong);
  letter-spacing: -0.01em;
}
.check-list li span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.check-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}
.check-ic.opt { background: var(--surface-card); border: 1px dashed var(--muted-soft); }
.check-ic svg { width: 13px; height: 13px; }

/* ───────────────────────────  CTA band  ─────────────────────────── */

.cta-band {
  background: var(--teal);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 64px);
  color: rgba(255,255,255,0.82);
}
.cta-band .display { color: #fff; max-width: 22ch; }
.cta-band p { margin-top: 18px; max-width: 56ch; font-size: 16px; }
.cta-band .cta-note {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ────────────────────────────  footer  ──────────────────────────── */

footer {
  border-top: 1px solid var(--hairline);
  margin-top: var(--section);
  padding: 40px 0 60px;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.foot-in a { color: var(--muted); }

/* ─────────────────────────  responsive  ─────────────────────────── */

@media (max-width: 900px) {
  :root { --section: 76px; }
  .g3 { grid-template-columns: 1fr; }
  .thesis { padding: 28px; }
  .fig { padding: 22px; }
  .topbar nav { display: none; }
}

@media (max-width: 620px) {
  .g2 { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .hero { padding: 56px 0 var(--section); }
}

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