/* WarnFire homepage — The Chart Recorder.
Scoped to index.html. Shared palette and chrome live in base.css, which must
   load before this file; the other marketing routes pair base.css with site.css.
   What remains here is the homepage composition — the trace, and a display type
   scale one step larger than the interior routes. */

:root { --trace-h: clamp(190px, 26vw, 340px); }

h1 {
  font-size: clamp(42px, 6.4vw, 96px);
  font-stretch: 112%;
  line-height: 0.95;
}

h2 {
  font-size: clamp(30px, 3.5vw, 54px);
  font-stretch: 108%;
  line-height: 1.02;
}

.readout--live { color: var(--flame); }

/* delta on the shared .nav in base.css -- do not re-declare gap here */
.nav { padding: 0 var(--gutter); }

.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }

/* The wordmark's own split: Warn in flame, Fire in bone. */

.brand-copy strong i { font-style: normal; color: var(--flame); }

.brand-copy span {
  font-family: var(--mono);
  font-size: 11px;
  font-stretch: 85%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 3px;
}

/* :not(.action) matters — .nav-links a outranks .action on specificity and was
painting the primary call to action dim grey on orange at 1.22:1. */

.nav-links a:not(.action) { text-decoration: none; color: var(--bone-dim); transition: color 140ms ease-out; }

.nav-links a:not(.action):hover { color: var(--bone); }
/* The primary action is an event mark, not a pill. */

.action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--flame);
  color: #0b0c0e;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 140ms ease-out;
}

.action:hover { background: #ff7146; }

.action--ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--rule-strong);
}

.action--ghost:hover { background: transparent; border-color: var(--flame); color: var(--flame); }
/* ---- hero: the trace crosses the full measure ---- */

.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 0; overflow: hidden; }

.hero-trace {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: var(--trace-h);
  display: block;
  pointer-events: none;
}

.hero-trace path { vector-effect: non-scaling-stroke; }

.hero-inner { position: relative; z-index: 1; padding: 0 var(--gutter); }

