/* Layout: job-ticket aesthetic. Stacked sections, a ruled "work order" card motif, high-vis orange used only for actions. */
:root {
  --paper: #f6f7f5;
  --panel: #ffffff;
  --ink: #1d2226;
  --muted: #5b646b;
  --rule: #d5dad8;
  --hivis: #e8590c;
  --hivis-ink: #ffffff;
  --steel: #2f4858;
  --tint: #eef1ef;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14181b; --panel: #1c2226; --ink: #e9ecea; --muted: #a3acb2;
    --rule: #333c42; --hivis: #ff7a2e; --hivis-ink: #14181b; --steel: #8fb3c7; --tint: #20272b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14181b; --panel: #1c2226; --ink: #e9ecea; --muted: #a3acb2;
  --rule: #333c42; --hivis: #ff7a2e; --hivis-ink: #14181b; --steel: #8fb3c7; --tint: #20272b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
a { color: var(--steel); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--hivis); outline-offset: 2px;
}
.wrap {
  max-width: 1040px; 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); line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.prose { max-width: 65ch; display: grid; gap: 1rem; }
.prose h2 { margin-top: 1.2rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 55ch; }
.label {
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted);
}

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--panel); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.4rem; padding-block: .9rem; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.brand-mark { width: 26px; height: 26px; border: 2.5px solid var(--ink); border-radius: 3px; display: grid; place-items: center; font-size: .8rem; }
.brand-mark span { color: var(--hivis); }
.nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--hivis); }
.nav a:hover { color: var(--steel); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 1rem var(--body); padding: .8rem 1.3rem; border-radius: 4px;
  border: 2px solid var(--ink); background: var(--panel); color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--hivis); border-color: var(--hivis); color: var(--hivis-ink); }
.btn:hover { filter: brightness(1.05); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Sections */
section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
section + section { border-top: 1px solid var(--rule); }
.stack { display: grid; gap: 1.2rem; }
.hero { display: grid; gap: 2rem; grid-template-columns: 1.2fr 1fr; align-items: center; }
.hero > * { min-width: 0; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }

/* Work-order ticket */
.ticket {
  background: var(--panel); border: 1.5px solid var(--ink); border-radius: 4px;
  font-family: var(--mono); font-size: .9rem; max-width: 420px; width: 100%;
}
.ticket-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; border-bottom: 1px dashed var(--rule); }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row b { font-weight: 600; }
.ticket-head { background: var(--ink); color: var(--paper); }
.chk { color: var(--hivis); font-weight: 700; }

/* Three-up */
.grid3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid3 > div { display: grid; gap: .5rem; align-content: start; min-width: 0; }
.step-no { font-family: var(--mono); color: var(--hivis); font-weight: 600; }

.note {
  background: var(--tint); border-left: 4px solid var(--steel);
  padding: 1rem 1.2rem; border-radius: 0 4px 4px 0; max-width: 65ch;
}

/* Forms */
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field small { color: var(--muted); }
input[type="text"], input[type="url"], input[type="email"], select {
  font: inherit; padding: .7rem .8rem; border: 1.5px solid var(--rule); border-radius: 4px;
  background: var(--panel); color: var(--ink); width: 100%;
}
.form { display: grid; gap: 1rem; max-width: 520px; }
.msg { font-weight: 600; }
.msg.err { color: var(--hivis); }

/* Card maker preview */
.maker { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: start; }
.maker > * { min-width: 0; }
@media (max-width: 760px) { .maker { grid-template-columns: 1fr; } }
.card-preview { display: grid; gap: .8rem; justify-items: start; }
canvas#card { width: 100%; max-width: 420px; height: auto; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }

/* Price */
.price { font-family: var(--display); font-size: 3rem; font-weight: 800; }
.price small { font-size: 1rem; color: var(--muted); font-family: var(--body); font-weight: 400; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 0; color: var(--hivis); font-weight: 700; }

/* FAQ */
details { border-bottom: 1px solid var(--rule); padding-block: 1rem; max-width: 70ch; }
summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; }
details p { margin-top: .6rem; color: var(--muted); }

/* Guide list */
.guide-list { display: grid; gap: 1.2rem; max-width: 70ch; }
.guide-list a { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.guide-list a:hover { color: var(--steel); }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--panel); font-size: .9rem; color: var(--muted); }
.site-foot .wrap { padding-block: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.site-foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Capture + upsell on card maker */
.capture, .upsell {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; align-items: start;
  border: 1.5px solid var(--ink); border-radius: 4px; background: var(--panel);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.capture > *, .upsell > * { min-width: 0; }
.upsell { grid-template-columns: 1fr; border-color: var(--hivis); border-width: 2.5px; }
@media (max-width: 760px) { .capture { grid-template-columns: 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.check input { margin-top: .3rem; accent-color: var(--hivis); }
