/* eTape marketing page — "Daylight Ledger" palette, dark-mode-first.
   Signature element: the depth-ladder divider below the hero — a cumulative
   order-book depth chart rendered in pure CSS, echoing the DOM ladder feature
   and the green/red bars of the logo mark. Used once, boldly; everywhere else
   the page stays quiet (hairline ledger rules, restrained type). */

:root {
  --bg: #14120e;
  --surface: #1c1a15;
  --surface-raised: #221f18;
  --border: #2e2a22;
  --text: #ece7db;
  --text-muted: #9a9385;
  --green: #35b888;
  --red: #e5637a;
  --accent: #c79a4b;
  --accent-ink: #14120e;
  --shadow: rgba(0, 0, 0, 0.45);

  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 42rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaf7;
    --surface: #f2f0ea;
    --surface-raised: #ffffff;
    --border: #ddd9cf;
    --text: #171a1e;
    --text-muted: #6a7280;
    --green: #177a58;
    --red: #c2334d;
    --accent: #9a6a1b;
    --accent-ink: #fbfaf7;
    --shadow: rgba(23, 20, 12, 0.1);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

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

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- top bar ---------- */

.topbar {
  border-bottom: 1px solid var(--border);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.topbar nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.topbar nav a:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 42rem;
  margin: 0 0 1.4rem;
}

.hero .subline {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.6vw, 0.98rem);
  color: var(--text-muted);
  letter-spacing: 0.01em;
  max-width: 38rem;
  margin: 0 0 2.2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: border-color 0.15s ease, background 0.15s ease;
  }
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

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

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

.btn-ghost:hover {
  border-color: var(--accent);
}

/* ---------- depth-ladder divider (signature element) ---------- */

.depth-divider {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.depth-divider .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 84px;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.depth-divider .bar {
  flex: 1 1 auto;
  max-width: 14px;
  border-radius: 2px 2px 0 0;
}

.depth-divider .bar.bid {
  background: var(--green);
  opacity: 0.85;
}

.depth-divider .bar.ask {
  background: var(--red);
  opacity: 0.85;
}

.depth-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.6rem 0 0.9rem;
}

/* ---------- screenshot ---------- */

.screenshot-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.screenshot-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.6rem;
  box-shadow: 0 24px 60px -20px var(--shadow);
}

.screenshot-frame .chrome {
  display: flex;
  gap: 6px;
  padding: 0.5rem 0.6rem 0.7rem;
}

.screenshot-frame .chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.screenshot-frame img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ---------- lede paragraph ---------- */

.lede {
  padding: clamp(1rem, 4vw, 2rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.lede p {
  max-width: var(--measure);
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  color: var(--text);
  text-align: left;
}

.lede a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* ---------- section shell ---------- */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--border);
}

.section > .wrap > .eyebrow {
  margin-bottom: 0.5rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 2.2rem;
  max-width: 34rem;
}

/* ---------- why eTape — ledger list ---------- */

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

.ledger-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.ledger-row .glyph {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
  padding-top: 4px;
}

.ledger-row .glyph i {
  display: block;
  width: 5px;
  border-radius: 1px 1px 0 0;
}

.ledger-row .glyph i:nth-child(1) {
  background: var(--green);
  height: 60%;
}

.ledger-row .glyph i:nth-child(2) {
  background: var(--green);
  height: 100%;
}

.ledger-row .glyph i:nth-child(3) {
  background: var(--red);
  height: 75%;
}

.ledger-row .glyph i:nth-child(4) {
  background: var(--red);
  height: 40%;
}

.ledger-row p {
  margin: 0;
  max-width: 46rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.ledger-row p strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- features grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 860px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  padding: 1.6rem 1.5rem;
}

.feature-card:nth-child(5) {
  grid-column: span 2;
}

@media (max-width: 560px) {
  .feature-card:nth-child(5) {
    grid-column: span 1;
  }
}

.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card li {
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.55;
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
}

.feature-card li:first-child {
  border-top: none;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  margin: 0 auto 0.6rem;
}

.cta-band .lead {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta-band .cta-row {
  justify-content: center;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat .n {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.stat .l {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ---------- disclaimer ---------- */

.disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
}

.disclaimer .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.7rem;
}

.disclaimer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 50rem;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 0 3rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-brand img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

footer nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

footer nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}
