/* Tornado site theme: the app's dark graphite + Storm amber, carried to the web.
   Palette mirrors app/src/styles/tokens.css (dark). */
:root {
  --canvas: #14181d; --panel: #171c23; --panel2: #12161c; --raise: #1d232b;
  --line: #232a32; --line-hi: #2e3641;
  --ink: #d6dce3; --ink2: #8b95a1; --ink3: #68727e;
  --accent: #f0a63c; --accent-ink: #2a1d06;
  --ok: #6bcb77; --warn: #e8a33d; --err: #e25d5d;
  --disp: Bahnschrift, "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --ui: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--ui); font-size: 16px; line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header + nav */
header.site { border-bottom: 1px solid var(--line); background: var(--panel2); }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 0; }
.brand .mark { color: var(--accent); font-size: 22px; line-height: 1; }
.brand .word { font-family: var(--disp); letter-spacing: 0.16em; font-size: 20px; color: var(--ink); }
.brand .sub { font-family: var(--disp); letter-spacing: 0.16em; font-size: 12px; color: var(--ink3); }
nav.site { background: var(--panel); border-bottom: 1px solid var(--line); }
nav.site ul { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin: 0; padding: 12px 0; list-style: none; }
nav.site a { color: var(--ink2); font-size: 14px; }
nav.site a:hover { color: var(--ink); text-decoration: none; }
nav.site a.cta { color: var(--accent); font-weight: 700; }
nav.site a[aria-current="page"] { color: var(--ink); font-weight: 700; }

/* Layout blocks */
main { padding: 44px 0; }
h1 { font-family: var(--disp); font-size: 34px; letter-spacing: 0.04em; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 0 0 12px; }
.lead { color: var(--ink2); font-size: 18px; margin: 0 0 8px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px;
}
.grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .grid.cols-2 { grid-template-columns: 1.2fr 1fr; } }

/* Pricing */
.price { font-size: 40px; font-weight: 800; color: var(--ink); }
.price .unit { font-size: 14px; color: var(--ink3); font-weight: 600; }
.muted { color: var(--ink3); }
.discount { color: var(--accent); font-weight: 700; font-size: 13px; }

/* Forms + buttons */
label { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 4px; }
input[type="text"], input[type="number"], input[type="email"] {
  width: 100%; background: var(--panel2); border: 1px solid var(--line); border-radius: 4px;
  color: var(--ink); font-family: var(--ui); font-size: 15px; padding: 9px 11px;
}
input:focus { outline: none; border-color: var(--accent); }
.qty { width: 90px; text-align: center; }
.btn {
  display: inline-block; border: 1px solid var(--line-hi); background: var(--raise); color: var(--ink);
  border-radius: 5px; padding: 11px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn-accent {
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
}
.btn-accent:hover { filter: brightness(1.05); }
.btn-accent:disabled { opacity: 0.5; cursor: default; filter: none; }
.row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }

/* Steps + keys */
.steps { counter-reset: step; padding: 0; margin: 16px 0 0; list-style: none; }
.steps li { position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-align: center; line-height: 26px;
}
pre.key {
  font-family: var(--mono); white-space: pre-wrap; word-break: break-all;
  background: var(--panel2); color: var(--accent); border: 1px solid var(--line);
  padding: 12px; border-radius: 6px; margin: 6px 0 14px;
}
.note { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; color: var(--ink2); font-size: 14px; }

/* Product screenshots */
figure.shot {
  margin: 0 0 20px; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px; box-shadow: 0 12px 34px rgba(0,0,0,0.4);
}
figure.shot img { display: block; width: 100%; height: auto; border-radius: 3px; }
figure.shot figcaption {
  margin-top: 8px; padding: 2px 2px 0; color: var(--ink3);
  font-family: var(--mono); font-size: 12px; line-height: 1.5;
}
figure.shot.hero { margin: 28px 0 4px; }
/* A centered block figure (never floated) for wide landscape shots. */
figure.shot.center { float: none; margin-left: auto; margin-right: auto; }
/* An inline badge-sized shot that sits in the flow of a card, not floated. */
figure.shot.inline { max-width: 340px; box-shadow: none; }
/* A container that fully wraps its floated figures (no clipped shadows). */
.flow { display: flow-root; }
.flow + .flow { margin-top: 28px; }
/* Float-around-text variants, desktop only; on narrow screens figures stack. */
@media (min-width: 760px) {
  figure.shot.left  { float: left;  margin-right: 26px; }
  figure.shot.right { float: right; margin-left: 26px; }
  figure.shot.w-sm { max-width: 300px; }
  figure.shot.w-md { max-width: 430px; }
  figure.shot.w-lg { max-width: 560px; }
}

/* Download gate form (beta reveal is CSS-only, no JS) */
.gate-form { margin-top: 14px; }
.gate-form label { display: block; font-size: 14px; color: var(--ink2); margin: 10px 0 4px; }
.gate-form input[type="email"], .gate-form input[type="text"] { display: block; width: 100%; max-width: 440px; }
.gate-form .beta-check { display: inline-block; margin: 16px 0 0; color: var(--ink); font-size: 14px; cursor: pointer; }
.gate-form input#beta-optin { width: auto; margin-right: 8px; vertical-align: middle; }
.gate-form .beta-fields { display: none; margin-top: 8px; padding: 4px 0 4px 14px; border-left: 2px solid var(--line-hi); }
.gate-form input#beta-optin:checked ~ .beta-fields { display: block; }
.gate-form button { margin-top: 16px; }
/* Honeypot: off-screen for humans, tempting to bots. */
.gate-form .hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
footer.site { border-top: 1px solid var(--line); background: var(--panel2); color: var(--ink3); font-size: 13px; margin-top: 40px; }
footer.site .container { padding-top: 24px; padding-bottom: 28px; }

/* Brand mark: inline SVG of the real Tornado app icon (replaced the text glyph, 2026-08-11) */
.brand .mark svg { display: block; width: 26px; height: 26px; }

/* Light "Hurricane" button pinned far right in the nav: mirrors the charcoal
   Tornado button on the Hurricane site. Light button = preview of the light
   Hurricane site, dark button there = preview of this dark one. */
nav.site .container { position: relative; }
nav.site li.hurricane-link { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
nav.site a.hurricane-btn { display: inline-flex; align-items: center; gap: .4rem; background: #f3f4f6; border: 1px solid #cbd5e1; border-radius: 6px; padding: 2px 10px; color: #1e3a5f; font-weight: 700; }
nav.site a.hurricane-btn:hover { background: #ffffff; color: #1e3a5f; text-decoration: none; }
@media (max-width: 780px) { nav.site li.hurricane-link { position: static; transform: none; } }
