@import url("/fonts/fonts.css");

/* Layout: production-office paperwork (hot cost sheet, receipts) labelled with strips of fluorescent spike tape; the tape is the one loud element */
:root {
  --bg: #ECEEF0;
  --paper: #FFFFFF;
  --ink: #15171A;
  --muted: #5B616A;
  --line: #CDD2D8;
  --tape: #FF3D8B;
  --tape-ink: #15171A;
  --tape-2: #F4D60C;
  --good: #1F7A4A;
  --bad: #C4302B;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121418; --paper: #1B1E23; --ink: #ECEEF1; --muted: #9AA1AB; --line: #2E333B;
    --tape: #FF4F97; --tape-ink: #121418; --tape-2: #F4D60C; --good: #49C483; --bad: #FF6A62; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121418; --paper: #1B1E23; --ink: #ECEEF1; --muted: #9AA1AB; --line: #2E333B;
  --tape: #FF4F97; --tape-ink: #121418; --tape-2: #F4D60C; --good: #49C483; --bad: #FF6A62; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
body { margin: 0; -webkit-font-smoothing: antialiased; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: .92; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 9vw, 6.6rem); font-weight: 900; letter-spacing: -.005em; }
h2 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 800; }
h3 { font-size: 1.7rem; font-weight: 800; line-height: 1; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }

/* Spike tape label: the signature element */
.tape { display: inline-block; font-family: var(--marker); font-size: 1.05rem; line-height: 1; color: var(--tape-ink); background: var(--tape);
  padding: 7px 16px 6px; transform: rotate(-2deg); clip-path: polygon(2% 0, 98% 4%, 100% 50%, 97% 100%, 1% 96%, 0 45%); width: fit-content; max-width: 100%; }
.hero-copy > .tape, .head > .tape, .contact-copy > .tape { justify-self: start; }
.tape.y { background: var(--tape-2); transform: rotate(1.5deg); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 700 1rem var(--body);
  padding: 15px 22px; border-radius: 6px; background: var(--ink); color: var(--bg); transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 12px; }
