/*
 * Bittner AI marketing site.
 *
 * One stylesheet, no external assets, no web fonts. The buyer opens this on a
 * phone with one bar of signal in a truck cab, so every byte has to earn its
 * place and nothing may block first paint.
 *
 * Dark only, matching the brand: near-black ground, one vivid orange, heavy
 * display type. Orange fills carry near-black labels rather than white —
 * white on #FF5C00 is 3.1:1 and fails AA at button sizes; near-black is 6.3:1.
 */

:root {
  color-scheme: dark;

  --bg:        #0A0A0F;
  --bg-alt:    #0E0E14;
  --surface:   #131319;
  --bg-sunk:   #1A1A22;
  --line:      #26262F;
  --line-soft: #1E1E26;

  --ink:       #F4F4F6;
  --ink-soft:  #A1A1AC;
  --ink-faint: #8E8E9A;

  /* Fills. */
  --accent:      #FF5C00;
  --accent-hi:   #FF7A2E;
  --on-accent:   #140A03;
  --accent-tint: #1E1108;

  /* Text and rules that want the orange without shouting. */
  --brand:      #FF7A2E;
  --brand-tint: #1E1108;

  --ok: #4ADE80;

  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 68rem;
  --pad: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.05rem, 6.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }

/* The signature move: the second phrase of a headline in the orange. */
.accent { color: var(--accent); }

p, ul, ol { margin: 0 0 1.1rem; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }

:focus-visible {
  outline: 3px solid var(--accent-hi);
  outline-offset: 2px;
  border-radius: 3px;
}

strong { font-weight: 650; color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  padding: 0.7rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.05rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.2rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 650; }

.nav .nav-cta {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 99px;
  line-height: 1.25;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.nav .nav-cta:hover, .nav .nav-cta:focus-visible {
  background: var(--accent-hi);
  color: var(--on-accent);
}

@media (max-width: 27rem) {
  .site-head .wrap { padding-block: 0.75rem; }
  .nav { gap: 0.3rem 0.85rem; font-size: 0.9rem; }
  .nav .nav-cta { padding: 0.55rem 0.85rem; min-height: 38px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid var(--accent);
  min-height: 46px;
}
.btn:hover, .btn:focus-visible {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: var(--on-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--surface);
  border-color: var(--ink-faint);
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.75rem 0 0.75rem;
}

.cta-note {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 0.25rem 0 0;
}

/* ---------- sections ---------- */

section { padding-block: clamp(2.75rem, 7.5vw, 4.75rem); }
section.tight { padding-block: clamp(2rem, 5vw, 3rem); }
.alt { background: var(--bg-alt); }

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 9vw, 5.5rem);
  border-bottom: 1px solid var(--line-soft);
}
/* A single soft orange bloom behind the headline. No image, no request. */
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(46rem, 130%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 92, 0, 0.16) 0%, rgba(255, 92, 0, 0.05) 38%, transparent 68%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero p.lede {
  font-size: clamp(1.075rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* The pill badge above the headline. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.45rem 0.95rem;
  margin: 0 0 1.35rem;
}
.eyebrow::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.measure { max-width: 62ch; }

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.alt .card { background: var(--surface); }
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 99px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.75rem;
}

/* ---------- ordered steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.35rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  align-items: start;
}
.steps li::before {
  content: counter(step);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.95rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- lists ---------- */

.ticks { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.ticks li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}
.ticks li strong { color: var(--ink); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55em;
  width: 0.42rem;
  height: 0.78rem;
  border: solid var(--ok);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-50%);
}

.nots { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.nots li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}
.nots li strong { color: var(--ink); }
.nots li::before {
  content: "\2014";
  position: absolute;
  left: 0.1rem;
  color: var(--ink-faint);
  font-weight: 700;
}

/* ---------- callout ---------- */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1.15rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.75rem 0;
  color: var(--ink-soft);
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

.note-plain {
  border-left-color: var(--ink-faint);
  background: var(--bg-sunk);
}

/* ---------- package / pricing ---------- */

