/* QuickThought demo — "Signal" skin v1.
   Precision/decision-tree aesthetic: ink navy, warm paper, electric lime
   signal accents, mono labels. System font stacks (no hosted fonts).
   Strict CSP: this file is the only stylesheet; no inline styles. */

:root {
  --ink: #0a0e14;
  --ink-2: #11161f;
  --paper: #f7f6f2;
  --panel: #ffffff;
  --line: #e4e2da;
  --line-dark: #232a38;
  --text: #1d2430;
  --muted: #5b6370;
  --muted-dark: #9aa4b5;
  --signal: #b8f03c;
  --signal-ink: #3f5b06;
  --steel: #3b82f6;
  --radius: 14px;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--steel); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--dark { background: var(--ink); color: #e8ecf3; }
.section--panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50;
}
.skip-link:focus { left: 0; }

.kicker {
  margin: 0 0 10px;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .kicker, .hero .kicker, .cta-band .kicker { color: var(--signal); }
.kicker--foot { color: var(--muted-dark); }

h1, h2, h3 { font-family: var(--sans); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; }
.h-hero { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.h-page { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.h-section { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.h-card { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.lede { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0 0 10px; }
.section--dark .lede, .hero .lede { color: var(--muted-dark); }
mark { background: var(--signal); color: var(--ink); padding: 0 0.12em; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 99px;
  font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn--accent { background: var(--signal); color: var(--ink); }
.btn--accent:hover { filter: brightness(1.06); }
.btn--ghost { border-color: var(--line-dark); color: #e8ecf3; background: transparent; }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.link-plain { font-weight: 600; }

/* Header */
.site-head {
  background: var(--ink); color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.site-head__row { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--signal); color: var(--ink);
  font: 800 15px/1 var(--mono);
}
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand__name sup { font-size: 9px; font-weight: 600; margin-left: 1px; }
.site-nav__list { display: flex; gap: 26px; align-items: center; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: #cfd6e2; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--signal); }
.site-nav__list a.btn { color: var(--ink); }
.site-nav__list a.btn:hover { color: var(--ink); filter: brightness(1.06); }
.site-nav__toggle { display: none; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(184, 240, 60, 0.14), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--ink);
  color: #e8ecf3;
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding: 0; list-style: none; }
.hero__badges li {
  font: 600 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-dark); border: 1px solid var(--line-dark); border-radius: 99px; padding: 7px 12px;
}
.hero__path {
  margin: 0; padding: 22px; list-style: none;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
}
.hero__path li { display: flex; gap: 14px; padding: 12px 4px; position: relative; }
.hero__path li + li::before {
  content: ""; position: absolute; left: 12px; top: -12px; height: 12px; width: 2px;
  background: var(--line-dark);
}
.hero__path .node {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--signal); color: var(--ink); font: 700 12px/1 var(--mono);
  position: relative; z-index: 1;
}
.hero__path .node--alt { background: var(--steel); color: #fff; }
.hero__path strong { display: block; font-size: 14.5px; }
.hero__path span:last-child { color: var(--muted-dark); font-size: 13px; }

/* Trust strip */
.trust { border-bottom: 1px solid var(--line); background: var(--panel); }
.trust__row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 18px 0; }
.trust__label { font: 600 11.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.trust__items { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.trust__items li { font-weight: 700; font-size: 14.5px; color: #39404c; }

/* Card grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: #cfccc0; box-shadow: 0 8px 24px rgba(10, 14, 20, 0.06); }
.card__chip {
  align-self: flex-start; font: 700 11px/1 var(--mono); letter-spacing: 0.1em;
  background: var(--ink); color: var(--signal); border-radius: 6px; padding: 6px 9px;
  text-transform: uppercase;
}
.card p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.card .card__link { margin-top: auto; font-weight: 700; font-size: 14px; text-decoration: none; }
.card .card__link:hover { text-decoration: underline; }

/* Steps (decision path) */
.steps { margin-top: 34px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: block; padding: 22px 0 22px 64px; position: relative; counter-increment: step;
}
.steps li + li::before {
  content: ""; position: absolute; left: 22px; top: -6px; height: 22px; width: 2px;
  background: var(--line);
}
.steps li::after {
  content: "0" counter(step);
  position: absolute; left: 0; top: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--signal); font: 700 14px/1 var(--mono);
}
.steps li:last-child::after { background: var(--signal); color: var(--ink); }
.steps h3 { margin: 4px 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; align-items: stretch; }
.plan {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; position: relative;
}
.plan--featured { border-color: var(--ink); box-shadow: 0 14px 34px rgba(10, 14, 20, 0.10); }
.plan__badge {
  position: absolute; top: -12px; left: 20px;
  background: var(--signal); color: var(--ink);
  font: 700 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 99px; padding: 7px 12px;
}
.plan__name { font-size: 20px; font-weight: 800; margin: 6px 0 2px; }
.plan__price { font: 800 30px/1.1 var(--sans); letter-spacing: -0.02em; margin: 10px 0 4px; }
.plan__blurb { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.plan__features { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.plan__features li { padding-left: 24px; position: relative; font-size: 14.5px; }
.plan__features li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px;
  border-radius: 3px; background: var(--signal); border: 2px solid var(--ink);
}
.plan .btn { margin-top: auto; text-align: center; }
.plan .btn--ghost { border-color: var(--line); color: var(--text); }
.plan .btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Testimonial */
.quote {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; margin: 22px 0 0;
}
.quote blockquote { margin: 0 0 16px; font-size: 19px; line-height: 1.5; letter-spacing: -0.01em; }
.quote blockquote::before { content: "“"; color: var(--signal); font-size: 44px; line-height: 0; vertical-align: -12px; margin-right: 4px; }
.quote figcaption { font: 600 13.5px/1.5 var(--sans); color: var(--text); }
.quote figcaption span { display: block; color: var(--muted); font-weight: 500; }
.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote-row .quote { margin-top: 30px; display: flex; flex-direction: column; }
.quote-row blockquote { font-size: 16px; flex: 1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.stat { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font: 800 30px/1.1 var(--sans); color: var(--signal); letter-spacing: -0.02em; }
.stat span { color: var(--muted-dark); font-size: 13.5px; }

/* CTA band */
.cta-band { background: var(--ink); color: #e8ecf3; border-radius: 18px; padding: 46px 42px; }
.cta-band__row { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band p { color: var(--muted-dark); max-width: 56ch; margin: 0; }

/* Text and image */
.ti { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ti--flip .ti__media { order: 2; }
.ti__media { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); min-height: 240px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ti__media img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: center; }
.ti__placeholder { font: 600 12px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 40px; text-align: center; }
.ti p { color: var(--muted); }

/* Divider */
.divider { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

/* Forms (CMS LITE Forms runtime) */
.qf { max-width: 720px; }
.qf-noscript { font-size: 13.5px; color: var(--muted); }
.qf-step__title { font-size: 22px; margin: 0 0 8px; }
.qf-step__intro { color: var(--muted); margin: 0 0 18px; }
.qf-step { padding: 10px 0 4px; }
.qf-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.qf-label { font-weight: 700; font-size: 14.5px; }
.qf-req { color: var(--signal-ink); }
.qf-field input[type="text"], .qf-field input[type="email"], .qf-field input[type="tel"],
.qf-field input[type="number"], .qf-field input[type="date"], .qf-field select, .qf-field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: 400 15px/1.4 var(--sans); background: var(--panel); color: var(--text); width: 100%;
}
.qf-field input:focus, .qf-field select:focus, .qf-field textarea:focus { border-color: var(--ink); outline: 2px solid rgba(59, 130, 246, 0.35); outline-offset: 1px; }
.qf-choices { display: flex; flex-direction: column; gap: 8px; }
.qf-choices label { display: flex; gap: 9px; align-items: center; font-size: 14.5px; cursor: pointer; }
.qf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; cursor: pointer; }
.qf-consent input { margin-top: 3px; }
.qf-field input[type="checkbox"], .qf-field input[type="radio"] { width: 17px; height: 17px; accent-color: var(--ink); flex: 0 0 auto; }
.qf-help { font-size: 12.5px; color: var(--muted); }
.qf-error { font-size: 13px; color: #be123c; font-weight: 600; }
.qf-error-summary { background: #fdf2f4; border: 1px solid #f4c3cf; color: #9f1239; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.qf-nav { display: flex; gap: 12px; margin-top: 22px; }
.qf-nav .btn--ghost { border-color: var(--line); color: var(--text); }
.qf-privacy { font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.qf-success { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; }
.qf-ref { font: 600 13.5px/1.5 var(--mono); color: var(--muted); }
.qf-hp { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }

/* Footer */
.site-foot { background: var(--ink); color: var(--muted-dark); margin-top: 64px; }
.site-foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding: 46px 20px 30px; }
.site-foot__tag { max-width: 34ch; font-size: 14px; margin: 14px 0 0; }
.brand__mark--foot { width: 30px; height: 30px; font-size: 13px; }
.site-foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot__links a { color: #cfd6e2; text-decoration: none; font-size: 14.5px; }
.site-foot__links a:hover { color: var(--signal); }
.site-foot__base { border-top: 1px solid var(--line-dark); padding: 18px 20px 26px; font-size: 13px; }

/* Reveal on scroll (JS adds .is-in; off under reduced motion) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid, .ti, .site-foot__grid { grid-template-columns: 1fr; }
  .cards, .plans, .quote-row { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards, .plans, .quote-row, .stats { grid-template-columns: 1fr; }
  .site-nav__toggle {
    display: inline-block; background: transparent; color: #fff; border: 1px solid var(--line-dark);
    border-radius: 8px; padding: 8px 14px; font: 600 13px/1 var(--sans); cursor: pointer;
  }
  .site-nav__list {
    display: none; position: absolute; right: 20px; top: 60px; flex-direction: column;
    background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 12px; padding: 14px 18px; gap: 14px;
  }
  .site-nav__list.is-open { display: flex; }
  .section { padding: 44px 0; }
  .cta-band { padding: 32px 24px; }
}

/* Forms Slice B: grouped fieldsets + resume panel */
.qf-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.qf-group legend { font: 700 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 8px; }
.qf-resume { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; font-size: 14px; }
.qf-resume a { word-break: break-all; }

/* Forms Slice C: disqualify outcome + hidden-by-rule fields */
.qf-success--stop { border-color: #f4c3cf; background: #fdf2f4; }
.qf-field[hidden], .qf-step[hidden] { display: none !important; }
