/* Lockdown Alert marketing site - design system per
   docs/superpowers/specs/2026-06-17-input-it-website-design.md:
   navy/teal/coral, Space Grotesk + Inter + JetBrains Mono, mono eyebrows,
   terminal "_" motif. Plain CSS, no build step. */

@import url("fonts.css");

:root {
  --navy-900: #0A1526;
  --navy-800: #0E1B33;
  --teal: #14B8A6;
  --teal-text: #0A6B60; /* darkened for AA text contrast on light backgrounds */
  --coral: #F97A4D;
  --coral-text: #C8471E; /* darkened for AA text contrast (white-on-button) */
  --paper: #F6F8FB;
  --ink: #0E1B33;
  --muted: #5B6B85;
  --line: #E3E8F0;
  --radius: 12px;
  --max: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, h3, .display {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink); }
a { color: var(--teal-text); }
ul, ol { padding-left: 1.2em; }
code, pre, .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--teal); color: #fff;
  padding: 0.6em 1em; z-index: 100;
}
.skip-link:focus { left: 1em; top: 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--teal-text);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75em;
}
/* Sections on the dark hero background use the brighter teal - it has
   plenty of contrast there and the darker text-teal would be muddy. */
.hero .eyebrow { color: var(--teal); }
.eyebrow::after { content: "_"; color: var(--coral); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .eyebrow::after { animation: none; } }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 21, 38, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.85rem; padding-bottom: 0.85rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; }
.brand-by { font-family: "JetBrains Mono", monospace; font-size: 0.68rem; color: #93A2C0; }
nav.primary-nav { display: none; }
nav.primary-nav a {
  color: #C7D0E3; text-decoration: none; font-size: 0.92rem; margin-left: 1.4rem;
}
nav.primary-nav a:hover { color: #fff; }
@media (min-width: 900px) { nav.primary-nav { display: flex; align-items: center; } }
.nav-cta {
  background: var(--coral); color: #fff !important; padding: 0.5em 1em; border-radius: 8px;
  font-weight: 600;
}
.menu-toggle {
  display: inline-flex; background: none; border: 1px solid #33415F; color: #fff;
  border-radius: 8px; padding: 0.4em 0.7em; font: inherit; cursor: pointer;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.mobile-nav { display: none; flex-direction: column; padding: 0 1.25rem 1rem; }
.mobile-nav a { color: #C7D0E3; text-decoration: none; padding: 0.5em 0; border-top: 1px solid rgba(255,255,255,0.08); }
body.nav-open .mobile-nav { display: flex; }

/* ---- hero ---- */
.hero {
  background: radial-gradient(circle at 15% -10%, #14293f 0%, var(--navy-900) 55%);
  color: #fff; padding: 4.5rem 0 4rem;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { color: #fff; }
.hero p.lede { color: #C7D0E3; font-size: 1.1rem; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: 0.8em 1.3em; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 0.98rem; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--coral-text); color: #fff; }
.btn-primary:hover { background: #a83c19; }
.btn-secondary { background: transparent; color: #fff; border-color: #3A4A6B; }
.btn-secondary:hover { border-color: #6C7EA3; }

/* ---- alert mock ---- */
.mock-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid #223252;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6);
}
.mock-frame svg { width: 100%; height: auto; display: block; }

/* ---- sections ---- */
section { padding: 4rem 0; }
section.alt { background: #fff; }
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }

.steps { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.step .num {
  font-family: "JetBrains Mono", monospace; color: var(--teal-text); font-weight: 600; display: block;
  margin-bottom: 0.4em;
}

.cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--navy-800); color: #E7ECF6; border-radius: var(--radius); padding: 1.4rem; }
.card h3 { color: #fff; }
.card p { color: #B9C4DD; margin-bottom: 0; }

.two-col { display: grid; gap: 2rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }

table.pricing { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
table.pricing th, table.pricing td {
  border: 1px solid var(--line); padding: 0.85em 0.9em; text-align: center; font-size: 0.95rem;
}
table.pricing thead th { background: var(--navy-800); color: #fff; font-family: "Space Grotesk", sans-serif; }
table.pricing td:first-child, table.pricing th:first-child { text-align: left; background: #F0F3F9; font-weight: 600; color: var(--ink); }
/* The corner cell of the header row is still a header, not a row label -
   keep it on the dark header background (fixes a white-on-near-white
   contrast failure the rule above would otherwise cause there). */
table.pricing thead th:first-child { background: var(--navy-800); color: #fff; }
.pricing-wrap { overflow-x: auto; }
.pricing-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.8em; }

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.9em 1.1em; margin-bottom: 0.7em;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq p:last-child { margin-bottom: 0; }

.proof {
  background: #EAF7F5; border: 1px solid #BEEAE3; border-radius: var(--radius);
  padding: 1.2rem 1.4rem; font-size: 0.95rem; color: #0C4A42;
}

.footer-cta { background: var(--navy-900); color: #fff; text-align: center; }
.footer-cta h2 { color: #fff; }
.footer-cta p { color: #C7D0E3; }

footer.site-footer { background: var(--navy-900); color: #93A2C0; padding: 2.4rem 0; font-size: 0.88rem; }
footer.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
footer.site-footer a { color: #C7D0E3; }
footer.site-footer nav a { margin-right: 1.1em; }

.draft-banner {
  background: var(--coral); color: #fff; text-align: center; font-weight: 600;
  padding: 0.6em 1em; font-size: 0.92rem;
}

/* ---- trial form ---- */
.trial-form { display: grid; gap: 0.9rem; }
.trial-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3em; }
.trial-form input {
  width: 100%; padding: 0.65em 0.8em; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff;
}
.trial-form input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 0.9rem; padding: 0.6em 0.8em; border-radius: 8px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #E6F7EE; color: #0B6B3A; }
.form-msg.err { background: #FDEBE6; color: #9A2E10; }

/* ---- docs / legal prose pages ---- */
.prose { background: #fff; }
.prose .wrap { max-width: 800px; }
.prose h2 { margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5em 0.7em; text-align: left; font-size: 0.92rem; }
.prose th { background: #F0F3F9; }
.prose pre {
  background: var(--navy-900); color: #E7ECF6; padding: 0.9em 1em; border-radius: 8px; overflow-x: auto;
  font-size: 0.85rem;
}
.prose code { background: #F0F3F9; padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }
.prose pre code { background: none; padding: 0; }

.contrast { color: var(--muted); font-size: 0.92rem; }
/* On the dark footer, the light-background muted grey fails AA - use the
   footer's own lighter grey instead. */
.site-footer .contrast { color: #93A2C0; }