.package {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.1rem);
  background: var(--surface);
}
.package h2 { font-size: 1.4rem; letter-spacing: -0.02em; }
.package p { color: var(--ink-soft); }

/* The number itself. Trades buyers scan for this and nothing else. */
.package .price {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.35;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
  margin: 0 0 1.35rem;
}
.package .price strong { font-weight: 800; color: var(--accent); }

/* ---------- FAQ ---------- */

details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  min-height: 44px;
  padding-block: 0.35rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
  width: 0.85rem;
}
details[open] summary::before { content: "\2212"; }
details p { margin: 0.75rem 0 0 1.6rem; color: var(--ink-soft); }
details p:last-child { margin-bottom: 0; }

/* ---------- final CTA band ---------- */

.band {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
}
.band::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: min(40rem, 130%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 92, 0, 0.13) 0%, transparent 66%);
  pointer-events: none;
}
.band > * { position: relative; }
.band p { color: var(--ink-soft); }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  padding-block: 2.5rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.site-foot .cols {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.site-foot h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
}
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 0.45rem; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--accent-hi); text-decoration: underline; }
.fine {
  margin: 2rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* ---------- helpers ---------- */

.spaced { margin-top: 1.75rem; }
.lead-in { color: var(--ink-soft); }
.mb0 { margin-bottom: 0; }
.mt0 { margin-top: 0; }

/* ---------- contact form ---------- */

/*
 * The fallback for somebody who will not book a call. Booking is still the
 * primary action; this exists because a form that has taken real submissions
 * is not worth deleting.
 */
.contact-form {
  max-width: 34rem;
  margin-top: 1.75rem;
}

.contact-form .field { margin-bottom: 1rem; }

.contact-form label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  min-height: 46px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-faint); }

.contact-form textarea { resize: vertical; }

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--accent-hi);
  outline-offset: 1px;
}

.contact-form .field-row {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.contact-form button { margin-top: 0.35rem; cursor: pointer; }

/* Honeypot: hidden from people, filled in by bots. Not display:none, which
   some bots detect and skip. */
.contact-form .hp {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- live demo (lead-system.html) ---------- */

.demo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.2rem, 3.5vw, 1.75rem);
  margin-top: 1.75rem;
  max-width: 42rem;
}

.demo-tasks {
  border: 0;
  padding: 0;
  margin: 0 0 1.25rem;
}
.demo-tasks legend {
  padding: 0;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  color: var(--ink);
}
.demo-tasks label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0.9rem 0.4rem 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
  min-height: 32px;
  cursor: pointer;
}
.demo-tasks input { accent-color: var(--accent); }

.demo .field { margin-bottom: 0.9rem; }
.demo label[for] {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.demo textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  resize: vertical;
}
.demo textarea::placeholder { color: var(--ink-faint); }
.demo textarea:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--accent-hi);
  outline-offset: 1px;
}

/* Presets stay hidden until the script wires them up, so a no-JS visitor is
   not offered buttons that do nothing. */
.demo-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}
.demo-presets[hidden] { display: none; }
.demo-presets-label { color: var(--ink-faint); }

.chip {
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.45rem 0.85rem;
  min-height: 34px;
  cursor: pointer;
}
.chip:hover, .chip:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

.demo-out:empty { display: none; }
.demo-out {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.demo-msg { margin: 0; color: var(--ink-soft); }
.demo-out.is-warn .demo-msg { color: var(--ink); }

.demo-out h3 { margin: 0 0 0.85rem; }

/* Says plainly that this is a canned example, not a live answer. */
.demo-flag {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink);
  background: var(--bg-sunk);
  border-left: 3px solid var(--ink-faint);
  padding: 0.6rem 0.8rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 1.1rem;
}

.demo-fields {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) 1fr;
  gap: 0.45rem 1rem;
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
}
.demo-fields dt { font-weight: 650; color: var(--ink-faint); }
.demo-fields dd { margin: 0; color: var(--ink); }

.demo-body {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: pre-wrap;
}

#demo-run[disabled] { opacity: 0.6; cursor: default; }
