/* Home page additions (23 Sep 2026): the page index under the hero, and the Service and Car
   Health section. Kept out of styles.css so they ship without touching its shared version. */

/* Anchor jumps land below the fixed nav, not under it. */
main section[id] { scroll-margin-top: 84px; }

/* ---------- Jump to: the page's index ---------- */
.jump { padding: clamp(40px, 6vw, 72px) 0 0; }
/* Keep the first screen clean: on a tall screen the index would peek in under the hero, so it
   stays invisible (its space still reserved, nothing shifts) until the visitor first scrolls.
   film.js adds .has-scrolled; without JS it simply shows. */
.js .jump { opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s; }
.js.has-scrolled .jump { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease), visibility 0s; }
.jump-title {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 20px; text-align: center;
}
.jump-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .jump-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 980px) { .jump-grid { grid-template-columns: repeat(3, 1fr); } }
.jump-tile {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px 14px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  color: var(--ink); text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s, background-color 0.25s;
}
.jump-tile:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.16); background: #202023; }
.jump-tile .gl { width: 42px; height: 42px; }
.jump-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.jump-t b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.jump-t small { font-size: 13.5px; color: var(--ink-2); }
.jump-go { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease), stroke 0.25s; }
.jump-tile:hover .jump-go { transform: translateX(3px); stroke: var(--ink); }
/* Phones: a compact two-by-three grid, icon and title only, so the index stays one glance long. */
@media (max-width: 599px) {
  .jump-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .jump-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 18px; }
  .jump-tile .gl { width: 36px; height: 36px; }
  .jump-tile .gl svg { width: 19px; height: 19px; }
  .jump-t b { font-size: 15px; line-height: 1.25; }
  .jump-t small, .jump-go { display: none; }
}

/* ---------- Service and Car Health ---------- */
.svc-stage { position: relative; width: 100%; max-width: 420px; margin: 0 auto; padding: 30px 0 40px; }
.svc-receipt {
  position: absolute; left: -6%; top: 0; z-index: 1;
  width: 56%; padding: 18px 16px 26px;
  background: var(--paper, #F4F2EC); color: var(--paper-ink, #1A1A1C);
  transform: rotate(-5deg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from 135deg at 50% 0, #000 90deg, transparent 0) bottom / 12px 8px repeat-x;
          mask: linear-gradient(#000, #000) top / 100% calc(100% - 8px) no-repeat,
    conic-gradient(from 135deg at 50% 0, #000 90deg, transparent 0) bottom / 12px 8px repeat-x;
}
.svc-shop { display: block; text-align: center; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; }
.svc-receipt small { display: block; text-align: center; font-size: 10px; color: rgba(26, 26, 28, 0.6); margin: 2px 0 12px; }
.svc-receipt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.svc-receipt li, .svc-total { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.svc-total { margin-top: 12px; padding-top: 9px; border-top: 1px dashed rgba(26, 26, 28, 0.35); font-weight: 700; font-size: 12.5px; }
.svc-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent-ink);
  box-shadow: 0 0 12px 3px rgba(157, 196, 226, 0.55);
  opacity: 0;
}
.js .svc .in-view .svc-scan { animation: svc-scan 3.4s ease-in-out 0.6s infinite; }
@keyframes svc-scan { 0% { top: 8%; opacity: 0; } 10% { opacity: 1; } 55% { top: 88%; opacity: 1; } 65%, 100% { top: 88%; opacity: 0; } }

.svc-history {
  position: relative; z-index: 2;
  margin: 196px 0 0 18%; width: 82%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 90px -40px var(--accent-glow);
}
.svc-today { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin: 4px 0 8px; }
.svc-today i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.svc-list, .svc-mini { list-style: none; margin: 0; padding: 0; }
.svc-list li, .svc-mini li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.svc-list li:first-child, .svc-mini li:first-child { border-top: 0; }
.svc-dot {
  flex: none; width: 11px; height: 11px; margin: 0 5px; border-radius: 50%;
  background: var(--gc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gc) 24%, transparent);
}
.svc-ct { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.svc-ct b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.svc-ct small { font-size: 12px; color: var(--ink-3); }
.svc-amt { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
/* The three lines just read from the receipt arrive one by one, highlighted. */
.svc-list li.is-new .svc-amt { color: var(--ink); }
.js .svc .svc-list li.is-new { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); transition-delay: calc(0.9s + var(--i) * 0.35s); }
.js .svc .in-view .svc-list li.is-new { opacity: 1; transform: none; }
.svc-badge { bottom: -6px; right: -14px; }
@media (max-width: 899px) { .svc-badge { position: relative; right: auto; bottom: auto; margin: 16px auto 0; width: max-content; } }

.svc-mini { padding: 6px 16px; }
.svc-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.svc-tag.is-amber { background: var(--amber-bg); color: var(--amber); }
.svc-tag.is-red { background: rgba(255, 69, 58, 0.16); color: var(--red, #FF453A); }
.svc-bento { margin-top: 64px; }
.svc-bento .card p { max-width: 42ch; }

@media (prefers-reduced-motion: reduce) {
  .js .svc .svc-list li.is-new { opacity: 1; transform: none; transition: none; }
  .svc-scan { display: none; }
}
@media (max-width: 560px) {
  .svc-receipt { left: 3%; width: 60%; }
  .svc-history { margin: 176px 0 0 8%; width: 92%; }
}
