/* Home page layout. The site has no Tailwind build step, so anything the
   prebuilt tailwind.css lacks for the home page lives here. Colours match
   the site palette: ink #0a0a0a, panel #111, border #262626, muted #a3a3a3,
   accent #00b8ff. */

.home-hero {
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(0, 184, 255, 0.10), transparent 60%),
    linear-gradient(rgba(0, 184, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 184, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
}
.home-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; }
}
.home-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #00b8ff;
}
.home-h1 {
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}
@media (min-width: 640px)  { .home-h1 { font-size: 3.25rem; } }
@media (min-width: 1280px) { .home-h1 { font-size: 3.75rem; } }
.home-lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #a3a3a3;
  max-width: 34rem;
}
@media (min-width: 640px) { .home-lede { font-size: 1.25rem; } }

/* Live panel */
.home-panel {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.92), rgba(12, 12, 12, 0.92));
  border: 1px solid #262626;
  border-radius: 1.25rem;
  box-shadow: 0 0 60px rgba(0, 184, 255, 0.08);
  padding: 1.5rem;
}
@media (min-width: 640px) { .home-panel { padding: 1.75rem; } }
.home-big {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) { .home-big { font-size: 3rem; } }

/* 24 hourly bars. Height is set per bar from the data; min-height keeps an
   empty hour visible as a sliver so the time axis still reads. */
