/* Shine On "Before you call" checklist sheets
   On screen: a paper worksheet on the site's dark background, fillable.
   In print: one page, black ink plus a little red, with ruled write-in lines. */

:root {
  --night: #0f0a0a;
  --paper: #f8f4ef;
  --paper-2: #efe7df;
  --ink: #1b1314;
  --ink-2: #4f4445;      /* 9:1 on paper */
  --rule: #c9bdb6;
  --rule-strong: #8e7f7c;
  --red: #b01522;        /* 6.6:1 on paper */
  --red-tint: #f9e3e4;
  --chrome: #f1f2f4;
  --silver: #c5c9cf;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(212, 32, 47, 0.22), transparent 70%),
    var(--night);
  color: var(--silver);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, p, ol, ul, fieldset, address { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- Toolbar ---- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem max(1rem, env(safe-area-inset-left));
  background: rgba(15, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}
.tb-back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 44px; padding-right: 0.5rem;
  color: var(--chrome); font-weight: 600; text-decoration: none;
}
.tb-back:hover span { text-decoration: underline; text-underline-offset: 0.25em; }
.tb-actions { display: flex; gap: 0.6rem; }
.tb-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); color: var(--chrome);
  font-weight: 700; cursor: pointer;
}
.tb-btn:hover { background: rgba(255, 255, 255, 0.1); }
.tb-primary {
  border-color: transparent;
  background: linear-gradient(180deg, #d82735, #b01522);
  color: #fff;
}
.tb-primary:hover { background: linear-gradient(180deg, #e23240, #bd1826); }

main { padding: 1.25rem 1rem 3rem; }
.screen-note {
  max-width: 52rem;
  margin: 0 auto 1rem;
  color: var(--silver);
  font-size: 1rem;
}

/* ---- The sheet ---- */
.sheet {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4.5vw, 3rem);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.letterhead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--red);
}
.lh-badge { width: 60px; height: 60px; }
.lh-shop {
  display: block;
  font-stretch: 118%; font-style: italic; font-weight: 900;
  font-size: 1.5rem; line-height: 1; letter-spacing: -0.01em;
}
.lh-sub { display: block; margin-top: 0.25rem; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.lh-contact { display: grid; justify-items: end; text-align: right; font-size: 0.95rem; color: var(--ink-2); }
.lh-contact a { color: var(--ink); font-weight: 800; font-size: 1.15rem; text-decoration: none; }

.sheet-head { padding: 1.5rem 0 0.5rem; }
.kicker { color: var(--red); font-weight: 700; }
.sheet-head h1 {
  margin-top: 0.3rem;
  font-stretch: 112%; font-style: italic; font-weight: 800;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.015em;
  text-wrap: balance;
}
.intro { margin-top: 0.5rem; color: var(--ink-2); font-size: 1.1rem; }

.block { margin-top: 1.5rem; }
.vehicle legend,
.ask legend {
  margin-bottom: 0.6rem;
  font-stretch: 108%; font-weight: 800; font-size: 1.1rem;
}
.vehicle-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr 1fr;
  gap: 0.75rem 1.25rem;
}

/* ---- Fields ---- */
.field { display: grid; gap: 0.15rem; }
.field label { font-size: 0.95rem; font-weight: 600; color: var(--ink-2); }
.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
.field input {
  min-height: 44px;
  padding: 0.35rem 0;
  border-bottom: 1.5px solid var(--rule-strong);
}
.field input::placeholder { color: #8a7d7c; }
/* textareas look like ruled lines on a notepad */
.field textarea {
  --line: 2.25rem;
  display: block;
  /* at least two lines on screen, for an easy tap target */
  height: calc(max(var(--rows, 2), 2) * var(--line) + 2px);
  min-height: calc(var(--line) + 2px);
  padding: 0 0.1rem;
  line-height: var(--line);
  resize: vertical;
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1.5px), var(--rule-strong) calc(var(--line) - 1.5px) var(--line));
  background-attachment: local;
}
.field input:focus,
.field textarea:focus { outline: none; background-color: rgba(176, 21, 34, 0.05); }
.field input:focus { border-bottom-color: var(--red); box-shadow: 0 1.5px 0 var(--red); }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ---- Questions ---- */
.questions { margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.question { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.question > * + * { margin-top: 0.8rem; }
.question h2 {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: baseline;
  font-stretch: 104%; font-weight: 700;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); line-height: 1.35;
}
.q-num { font-stretch: 118%; font-style: italic; font-weight: 900; font-size: 1.5em; line-height: 1; color: var(--red); }
.question > :not(h2) { margin-left: 2.2rem; }
.hint { color: var(--ink-2); font-size: 1rem; }

.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.3;
  cursor: pointer;
}
.choice:hover { border-color: var(--rule-strong); }
.choice input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  border: 2px solid var(--rule-strong);
  border-radius: 5px;
  background: #fff center / 80% no-repeat;
  cursor: pointer;
}
.choice input:checked {
  border-color: var(--red);
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.choice:has(input:checked) { border-color: var(--red); background: var(--red-tint); }
.choice input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.field-when { max-width: 22rem; }

/* ---- Extras ---- */
.extras {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 1.4rem;
  border-radius: 14px;
  background: var(--paper-2);
}
.ask { display: grid; gap: 0.5rem; justify-items: start; }
.choice-row { background: transparent; border-color: transparent; padding-left: 0.2rem; }
.choice-row:hover { border-color: transparent; }
.choice-row:has(input:checked) { background: transparent; border-color: transparent; }

.sheet-foot { margin-top: 1.5rem; display: grid; gap: 0.5rem; }
.call { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; }
.call .icon { color: var(--red); }
.call a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.fine { font-size: 0.95rem; color: var(--ink-2); }

/* ---- Other checklists ---- */
.others { max-width: 52rem; margin: 2rem auto 0; }
.others h2 { font-size: 1.1rem; font-weight: 700; color: var(--chrome); }
.others ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.others li a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  color: var(--chrome); font-weight: 600; text-decoration: none;
}
.others li a:hover { background: rgba(255, 255, 255, 0.08); }
.others p { margin-top: 1rem; }
.others p a { color: var(--silver); text-underline-offset: 0.25em; }

