/* Mechd website. Phone first; no frameworks, no outside requests.
   Colours: the logo's black, white and orange, plus the three urgency
   colours used on the app's result screen. */
:root {
  --ink: #0a0a0a;        /* logo background */
  --ink-2: #161412;      /* raised surfaces on dark */
  --rule: #2a2622;
  --bone: #f5f0eb;       /* logo white */
  --stone: #a8a29c;      /* secondary text on ink */
  --orange: #ff4d00;     /* brand */
  --ember: #8a2a00;      /* the dim bars in the logo */
  --rust: #b83700;       /* orange that passes contrast on bone */
  --bone-2: #e9e2da;
  --mud: #5a534c;        /* secondary text on bone */

  /* Urgency colours, the same as the app's result screen */
  --conv-bg: #e3f1e7; --conv-line: #2e7d4f; --conv-ink: #14532d;
  --soon-bg: #fff0cc; --soon-line: #b7791f; --soon-ink: #4a2b00;
  --dont-bg: #b3261e; --dont-ink: #fff;

  --gutter: 20px;
  --measure: 36rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone);
  font: 400 1.0625rem/1.6 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: 16px; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--ink); padding: 0.6rem 1rem; z-index: 10; font-weight: 600; }
.skip:focus { left: var(--gutter); top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ── */
.masthead { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; border-radius: 6px; }
.brand span { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 0.1em; line-height: 1; padding-top: 3px; }
.masthead nav ul { list-style: none; display: flex; gap: 0 1.1rem; }
.masthead nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.98rem; color: var(--stone); text-decoration: none;
}
.masthead nav a:hover { color: var(--bone); }
.masthead nav a[aria-current="page"] { color: var(--bone); box-shadow: inset 0 -2px 0 var(--orange); }
@media (max-width: 379px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 1.4rem; border: 0; border-radius: 10px;
  font: 600 1.05rem/1.15 'DM Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer;
  background: var(--orange); color: var(--ink); text-align: left;
}
.btn:hover { background: #ff6a2b; }
.btn.ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--stone); }
.btn.dark { background: var(--ink); color: var(--bone); }
.btn.dark:hover { background: #2a2622; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* The App Store button: two lines, so it reads as a download */
.btn.store { min-height: 60px; padding: 0.55rem 1.4rem 0.55rem 1.1rem; }
.btn.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.btn.store span { display: flex; flex-direction: column; }
.btn.store small { font-size: 0.82rem; font-weight: 400; }

/* ── Hero ── */
.hero { padding: 40px 0 64px; }
.hero h1 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(4rem, 19vw, 8.75rem); line-height: 0.86; letter-spacing: 0.01em;
}
.wave {
  display: flex; align-items: center; gap: clamp(4px, 1.4vw, 9px);
  height: clamp(88px, 24vw, 140px); margin: 26px 0;
}
.wave i {
  flex: 1 1 0; max-width: 20px; border-radius: 99px; background: var(--ember);
  height: calc(var(--h) * 1%);
  transform-origin: center; animation: listen 1100ms cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--d) * 45ms);
}
.wave i.hot { background: var(--orange); }
.wave i.warm { background: #c93d00; }
.wave i.dim { background: #4a1c08; }
@keyframes listen {
  0% { transform: scaleY(0.08); opacity: 0.4; }
  55% { transform: scaleY(1.08); opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}
.lead { font-size: 1.2rem; line-height: 1.55; max-width: var(--measure); }
.parked { display: flex; gap: 0.6rem; align-items: baseline; margin-top: 20px; color: var(--stone); font-size: 0.98rem; max-width: var(--measure); }
.parked::before { content: ''; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); transform: translateY(-1px); }

/* ── The example result: drawn like the app's result screen ── */
.example { margin-top: 48px; max-width: 25rem; }
.example figcaption { font-size: 0.95rem; color: var(--stone); margin-top: 14px; }
.screen {
  background: #f4f1ed; color: #1c1917; border-radius: 26px; padding: 14px;
  display: grid; gap: 10px;
  box-shadow: 0 0 0 1px #2a2622, 0 30px 60px -30px rgba(255,77,0,0.35);
  font-size: 0.98rem; line-height: 1.45;
}
.screen .card { background: #fff; border-radius: 16px; padding: 16px 18px; }
.screen .kicker { font-size: 0.86rem; font-weight: 600; color: var(--rust); }
.screen .cause { font-size: 1.45rem; font-weight: 600; line-height: 1.2; margin: 2px 0 6px; letter-spacing: -0.01em; }
.screen .context { font-size: 0.86rem; color: #6b635b; }
.screen .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.screen .row + .row { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee8e2; }
.screen .row dt { color: #6b635b; font-size: 0.9rem; }
.screen .row dd { font-weight: 600; text-align: right; }
.screen .row dd small { display: block; font-weight: 400; font-size: 0.8rem; color: #6b635b; }

/* Urgency chips, shared by the example and the urgency list */
.chip { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px 16px; border: 1.5px solid; }
.chip svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.chip .word { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.chip p + p { margin-top: 3px; font-size: 0.94rem; }
.chip.conv { background: var(--conv-bg); border-color: var(--conv-line); color: var(--conv-ink); }
.chip.soon { background: var(--soon-bg); border-color: var(--soon-line); color: var(--soon-ink); }
.chip.dont { background: var(--dont-bg); border-color: var(--dont-bg); color: var(--dont-ink); }

/* ── Sections ── */
.band { padding: 64px 0; border-top: 1px solid var(--rule); }
h2 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 4rem); line-height: 0.95; letter-spacing: 0.01em; margin-bottom: 18px;
}
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.intro { color: var(--stone); max-width: var(--measure); }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-weight: 600; color: var(--orange); }

/* How it works: a real sequence, so it is numbered */
.steps { list-style: none; display: grid; gap: 28px; margin-top: 32px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3.2rem 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 0 16px; counter-increment: step; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  font-family: 'Bebas Neue', sans-serif; font-size: 3.4rem; line-height: 0.85; color: var(--orange);
}
.steps p { color: var(--stone); margin-top: 4px; }

/* Urgency: the three answers Mechd gives, in order of how serious they are */
.urgency { list-style: none; display: grid; gap: 12px; margin-top: 30px; max-width: 40rem; }
.never { margin-top: 22px; color: var(--stone); max-width: var(--measure); }
.never strong { color: var(--bone); font-weight: 600; }

/* Can and can't: two plain lists */
.cando { display: grid; gap: 32px; margin-top: 30px; }
.cando h3 { padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.cando ul { list-style: none; display: grid; gap: 10px; }
.cando li { position: relative; padding-left: 1.6rem; color: var(--stone); }
.cando li::before { position: absolute; left: 0; top: 0; font-weight: 600; }
.cando .can li::before { content: '+'; color: var(--orange); }
.cando .cant li::before { content: '\2013'; color: var(--bone); }

/* Light panel, written for garages */
.light { background: var(--bone); color: var(--ink); border-top: 0; }
.light h2 { color: var(--ink); }
.light .intro, .light p { color: var(--mud); }
.light .more { color: var(--rust); }
.light :focus-visible { outline-color: var(--rust); }
.deal { display: grid; gap: 28px; margin-top: 32px; }
.deal h3 { padding-top: 12px; border-top: 3px solid var(--ink); margin-bottom: 8px; color: var(--ink); }
.deal p, .deal li { color: var(--mud); }
.deal ul { list-style: none; display: grid; gap: 6px; }
.deal ul li { padding-left: 1.1rem; position: relative; }
.deal ul li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--rust); }

/* ── Inner pages ── */
.page-head { padding: 40px 0 44px; }
.page-head h1 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(3.4rem, 15vw, 6.5rem); line-height: 0.88; letter-spacing: 0.01em; margin-bottom: 20px;
}
.prose { max-width: 40rem; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose p:first-child { margin-top: 0; }
.prose ul { list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 1.2rem; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.prose a { color: var(--bone); }
.prose strong { font-weight: 600; }
.band .prose { color: var(--stone); }
.band .prose strong { color: var(--bone); }

/* A stop sign of a box, for "get help now" */
.stop { margin-top: 28px; padding: 20px 22px; border-radius: 14px; background: var(--dont-bg); color: var(--dont-ink); max-width: 40rem; }
.stop h3 { margin-bottom: 8px; }
.stop ul { list-style: none; display: grid; gap: 6px; }
.stop li { position: relative; padding-left: 1.1rem; }
.stop li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stop p { margin-top: 12px; }

/* FAQ: native disclosure, so VoiceOver announces expanded and collapsed */
.faq { max-width: 44rem; margin-top: 8px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 60px; padding: 14px 0; font-weight: 600; font-size: 1.08rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6rem; font-weight: 400; color: var(--orange); line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { padding: 0 0 20px; color: var(--stone); max-width: 38rem; }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: var(--bone); }

/* ── Forms ── */
form { margin-top: 28px; max-width: 32rem; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--stone); }
input, textarea {
  display: block; width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1.0625rem/1.4 'DM Sans', system-ui, sans-serif; /* 17px stops iPhone zooming in */
  color: var(--bone); background: var(--ink-2); border: 1.5px solid var(--rule); border-radius: 10px;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,77,0,0.25); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.light label { color: var(--ink); }
.light label .opt { color: var(--mud); }
.light input, .light textarea { background: #fff; color: var(--ink); border-color: #cfc6bc; }
.light input:focus, .light textarea:focus { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(184,55,0,0.2); }
.fine { font-size: 0.95rem; margin-top: 14px; }
.fine a { color: inherit; }

/* ── Footer ── */
footer.site { padding: 44px 0 calc(44px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); color: var(--stone); font-size: 0.9rem; line-height: 1.7; }
footer.site nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 22px; }
footer.site nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone); font-size: 1rem; }
footer.site p + p { margin-top: 8px; }

/* Thank-you and not-found pages */
.notice { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; padding: 56px 0; }
.notice p { color: var(--stone); max-width: var(--measure); margin-bottom: 14px; }
.notice .actions { margin-top: 18px; }
.notice a:not(.btn) { color: var(--bone); }
.h2like { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2.8rem, 12vw, 4.6rem); line-height: 0.95; margin-bottom: 20px; }

