/* ==========================================================================
   PLUTO — lead quiz, dark interface

   The look leans on darkness, generous space and hairline rules rather than
   on decoration. One cold accent is used sparingly, so when it appears it
   actually means something: progress, focus, confirmation.
   ========================================================================== */

:root {
  /* Surfaces — cool near-blacks rather than pure black, which reads harsh */
  --void:      #08090A;
  --surface:   #101315;
  --surface-2: #171B1E;
  --raised:    #1D2225;

  /* Hairlines */
  --line:      #23282B;
  --line-soft: #191D20;

  /* Type */
  --text:      #F0F3F4;
  --text-dim:  #8B9296;
  --text-faint:#565D61;

  /* The single accent: cold, electric, used only for progress and focus */
  --accent:     #5EE9FF;
  --accent-deep:#1B7183;
  --accent-glow: rgba(94, 233, 255, 0.16);

  --white:  #FFFFFF;
  --danger: #FF6B6B;

  /* Bitsumishi first for anyone who has it installed; Michroma is the closest
     widely available stand-in — wide, geometric, unmistakably technical. */
  --font-mark: 'Bitsumishi', 'Michroma', 'Sora', system-ui, sans-serif;
  --font-ui:   'Sora', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;

  --radius: 12px;
  --max-width: 660px;
  --header-height: 72px;
}

* { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-height) + 90px); }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

h1, h2 {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.015em;
}
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
p { margin: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.app-header {
  background: #000000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}
.app-header .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: var(--header-height);
  padding-top: 8px;
  padding-bottom: 16px;
}

/* Display the supplied logo unchanged, with only its empty margins framed out. */
.wordmark {
  display: block;
  width: min(100%, 300px);
  color: var(--text);
  text-decoration: none;
}
.wordmark img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1545 / 240;
}
.wordmark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}

.save-state {
  position: absolute;
  bottom: 2px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}
.save-state.visible { opacity: 1; }

/* ---------- Probability meter ---------- */
.meter {
  background: var(--void);
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0 18px;
  position: sticky;
  top: calc(var(--header-height) + 1px);
  z-index: 19;
}
.meter-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.meter-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  line-height: 1.4;
}
.meter-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.meter-track {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow), 0 0 4px var(--accent);
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Step canvas ---------- */
.step {
  padding: 34px 0 48px;
  animation: rise 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.step-sub {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 300;
}

/* ---------- Option rows ---------- */
.options {
  margin-top: 26px;
  display: grid;
  gap: 8px;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 18px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.option:hover { border-color: var(--accent-deep); background: var(--surface-2); }
.option:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.option.selected {
  border-color: var(--accent);
  background: var(--surface-2);
}
.option-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--text-faint);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s ease;
}
.option.selected .option-dot { border-color: var(--accent); }
.option.selected .option-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.option-text strong { display: block; font-weight: 400; font-size: 0.97rem; }
.option-text span { display: block; font-size: 0.83rem; color: var(--text-faint); margin-top: 3px; }

/* ---------- Product cards ---------- */
.services {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.service:hover { border-color: var(--accent-deep); background: var(--surface-2); }
.service:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.service-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.service-body {
  padding: 15px 15px 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  align-self: flex-start;
}
.service-name { font-size: 0.98rem; font-weight: 400; line-height: 1.3; }
.service-spec {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-top: 7px;
  text-transform: uppercase;
}
.service-desc {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 10px;
  line-height: 1.55;
  font-weight: 300;
}
.service-pricing {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 10px;
  flex-wrap: wrap;
}
.service-price {
  display: flex;
  flex-direction: column;
}
.service-price strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}
.service-price span { font-size: 0.75rem; color: var(--text-dim); }

.service-financing {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  color: var(--accent);
  font-size: 0.875rem;
  line-height: 1.5;
}
.service-financing > span { color: var(--text-dim); }
.service-financing strong { font-size: 0.875rem; font-weight: 500; }
.service-financing sup { position: relative; top: -0.2em; font-size: 0.75rem; }
.financing-note {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 560px) {
  .services { gap: 14px; }
  .service-body { padding: 18px 18px 20px; }
  .service-name { font-size: 1.1rem; }
  .service-desc { font-size: 0.87rem; }
  .service-price strong { font-size: 1.25rem; }
  .service-tag { font-size: 0.6rem; }
}