.hero-axis {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-bottom: calc(var(--trace-h) + 28px);
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

.hero h1 { max-width: 16ch; }

.hero-deadline { margin: 18px 0 0; }

.hero-lede {
  margin-top: 18px;
  max-width: 62ch;
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--bone-dim);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* the incident readout: an instrument panel, not a card */

.panel {
  position: relative;
  z-index: 1;
  padding-bottom: 6px;
  background: var(--panel);
  border-top: 1px solid var(--flame);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.panel-head strong { font-size: 15px; font-weight: 700; }

.panel-body { padding: 26px var(--gutter) 30px; }

.panel-body > h2 { max-width: 20ch; }

.panel-body > p { margin-top: 12px; max-width: 62ch; color: var(--bone-dim); }

.log { margin-top: 26px; border-top: 1px solid var(--rule); }

.log-row {
  display: grid;
  grid-template-columns: minmax(84px, 9ch) 14px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.log-row b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }

.log-row small { display: block; margin-top: 4px; font-size: 13px; color: var(--bone-dim); line-height: 1.5; }

.tick { width: 9px; height: 9px; margin-top: 5px; background: var(--flame); }

.tick--open { background: transparent; border: 1px solid var(--flame); }
/* ---- the spine: sections hang off a continuous axis ---- */

.band { position: relative; padding: clamp(30px, 4vw, 54px) 0 0; }

.band-trace { display: block; width: 100%; height: clamp(84px, 11vw, 150px); margin-bottom: clamp(26px, 4vw, 52px); }

.band-trace path, .band-trace line { vector-effect: non-scaling-stroke; }

.band-inner { padding: 0 var(--gutter); }

.band-head { max-width: none; }

.band-head:has(p) { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: start; }

.band-head h2 { max-width: 18ch; }

.band-head h2 + p { margin-top: 0; color: var(--bone-dim); font-size: 17px; max-width: 62ch; }

.band-head a { color: var(--bone); }
/* a run of stages along the axis — the sequence carries real information */

.run { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--rule-strong); }

.stage {
  display: grid;
  grid-template-columns: 3.5ch 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
/* The migration procedure is numbered because its order is the promise:
verify before you commit. The response pipeline is not numbered twice. */

.run--plain .stage { grid-template-columns: minmax(0, 1fr); }

.stage-n {
  font-family: var(--mono);
  font-size: 12px;
  font-stretch: 85%;
  color: var(--bone-dim);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

.stage-b { display: grid; grid-template-columns: minmax(0, 22ch) minmax(0, 1fr); gap: clamp(12px, 3vw, 40px); }

.stage-b p { color: var(--bone-dim); font-size: 15px; max-width: 68ch; }
/* dense passage: the capability list, two columns of hairline rows */

.list { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--rule-strong); }

.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.item { padding: 24px clamp(20px, 3vw, 44px) 26px 0; border-bottom: 1px solid var(--rule); }

.item:nth-child(2n) { padding-right: 0; padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--rule); }

.item h3 { margin-bottom: 9px; }

.item p { font-size: 14px; color: var(--bone-dim); }

.item a { color: var(--bone); }
/* genuinely tabular data earns the mono table */

.matrix { margin-top: clamp(36px, 5vw, 64px); width: 100%; max-width: 88ch; table-layout: fixed; border-collapse: collapse; }

.matrix tbody th, .matrix thead th:first-child { width: 26ch; }

.matrix caption { text-align: left; padding-bottom: 12px; }

.matrix th, .matrix td { text-align: left; padding: 13px 18px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }

.matrix thead th { border-bottom: 1px solid var(--rule-strong); padding-bottom: 10px; }

.matrix tbody th { font-weight: 700; font-size: 15px; white-space: nowrap; }

.matrix td { font-size: 14px; color: var(--bone-dim); line-height: 1.55; }

.matrix code { font-family: var(--mono); font-size: 11px; font-stretch: 85%; color: var(--bone); }
/* pricing: numerals at instrument scale, aligned on one baseline */

.plans { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
/* Business and Enterprise carry no published price, so they never sit on the
same baseline as two dollar figures pretending to be one comparison. */

.plan-wide { padding: 26px 0 28px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 22ch) minmax(0, 1fr); gap: clamp(12px, 3vw, 40px); }

.plan-wide p { font-size: 14px; color: var(--bone-dim); max-width: 62ch; }

.plan { padding: 28px clamp(18px, 2.5vw, 36px) 30px 0; }

.plan + .plan { border-left: 1px solid var(--rule); padding-left: clamp(18px, 2.5vw, 36px); }

.plan-fig {
  display: block;
  margin: 14px 0 4px;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan p { font-size: 14px; color: var(--bone-dim); margin-top: 10px; }

.band-actions { margin-top: 22px; }
/* was a 15px-tall text box; WCAG 2.2 2.5.8 wants 24px minimum. */

.band-actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--flame); text-decoration: none; }

.band-actions a:hover { text-decoration: underline; }
/* ---- the close: the trace's last event ---- */