@media (min-width: 560px) {
  :root { --gutter: 32px; }
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 96px; }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
  .example { margin-top: 0; justify-self: end; width: 100%; }
  .band { padding: 96px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .cando { grid-template-columns: 1fr 1fr; gap: 48px; }
  .deal { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .page-head { padding: 64px 0 56px; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i { animation: none; }
}

/* FAQ groups: each group is a section with its own heading, so VoiceOver
   users can jump between them with the headings rotor */
.faq-band { padding: 40px 0; }
.faq-band + .faq-band { border-top: 0; padding-top: 8px; }
.faq-group { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 10px; }
@media (min-width: 900px) { .faq-band { padding: 56px 0; } .faq-band + .faq-band { padding-top: 16px; } }

/* Garages page */
.h3like { font: 600 1.15rem/1.35 'DM Sans', system-ui, sans-serif; letter-spacing: 0; margin-bottom: 8px; }
.deal-dark h2 { padding-top: 12px; border-top: 3px solid var(--orange); color: var(--bone); }
.deal-dark p { color: var(--stone); }
.light .intro + form { margin-top: 24px; }
@media (min-width: 900px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }

/* Partner garages (garages.html#partners) */
[hidden] { display: none !important; }
.partners { margin-top: 32px; }
.partner-town { font: 600 0.85rem/1.3 'DM Sans', system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); margin: 28px 0 12px; }
.partner-town:first-child { margin-top: 0; }
.partner-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.partner { background: var(--ink-2); border: 1.5px solid var(--rule); border-radius: 10px; padding: 16px 18px; }
.partner-name { font-weight: 600; font-size: 1.1rem; color: var(--bone); margin: 0 0 4px; }
.partner-meta { margin: 0 0 4px; color: var(--stone); }
.partner-meta a { color: var(--bone); }
.partner-since { margin: 0; font-size: 0.9rem; color: var(--stone); }
@media (min-width: 720px) { .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
