/* LeadLuno — "The Work Order". Plain CSS, no dependencies. */

:root {
  --paper:   #F3F1EC;   /* warm shop-paper background */
  --paper-2: #EAE7DF;   /* slightly deeper panel */
  --ink:     #16171A;   /* near-black ink */
  --ink-2:   #4A4C52;   /* muted ink */
  --line:    #D6D2C8;   /* hairline on paper */
  --card:    #FFFFFF;   /* ticket white */
  --accent:  #FF4A1C;   /* signal orange */
  --accent-d:#D63A11;
  --amber:   #B47811;   /* warm score */
  --slate:   #6E7178;   /* cold score */
  --maxw: 1140px;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* guard against any element bleeding past the viewport on mobile */
}
img, svg { max-width: 100%; }
/* let grid/flex columns shrink instead of forcing the page wider than the viewport */
.hero__inner > *, .demo > *, .founder__inner > *, .nav__inner > * { min-width: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,241,236,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-weight: 900; font-size: 19px; letter-spacing: .06em; }
.brand span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__links a.btn { color: #fff; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px;
  background: var(--accent); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  letter-spacing: .01em; border: 1px solid var(--accent); cursor: pointer;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--full { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: #fff; border-color: #fff; }

/* shared eyebrow / kicker (mono, work-order feel) */
.eyebrow, .kicker {
  display: inline-block; font-family: var(--mono);
  font-size: 12px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-d);
}
.eyebrow { margin-bottom: 20px; }
.kicker { margin-bottom: 14px; }
.kicker--light { color: rgba(255,255,255,.75); }

/* ---------- HERO ---------- */
.hero { padding: 84px 0 0; border-bottom: 1px solid var(--line); }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center; padding-bottom: 64px;
}
.hero__h1 {
  font-size: clamp(40px, 6.4vw, 74px); font-weight: 900;
  line-height: .96; letter-spacing: -.025em; text-transform: uppercase;
}
.hero__lead { color: var(--ink-2); font-size: 18px; margin-top: 24px; max-width: 46ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__meta { font-family: var(--mono); color: var(--ink-2); font-size: 12.5px; margin-top: 22px; letter-spacing: .02em; }

/* tint-percentage scale — a device from the shop's own world */
.tintscale { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); height: 12px; overflow: hidden; }
.tintscale::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255,255,255,.4) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: glint 7s ease-in-out infinite;
}
.tintscale span { position: relative; }
.tintscale span:nth-child(1) { background: #cfcabd; }
.tintscale span:nth-child(2) { background: #8f8b81; }
.tintscale span:nth-child(3) { background: #55534d; }
.tintscale span:nth-child(4) { background: #2c2b28; }
.tintscale span:nth-child(5) { background: #141312; }

/* ---------- TICKET (signature element) ---------- */
.hero__ticket { display: flex; justify-content: center; }
.hero__ticket .ticket { animation: floatY 7s ease-in-out infinite; }

/* pulsing "live" status dot */
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: middle;
  animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,74,28,.55); }
  50%      { box-shadow: 0 0 0 6px rgba(255,74,28,0); }
}
@keyframes glint { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(120%); } }
.ticket {
  position: relative; width: 100%; max-width: 380px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -28px rgba(22,23,26,.4);
  padding: 30px 26px 26px;
}
.ticket__perf {
  position: absolute; left: 0; right: 0; top: -1px; height: 8px;
  background:
    radial-gradient(circle at 6px 8px, transparent 5px, var(--card) 5px) 0 0 / 16px 8px repeat-x;
  filter: drop-shadow(0 -1px 0 var(--line));
}
.ticket__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--ink-2); padding-bottom: 16px; border-bottom: 1px dashed var(--line);
}
.ticket__no { color: var(--ink); font-weight: 600; }
.ticket__stamp {
  display: inline-block; margin: 20px 0 4px;
  font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .22em;
  color: var(--accent-d); border: 2px solid var(--accent-d);
  padding: 4px 12px; transform: rotate(-4deg); text-transform: uppercase;
}
.ticket--hot .ticket__stamp { color: var(--accent-d); border-color: var(--accent-d); }
.ticket__rows { margin-top: 16px; }
.ticket__rows > div {
  display: grid; grid-template-columns: 92px 1fr; gap: 10px;
  padding: 9px 0; border-bottom: 1px dotted var(--line); align-items: baseline;
}
.ticket__rows dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ticket__rows dd { font-weight: 600; font-size: 15.5px; }
.ticket__line { margin-top: 18px; font-size: 15.5px; min-height: 46px; color: var(--ink); }
.ticket__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  padding: 5px 9px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2);
}
.ticket__action {
  margin-top: 20px; padding: 12px 14px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .02em;
}
.ticket__action:empty { display: none; }