/* ---------- Inputs ---------- */
.field { margin-top: 22px; position: relative; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 9px;
}
.field .hint { letter-spacing: 0.08em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 300;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  transition: border-color 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-bottom-color: var(--danger); }
.field select { color-scheme:dark; cursor:pointer; min-width:0; }
.field select:disabled { opacity:.55; cursor:default; }
.vehicle-fields { display:grid; gap:0 16px; }
.vehicle-fields .field { min-width:0; }
@media(min-width:600px) { .vehicle-fields { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.field-error {
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 7px;
  display: none;
}
.field.invalid .field-error { display: block; }

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

/* Address suggestions */
.address-input-wrap { position: relative; }
.address-locality { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.address-locality .field:first-child { grid-column: 1 / -1; }
@media (min-width: 520px) {
  .address-locality { grid-template-columns: 2fr 1fr 1fr; }
  .address-locality .field:first-child { grid-column: auto; }
}
.ac-status { margin: 8px 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--text-dim); }
.ac-status:empty { display: none; }
.ac-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
}
.ac-list.open { display: block; }
.ac-item {
  min-height: 56px;
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  font: inherit;
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
}
.ac-item:last-of-type { border-bottom: none; }
.ac-item:hover, .ac-item.active { background: var(--surface-2); }
.ac-main { display: block; font-size: 0.9rem; }
.ac-sub  { display: block; font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }
.ac-credit {
  padding: 8px 15px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-align: right;
}

.field-ok {
  display: none;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.field.confirmed .field-ok { display: flex; }
.field-ok svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* ---------- Consent ---------- */
.consent {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 18px;
  background: var(--surface);
}
.consent.invalid { border-color: var(--danger); }
.consent-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 0;
}
.consent-row + .consent-row { border-top: 1px solid var(--line-soft); }
.consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.consent-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
  cursor: pointer;
  font-weight: 300;
}
.consent-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: 1px;
}
.consent .field-error { margin: 0 0 14px; }

/* ---------- Photo capture ---------- */
.uploader { margin-top: 24px; display: grid; gap: 8px; }
.upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.upload-btn:hover { background: var(--surface-2); border-color: var(--accent); }
.upload-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.upload-btn.secondary {
  border-color: var(--line);
  color: var(--text-dim);
}
.upload-btn.secondary:hover { border-color: var(--text-faint); color: var(--text); }

.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; }
.preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.preview img, .preview video { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute;
  top: 5px; right: 5px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.preview-badge {
  position: absolute;
  bottom: 4px; left: 4px;
  background: rgba(0,0,0,0.7);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
}

.tips-link {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  cursor: pointer;
  padding: 12px 0 0;
}
.tips-link:hover { color: var(--accent); }

/* ---------- Instruction dialog ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 6, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.28s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideup 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideup { from { transform: translateY(30px); } to { transform: none; } }

.modal-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-example {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
  display: block;
}
.modal-body { padding: 22px 22px 6px; }
.modal-body h2 { font-size: 1.15rem; margin-top: 6px; }
.modal-body .step-sub { margin-top: 10px; font-size: 0.88rem; }
.modal-body h3 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 24px 0 11px;
  font-weight: 400;
}
.modal-body ul { margin: 0; padding-left: 16px; display: grid; gap: 9px; }
.modal-body li { font-size: 0.85rem; color: var(--text-dim); font-weight: 300; line-height: 1.6; }
.modal-body li::marker { color: var(--accent-deep); }

.modal-foot {
  padding: 20px 22px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  gap: 8px;
}
.modal-foot .btn-primary { width: 100%; flex: none; }
.modal-foot .btn-skip { margin: 4px auto 0; }

/* Two-example gallery */
.shot-gallery {
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  gap: 3px;
  background: var(--void);
}
.shot-main { flex: 0 0 73%; margin: 0; position: relative; overflow: hidden; }
.shot-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-main figcaption,
.shot-peek-label {
  position: absolute;
  left: 9px;
  bottom: 9px;
  background: rgba(8, 9, 10, 0.85);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}
.shot-peek {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
}
.shot-peek img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}
.shot-peek:hover img { opacity: 0.9; }
.shot-peek:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.shot-peek-label {
  left: 5px; right: 5px; bottom: 5px;
  text-align: center;
  font-size: 0.52rem;
  padding: 4px 2px;
}
.shot-peek-hint {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
}

