/* public/landing.css — homepage-only redesign, scoped under body.landing so
   nothing else (admin, intake forms, status pages) is touched. Loaded after
   style.css so these rules win. Direction: clean, minimal, warm off-white
   ("bone"/"pearl") instead of the navy/gold trading-desk look used
   elsewhere, big confident sans type, lots of quiet whitespace, one accent
   color used sparingly. */

body.landing {
  --bone: #f7f4ee;
  --pearl: #efece1;
  --ink: #18160f;
  --ink-soft: #5c5848;
  --hairline: #e4ddc9;
  background: var(--bone);
  color: var(--ink);
}

/* ---- nav: quiet hairline instead of a heavy navy bar ---- */

body.landing .site-nav {
  background: var(--bone);
  box-shadow: none;
  border-bottom: 1px solid var(--hairline);
}

body.landing .wordmark {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0.1em;
  border-bottom-color: var(--gold);
}

body.landing .site-nav nav a { color: var(--ink-soft); }
body.landing .site-nav nav a:hover { color: var(--ink); }
body.landing .site-nav nav a.cta {
  background: var(--ink);
  color: var(--bone);
  border-radius: 999px;
  padding: 9px 18px;
}
body.landing .site-nav nav a.cta:hover { background: #000; }

body.landing .site-nav-inner { padding: 12px 24px; }

/* ---- price ticker: scrolling strip at the very top of the page, before
   the nav - hides itself until EIA_API_KEY is configured. ---- */

.price-ticker-strip {
  background: var(--ink);
  overflow: hidden;
}

.price-ticker-strip .ticker-viewport { overflow: hidden; }

.price-ticker-strip .ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}

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

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

.price-ticker-strip .ticker-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 22px;
  font-size: 12px;
  white-space: nowrap;
  color: #cfc9b8;
}

.price-ticker-strip .ticker-item strong { color: #fff; font-weight: 600; }
.price-ticker-strip .ticker-change { font-weight: 600; }
.price-ticker-strip .ticker-change.up { color: #7fd99a; }
.price-ticker-strip .ticker-change.down { color: #e79488; }
.price-ticker-strip .ticker-change.flat { color: #9c9788; }
.price-ticker-strip .ticker-placeholder { color: #8a8574; font-style: italic; }

/* Single placeholder span, nothing to loop yet - park it still and
   centered rather than animating a seam-less single item. */
.price-ticker-strip .ticker-track:has(.ticker-placeholder) {
  animation: none;
  width: 100%;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .price-ticker-strip .ticker-track { animation: none; }
  .price-ticker-strip .ticker-viewport { overflow-x: auto; }
}

/* ---- hero: the page's main focus, between the two ticker bands - a
   short line, not a pitch, since visitors here are being directed, not
   cold-sold. ---- */

body.landing .hero {
  background: var(--bone);
  color: var(--ink);
  padding: 32px 24px 24px;
}

body.landing .hero-inner { max-width: 640px; }

body.landing .hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}

body.landing .hero p.lead {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 18px;
}

body.landing .hero-ctas { align-items: center; }

body.landing .btn-gold {
  background: var(--ink);
  color: var(--bone);
  box-shadow: none;
  border-radius: 999px;
  padding: 15px 30px;
}
body.landing .btn-gold:hover { background: #000; transform: none; box-shadow: none; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 15px 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.btn-text span { transition: transform 0.15s var(--ease); }
.btn-text:hover span { transform: translateX(3px); }

/* ---- section headings ---- */

body.landing .section-heading .eyebrow { color: var(--gold); }
body.landing .section-heading h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
body.landing .section-heading p { color: var(--ink-soft); }
body.landing .section-heading { margin-bottom: 22px; }

/* ---- "how it works": numbered, not iconified - order is real information ---- */

body.landing #how-it-works.section { padding: 16px 24px 24px; }
body.landing #how-it-works .feature-grid { gap: 22px; }

body.landing .feature-num {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--gold);
  margin-bottom: 6px;
}

body.landing .feature h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

body.landing .feature p { color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; }

/* ---- news reel: a continuously-scrolling filmstrip of slide cards at
   the bottom of the page, not a static grid - new headlines keep moving
   through rather than sitting still. ---- */

.news-reel-section {
  background: var(--pearl);
  border-top: 1px solid var(--hairline);
  padding: 18px 0 20px;
}

.news-reel-section .market-subhead {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 10px;
  padding: 0 24px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.news-reel { overflow: hidden; }

.reel-viewport { overflow: hidden; }

.reel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 0 24px;
  animation: reel-scroll 70s linear infinite;
}

.news-reel:hover .reel-track { animation-play-state: paused; }

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

.reel-slide {
  flex-shrink: 0;
  width: 210px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.reel-slide:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(24, 22, 15, 0.1); }

.reel-slide-image {
  width: 100%;
  height: 64px;
  object-fit: cover;
  display: block;
  background: var(--pearl);
}

.reel-slide-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink) 0%, #2c2822 100%);
}

.reel-slide-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }

.reel-slide-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gold);
  font-weight: 700;
}

.reel-slide-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
  .news-reel { overflow-x: auto; }
}

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

body.landing footer.site-footer {
  background: var(--bone);
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  padding: 12px 24px;
  font-size: 11px;
  line-height: 1.5;
}

body.landing footer.site-footer a { color: var(--ink-soft); }
body.landing footer.site-footer a:hover { color: var(--ink); }
body.landing footer.site-footer .foot-links { margin-bottom: 4px; gap: 14px; }

@media (max-width: 720px) {
  body.landing .hero { padding: 24px 20px 20px; }
}
