/* ==========================================================================
   WireEngine — public site stylesheet
   Hand-editable. No build step, no external requests.

   Structure:
     1. Design tokens (light + dark)
     2. Base / reset
     3. Layout primitives (.wrap, .grid)
     4. Header + footer
     5. Hero
     6. Sections (problem, pipeline, features, band)
     7. Pricing + roadmap page pieces
     8. Responsive rules (mobile-first; min-width overrides)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* palette — light (default) */
  --bg: #f8fafc;            /* page background */
  --surface: #ffffff;       /* cards, header */
  --surface-2: #f1f5f9;     /* subtle fill */
  --ink: #1e293b;           /* body text (slate) */
  --ink-strong: #0f172a;    /* headings */
  --muted: #55657a;         /* secondary text */
  --border: #e2e8f0;
  --accent: #0f766e;        /* deep teal */
  --accent-strong: #115e59;
  --accent-soft: #ccfbf1;   /* teal tint fill */
  --accent-ink: #ffffff;    /* text on accent */
  --warn: #b45309;          /* UNVERIFIED amber */
  --warn-soft: #fef3c7;
  --band-bg: #0b3b38;       /* deep-teal band */
  --band-ink: #e7f6f4;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #101a2c;
    --surface-2: #16233a;
    --ink: #cbd5e1;
    --ink-strong: #f1f5f9;
    --muted: #8fa1b8;
    --border: #24344e;
    --accent: #2dd4bf;        /* brighter teal for dark contrast */
    --accent-strong: #5eead4;
    --accent-soft: #103c38;
    --accent-ink: #04211e;
    --warn: #fbbf24;
    --warn-soft: #3a2e0d;
    --band-bg: #0e2f2c;
    --band-ink: #d9f2ef;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--ink-strong);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 3.5rem 0; }

.section-lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;   /* single column on phones */
}

/* --------------------------------------------------------------------------
   4. Header + footer
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink-strong);
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.site-nav a { color: var(--ink); font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.site-footer nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   5. Buttons + badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }

.btn-ghost {
  border-color: var(--border);
  color: var(--ink-strong);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: var(--warn);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   6. Hero + sections
   -------------------------------------------------------------------------- */
.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}
.hero .wrap { max-width: 52rem; }
.hero .tagline {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 1.5rem;
}

/* The safety claim — the centerpiece */
.claim {
  margin: 2rem auto;
  max-width: 44rem;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  text-align: left;
}
.claim p {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--ink-strong);
  line-height: 1.4;
}
.claim footer {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Wave divider between hero and body */
.wave { display: block; width: 100%; height: auto; color: var(--surface); }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Pipeline (run-database → rule engine → projections) */
.pipeline {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
.pipeline-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.pipeline-step .step-no {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* Feature cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.card svg { color: var(--accent); margin-bottom: 0.75rem; display: block; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.98rem; }

/* Early-access band */
.band {
  background: var(--band-bg);
  color: var(--band-ink);
  text-align: center;
  padding: 3.5rem 0;
}
.band h2 { color: #ffffff; }
.band p { color: var(--band-ink); max-width: 36rem; margin-left: auto; margin-right: auto; }
.band .btn-primary { background: #ffffff; color: var(--band-bg); }
.band .btn-primary:hover { background: #d9f2ef; color: var(--band-bg); }

/* --------------------------------------------------------------------------
   7. Pricing + roadmap pieces
   -------------------------------------------------------------------------- */
.page-head {
  padding: 3.5rem 0 1rem;
  text-align: center;
}
.page-head .section-lead { margin: 0 auto; }

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.plan .plan-kind {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan ul { margin-bottom: 0; color: var(--muted); }
.plan .plan-cta { margin-top: auto; padding-top: 1rem; }

.status-list { list-style: none; padding: 0; }
.status-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.status-list li:last-child { border-bottom: none; }
.status-list .dot {
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-top: 0.45rem;
  background: var(--accent);
}
.status-list .dot-open {
  background: transparent;
  border: 2px solid var(--muted);
}
.status-list strong { color: var(--ink-strong); }
.status-list span.desc { color: var(--muted); font-size: 0.95rem; display: block; }

.note {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--surface-2);
}

/* --------------------------------------------------------------------------
   8. Responsive — wider screens
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .site-footer .wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  section { padding: 4.5rem 0; }
}

/* --------------------------------------------------------------------------
   9. Coming-soon home (index.html)

   A single centred column with no site header — the holding page is not a
   navigable site, so it carries no nav chrome. The full landing page lives at
   /product and keeps the shared header/footer.
   -------------------------------------------------------------------------- */
.soon-body {
  /* A quiet teal wash from the top, fading into the page background. */
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}

.soon {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.soon-inner {
  max-width: 44rem;
  text-align: center;
}

.soon-brand {
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.soon-badge { margin: 0 0 1.25rem; }

.soon-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
}

.soon-lead {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.soon-note {
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.soon-note a { color: var(--accent); }

.soon-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.soon-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.soon-nav a:hover { color: var(--accent); }

.soon-foot {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
  opacity: 0.8;
}
