/* ==========================================================================
   K2 Autohaus — coming soon page

   Brand: black + PANTONE 526 C purple, lit like the neon sign in the logo.

   How the purple is used matters. 526 C (#68217a) is only 1.98:1 against
   black, so it can never carry text on the dark ground. It is the FILL
   colour — buttons, selected chips, the panel edge — always with white text
   on it (10:1). Purple TEXT and glows use the neon from the logo itself
   (#c858f0, sampled from the sign's brightest light), which is 5.4:1.

   Standalone: deploys on its own, so it carries its own tokens rather than
   depending on the main site's stylesheet.
   ========================================================================== */

:root {
  --ink: #0b0810;           /* ground: black, leaning purple */
  --ink-2: #120c1a;         /* raised panel */
  --ink-3: #1a1224;         /* inputs */
  --line: #2a1f36;
  --line-2: #3d2d52;

  --purple: #68217a;        /* PANTONE 526 C — fills only, never text on ink */
  --purple-hover: #7d2a93;
  --neon: #c858f0;          /* the logo's neon — text accents + glows */
  --neon-rgb: 200 88 240;
  --purple-rgb: 104 33 122;

  --silver: #ece9f2;
  --text-2: #c9c4d4;
  --muted: #9b95a8;

  /* semantic, deliberately NOT brand purple: an error has to read as an
     error, and purple-on-purple would hide it */
  --error: #ff8fa3;
  --ok: #7ee0a1;

  --font-display: 'Archivo Black', Impact, sans-serif;
  --font-body: Archivo, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::selection { background: var(--purple); color: #fff; }

img { max-width: 100%; display: block; }

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* focus is always visible — never remove it without a replacement */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--purple);
  color: #fff;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* shared: small uppercase neon label */
.eyebrow,
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon);
  margin: 0 0 14px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
  border-color: rgb(var(--neon-rgb) / 0.55);
  box-shadow: 0 0 14px rgb(var(--neon-rgb) / 0.25);
}
.btn--primary:hover:not(:disabled) {
  background: var(--purple-hover);
  box-shadow: 0 0 20px rgb(var(--neon-rgb) / 0.55), 0 0 44px rgb(var(--purple-rgb) / 0.7);
}
.btn--primary:disabled { opacity: 0.6; cursor: default; }

.btn--ghost {
  background: transparent;
  color: var(--silver);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--neon);
  color: #fff;
  box-shadow: 0 0 14px rgb(var(--neon-rgb) / 0.3);
}

.btn--block { width: 100%; }

/* ==========================================================================
   Hero — the sign, lit up out of the dark
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 6vh, 72px) clamp(20px, 5vw, 64px) clamp(40px, 7vh, 80px);
  overflow: hidden;
  isolation: isolate;
  /* Must be opaque. The logo screen-blends against this isolated group; with
     a transparent base its backdrop is only the glow's partial alpha, so the
     image's black wins and paints a dark box over the page. */
  background: var(--ink);
}

/* light spilling off the sign onto the dark wall around it */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 42% at 50% 30%, rgb(var(--purple-rgb) / 0.55) 0%, rgb(var(--purple-rgb) / 0) 72%),
    radial-gradient(32% 22% at 50% 30%, rgb(var(--neon-rgb) / 0.16) 0%, rgb(var(--neon-rgb) / 0) 70%);
}

.hero__brand {
  margin: 0;
  /* the img's alt text is the heading's accessible name */
}

/* The logo image is the sign's light on pure black — the purple wall from the
   original render was subtracted out ("unscreened"). Screen-blending it adds
   that light onto whatever is behind, so its black vanishes and the neon
   glow falls on the page's own purple wash. No rectangle, no mask. */
.hero__logo img {
  width: min(760px, 92vw);
  height: auto;
  mix-blend-mode: screen;
}

.hero__eyebrow { margin: clamp(4px, 1vh, 12px) 0 10px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 22px;
  color: var(--silver);
  text-shadow:
    0 0 18px rgb(var(--neon-rgb) / 0.28),
    0 0 48px rgb(var(--purple-rgb) / 0.55);
}

.hero__opening { margin: 0 0 22px; }

.neon-pill {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--neon);
  color: #f6eaff;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgb(var(--neon-rgb) / 0.8);
  box-shadow:
    0 0 10px rgb(var(--neon-rgb) / 0.45),
    0 0 28px rgb(var(--purple-rgb) / 0.6),
    inset 0 0 12px rgb(var(--neon-rgb) / 0.22);
}

