/* Sell Data Exchange homepage mockup v7. Original CSS. 24 Nov 2026.
   Light Tideline palette. No third-party assets. Motion is CSS transforms only. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141516;
  --muted: #5A5C5B;
  --paper: #F7F6F2;
  --rule: #C8C7C2;
  --accent: #0E5A6B;
  --accent-hover: #0A4552;
  --on-accent: #F7F6F2;
  --font-sans: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --max: 1200px;
  --page-pad: 48px;
  --header-h: 56px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html[data-motion="off"] { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); }
h1, h2 { font-family: var(--font-serif); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { top: 8px; }

.sc {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.wrap.narrow { max-width: 780px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--accent); }
.nav-main {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav-main a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-main a:hover { color: var(--accent); }
.motion-toggle {
  appearance: none;
  background: none;
  border: 0;
  color: var(--muted);
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}
.motion-toggle svg { fill: currentColor; display: block; }
.motion-toggle .play-icon { display: none; }
html[data-motion="off"] .motion-toggle .pause-icon { display: none; }
html[data-motion="off"] .motion-toggle .play-icon { display: block; }
.motion-toggle:hover { color: var(--ink); }
.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--ink);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  border-radius: 0;
  margin-left: auto;
}

/* Hero: fills the first viewport. Left copy is the why. Right is the solution in motion. */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  padding: 0;
}
.hero-shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--page-pad) 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.hero-main {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  column-gap: 56px;
  align-items: stretch;
  min-height: 0;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 0 16px;
}
.hero h1 {
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin: 0 0 20px;
}
.hero-line {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.35;
  color: var(--muted);
  max-width: 30ch;
  margin: 0 0 28px;
}
.hero-actions { margin: 0; }
.hero-aside {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  max-width: 28ch;
}

.money {
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
}
.money-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: 4px 0 0;
  min-height: 0;
}
.money-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 16px;
  flex: 0 0 auto;
}
.money-kicker { margin: 0; padding-top: 14px; }

.stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.stage-scene {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 8px;
  align-items: center;
  align-content: center;
  overflow: visible;
}
.flow-rail {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
  z-index: 0;
}
.lane {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.lane-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  flex: 0 0 auto;
}
.stack {
  position: relative;
  width: 108px;
  height: 150px;
  flex: 0 0 auto;
  margin: 0;
}
.doc,
.flyer {
  width: 100px;
  height: 76px;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}
.doc {
  position: absolute;
  left: 4px;
  top: 20px;
}
.stack-src .d1 { top: 8px;  left: 0;  transform: rotate(-3.5deg); animation: idleDoc 9s var(--ease) infinite alternate; }
.stack-src .d2 { top: 22px; left: 8px; transform: rotate(-0.5deg); animation: idleDoc 11s var(--ease) infinite alternate-reverse; }
.stack-src .d3 { top: 36px; left: 4px; transform: rotate(2.2deg); animation: idleDoc 8s var(--ease) infinite alternate; }
.stack-src .d4 { top: 52px; left: 10px; transform: rotate(0.6deg); animation: idleDoc 10s var(--ease) infinite alternate-reverse; }
@keyframes idleDoc {
  from { translate: 0 0; }
  to { translate: 0 -5px; }
}
/* Use translate so we don't clobber rotate on the same transform if we did; actually
   `translate` CSS property composes independently of `transform`. Good. */

.doc-line {
  display: block;
  height: 2px;
  background: var(--rule);
  width: 100%;
  transform-origin: left center;
}
.doc-line.l2 { width: 78%; }
.doc-line.l3 { width: 88%; }
.doc-line.l4 { width: 62%; }
.doc.is-clean,
.flyer.is-clean {
  border-color: var(--accent);
}
.doc.is-clean .doc-line.redact,
.flyer.is-clean .doc-line.l2,
.flyer.is-clean .doc-line.l3 {
  height: 6px;
  width: 72%;
  background: var(--accent);
}

.stack-out .out {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}
.stack-out .out.is-in {
  opacity: 1;
  transform: rotate(var(--r, 0deg));
}
.stack-out .o1 { top: 18px; left: 2px; --r: -2deg; }
.stack-out .o2 { top: 34px; left: 8px; --r: 1.4deg; }
.stack-out .o3 { top: 50px; left: 4px; --r: -0.6deg; }