@media (min-width: 560px) {
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal { border-radius: 16px; border-bottom: 1px solid var(--line); }
}

/* ---------- Reassurance note ---------- */
.note {
  margin-top: 28px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border-left: 1px solid var(--accent-deep);
  padding: 4px 0 4px 15px;
}
.note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; stroke: var(--accent-deep); fill: none; stroke-width: 1.5; }
.note p { font-size: 0.8rem; color: var(--text-faint); line-height: 1.65; font-weight: 300; }

/* ---------- Buttons ---------- */
.actions {
  margin-top: 34px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 15px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* Light on dark for the primary action — the Tesla move, and it keeps the
   cyan reserved for state rather than spending it on a button. */
.btn-primary { background: var(--white); color: var(--void); flex: 1; }
.btn-primary:hover:not(:disabled) { background: #D9DEE0; }
.btn-primary:disabled { opacity: 0.25; cursor: not-allowed; }

.btn-back {
  background: transparent;
  border-color: var(--line);
  color: var(--text-dim);
  padding: 15px 20px;
}
.btn-back:hover { border-color: var(--text-faint); color: var(--text); }

.btn-skip {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  cursor: pointer;
  padding: 14px;
  margin: 8px auto 0;
  display: block;
}
.btn-skip:hover { color: var(--text-dim); }

/* ---------- Disclosure ---------- */
.disclosure {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 19px;
}
.disclosure h3 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 11px;
  font-weight: 400;
}
.disclosure p { font-size: 0.83rem; color: var(--text-dim); line-height: 1.7; font-weight: 300; }
.disclosure p + p { margin-top: 10px; }

/* ---------- Completion ---------- */
.done { text-align: center; padding: 60px 0 70px; }
.done-mark {
  width: 60px; height: 60px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
}
.done-mark svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.done .step-sub { max-width: 42ch; margin-left: auto; margin-right: auto; }
.summary {
  margin-top: 34px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 19px;
  background: var(--surface);
}
.summary h3 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 18px 0 4px;
  font-weight: 400;
}
.summary dl { margin: 0; display: block; }
.summary .srow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}
.summary .srow:last-child { border-bottom: none; padding-bottom: 18px; }
.summary dt { color: var(--text-faint); flex-shrink: 0; font-weight: 300; }
.summary dd { margin: 0; text-align: right; color: var(--text); font-weight: 400; }