/* live ticket score states */
.ticket--live .ticket__stamp { color: var(--slate); border-color: var(--slate); }
.ticket--hot  .ticket__action { background: var(--accent); color:#fff; }
.is-hot  .ticket__stamp { color: var(--accent-d); border-color: var(--accent-d); }
.is-hot  .ticket__action { background: var(--accent); color: #fff; }
.is-warm .ticket__stamp { color: var(--amber); border-color: var(--amber); }
.is-cold .ticket__stamp { color: var(--slate); border-color: var(--slate); }

/* ---------- PROBLEM BAND ---------- */
.band { background: var(--ink); color: var(--paper); padding: 76px 0; }
.band__title {
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em;
  max-width: 20ch; line-height: 1.08;
}
.band__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 46px; }
.cost__k {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.cost p { color: rgba(243,241,236,.72); font-size: 15.5px; }

/* shop math receipt inside the problem band */
.shopmath {
  margin: 52px auto 0; max-width: 560px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: rgba(243,241,236,.06);
  border: 1px dashed rgba(243,241,236,.28);
  padding: 26px 28px;
  font-family: var(--mono); text-align: center;
}
.shopmath__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; font-size: 14px; color: rgba(243,241,236,.85); letter-spacing: .03em; }
.shopmath__x { color: var(--accent); font-weight: 600; }
.shopmath__rule { width: 100%; border-top: 1px dashed rgba(243,241,236,.28); }
.shopmath__total { font-size: clamp(17px, 2.4vw, 21px); font-weight: 600; color: var(--accent); letter-spacing: .02em; }

/* ---------- SERVICES RAIL ---------- */
.rail { border-bottom: 1px solid var(--line); background: var(--paper); }
.rail__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 14px 28px; padding-top: 22px; padding-bottom: 22px;
}
.rail__item { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.rail__item strong { font-weight: 800; font-size: 15px; letter-spacing: .01em; text-transform: uppercase; }
.rail__item em { font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--accent-d); letter-spacing: .04em; }

/* ---------- SECTIONS ---------- */
.section { padding: 88px 0; }
.section--paperdark { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 40ch; margin-bottom: 48px; }
.section__title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.section__sub { color: var(--ink-2); font-size: 17px; margin-top: 16px; max-width: 56ch; }

/* ---------- STEPS ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--paper); padding: 32px 28px; }
.step__no { display: block; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--accent-d); letter-spacing: .12em; margin-bottom: 22px; }
.step h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- DEMO ---------- */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.qform { display: flex; flex-direction: column; gap: 15px; background: var(--card); padding: 28px; border: 1px solid var(--line); }
.qform__cap { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 3px; }
.qform label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.qform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qform__row--3 { grid-template-columns: repeat(3, 1fr); }
.qform input, .qform select, .qform textarea {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 12px; font-size: 15px; font-family: var(--sans); font-weight: 500;
  border-radius: 0; text-transform: none; letter-spacing: normal;
  width: 100%; min-width: 0;
}
.qform textarea { resize: vertical; }
.qform input:focus, .qform select:focus, .qform textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
.qform__msg { font-family: var(--mono); color: var(--accent-d); font-size: 13px; }

.demo__out { position: sticky; top: 90px; }
.microcopy { color: var(--ink-2); font-size: 13px; margin-top: 16px; font-family: var(--mono); letter-spacing: .01em; }