.home-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 7.5rem;
  margin-top: 1.25rem;
}
.home-bar {
  flex: 1 1 0;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #00b8ff, rgba(0, 184, 255, 0.45));
}
.home-bar-skeleton { background: #262626; }
.home-bar-now { background: linear-gradient(180deg, #7dd8ff, #00b8ff); }
.home-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #8a8a8a;
}

.home-facts {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #262626;
}
@media (min-width: 640px) { .home-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-fact-label {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #a3a3a3;
}
.home-fact-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
}
.home-fact-sub {
  font-size: 0.75rem;
  color: #a3a3a3;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

/* Section headings */
.home-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #00b8ff;
  margin-bottom: 0.5rem;
}
.home-h2 {
  font-size: 1.875rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}
@media (min-width: 640px) { .home-h2 { font-size: 2.25rem; } }

/* Pick your path */
.home-paths {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) { .home-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-path {
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #262626;
  border-radius: 1rem;
  padding: 1.75rem;
}
.home-path-links { margin-top: auto; padding-top: 1.25rem; }
.home-path-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-top: 1px solid #1f1f1f;
  color: #fff;
  font-weight: 500;
  transition: color 150ms ease;
}
.home-path-links a:hover { color: #00b8ff; }
.home-path-links a span:last-child { color: #00b8ff; }

/* Trace the money: newest case file + wallet lookup */
.home-trace {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) { .home-trace { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.home-case, .home-follow {
  background: #111;
  border: 1px solid #262626;
  border-radius: 1rem;
  padding: 1.75rem;
  min-width: 0;
}
.home-case {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(28rem 10rem at 0% 0%, rgba(245, 180, 60, 0.10), transparent 70%),
    #111;
  transition: border-color 150ms ease;
}
.home-case:hover, .home-case:focus-visible { border-color: #00b8ff; }
.home-case-art { width: 112px; height: 112px; flex: none; border-radius: 0.75rem; }
.home-case-body { min-width: 0; display: flex; flex-direction: column; }
.home-trace-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00b8ff;
}
.home-trace-title { margin-top: 0.4rem; font-size: 1.35rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.home-case-facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 1.1rem; }
.home-case-facts > div { display: flex; flex-direction: column; }
.home-case-num { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.home-case-label { font-size: 0.8rem; color: #a3a3a3; margin-top: 0.2rem; }
.home-trace-cta { margin-top: 1.25rem; font-weight: 600; color: #00b8ff; }
.home-case:hover .home-trace-cta { color: #33c6ff; }
.home-follow { display: flex; flex-direction: column; }
.home-follow-sub { margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.5; color: #b5b5b5; }
.home-follow-form { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.home-follow-form input {
  flex: 1 1 auto;
  min-width: 0;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  color: #fff;
}
.home-follow-form input::placeholder { color: #8a8a8a; font-family: Inter, system-ui, sans-serif; }
.home-follow-form input:focus { outline: 2px solid #00b8ff; outline-offset: 1px; border-color: #00b8ff; }
.home-follow-form button {
  flex: none;
  background: #00b8ff;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.6rem;
  transition: background-color 0.15s;
}
.home-follow-form button:hover, .home-follow-form button:focus-visible { background: #33c6ff; }
.home-follow-try {
  margin-top: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.home-follow-examples {
  list-style: none;
  padding: 0;
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.home-follow-examples a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
  border: 1px solid rgba(0, 184, 255, 0.28);
  background: linear-gradient(180deg, rgba(0, 184, 255, 0.09), rgba(0, 184, 255, 0.03));
  border-radius: 0.7rem;
  padding: 0.6rem 0.85rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #f5f5f5;
  text-decoration: none;
  line-height: 1.3;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}
.home-follow-examples a:hover, .home-follow-examples a:focus-visible {
  border-color: #00b8ff;
  background: rgba(0, 184, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}
.home-follow-tag {
  flex: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00b8ff;
}
/* Phones: drop the art, put the two figures side by side and stack the
   lookup box over its button. Kept after the base rules so it wins. */
@media (max-width: 520px) {
  .home-case { padding: 1.4rem; }
  .home-case-art { display: none; }
  .home-case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .home-case-num { font-size: 1.4rem; }
  .home-follow { padding: 1.4rem; }
  .home-follow-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .home-case, .home-follow-form button, .home-follow-examples a { transition: none; }
  .home-follow-examples a:hover, .home-follow-examples a:focus-visible { transform: none; }
}

/* Today on the ledger */
.home-tiles {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1024px) { .home-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.home-tile-label {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #a3a3a3;
  font-weight: 500;
  min-height: 2.05em;
}
.home-tile-sub {
  font-size: 0.75rem;
  color: #a3a3a3;
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}

/* Tile values: smaller on phones so an 8-digit count fits a half-width tile. */
.home-tile-value { font-size: 1.5rem; }
@media (min-width: 640px) { .home-tile-value { font-size: 2.25rem; } }

/* Product list */
.home-products {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px)  { .home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .home-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.home-product {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #111;
  border: 1px solid #262626;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color 150ms ease;
}
.home-product:hover { border-color: #00b8ff; }
.home-product-name { font-size: 1.125rem; font-weight: 700; }
/* Phones: icon beside the text, so eight cards don't run 1,800 px. */
@media (max-width: 639px) {
  .home-product { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 0.875rem; row-gap: 0.25rem; padding: 1rem; }
  .home-product > div { display: contents; }
  .home-product img { grid-row: span 2; width: 2.5rem; height: 2.5rem; }
  .home-product-name { font-size: 1rem; }
}

/* Code sample: wraps nothing, scrolls on narrow screens. */
.home-code { font-size: 0.75rem; }
@media (min-width: 640px) { .home-code { font-size: 0.875rem; } }

@media (prefers-reduced-motion: reduce) {
  .animate-pulse { animation: none; }
  .home-product, .home-path-links a { transition: none; }
}

/* Demo box under the hero: the six use cases on /build/. Accent border,
   glow and a solid button so it reads as the next step, not a footnote. */
.home-demo {
  position: relative;
  border: 1px solid rgba(0, 184, 255, 0.55);
  border-radius: 1.25rem;
  background:
    radial-gradient(40rem 12rem at 0% 0%, rgba(0, 184, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(10, 28, 38, 0.95), rgba(12, 14, 16, 0.95));
  box-shadow: 0 0 0 1px rgba(0, 184, 255, 0.12), 0 0 48px rgba(0, 184, 255, 0.18);
  padding: 1.5rem;
  margin: 3rem 0 0;
  display: grid;
  gap: 1.1rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .home-demo { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr) auto; gap: 2rem; padding: 1.75rem 2rem; }
}
.home-demo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00b8ff;
}
.home-demo-eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #00b8ff;
  box-shadow: 0 0 10px #00b8ff;
}
.home-demo-title { margin-top: 0.4rem; font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; color: #fff; }
.home-demo-sub { margin-top: 0.4rem; font-size: 0.9rem; line-height: 1.5; color: #b5b5b5; }
.home-demo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
}
.home-demo-list a {
  display: inline-block;
  border: 1px solid rgba(0, 184, 255, 0.35);
  background: rgba(0, 184, 255, 0.08);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #f5f5f5;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.home-demo-list a:hover, .home-demo-list a:focus-visible { border-color: #00b8ff; background: rgba(0, 184, 255, 0.18); color: #fff; }
.home-demo-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #00b8ff;
  color: #0a0a0a;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: 0.6rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.home-demo-more:hover, .home-demo-more:focus-visible { background: #33c6ff; color: #0a0a0a; }
@media (prefers-reduced-motion: reduce) {
  .home-demo-list a, .home-demo-more { transition: none; }
}