/* ---------- Footer ---------- */
.app-footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0 34px;
  text-align: center;
}
.app-footer p {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.app-footer a { color: var(--text-faint); text-decoration: none; }
.app-footer a:hover { color: var(--accent); }

@media (min-width: 620px) {
  h1 { font-size: 2rem; }
  .step { padding: 46px 0 60px; }
}

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

/* Recoverable save errors keep the original form visible. */
.save-error { color: var(--danger); border: 1px solid var(--danger); border-radius: var(--radius); padding: 14px 18px; font-size: 0.9rem; margin-bottom: 24px; }

/* Single-package update; the original header, forms and booking styles remain. */
.single-service { width:100%; margin:24px 0 0; display:grid; grid-template-columns:180px minmax(0,1fr); cursor:default; }
.single-service .service-photo { width:100%; height:100%; object-fit:contain; background:#f7f7f7; }
.single-service .service-name { font-size:1.2rem; }
.single-service .service-desc { font-size:.875rem; line-height:1.6; }
.single-service .service-recommendation { color:var(--accent); font-family:var(--font-mono); font-size:.75rem; letter-spacing:.06em; margin:0 0 12px; }
.single-service .service-compatibility { font-size:.875rem; line-height:1.6; margin-top:12px; color:var(--text); }
.single-service .service-positioning { font-size:.875rem; line-height:1.6; margin-top:8px; color:#aeb7bb; }
.single-service .service-pricing { display:flex; flex-wrap:wrap; gap:16px 24px; }
.single-service .service-price strong, .booking-offer .service-price strong { font-size:1.65rem; }
.single-service .service-price span, .booking-offer .service-price span { font-size:.875rem; }
.single-service .service-financing, .booking-offer .service-financing { border:0; padding:0; margin:0; }
.single-service .card-financing .service-financing { gap:6px; }
.single-service .card-financing strong { font-size:1.6rem; font-weight:700; line-height:1.2; }
.single-service .card-financing .financing-note { margin:8px 0 0; font-size:.75rem; line-height:1.5; color:#aeb7bb; }
.payment-options { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.payment-options strong { font-family:var(--font-ui); font-size:1rem; }
.payment-options a { font-family:var(--font-ui); font-size:.875rem; padding:4px 0; }
.contact-notice { margin-top:24px; color:var(--text-dim); font-size:.875rem; line-height:1.6; }
.purchase-hero h1 { font-size:clamp(2rem,5.5vw,3.35rem); font-weight:500; line-height:1.08; letter-spacing:-.04em; }
.hero-intro { margin-top:22px; font-size:1rem; line-height:1.75; color:#b8bfc3; }
.purchase-hero .single-service { grid-template-columns:160px minmax(0,1fr); }
.purchase-hero .service-body { padding:22px 24px; }
.purchase-hero .service-name { font-size:1rem; }
.purchase-hero .service-desc { margin-top:8px; }
.purchase-hero .service-pricing { flex-direction:column; gap:8px; }
.purchase-hero .service-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; }
.purchase-hero .service-price strong { font-size:2.4rem; letter-spacing:-.05em; }
.purchase-hero .service-price span { color:var(--text); letter-spacing:.08em; font-size:.8rem; }
.purchase-hero .field label { color:#aeb7bb; font-size:.8rem; }
.purchase-hero .actions { margin-top:24px; }
.purchase-hero .btn-primary { font-weight:500; letter-spacing:.07em; }
.hero-trust { margin-top:16px; text-align:center; color:#b8bfc3; font-size:.875rem; }
.convenience-section { border-top:1px solid var(--line); padding:36px 0; }
.convenience-section h2 { font-size:1.35rem; font-weight:500; line-height:1.4; }
.convenience-section > p { color:#aeb7bb; font-size:1rem; line-height:1.7; margin-top:14px; }
.install-process { list-style:none; padding:0; margin:28px 0 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.install-process li > span { color:var(--accent); font-family:var(--font-mono); font-size:.85rem; }
.install-process h3,.reassurance-list dt { margin:10px 0 8px; font-size:.875rem; font-weight:500; line-height:1.5; }
.install-process p,.reassurance-list dd { color:#aeb7bb; font-size:.875rem; line-height:1.7; margin:0; }
.reassurance-list { display:grid; grid-template-columns:1fr 1fr; gap:18px 30px; margin:20px 0 0; }
.reassurance-list dt { margin-top:0; }
.field-help { color:#aeb7bb; font-size:.875rem; line-height:1.6; margin-top:10px; }
.field input[type=date] { color-scheme:dark; min-width:0; width:100%; }
.booking-offer { margin:24px 0 0; padding:18px 20px; border:1px solid var(--line); border-radius:var(--radius); display:flex; flex-wrap:wrap; gap:12px 24px; align-items:center; }
.booking-offer > span { flex-basis:100%; font-size:1rem; }
@media(max-width:480px) {
  .purchase-hero h1 { font-size:clamp(1.7rem,7.7vw,2rem); }
  .single-service { grid-template-columns:1fr; }
  .single-service .service-photo { height:180px; }
  .single-service .service-body { padding:20px; }
  .contact-row { grid-template-columns:1fr; }
  .purchase-hero .single-service { grid-template-columns:105px minmax(0,1fr); }
  .purchase-hero .single-service .service-photo { height:100%; min-height:230px; }
  .purchase-hero .service-body { padding:18px 16px; }
  .purchase-hero .service-price strong { font-size:2rem; }
  .purchase-hero .service-price { gap:4px 10px; }
  .purchase-hero .service-desc { display:none; }
  .purchase-hero .payment-options a { font-size:.8rem; }
  .install-process { grid-template-columns:1fr; gap:22px; }
  .install-process li { display:grid; grid-template-columns:30px 1fr; column-gap:12px; }
  .install-process h3 { margin:0 0 5px; }
  .install-process p { grid-column:2; }
  .reassurance-list { grid-template-columns:1fr; gap:18px; }
}

.ac-credit a { color: inherit; text-decoration: underline; }

.booking-offer .card-financing strong { font-size:1.6rem; font-weight:700; }
.booking-offer .financing-note { margin:8px 0 0; font-size:.75rem; color:#aeb7bb; }
.installation-details { margin-top:20px; color:#aeb7bb; font-size:.875rem; line-height:1.6; }
.installation-details summary { cursor:pointer; color:var(--text); padding:12px 0; min-height:44px; }
.summary dt { color:#aeb7bb; }

/* Date and start-time picker; all times use the shared Eastern-time rules. */
.installation-calendar { border:1px solid var(--line); border-radius:12px; padding:14px; background:var(--surface); }
.calendar-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.calendar-heading h2 { font-size:1.05rem; font-weight:500; text-align:center; }
.calendar-nav { width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:transparent; color:var(--text); font:26px/1 var(--font-ui); cursor:pointer; }
.calendar-weekdays,.calendar-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.calendar-weekdays { color:#aeb7bb; font-size:.75rem; text-align:center; padding-bottom:8px; }
.calendar-day { position:relative; min-width:0; min-height:44px; border:1px solid transparent; border-radius:8px; padding:8px 0; background:transparent; color:var(--text); font:400 .875rem/1 var(--font-ui); cursor:pointer; }
.calendar-day.today { border-color:var(--accent-deep); }
.calendar-day.today::after { content:""; position:absolute; bottom:4px; left:calc(50% - 2px); width:4px; height:4px; background:var(--accent); border-radius:50%; }
.calendar-day.selected,.time-option.selected { border-color:var(--accent); background:var(--accent); color:#071014; font-weight:500; }
.calendar-day.selected::after { background:#071014; }
.calendar-day:disabled,.calendar-nav:disabled,.time-option:disabled { color:#60696e; cursor:default; background:transparent; }
.calendar-day.selected:disabled { border-color:var(--accent-deep); }
.calendar-today { margin-top:10px; color:#aeb7bb; font-size:.75rem; }
.time-picker { margin-top:24px; }
.time-picker h2 { font-size:1.05rem; font-weight:500; }
.time-date { color:#aeb7bb; font-size:.85rem; margin-top:6px; }
.time-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:14px; }
.time-option { min-height:48px; padding:10px 4px; color:var(--text); border:1px solid var(--line); border-radius:8px; background:var(--surface); font:400 .875rem/1.3 var(--font-ui); cursor:pointer; }
.time-option:disabled { border-style:dashed; }
.calendar-day:focus-visible,.calendar-nav:focus-visible,.time-option:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.calendar-day:hover:not(:disabled):not(.selected),.time-option:hover:not(:disabled):not(.selected) { border-color:var(--accent-deep); background:var(--surface-2); }
.schedule-status { color:var(--accent); font-size:.875rem; margin-top:10px; }
@media(max-width:380px) { .installation-calendar { padding:10px; } .calendar-weekdays,.calendar-days { gap:1px; } }

/* Installation progress follows the existing booking, including post-booking photos. */
.meter { padding:14px 0 12px; }
.installation-progress { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); list-style:none; margin:0; padding:0; border-radius:8px; }
.installation-progress li { position:relative; display:flex; flex-direction:column; align-items:center; gap:8px; min-width:0; color:#777f82; text-align:center; }
.installation-progress li:not(:last-child)::before,.installation-progress li:not(:last-child)::after { content:''; position:absolute; height:1px; width:calc(100% - 34px); left:calc(50% + 17px); top:13px; pointer-events:none; }
.installation-progress li::before { background:#343b3e; }
.installation-progress li::after { background:var(--accent); transform:scaleX(0); transform-origin:left center; }
.installation-progress li.is-complete::after { transform:scaleX(1); }
.installation-progress li.is-completing::after { animation:status-line-fill .36s ease-out .16s both; }
.progress-node { position:relative; display:grid; place-items:center; width:27px; height:27px; border:1px solid #454c50; border-radius:50%; font:13px var(--font-mono); }
.progress-glyph { display:block; }
.progress-label { font:500 12px/1.35 var(--font-ui); letter-spacing:.025em; max-width:110px; }
.installation-progress li.is-current:last-child .progress-label { font-size:clamp(9px,2.3vw,11px); letter-spacing:0; }
.is-current { color:var(--accent)!important; }
.is-current .progress-node { border-color:var(--accent); background:#10282c; }
.is-current .progress-node::after { content:''; position:absolute; inset:-4px; border:1px solid var(--accent); border-radius:50%; pointer-events:none; animation:status-pulse 1.8s ease-out var(--progress-enter-delay,0s) infinite both; }
.is-entering { --progress-enter-delay:.52s; }
.is-entering .progress-node { animation:status-activate .24s ease-out .52s backwards; }
.is-entering .progress-label { animation:status-label-activate .24s ease-out .52s backwards; }
.is-uploading.is-current .progress-node::before { content:''; position:absolute; inset:-3px; border:1px solid transparent; border-top-color:var(--accent); border-radius:50%; pointer-events:none; animation:status-upload-ring 1.8s linear infinite; }
.is-complete { color:#dfe6e7!important; }
.is-complete .progress-node { color:#071014; background:var(--accent); border-color:var(--accent); }
.is-completing .progress-glyph { animation:status-check .24s ease-out both; }
.installation-progress.just-finished { animation:status-finished 1.2s ease-out .2s both; }
.installation-status { text-align:left; padding-top:30px; }
.installation-status .step-kicker { color:var(--accent); font:500 12px/1.5 var(--font-mono); letter-spacing:.09em; margin-bottom:12px; }
.requested-appointment { padding:0 0 28px; border-bottom:1px solid var(--line); margin-bottom:28px; }
.requested-appointment h1 { font:400 clamp(24px,5.5vw,38px)/1.3 var(--font-ui); margin:0 0 8px; letter-spacing:-.025em; }
.requested-appointment p { color:var(--text); font-size:20px; margin:0 0 10px; }
.requested-appointment>span { color:#aab3b6; font-size:13px; line-height:1.5; }
#photo-stage-status h2 { font:400 clamp(24px,5vw,32px)/1.25 var(--font-ui); margin:0 0 14px; letter-spacing:-.025em; }
#photo-stage-status>p:last-child { color:#b6bec1; font-size:16px; line-height:1.65; margin:0 0 20px; }
#photo-stage-status>p:not(.step-kicker) { color:#b6bec1; font-size:16px; line-height:1.65; margin:0 0 16px; }
.photo-urgency { border-left:2px solid var(--accent); padding:4px 0 4px 14px; font-size:14px; line-height:1.6; color:#dbe1e3; margin:0 0 24px; }
.installation-photos { display:grid; gap:14px; }
.quick-install-check { background:var(--surface); border:1px solid #30393c; border-radius:14px; padding:20px; margin:0 0 24px; }
.quick-install-check .check-kicker { display:block; color:var(--accent); font:400 12px/1.5 var(--font-mono); letter-spacing:.12em; margin:0 0 8px; }
.quick-install-check h2 { font-size:20px; line-height:1.4; }
.quick-install-check .check-intro { color:#b5bec2; font-size:14px; line-height:1.6; margin:10px 0 14px; }
.quick-install-check .check-progress { color:#b5bec2; font-size:13px; line-height:1.5; margin:0 0 22px; }
.quick-install-check .check-progress.is-complete { color:var(--accent); }
.install-check-question { border:0; padding:0; margin:0 0 22px; min-width:0; }
.install-check-question:last-child { margin-bottom:0; }
.install-check-question legend { padding:0; color:var(--text); font-size:16px; line-height:1.5; font-weight:400; width:100%; margin-bottom:10px; }
.install-check-question legend .check-kicker { color:#aab8bd; font-size:11px; margin-bottom:4px; }
.install-check-question .check-help { color:#aab8bd; font-size:13px; line-height:1.55; margin:0 0 10px; }
.check-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.check-option { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:46px; padding:10px 12px; color:#d9e0e3; background:#171c1e; border:1px solid #3a4448; border-radius:9px; text-align:left; font:400 14px/1.4 var(--font-ui); cursor:pointer; }
.check-option[aria-pressed="true"] { background:#10272d; border-color:var(--accent); color:var(--accent); }
.check-option:focus-visible,.check-error button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.check-option:disabled { cursor:wait; opacity:.6; }
.check-mark { flex:0 0 12px; font-weight:500; }
.quick-install-check .check-error { color:#ff9a9a; font-size:13px; line-height:1.5; margin:8px 0 0; }
.check-error button { border:0; padding:8px 10px; color:var(--accent); background:transparent; font:inherit; text-decoration:underline; cursor:pointer; min-height:44px; }
@media(max-width:400px) { .quick-install-check { padding:16px; } .check-option { padding:10px; } }
.installation-photo { background:#0f1416; border:1px solid #30393c; border-radius:14px; padding:20px; transition:border-color .25s,background .25s; }
.installation-photo.photo-received { border-color:#33727b; background:#0f191b; }
.photo-card-heading { display:flex; gap:14px; align-items:center; }
.photo-card-icon { width:40px; height:40px; display:grid; place-items:center; color:var(--accent); flex-shrink:0; }
.photo-card-icon svg { width:28px; height:28px; }
.received-photo { width:40px; height:40px; object-fit:cover; border-radius:7px; }
.photo-card-heading h3 { font:400 18px/1.4 var(--font-ui); margin:0; }
.installation-photo>p { color:#aeb9bc; font-size:14px; line-height:1.55; margin:12px 0 18px; }
.photo-upload-control { position:relative; display:flex; min-height:48px; align-items:center; justify-content:center; border:1px solid #516469; border-radius:8px; font:500 13px/1.4 var(--font-ui); letter-spacing:.065em; color:var(--accent); cursor:pointer; overflow:hidden; }
.photo-upload-control input { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }
.photo-upload-control:focus-within { outline:2px solid var(--accent); outline-offset:3px; }
.photo-upload-control.is-uploading { border-color:var(--accent); cursor:wait; }
.photo-transfer { display:grid; gap:8px; margin-top:10px; font-size:12px; line-height:1.5; color:#99a8ad; }
.photo-transfer progress { appearance:none; width:100%; height:5px; border:0; border-radius:4px; background:#26373c; accent-color:var(--accent); }
.photo-transfer progress::-webkit-progress-bar { background:#26373c; border-radius:4px; }
.photo-transfer progress::-webkit-progress-value { background:var(--accent); border-radius:4px; transition:width .2s; }
.photo-transfer progress::-moz-progress-bar { background:var(--accent); }
.photo-error { color:#ffb4ab!important; }
.photo-retry { min-height:44px; background:transparent; border:1px solid var(--accent); color:var(--accent); padding:10px 18px; border-radius:8px; font:inherit; font-size:14px; cursor:pointer; }
.installation-status-note { color:#aab8bc; font-size:13px; line-height:1.6; margin:20px 0; }
.installation-receipt { border-top:1px solid var(--line); padding-top:10px; }
.installation-receipt summary { padding:16px 0; font-size:14px; cursor:pointer; }
.installation-receipt .summary { margin-top:8px; }
@keyframes status-pulse { 0% { transform:scale(.88); opacity:0; } 22% { opacity:.45; } 100% { transform:scale(1.25); opacity:0; } }
@keyframes status-check { from { transform:scale(.65); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes status-line-fill { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@keyframes status-activate { from { color:#777f82; background:transparent; border-color:#454c50; } }
@keyframes status-label-activate { from { color:#777f82; } }
@keyframes status-upload-ring { to { transform:rotate(360deg); } }
@keyframes status-finished { 0%,100% { box-shadow:0 0 0 0 #5ee9ff00; } 35% { box-shadow:0 0 20px 5px #5ee9ff20; } }
@media(min-width:768px) { .installation-progress { max-width:640px; margin:auto; } }
@media(prefers-reduced-motion:reduce) {
  .installation-progress,.installation-progress *,.installation-progress *::before,.installation-progress *::after { animation:none!important; transition:none!important; }
  .is-current .progress-node::after { opacity:.25; }
  .installation-photo,.photo-transfer progress::-webkit-progress-value { transition:none; }
}

.progress-status { margin:12px 0 0; text-align:center; color:var(--accent); font:500 12px/1.4 var(--font-mono); letter-spacing:.04em; }

/* Compact selected-time review on the existing scheduling page. */
.request-time-summary { margin-top:24px; display:grid; gap:6px; font-size:.875rem; line-height:1.5; }
.request-time-summary strong { color:var(--accent); font-size:1rem; font-weight:500; }
.request-time-summary span { color:var(--text-dim); }
.request-time-summary + .actions { margin-top:18px; }
.request-time-summary + .actions .btn-primary { font-size:.875rem; letter-spacing:.025em; line-height:1.4; }