/* ---------- LEADS LOG ---------- */
.leads { border: 1px solid var(--line); background: var(--card); }
.leads__head, .leads__row {
  display: grid; grid-template-columns: 1.1fr 1.4fr 1.2fr .9fr .8fr;
  gap: 14px; padding: 15px 22px; align-items: center;
}
.leads__head { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; }
.leads__row { border-top: 1px solid var(--line); font-size: 15px; }
.leads__row span:first-child { font-weight: 700; }
.leads__row span:nth-child(2), .leads__row span:nth-child(4) { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.score { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 4px 10px; display: inline-block; border: 1px solid; text-transform: uppercase; }
.score--hot  { color: var(--accent-d); border-color: var(--accent-d); }
.score--warm { color: var(--amber); border-color: var(--amber); }
.score--cold { color: var(--slate); border-color: var(--slate); }

/* ---------- PRICING ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); padding: 30px 26px; display: flex; flex-direction: column; }
.plan__name { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.plan__price { font-size: 42px; font-weight: 900; letter-spacing: -.03em; margin-top: 14px; }
.plan__price span { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 7px; font-family: var(--mono); }
.plan__mo { font-family: var(--mono); color: var(--accent-d); font-weight: 500; font-size: 14px; margin: 6px 0 20px; letter-spacing: .04em; }
.plan__list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.plan__list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15px; }
.plan__list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan a { margin-top: auto; }
.plan--feature { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); position: relative; }
.plan__badge {
  position: absolute; top: -12px; left: 26px;
  background: var(--accent); color: #fff; font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px;
}
.plans--single { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
.plan__note { text-align: center; color: var(--ink-2); font-size: 15px; max-width: 560px; margin: 26px auto 0; }
.guarantee { text-align: center; font-family: var(--mono); color: var(--ink-2); font-size: 13px; margin-top: 30px; letter-spacing: .01em; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--paper); padding: 92px 0; }
.cta__inner { text-align: center; max-width: 660px; margin: 0 auto; }
.cta__title { font-size: clamp(28px, 4.2vw, 46px); font-weight: 900; letter-spacing: -.025em; line-height: 1.04; text-transform: uppercase; }
.cta__p { color: rgba(243,241,236,.72); font-size: 18px; margin: 18px 0 30px; }
.cta__alt { font-family: var(--mono); font-size: 14px; margin-top: 20px; color: rgba(243,241,236,.72); }
.cta__alt strong { color: var(--paper); }

/* ---------- FOUNDER / FOUNDING SHOPS ---------- */
.founder { background: var(--ink); color: var(--paper); padding: 88px 0; }
.founder__inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: center; }
.founder__mark { display: flex; gap: 10px; height: 190px; }
.founder__mark span { flex: 1; }
.founder__mark span:nth-child(1) { background: #8f8b81; }
.founder__mark span:nth-child(2) { background: #55534d; }
.founder__mark span:nth-child(3) { background: var(--accent); }
.founder__title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 16px; max-width: 22ch; }
.founder__p { color: rgba(243,241,236,.74); font-size: 16.5px; max-width: 60ch; margin-bottom: 26px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 840px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 22px 4px 22px 0;
  font-weight: 700; font-size: 18px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-family: var(--mono); font-weight: 500; font-size: 24px;
  color: var(--accent-d); line-height: 1; flex: none;
}
.faq__item[open] summary::after { content: "\2013"; }
.faq__item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.faq__item p { padding: 0 0 24px; color: var(--ink-2); font-size: 16px; max-width: 70ch; }

/* ---------- FOOTER ---------- */
.footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer p { color: var(--ink-2); font-size: 12.5px; font-family: var(--mono); }
.footer__fine { margin-top: 6px; }
.footer__fine a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cta__alt a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.cta__alt a:hover { color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__ticket { justify-content: flex-start; }
  .band__cols { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
  .demo__out { position: static; }
  .plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .founder__inner { grid-template-columns: 1fr; gap: 32px; }
  .founder__mark { height: 90px; }
  .nav__links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .qform__row, .qform__row--3 { grid-template-columns: 1fr; }
  .leads__head { display: none; }
  .leads__row { grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 18px; }
  .hero { padding-top: 56px; }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .tintscale::after { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Self-playing demo ---------- */
.qform--auto { pointer-events: none; user-select: none; }
.qform--auto input, .qform--auto select, .qform--auto textarea { color: var(--ink); }
.qform--auto .is-typing {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(255,74,28,.14);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.btn.is-pressed { transform: translateY(2px) scale(.985); filter: brightness(.92); }
.qform__msg.is-ok { color: var(--ink); }

.minisheet {
  margin-top: 18px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 18px 44px -26px rgba(22,23,26,.35);
}
.minisheet__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.minisheet__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.minisheet__title { margin-left: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--ink-2); text-transform: uppercase; }
.minisheet__row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr; gap: 8px; align-items: center;
  padding: 9px 12px; border-bottom: 1px dotted var(--line);
  font-size: 13.5px;
}
.minisheet__row:last-child { border-bottom: 0; }
.minisheet__row--head {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); border-bottom: 1px solid var(--line);
}
.minisheet__row .score { font-size: 10.5px; padding: 2px 7px; }
.minisheet__row--new {
  opacity: 0; transform: translateY(-6px); background: rgba(255,74,28,.10);
}
.minisheet__row--new.in {
  opacity: 1; transform: translateY(0);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.9,.3,1.2), background 1.6s ease .9s;
  background: rgba(255,74,28,0);
}

.etoast {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 14px; padding: 14px 16px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 20px 48px -24px rgba(22,23,26,.55);
  opacity: 0; transform: translateY(10px);
}
.etoast.in {
  opacity: 1; transform: translateY(0);
  transition: opacity .3s ease, transform .34s cubic-bezier(.2,.9,.3,1.25);
}
.etoast__icon {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 16px;
}
.etoast__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.etoast__from { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,241,236,.65); }
.etoast__subj { font-weight: 700; font-size: 14.5px; }
.etoast__line { font-family: var(--mono); font-size: 12px; color: rgba(243,241,236,.8); }

@media (prefers-reduced-motion: reduce) {
  .minisheet__row--new, .etoast { opacity: 1; transform: none; transition: none; }
}