.logo { font-family: var(--display); font-weight: 900; font-size: 2rem; text-transform: uppercase; text-decoration: none; line-height: 1; display: flex; align-items: center; gap: 10px; }
.logo i { width: 22px; height: 22px; border: 3px solid var(--ink); display: grid; place-items: center; font-style: normal; }
.logo i::after { content: ""; width: 8px; height: 8px; background: var(--tape); }
.top .btn { padding: 10px 16px; font-size: .92rem; }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hot cost sheet */
.sheet { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 30px 60px -36px rgba(0,0,0,.5); position: relative; min-width: 0; }
.sheet > .tape { position: absolute; top: -14px; left: 22px; }
.sheet-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 30px 20px 14px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.sheet-head .t { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.sheet-head .d { color: var(--muted); font-size: .9rem; }
.day { font-family: var(--display); font-weight: 900; font-size: 2.4rem; line-height: 1; text-align: right; }
.day small { display: block; margin-top: 6px; line-height: 1.2; font-family: var(--body); font-size: .75rem; font-weight: 500; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 20px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { font-size: .78rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
tbody td { border-bottom: 1px dashed var(--line); }
td.pend { color: var(--bad); font-weight: 600; }
td.zero { color: var(--good); }
.budget { padding: 16px 20px 20px; display: grid; gap: 8px; }
.budget .row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.bar { height: 12px; background: var(--bg); border-radius: 2px; overflow: hidden; position: relative; }
.bar span { position: absolute; inset: 0 auto 0 0; width: 87%; background: var(--ink); }
.bar .mark { left: 44%; position: absolute; top: -3px; bottom: -3px; width: 3px; background: var(--tape); }
.warn-line { font-size: .88rem; color: var(--bad); font-weight: 600; }

/* Sections */
section.block { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: 40px; }
.head p { color: var(--muted); font-size: 1.12rem; }

/* Demo */
.demo { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.pick { display: grid; gap: 10px; }
.pick button { text-align: left; font: inherit; cursor: pointer; padding: 14px 16px; border-radius: 4px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); display: grid; gap: 2px; }
.pick button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--tape); }
.pick b { font-weight: 600; }
.pick .btn { display: flex; justify-content: center; text-align: center; background: var(--ink); color: var(--bg); border: 0; font-weight: 700; }
.pick small { color: var(--muted); }
.stage { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: start; min-width: 0; }
.receipt { background: #FBFAF6; color: #23211C; font-family: "Courier New", Courier, monospace; font-size: .8rem; line-height: 1.45; padding: 20px 18px 26px; position: relative; overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.55); transform: rotate(-1.2deg);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 1px dashed #8A857A; margin: 8px 0; }
.receipt .r { display: flex; justify-content: space-between; gap: 8px; }
.scan { position: absolute; left: 0; right: 0; height: 3px; top: 0; background: var(--tape); box-shadow: 0 0 18px 4px color-mix(in srgb, var(--tape) 55%, transparent); opacity: 0; }
.scanning .scan { opacity: 1; animation: scan 1.1s ease-in-out; }
@keyframes scan { from { top: 0; } to { top: 100%; } }
.result { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 20px; display: grid; gap: 14px; min-width: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0; }
.fields div { display: grid; gap: 2px; min-width: 0; }
.fields dt { font-size: .78rem; color: var(--muted); }
.fields dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.verdict { padding: 12px 14px; border-radius: 4px; font-weight: 600; display: grid; gap: 4px; }
.verdict small { font-weight: 400; }
.verdict.ok { background: color-mix(in srgb, var(--good) 13%, transparent); color: var(--good); }
.verdict.ko { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.verdict small { color: var(--ink); }
.idle { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .scanning .scan { animation: none; opacity: 0; } .btn:hover { transform: none; } }

/* Money lost */
.losses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.loss { display: grid; gap: 12px; align-content: start; min-width: 0; }
.loss .fig { font-family: var(--display); font-weight: 900; font-size: 3.6rem; line-height: .9; }
.loss p { color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 20px 20px 0 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--tape); }
.steps p { color: var(--muted); }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 26px 22px 22px; display: grid; gap: 12px; align-content: start; position: relative; min-width: 0; }
.role .tape { position: absolute; top: -13px; left: 18px; font-size: .95rem; }
.role p { color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { border: 2px solid var(--ink); border-radius: 4px; padding: 26px 22px; display: grid; gap: 14px; align-content: start; min-width: 0; background: var(--paper); }
.plan.pilot { border-color: var(--tape); }
.price { font-family: var(--display); font-weight: 900; font-size: 3.2rem; line-height: .9; }
.price small { font-family: var(--body); font-weight: 500; font-size: .95rem; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }
.note { margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--tape); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 42rem; }

/* Contact */
.contact { background: var(--ink); color: var(--bg); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding-block: clamp(56px, 8vw, 104px); }
.contact-copy { display: grid; gap: 18px; align-content: start; }
.contact-copy p { opacity: .78; font-size: 1.1rem; }
form { display: grid; gap: 14px; min-width: 0; }
form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
form input, form select { font: inherit; padding: 12px 14px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); background: color-mix(in srgb, var(--bg) 7%, transparent); color: var(--bg); width: 100%; }
form select option { color: #15171A; background: #FFFFFF; }
.contact .btn { background: var(--tape); color: var(--tape-ink); justify-self: start; }
.form-msg { padding: 14px 16px; border-left: 4px solid var(--tape); background: color-mix(in srgb, var(--bg) 9%, transparent); }
.legal { font-size: .82rem; opacity: .75; }
.legal a { color: inherit; }
.captcha { min-height: 65px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form input[aria-invalid="true"] { border-color: var(--bad); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
footer { padding-block: 26px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; gap: 18px; }
/* Legal pages */
.doc { padding-block: clamp(36px, 6vw, 72px); }
.doc .wrap { max-width: 760px; display: grid; gap: 16px; }
.doc h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
.doc h2 { font-size: 1.9rem; margin-top: 18px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.doc strong { color: var(--ink); }

@media (max-width: 900px) {
  .hero .wrap, .contact .wrap, .demo { grid-template-columns: 1fr; }
  .losses, .roles, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 24px; }
}
@media (max-width: 560px) {
  .stage { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .receipt { max-width: 280px; }
  .fields { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  th, td { padding: 9px 12px; }
}
