/* Back Online Fast by JUSTTECH LLC
   Concept: the repair ticket. The hero IS the shop's claim ticket; the
   visitor fills it in and emails it. One accent (the stamp), one motion. */

:root {
  --mat: #3e5f8a;       /* anti-static bench mat blue */
  --mat-deep: #2c4668;
  --ink: #15233a;
  --ink-soft: #3f4d63;
  --canary: #ffe588;    /* carbon-copy ticket */
  --canary-edge: #f2d263;
  --paper: #f7f9fb;
  --stamp: #c53a2e;
  --line: #c9d3de;
  --focus: #1f6feb;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2.1rem, 4.2vw, 2.9rem);
  --step-4: clamp(2.6rem, 6vw, 4.4rem);

  --measure: 64ch;
  --gutter: clamp(18px, 4vw, 40px);
  --max: 1140px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--mat-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- Header ---------- */
.masthead { background: var(--mat); color: #fff; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.mark-plug {
  width: 30px; height: 30px; border: 2.5px solid #fff; border-radius: 7px;
  display: grid; place-items: center;
}
.mark-plug svg { width: 16px; height: 16px; }
.mark b { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.05rem; }
.mark span { display: block; font-size: 0.78rem; opacity: 0.8; line-height: 1.1; }
.masthead nav { display: flex; gap: 22px; }
.masthead nav a { color: #e4ecf6; text-decoration: none; font-weight: 700; font-size: var(--step--1); }
.masthead nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Hero: headline + the ticket ---------- */
.hero {
  background: var(--mat);
  color: #fff;
  padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
  /* the bench mat's faint grid */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero .wrap { display: grid; grid-template-columns: 1fr minmax(320px, 470px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero h1 { font-size: var(--step-4); max-width: 11ch; }
.hero-lede { font-size: var(--step-1); line-height: 1.5; color: #e3eaf4; max-width: 30ch; margin: 22px 0 0; }
.hero-facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; max-width: 34ch; }
.hero-facts li { display: flex; gap: 12px; align-items: baseline; color: #e3eaf4; }
.hero-facts svg { width: 18px; height: 18px; flex: none; transform: translateY(3px); color: var(--canary); }

/* The ticket */
.ticket {
  position: relative;
  background: var(--canary);
  color: var(--ink);
  border-radius: 6px 6px 3px 3px;
  padding: 26px 26px 24px;
  box-shadow: 0 1px 0 var(--canary-edge), 0 18px 40px -18px rgba(8, 20, 40, 0.55);
  transform: rotate(-1.2deg);
}
/* perforated tear-off top */
.ticket::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -9px; height: 18px;
  background: radial-gradient(circle at 9px 9px, var(--mat) 5.5px, transparent 6px) 0 0 / 22px 18px repeat-x;
}
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 16px; }
.ticket-head h2 { font-size: var(--step-2); }
.ticket-head p { margin: 4px 0 0; font-size: var(--step--1); color: var(--ink-soft); }

.stamp {
  flex: none;
  font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.05rem; line-height: 1;
  color: var(--stamp);
  border: 3px solid var(--stamp); border-radius: 6px;
  padding: 8px 10px;
  transform: rotate(8deg);
  mix-blend-mode: multiply;
  animation: stamp 520ms cubic-bezier(.2, 1.6, .4, 1) 450ms both;
}
@keyframes stamp {
  from { opacity: 0; transform: rotate(8deg) scale(1.9); }
  to   { opacity: 0.92; transform: rotate(8deg) scale(1); }
}

.field { margin: 0 0 14px; }
.field > label, .field > legend { display: block; font-weight: 700; font-size: var(--step--1); margin: 0 0 6px; padding: 0; }
.field input[type=text], .field textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 2px dashed rgba(21, 35, 58, 0.45);
  padding: 6px 2px;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-style: solid; border-bottom-color: var(--ink); background: rgba(255, 255, 255, 0.35); }
fieldset.field { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  border: 2px solid var(--ink); font-weight: 700; font-size: var(--step--1);
  cursor: pointer; user-select: none;
}
.chips input:checked + span { background: var(--ink); color: var(--canary); }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.send {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px;
  margin-top: 6px;
  font: inherit; font-weight: 700; font-size: var(--step-1);
  color: #fff; background: var(--ink);
  border: 0; border-radius: 8px; padding: 14px 18px; cursor: pointer;
}
.send:hover { background: #0c1627; }
.send svg { width: 20px; height: 20px; }
.ticket-note { margin: 12px 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.ticket-error { margin: 10px 0 0; font-weight: 700; color: var(--stamp); }
.ticket-error[hidden] { display: none; }

/* ---------- Sections ---------- */
.band { padding: clamp(56px, 8vw, 96px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band h2 { font-size: var(--step-3); max-width: 18ch; }
.band .intro { color: var(--ink-soft); max-width: var(--measure); margin: 14px 0 0; font-size: var(--step-1); line-height: 1.5; }

/* Service board: rows, like the list behind a shop counter */
.board { margin: 40px 0 0; border-top: 3px solid var(--ink); }
.board-row {
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr auto; gap: 8px 32px;
  align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.board-row h3 { font-size: var(--step-1); font-stretch: 112%; }
.board-row p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.where {
  font-size: var(--step--1); font-weight: 700; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; border: 1.5px solid currentColor;
}
.where-remote { color: var(--mat-deep); }
.where-bench { color: var(--ink-soft); }

/* Steps: a real sequence, so it gets numbers */
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps li { counter-increment: step; padding: 0 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: 3.2rem; line-height: 1; color: var(--mat); margin-bottom: 12px;
}
.steps h3 { font-size: var(--step-1); font-stretch: 112%; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Remote vs bench */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); margin: 40px 0 0; }
.side { padding: 28px; border-radius: 10px; }
.side h3 { font-size: var(--step-2); margin-bottom: 10px; }
.side p { margin: 0 0 14px; }
.side ul { margin: 0; padding-left: 20px; }
.side li + li { margin-top: 4px; }
.side-remote { background: var(--mat); color: #fff; }
.side-remote p, .side-remote li { color: #e3eaf4; }
.side-bench { background: #fff; border: 2px solid var(--ink); }
.side-bench p, .side-bench li { color: var(--ink-soft); }

.pay { margin: 32px 0 0; max-width: var(--measure); font-size: var(--step-1); line-height: 1.5; }
.pay strong { font-weight: 700; }

/* FAQ */
.faq { margin: 32px 0 0; max-width: 780px; border-top: 3px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: var(--step-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: var(--measure); }

/* Closing: send them back to the ticket */
.closer { background: var(--ink); color: #fff; }
.closer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closer h2 { font-size: var(--step-3); max-width: 16ch; }
.closer p { margin: 10px 0 0; color: #c9d4e4; max-width: 44ch; }
.closer a.to-ticket {
  display: inline-block; background: var(--canary); color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: var(--step-1); padding: 14px 22px; border-radius: 8px;
}
.closer a.to-ticket:hover { background: #fff0b0; }

.foot { padding: 28px 0; font-size: var(--step--1); color: var(--ink-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }

/* Legal page */
.legal { max-width: 760px; padding: 48px var(--gutter) 80px; margin: 0 auto; }
.legal h1 { font-size: var(--step-3); margin-bottom: 8px; }
.legal h2 { font-size: var(--step-1); font-stretch: 112%; margin: 32px 0 8px; }
.legal p { color: var(--ink-soft); max-width: var(--measure); }
.legal .updated { color: var(--ink-soft); font-size: var(--step--1); }

/* ---------- Responsive ---------- */
.hero .wrap > *, .split > *, .steps > * { min-width: 0; }
.hero h1 { overflow-wrap: break-word; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero h1, .hero-lede, .hero-facts { max-width: none; }
  .ticket { transform: none; max-width: 520px; }
  .board-row { grid-template-columns: 1fr auto; }
  .board-row p { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li, .steps li + li { padding: 0; border: 0; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .masthead nav a:not(.nav-ticket) { display: none; }
  .ticket { padding: 22px 18px 20px; }
  .stamp { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stamp { animation: none; opacity: 0.92; }
  .faq summary::after { transition: none; }
}