.close {
  margin-top: clamp(72px, 10vw, 140px);
  padding: 0 var(--gutter) clamp(56px, 8vw, 104px);
  background: transparent;
  color: var(--bone);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.close .band-trace { margin: 0 calc(var(--gutter) * -1) clamp(30px, 4vw, 56px); width: calc(100% + var(--gutter) * 2); height: clamp(120px, 15vw, 210px); }

.close h2 { max-width: 18ch; letter-spacing: -0.04em; }

.close p { margin-top: 12px; max-width: 46ch; font-size: 16px; color: var(--bone-dim); }

.close .action { background: var(--flame); color: #0b0c0e; }

.close .action:hover { background: #ff7146; color: #0b0c0e; }
/* ---- footer ---- */

.site-footer { padding: clamp(56px, 7vw, 88px) var(--gutter) 40px; border-top: 1px solid var(--rule); }

.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px 28px; }

.foot-grid h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-stretch: 85%;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 14px;
}

.foot-grid > div > a { display: block; padding: 5px 0; font-size: 14px; color: var(--bone-dim); text-decoration: none; }

.foot-grid > div > a:hover { color: var(--flame); }

.foot-blurb { margin-top: 16px; font-size: 14px; color: var(--bone-dim); max-width: 44ch; }

.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 11.5px; line-height: 1.65; color: #8b847c; max-width: 74ch; }
/* ---- the one authored moment: the pen draws the trace, once ---- */
@media (prefers-reduced-motion: no-preference) {
.hero-trace .trace-line {stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    animation: draw 2200ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;}
.hero-trace .trace-mark {opacity: 0; animation: mark 500ms cubic-bezier(0.16, 1, 0.3, 1) 1500ms forwards;}
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes mark { to { opacity: 1; } }
@media (max-width: 900px) {
.band-head:has(p) {grid-template-columns: minmax(0, 1fr); gap: 16px;}
.stage-b {grid-template-columns: minmax(0, 1fr); gap: 8px;}
.list-grid {grid-template-columns: minmax(0, 1fr);}
.item, .item:nth-child(2n) {padding: 22px 0 24px; border-left: 0;}
.plans {grid-template-columns: minmax(0, 1fr);}
.plan-wide {grid-template-columns: minmax(0, 1fr); gap: 8px;}
.plan, .plan + .plan {padding: 24px 0 26px; border-left: 0; border-bottom: 1px solid var(--rule);}
.foot-grid {grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 620px) {
.hero-axis {display: none;}
.log-row {grid-template-columns: 12px 1fr;}
.log-row .readout:first-child {display: none;}
.foot-grid {grid-template-columns: minmax(0, 1fr);}
.matrix thead {display: none;}
.matrix th, .matrix td {display: block; padding-right: 0;}
.matrix tbody th {border-bottom: 0; padding-bottom: 4px;}
}

@media (max-width: 900px) {
.nav-panel a:not(.action) {display: flex; align-items: center; min-height: 44px; padding: 0 12px;}
.nav-panel a:not(.action):hover {background: rgba(232, 227, 219, 0.06);}
}
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) .action:not(.action--ghost) {color: #ffffff;}
:root:not([data-theme="dark"]) .action:not(.action--ghost):hover {background: #a8330f;}
:root:not([data-theme="dark"]) .close .action {color: #ffffff;}
:root:not([data-theme="dark"]) .close .action:hover {background: #a8330f; color: #ffffff;}
:root:not([data-theme="dark"]) .legal {color: #6b645c;}
:root:not([data-theme="dark"]) .nav-panel a:not(.action):hover {background: rgba(20, 22, 26, 0.06);}
}

:root[data-theme="light"] .action:not(.action--ghost) { color: #ffffff; }

:root[data-theme="light"] .action:not(.action--ghost):hover { background: #a8330f; }

:root[data-theme="light"] .close .action { color: #ffffff; }

:root[data-theme="light"] .close .action:hover { background: #a8330f; color: #ffffff; }

:root[data-theme="light"] .legal { color: #6b645c; }

:root[data-theme="light"] .nav-panel a:not(.action):hover { background: rgba(20, 22, 26, 0.06); }

/* .action--ghost is the outline variant; on paper it keeps ink text instead of
the white that sits on the filled .action */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .action--ghost {color: var(--bone);}
  :root:not([data-theme="dark"]) .action--ghost:hover {color: var(--flame);}
}

:root[data-theme="light"] .action--ghost { color: var(--bone); }

:root[data-theme="light"] .action--ghost:hover { color: var(--flame); }

/* .brand-copy is styled per route, so its narrow-viewport override lives with it
rather than in base.css, where a later page rule would out-cascade it. */
@media (max-width: 520px) { .brand-copy { display: none; } }