/* ---- Phones ---- */
@media (max-width: 599px) {
  .letterhead { grid-template-columns: auto 1fr; }
  .lh-badge { width: 52px; height: 52px; }
  .lh-contact { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .vehicle-grid { grid-template-columns: 1fr 1fr; }
  .question h2 { grid-template-columns: 1.8rem 1fr; }
  .question > :not(h2) { margin-left: 0; }
  .tb-btn[data-action="clear"] { display: none; }
  .tb-back span { font-size: 0.95rem; }
  .tb-primary span { display: none; }
  .tb-primary::after { content: "Print"; }
}

/* ---- Print: one page, ink-friendly ---- */
@media print {
  @page { size: letter; margin: 11mm 12mm; }
  html { font-size: 12px; }
  body { background: #fff; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .toolbar, .screen-note, .others { display: none !important; }
  main { padding: 0; }
  .sheet { max-width: none; padding: 0; border-radius: 0; background: none; box-shadow: none; color: #000; }
  .letterhead { padding-bottom: 0.6rem; }
  .lh-badge { width: 52px; height: 52px; }
  .sheet-head { padding-top: 0.9rem; }
  .block, .extras { margin-top: 0.9rem; }
  .questions { margin-top: 0.9rem; }
  .question { padding: 0.6rem 0; break-inside: avoid; }
  .sheet-head h1 { font-size: 2.1rem; }
  .ask { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
  .question > * + * { margin-top: 0.5rem; }
  .choice { min-height: 0; padding: 0.2rem 0.7rem 0.2rem 0.5rem; background: #fff; }
  .choice:has(input:checked) { background: #fff; }
  .field input { min-height: 0; padding: 0.2rem 0; }
  .field textarea { --line: 1.9rem; height: calc(var(--rows, 2) * var(--line) + 2px); resize: none; }
  .extras { padding: 0.8rem 1rem; background: #f3efeb; break-inside: avoid; }
  .sheet-foot { margin-top: 0.7rem; gap: 0.2rem; }
  a { text-decoration: none; color: inherit; }
}