.gate {
  position: relative;
  width: 88px;
  height: 150px;
  margin: 0;
  flex: 0 0 auto;
  overflow: hidden;
}
.gate-post {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 6px;
  background: var(--ink);
}
.gp-l { left: 0; }
.gp-r { right: 0; }
.gate-top {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent);
}
.gate-scan { display: none; }

.flyer {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.stage-payoff {
  flex: 0 0 auto;
  margin-top: 8px;
  min-width: 0;
}
.stage-range {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stage-range.is-swap { animation: rangeIn 0.55s var(--ease); }
@keyframes rangeIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: none; }
}
.stage-label {
  font-size: 15px;
  color: var(--accent);
  margin: 0;
}

.money-source {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  flex: 0 0 auto;
}
.note-link { margin-left: 0.2em; }

.hero-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 32px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  flex: 0 0 auto;
}
.hero-steps li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-steps .step-num { color: var(--accent); }
.hero-steps .step-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
}

/* Buttons */
.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 500 15px/1 var(--font-sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  color: var(--paper);
  background: var(--ink);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn:disabled {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  opacity: 0.35;
  cursor: not-allowed;
}
.btn:focus-visible,
.nav-toggle:focus-visible,
.motion-toggle:focus-visible,
a:focus-visible,
.seg button:focus-visible,
.text-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Lower sections */
.section { padding: 72px 0 80px; border-top: 1px solid var(--rule); }
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  max-width: 16ch;
}
.kicker { margin: 0 0 16px; }

.buy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--ink);
}
.buy-grid li {
  padding: 24px 28px 28px 0;
  border-bottom: 1px solid var(--rule);
}
.buy-grid li:nth-child(3n+2) { padding-left: 28px; padding-right: 28px; }
.buy-grid li:nth-child(3n) { padding-right: 0; padding-left: 28px; }
.buy-name {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.buy-note { font-size: 15px; color: var(--muted); margin: 0; }

.qualify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.qualify-lead { font-size: 18px; color: var(--muted); max-width: 28ch; margin: 16px 0 0; }
.qualify-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 18px;
  letter-spacing: -0.015em;
}
.qualify-list li:last-child { border-bottom: 1px solid var(--rule); }
.q-mark {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  background: var(--accent);
  flex: 0 0 10px;
}

.section-notes h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.section-notes p { margin: 0 0 1em; }
.section-notes p:last-child { margin: 0; }

