/* eJournal marketing page — plain static CSS, no build step */

:root {
  --bg: #F4F5F9;
  --surface: #FFFFFF;
  --border: #E7E9F0;
  --text: #1B1F2A;
  --text-muted: #6B7180;
  --accent: #D99125;
  --accent-ink: #1B1F2A;
  --profit: #16A34A;
  --loss: #DC2626;
  --shadow: 0 1px 2px rgba(27, 31, 42, 0.05), 0 10px 28px -10px rgba(27, 31, 42, 0.14);
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --max-w: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1115;
    --surface: #171A21;
    --border: #2A2F3A;
    --text: #E6E9EF;
    --text-muted: #9AA3B2;
    --accent: #E0A340;
    --accent-ink: #0F1115;
    --profit: #3FB950;
    --loss: #F85149;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 34px -12px rgba(0, 0, 0, 0.55);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-family: var(--font-mono);
  font-size: 13px;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

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

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 1.55rem + 2.4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.1rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
}

p {
  margin: 0;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46em;
}

.section-head {
  max-width: 46em;
  margin: 0 0 48px;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 1.02rem;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

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

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

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a {
  text-decoration: none;
  color: inherit;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 76px 0 64px;
  overflow: hidden;
}

.hero-swatches {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 360px;
  height: 360px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero-swatches span {
  width: 100%;
  padding-top: 100%;
  border-radius: 4px;
  background: var(--border);
}

.hero-swatches span.p { background: color-mix(in srgb, var(--profit) 55%, transparent); }
.hero-swatches span.l { background: color-mix(in srgb, var(--loss) 45%, transparent); }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .lede {
  margin-top: 20px;
}

.hero-copy .btn-row {
  margin-top: 30px;
}

.trust-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-row span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--profit);
}

.hero-art {
  position: relative;
}

.hero-art-frame {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
}

.hero-art-frame img {
  border-radius: 10px;
  width: 100%;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    max-width: 460px;
  }
  .hero-swatches {
    display: none;
  }
}

/* ---------- Stat strip ---------- */

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

.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 24px;
}

.stat-cell {
  padding: 0 22px;
  border-left: 1px solid var(--border);
}

.stat-cell:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .stat-strip .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }
  .stat-cell:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .stat-strip .container {
    grid-template-columns: 1fr;
  }
  .stat-cell {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 18px;
  }
  .stat-cell:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ---------- Section rhythm ---------- */

section {
  padding: 92px 0;
}

/* ---------- Features ---------- */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

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

/* ---------- Screenshots ---------- */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-card img {
  width: 100%;
  display: block;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.shot-caption {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shot-caption strong {
  color: var(--text);
  font-weight: 650;
}

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

/* ---------- Integrations ticker ---------- */

.ticker-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: ticker-scroll 34s linear infinite;
}

.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.chip.csv {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    overflow-x: auto;
    flex-wrap: wrap;
    width: auto;
  }
}

/* ---------- Download band ---------- */

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

.download-band .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.download-band h2 {
  max-width: 20em;
}

.download-band p {
  color: var(--text-muted);
  max-width: 46em;
  font-size: 1.02rem;
}

.download-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 48px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 52px 0 44px;
  }
}
