/* The public site: the dashboard's pixel-terminal look (app.css) turned into
   a live billboard. Same page width, header, tab bar, cards and CRT panels,
   and the dashboard's type scale: 13px text, 12px notes, 19px card titles,
   26px section titles, 32px wordmark; only the hero headline goes bigger. */

html { scroll-behavior: smooth; }
.spacer { flex: 1; }
section, .site-summary { scroll-margin-top: 20px; }

/* Header: app.css's header, with links in place of the signed-in controls */
.app-header .brand { color: var(--fg); text-decoration: none; }
a.btn { text-decoration: none; display: inline-block; cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 30px; align-items: center; margin: 0 0 30px; }
.eyebrow { font-family: var(--crt); font-size: 19px; line-height: 1.1; letter-spacing: 0.06em; text-transform: uppercase; color: var(--good); margin-bottom: 14px; }
.hero h1 { font-family: var(--pixel); font-weight: 500; font-size: 48px; line-height: 1.05; margin-bottom: 18px; }
.hero h1 em, .start h2 em { font-style: normal; color: var(--accent); }
.lede { font-size: 14px; line-height: 1.7; color: var(--dim); max-width: 560px; margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* CRT screens: the logo's face, scanlines and phosphor */
.crt {
  position: relative; background: var(--screen); color: #f6e9df;
  border: 4px solid var(--accent); outline: 3px solid var(--shadow); box-shadow: 10px 10px 0 var(--shadow);
  margin-left: 3px;
}
.crt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
}
.hero-screen { padding: 14px 20px 12px; min-width: 0; }
.crt-label { color: var(--phosphor); font-family: var(--crt); font-size: 19px; line-height: 1.1; letter-spacing: 0.06em; text-transform: uppercase; }
.crt-big { font-family: var(--crt); font-size: 72px; line-height: 0.95; color: #f6e9df; text-shadow: 0 0 18px rgba(124, 245, 138, 0.25); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.crt-sub { color: #8f7668; font-size: 11px; margin: 4px 0 14px; }
.feed-head, .feed-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 112px 60px 64px 40px; gap: 14px; align-items: center; }
.feed-head { color: #6f5a4f; font-family: var(--crt); font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px dashed #3a2b25; padding-bottom: 4px; margin-bottom: 4px; }
.feed { min-height: 238px; }
.feed-row { font-size: 12px; color: #d9c6b8; padding: 2px 0; white-space: nowrap; }
.feed-row span { overflow: hidden; text-overflow: ellipsis; }
.feed-row .t { color: #8f7668; }
.feed-row .ok { color: var(--phosphor); }
.feed-row .v { color: var(--accent-hi); }
.feed-row .mp { font-style: normal; }
.feed-row .err { color: #ff4d40; }
.feed-row.new { animation: arrive 1.2s steps(6); }
@keyframes arrive { from { background: rgba(124, 245, 138, 0.18); } to { background: transparent; } }
.num { text-align: right; }

/* Headline numbers: the dashboard's CRT band, as is */
.site-summary .stat { overflow: hidden; }

/* Charts */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.grid .wide { grid-column: 1 / -1; }
.card-head .legend { display: flex; gap: 14px; font-size: 12px; color: var(--dim); }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.chart-box { height: 300px; padding: 8px 6px 4px; }
.chart-box.tall { height: 360px; }
.chart-box.short { height: 220px; }
.fleet-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.fleet-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 10px 22px 10px 0; align-items: baseline; }
.fleet-facts dt { font-family: var(--crt); font-size: 18px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); }
.fleet-facts dd { font-family: var(--crt); font-size: 34px; line-height: 1; text-align: right; }
.fleet-facts dd small { font-size: 18px; color: var(--faint); margin-left: 4px; }
.fleet-facts dt i { display: inline-block; width: 11px; height: 11px; margin-right: 8px; vertical-align: 0; }
.fleet-facts dd { font-size: 30px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin: 14px 0 30px; }
.plan { position: relative; background: var(--surface); border: 3px solid var(--line); box-shadow: 7px 7px 0 var(--shadow); padding: 22px 22px 22px; }
.plan:first-child { border-color: var(--accent); box-shadow: 7px 7px 0 var(--accent-lo); }
.plan-tag { position: absolute; top: -14px; left: 22px; font-family: var(--crt); font-size: 18px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--fg); color: var(--surface); padding: 0 10px; }
.plan h2 { font-family: var(--pixel); font-weight: 500; font-size: 26px; margin: 4px 0 8px; }
.plan p { color: var(--dim); margin-bottom: 14px; }
.plan ul { list-style: none; margin-bottom: 22px; }
.plan li { padding: 5px 0 5px 24px; position: relative; border-top: 2px dashed var(--hairline); }
.plan li::before { content: "■"; position: absolute; left: 2px; color: var(--accent); font-size: 11px; top: 7px; }

/* Get started */
.start { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 30px; align-items: center; margin-bottom: 30px; }
.start h2 { font-family: var(--pixel); font-weight: 500; font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.start p { color: var(--dim); }
.term { padding: 16px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.9; white-space: pre-wrap; word-break: break-all; }
.term .p { color: var(--phosphor); }
.term b { color: var(--accent-hi); font-weight: 400; }
.term .ok { color: #d9c6b8; }
.term .cursor { color: var(--phosphor); animation: blink 1s steps(1) infinite; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 18px; border-top: 3px solid var(--line); font-size: 12px; }
.brand.small { display: inline-flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 15px; }
.brand.small img { image-rendering: pixelated; }

/* Chart tooltips */
.tip { font-family: var(--mono); font-size: 12px; line-height: 1.6; min-width: 170px; }
.tip > b { display: block; margin-bottom: 4px; font-family: var(--crt); font-size: 18px; font-weight: 400; letter-spacing: 0.04em; }
.tip-row { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; }
.tip-row b { font-family: var(--crt); font-size: 17px; font-weight: 400; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.tip i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; }

@media (max-width: 1000px) {
  .hero, .start { grid-template-columns: minmax(0, 1fr); }
  .site-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-summary .value { font-size: 32px; }
  .grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 36px; }
  .crt-big { font-size: 54px; }
  .site-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-split { grid-template-columns: minmax(0, 1fr); }
  #chartGauges { height: 190px; }
  .chart-box.tall { height: 300px; }
  .fleet-facts { padding: 0 22px 16px; }
  .feed-head, .feed-row { grid-template-columns: 36px minmax(0, 1fr) 84px 34px 48px; gap: 7px; }
  .feed-row { font-size: 11px; }
  .feed-head { font-size: 14px; letter-spacing: 0.02em; }
  .feed-row .mp { display: none; }
  .feed-head span:last-child, .feed-row span:last-child { display: none; }
}