.hero__lede {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 58ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* the sign powers on once: a brief flicker, like a neon tube striking */
@media (prefers-reduced-motion: no-preference) {
  .hero__logo img { animation: neon-strike 1.3s ease-out both; }
  .neon-pill { animation: neon-strike 1.3s ease-out 0.35s both; }
}

@keyframes neon-strike {
  0%   { opacity: 0; }
  10%  { opacity: 0.85; }
  14%  { opacity: 0.2; }
  20%  { opacity: 0.95; }
  26%  { opacity: 0.45; }
  34%  { opacity: 1; }
  100% { opacity: 1; }
}

/* ==========================================================================
   Booking
   ========================================================================== */

.book {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 64px);
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  scroll-margin-top: 12px;
}

/* a neon tube across the top of the section, like the bar under AUTOHAUS */
.book::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(20px, 5vw, 64px);
  right: clamp(20px, 5vw, 64px);
  height: 2px;
  background: linear-gradient(90deg,
    rgb(var(--neon-rgb) / 0) 0%, var(--neon) 18%, var(--neon) 82%, rgb(var(--neon-rgb) / 0) 100%);
  box-shadow: 0 0 10px rgb(var(--neon-rgb) / 0.7), 0 0 28px rgb(var(--purple-rgb) / 0.8);
}

@media (min-width: 900px) {
  .book { grid-template-columns: 5fr 7fr; align-items: start; }
  .book__intro { position: sticky; top: 32px; }
}

.book__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 18px;
  text-wrap: balance;
}

.book__lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 26px;
  max-width: 46ch;
  text-wrap: pretty;
}

.services {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.services li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  padding: 8px 12px;
}

.contact {
  font-style: normal;
  display: grid;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--muted);
}
.contact span { padding: 4px 0 8px; }
.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: max-content;
  text-decoration: none;
  color: var(--silver);
}
.contact a:hover { color: var(--neon); }

/* ---------- the form panel ---------- */

.book__panel {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(20px, 3.2vw, 40px);
  box-shadow: 0 40px 90px -50px rgb(var(--purple-rgb) / 0.9);
}

/* lit top edge */
.book__panel::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--purple);
  box-shadow: 0 0 12px rgb(var(--neon-rgb) / 0.6);
}

.field {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  min-width: 0;
}

.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field label,
.chips legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--silver);
}

.field__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 6px;
}

.field input:not([type="checkbox"]),
.field textarea {
  width: 100%;
  min-height: 48px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 0;
  color: var(--silver);
  /* 16px prevents iOS Safari zooming the page on focus */
  font-size: 16px;
  font-family: var(--font-body);
  padding: 13px 14px;
  /* makes the native date picker icon light on the dark field */
  color-scheme: dark;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

/* iOS Safari gives native date inputs an intrinsic width that ignores
   width:100%, so the box overflowed the form on iPhone. Dropping the native
   appearance makes it size like the other fields; keep the value left-aligned
   (iOS centres it) and the field from collapsing when empty. */
.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }

.field input:not([type="checkbox"])::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }

.field input:not([type="checkbox"]):focus,
.field textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgb(var(--neon-rgb) / 0.22), 0 0 18px rgb(var(--neon-rgb) / 0.22);
}

.field input:not([type="checkbox"])[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }

.field__error {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--error);
}
.field__error:empty { display: none; }

/* ---------- service chips (checkboxes) ---------- */

.chips {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
.chips legend { padding: 0; margin-bottom: 10px; }

.chips__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip { position: relative; }

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.chip span:hover { border-color: #5a4470; }

.chip input:checked + span {
  border-color: var(--neon);
  background: rgb(var(--purple-rgb) / 0.5);
  color: #fff;
  box-shadow: 0 0 12px rgb(var(--neon-rgb) / 0.35), inset 0 0 10px rgb(var(--neon-rgb) / 0.15);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.chips[aria-invalid="true"] .chip span { border-color: rgb(255 143 163 / 0.6); }

/* ---------- opt-in ---------- */

.optin {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  cursor: pointer;
}
.optin input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--purple);
}

/* ---------- status + confirmation ---------- */

.intake__status {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  margin: 12px 0 0;
  min-height: 1.2em;
  color: var(--text-2);
}
.intake__status[data-state="error"] { color: var(--error); }
.intake__status a { color: var(--silver); }

.intake__fine {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 10px 0 0;
}

.intake__done { outline: none; }

.intake__done-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-shadow: 0 0 18px rgb(var(--neon-rgb) / 0.4);
}

.intake__done-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}
.intake__done-text strong { color: #fff; word-break: break-all; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 18px clamp(20px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.footer__links a:hover { color: var(--neon); }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  .hero__actions { flex-direction: column; width: 100%; max-width: 360px; }
  .hero__actions .btn { width: 100%; }
  .chip span { font-size: 13px; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
