/* ReturnDashboards marketing page. One loud colour, lots of air, big plain words.
   System fonts only: the site's CSP allows nothing but its own files. */
:root {
  --ink: #141414;
  --muted: #5f5b55;
  --paper: #fffdf8;
  --card: #ffffff;
  --rule: #ece7dd;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: #ffe6dc;
  --ok: #1f8a4c;
  --sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2efe9;
    --muted: #a9a49b;
    --paper: #121110;
    --card: #1b1a18;
    --rule: #2b2926;
    --accent: #ff6b35;
    --accent-ink: #120a06;
    --accent-soft: #3a1d11;
    --ok: #4cc27f;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 19px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }

/* Header */
.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.mark b { font-weight: 800; }
.mark-tile {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
  font-size: 17px;
}

/* Layout */
main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { max-width: 720px; padding: 64px 0; border-bottom: 1px solid var(--rule); }
section:last-child { border-bottom: 0; }

h1, h2 { font-family: var(--sans); letter-spacing: -0.03em; font-weight: 800; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; margin: 12px 0 28px; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; margin: 0 0 18px; }
p { margin: 0 0 16px; }
.lede { font-size: 22px; color: var(--muted); max-width: 34em; }
.hl {
  color: var(--accent);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.pull {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  border-left: 4px solid var(--accent);
  padding-left: 18px;
  margin-top: 24px;
}

/* Hero */
.hero { padding-top: 48px; padding-bottom: 56px; }

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.cta-note { font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* Before / after: a thick PDF, then the extract */
.before-after {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.5fr);
  gap: 32px;
  align-items: center;
  padding-top: 24px;
}
.ba-label {
  font: 800 13px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.ba-after .ba-label { color: var(--accent); }
.ba-caption { font-size: 16px; color: var(--muted); margin: 18px 0 0; max-width: 26em; }
.ba-arrow { font: 800 40px/1 var(--sans); color: var(--accent); }

/* The stack: one top sheet, the thickness drawn with layered shadows */
.stack {
  position: relative;
  width: min(100%, 260px);
  margin: 0 auto 0 0;
  padding: 0 0 26px 0;
  transform: rotate(-2deg);
}
.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  aspect-ratio: 8.5 / 11;
  background: #fff;
  color: #222;
  border: 1px solid #d9d4ca;
  border-radius: 3px;
  padding: 22px 20px;
  box-shadow:
    2px 2px 0 #f3efe7, 3px 3px 0 #d9d4ca,
    5px 5px 0 #f3efe7, 6px 6px 0 #d9d4ca,
    8px 8px 0 #f3efe7, 9px 9px 0 #d9d4ca,
    11px 11px 0 #f3efe7, 12px 12px 0 #d9d4ca,
    14px 14px 0 #f3efe7, 15px 15px 0 #d9d4ca,
    17px 17px 0 #f3efe7, 18px 18px 0 #d9d4ca,
    20px 20px 0 #f3efe7, 21px 21px 0 #cfc9bd,
    26px 34px 40px -12px rgba(0, 0, 0, 0.35);
}
.sheet-form { font: 900 22px/1 var(--sans); letter-spacing: -0.02em; }
.sheet-title { font: 600 10px/1.3 var(--sans); color: #555; border-bottom: 2px solid #222; padding-bottom: 8px; margin-bottom: 4px; }
.sheet i { display: block; height: 6px; border-radius: 3px; background: #e6e1d8; }
.sheet i.short { width: 60%; }
.sheet-tag {
  margin-top: auto;
  align-self: flex-end;
  font: 700 9px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b33;
  border: 1px solid #b33;
  padding: 4px 6px;
  border-radius: 3px;
  transform: rotate(-4deg);
}
.stack-count {
  position: absolute;
  right: -14px;
  bottom: 0;
  background: var(--ink);
  color: var(--paper);
  font: 800 14px/1 var(--sans);
  padding: 9px 12px;
  border-radius: 999px;
  transform: rotate(2deg);
}

/* The extract: line, description with its source, amount */
.extract {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 22px 14px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(0, 0, 0, 0.25);
  font-family: var(--sans);
}
.extract figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font: 800 13px/1.3 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.x-sample { color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: none; }
.x-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
}
.x-line {
  font: 700 12px/1 var(--mono);
  color: var(--accent);
}
.x-desc { display: flex; flex-direction: column; min-width: 0; font-size: 15px; line-height: 1.35; }
.x-desc b { font-weight: 700; }
.x-desc small { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.x-desc small.x-note { color: var(--ink); opacity: 0.8; }
.x-amt { font: 600 15px/1.35 var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.x-group {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px -10px 2px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  font: 800 12px/1.3 var(--sans);
  letter-spacing: 0.02em;
}
.x-group .x-amt { font-size: 13px; color: var(--muted); }
.x-sum { border-bottom: 2px solid var(--ink); }
.x-sum .x-amt, .x-foot .x-amt { font-weight: 800; }
.x-foot { border-bottom: 0; }
.x-foot .ok {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  padding: 0 8px;
  border-radius: 6px;
}

/* Band: a full-width tinted strip for the problem statement */
.band { max-width: 720px; }

/* Steps: numbered tiles */
.steps { max-width: none; }
.steps ol {
  list-style: none;
  counter-reset: step;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 20px;
  font-size: 17px;
  line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: 800 16px/1 var(--sans);
}
.steps li strong { display: block; font-family: var(--sans); font-size: 18px; margin-bottom: 4px; letter-spacing: -0.01em; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: 999px;
  font: 700 17px/1 var(--sans);
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px -12px var(--accent);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px var(--accent); }
.button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.button-small { padding: 10px 18px; font-size: 15px; box-shadow: none; }
.button-invert { background: var(--paper); color: var(--accent); box-shadow: none; }

/* Close: the one loud block on the page */
.close {
  max-width: none;
  margin: 48px 0 0;
  padding: 64px 56px;
  border: 0;
  border-radius: 24px;
  background: var(--accent);
  color: var(--accent-ink);
}
.close h2 { font-size: clamp(36px, 5vw, 56px); }
.close p { font-size: 21px; max-width: 32em; opacity: 0.95; }
.close .button { margin-top: 12px; }

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 14px/1.4 var(--sans);
}
.foot-tag { font-weight: 700; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .button, .button:hover { transition: none; transform: none; }
  .stack { transform: none; }
}

@media (max-width: 900px) {
  .before-after { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); justify-self: center; }
  .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  main, .top, footer { padding-left: 16px; padding-right: 16px; }
  section { padding: 44px 0; }
  .lede { font-size: 19px; }
  .pull { font-size: 20px; }
  .steps ol { grid-template-columns: 1fr; }
  .close { padding: 40px 24px; border-radius: 18px; }
  .button-small { padding: 9px 14px; font-size: 14px; }
  footer { flex-direction: column; gap: 6px; }
}