.grid-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.fit-intro .section-title,
.fit-intro h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 14ch;
}
.fit-intro .eligibility { font-size: 16px; }
.fit-intro .trust { font-size: 15px; color: var(--muted); }
.fit {
  border-left: 1px solid var(--ink);
  padding-left: 36px;
}
.fit-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.fit-head h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.q-label {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
  margin: 0 0 24px;
}
.seg button {
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  min-height: 48px;
  padding: 8px 10px;
  margin: 0;
  font: 500 13px/1.2 var(--font-sans);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  border-radius: 0;
}
.seg button:nth-child(2n) { border-right: 0; }
.seg button:nth-last-child(-n+2) { border-bottom: 0; }
.seg.seg-5 button:last-child,
.seg.seg-7 button:last-child {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}
.seg.seg-5 button:nth-child(3),
.seg.seg-5 button:nth-child(4),
.seg.seg-7 button:nth-child(5),
.seg.seg-7 button:nth-child(6) { border-bottom: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.seg button:hover:not([aria-pressed="true"]) { background: rgba(14, 90, 107, 0.06); }
.fit-actions { display: flex; align-items: center; gap: 16px; }
.text-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font: 500 13px var(--font-sans);
  cursor: pointer;
  min-height: 44px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-btn:hover { color: var(--ink); }
.result { display: none; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.result.is-open { display: block; }
.result h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 8px;
}
.result-mark { display: block; margin-bottom: 6px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.site-footer { border-top: 1px solid var(--ink); padding: 40px 0 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 24px;
}
.footer-brand .updated { margin-top: 8px; font-size: 12px; color: var(--muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
  align-content: start;
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.footer-links a:hover { color: var(--accent); }
.footer-note {
  grid-column: 1 / -1;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  max-width: 48em;
}

/* Reveals and entrance */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js .hero h1,
html.js .hero-line,
html.js .hero-actions,
html.js .money,
html.js .hero-steps li {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) forwards;
}
html.js .hero-line { animation-delay: 0.08s; }
html.js .hero-actions { animation-delay: 0.14s; }
html.js .money { animation-delay: 0.12s; }
html.js .hero-steps li:nth-child(1) { animation-delay: 0.22s; }
html.js .hero-steps li:nth-child(2) { animation-delay: 0.3s; }
html.js .hero-steps li:nth-child(3) { animation-delay: 0.38s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js .hero h1,
  html.js .hero-line,
  html.js .hero-actions,
  html.js .money,
  html.js .hero-steps li {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .stage-range { animation: none !important; }
  .stack-src .doc, .gate-scan, .flyer { animation: none !important; }
  html { scroll-behavior: auto; }
}
html[data-motion="off"] [data-reveal],
html[data-motion="off"] .hero h1,
html[data-motion="off"] .hero-line,
html[data-motion="off"] .hero-actions,
html[data-motion="off"] .money,
html[data-motion="off"] .hero-steps li {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}
html[data-motion="off"] .stage-range {
  animation: none !important;
}
html[data-motion="off"] .stack-src .doc,
html[data-motion="off"] .gate-scan,
html[data-motion="off"] .flyer {
  animation: none !important;
}
html[data-motion="off"] .flyer { opacity: 0 !important; }
html[data-motion="off"] .stack-out .out {
  opacity: 1;
  transform: rotate(var(--r, 0deg));
}

@media (max-width: 800px) {
  :root { --page-pad: 24px; }
  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 24px 16px;
    margin: 0;
  }
  .nav-main.is-open { display: flex; }
  .nav-main a { min-height: 44px; display: flex; align-items: center; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }

  .hero-shell { padding: 14px var(--page-pad) 10px; }
  .hero-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 auto;
  }
  .hero-copy { display: contents; padding: 0; }
  .hero h1 {
    order: 1;
    max-width: none;
    margin: 0 0 8px;
    font-size: clamp(30px, 8.2vw, 38px);
  }
  .hero-line { order: 2; margin: 0 0 12px; font-size: 16px; }
  .hero-actions { order: 3; }
  .hero-actions .btn { width: 100%; }
  .money {
    order: 4;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    border-left: 0;
    padding-left: 0;
    min-height: 0;
  }
  .hero-aside { margin-top: 10px; }
  .money-card { padding: 2px 0 0; }
  .money-head { margin-bottom: 6px; }
  .money-kicker { padding-top: 14px; }
  .stage-scene {
    min-height: 128px;
    column-gap: 4px;
  }
  .lane-label { font-size: 10px; letter-spacing: 0.04em; margin-bottom: 6px; }
  .stack { width: 70px; height: 96px; }
  .doc, .flyer { width: 64px; height: 48px; padding: 7px 6px; }
  .gate { width: 56px; height: 96px; }
  .stage-payoff { margin-top: 2px; }
  .stage-range { font-size: clamp(30px, 9vw, 40px); margin-bottom: 2px; }
  .stage-label { margin: 0; }
  .money-source { margin-top: 8px; padding-top: 8px; }
  .hero-steps {
    margin-top: 10px !important;
    padding-top: 10px !important;
    gap: 4px !important;
  }
  .hero-steps {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
  }
  .hero-steps li { flex-direction: row; align-items: baseline; gap: 12px; }
  .hero-steps .step-title { font-size: 15px; }

  .section { padding: 48px 0 56px; }
  .buy-grid { grid-template-columns: 1fr; }
  .buy-grid li,
  .buy-grid li:nth-child(3n+2),
  .buy-grid li:nth-child(3n) { padding: 18px 0; }
  .qualify-grid { grid-template-columns: 1fr; gap: 24px; }
  .grid-fit { grid-template-columns: 1fr; gap: 28px; }
  .fit { border-left: 0; border-top: 1px solid var(--ink); padding: 24px 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; margin-top: 16px; }
}
