/* =====================================================================
   COSMIC DETAILING LLC — STYLES
   One stylesheet for every page. Colors, fonts and spacing are set as
   variables in :root so you can rebrand by editing a few lines.
   Sections:
     1. Tokens        6. Cards & grids     11. Before/after slider
     2. Base          7. Service cards     12. Reviews
     3. Layout        8. Pricing table     13. Forms
     4. Header/nav    9. Memberships       14. Footer
     5. Heroes       10. Areas             15. Utilities & motion
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
/* Layout: dark navy page, full-bleed photo heroes with dark overlay,
   content in a 1180px column; cards are the only rounded/bordered objects. */
:root {
  --navy: #0a1020;          /* main background */
  --black: #05070d;         /* premium sections */
  --surface: #111a2f;       /* cards */
  --blue: #4d8dff;          /* cosmic blue: primary accent */
  --blue-soft: #8db6ff;
  --purple: #8f86ff;        /* secondary accent, used sparingly */
  --white: #f4f6fc;         /* headings */
  --gray: #b3bbcc;          /* body text */
  --muted: #7d879c;
  --silver: rgba(196, 206, 228, 0.16);   /* borders */
  --dev: #ffae5c;           /* dev-mode notes only */

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --gutter: 20px;
  --section: clamp(64px, 9vw, 112px);
  color-scheme: dark;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--gray);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--white); margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 6.2vw, 72px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0; }
a { color: var(--blue-soft); }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-soft); }
.lede { font-size: 19px; max-width: 60ch; }

/* ---------- 3. LAYOUT ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section.dark { background: var(--black); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
main { position: relative; z-index: 1; }

/* ---------- 4. HEADER / NAV ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: linear-gradient(180deg, rgba(14, 20, 38, 0.94), rgba(6, 9, 18, 0.90));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--silver);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7), inset 0 -1px 0 rgba(77, 141, 255, 0.12);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font: 700 17px/1 var(--f-display); letter-spacing: 0.01em; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 2px 6px rgba(77, 141, 255, 0.35)); }
.brand small { display: block; font: 500 10px/1.4 var(--f-mono); letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }

/* Desktop nav: links sit in a recessed, shaded track; each link is a pill */
.nav {
  display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(196, 206, 228, 0.10);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav a {
  position: relative; color: var(--gray); text-decoration: none;
  font-size: 14.5px; font-weight: 600; padding: 9px 13px; border-radius: 999px;
  border: 1px solid transparent;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nav a:hover {
  color: var(--white);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  border-color: rgba(196, 206, 228, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 10px -4px rgba(0, 0, 0, 0.6);
}
.nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, #2c4f99, #182d5c);
  border-color: rgba(141, 182, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 1px rgba(77, 141, 255, 0.15), 0 6px 16px -6px rgba(77, 141, 255, 0.7);
}
.header-book {
  background: linear-gradient(180deg, #6ea2ff, var(--blue) 55%, #3a74e0) !important;
  border-color: #6ea2ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px -8px rgba(77, 141, 255, 0.9);
}
.header-book:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 26px -6px rgba(77, 141, 255, 1); }
.menu-toggle {
  display: none; color: var(--white); border-radius: 12px; width: 44px; height: 44px; cursor: pointer;
  border: 1px solid rgba(196, 206, 228, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 10px -4px rgba(0, 0, 0, 0.6);
}
.menu-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1300px) and (min-width: 1101px) { .nav a { padding: 9px 10px; font-size: 14px; } }
@media (max-width: 1100px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 6px;
         border-radius: 0; border: 0; border-bottom: 1px solid var(--silver);
         background: linear-gradient(180deg, #0b1122, var(--black));
         box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
         padding: 12px var(--gutter) 20px; }
  .nav[hidden] { display: none !important; }
  .nav a { padding: 14px 16px; border-radius: 12px; font-size: 17px;
           background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
           border-color: rgba(196, 206, 228, 0.10); }
  .nav .nav-book { text-align: center; color: #fff; background: linear-gradient(180deg, #6ea2ff, var(--blue)); border-color: #6ea2ff; margin-top: 6px; }
  .header-book { display: none; }
}
@media (min-width: 1101px) { .nav[hidden] { display: flex !important; } .nav .nav-book { display: none; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: 15px 24px; border-radius: 999px; border: 1px solid var(--silver);
  color: var(--white); background: transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--blue-soft); color: var(--white); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #6ea2ff; border-color: #6ea2ff; }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 5. HEROES ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--black) center / cover no-repeat;
  border-bottom: 1px solid var(--silver);
}
.home .hero { background-position: 68% center; }
.hero::before {           /* dark overlay keeps text readable over any photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,7,13,0.92) 0%, rgba(5,7,13,0.72) 50%, rgba(5,7,13,0.35) 100%),
              linear-gradient(0deg, rgba(5,7,13,0.85) 0%, transparent 40%);
}
.hero .wrap { position: relative; padding-block: clamp(80px, 13vw, 160px) clamp(64px, 9vw, 110px); display: grid; gap: 22px; }
.hero h1 { max-width: 15ch; }
.hero .lede { color: #d3d9e6; }
.hero .btn-row { margin-top: 10px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 20px; font: 500 13px/1.4 var(--f-mono); color: var(--gray); letter-spacing: 0.04em; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.page-hero .wrap { padding-block: clamp(64px, 9vw, 104px) clamp(48px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); max-width: 20ch; }

/* Home page: fixed backdrop of photos that crossfade as you scroll */
.scene-stack { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scene { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1s ease; }
.scene.is-active { opacity: 0.16; }
.home .section:not(.dark) { background: rgba(10, 16, 32, 0.80); }
.home .section.dark { background: rgba(5, 7, 13, 0.90); }

/* ---------- 6. CARDS & GRIDS ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--silver); border-radius: var(--radius); padding: 28px; min-width: 0; }
.feature { display: grid; gap: 12px; align-content: start; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(77,141,255,0.12); color: var(--blue-soft); }
.feature-icon svg { width: 22px; height: 22px; }
.feature p { font-size: 16px; }

/* ---------- 7. SERVICE CARDS ---------- */
.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-3px); border-color: rgba(141,182,255,0.4); }
.service-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-body p { font-size: 16px; }
.service-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--silver); }
.price { font: 600 20px/1.2 var(--f-display); color: var(--white); font-variant-numeric: tabular-nums; }
.price small { font: 400 12px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 6px; }
.price.quote { font-size: 16px; color: var(--blue-soft); }
.duration { font: 400 13px/1 var(--f-mono); color: var(--muted); }
.service-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.service-actions .btn { flex: 1; }

/* Detailed service rows (services page) */
.service-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; padding: 0; overflow: hidden; }
.service-row img { height: 100%; width: 100%; object-fit: cover; min-height: 240px; }
.service-row .service-body { padding: 32px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; font-size: 16px; }
.checklist li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.checklist li::before { content: ""; width: 10px; height: 6px; margin-top: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
@media (max-width: 820px) { .service-row { grid-template-columns: 1fr; } .service-row img { min-height: 0; aspect-ratio: 16 / 9; } .checklist { grid-template-columns: 1fr; } }
.category-label { display: inline-block; font: 500 11px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); }

/* ---------- 8. PRICING TABLE ---------- */
.size-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.size-picker button { font: 600 14px/1 var(--f-body); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--silver); background: transparent; color: var(--gray); cursor: pointer; }
.size-picker button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.table-scroll { overflow-x: auto; border: 1px solid var(--silver); border-radius: var(--radius); background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
.price-table th, .price-table td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--silver); }
.price-table thead th { font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.02); }
.price-table td { font-variant-numeric: tabular-nums; color: var(--white); }
.price-table td.q { color: var(--blue-soft); font-size: 14px; }
.price-table tbody th { color: var(--white); font-weight: 600; }
.price-table tr:last-child > * { border-bottom: 0; }
.price-table .col-active { background: rgba(77,141,255,0.10); }
.addon-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; }
.addon { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--silver); }
.addon span { color: var(--white); }
.addon b { font: 500 14px/1.5 var(--f-mono); color: var(--blue-soft); white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--silver); border-radius: var(--radius-sm); background: var(--surface); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; color: var(--white); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--blue-soft); font: 400 22px/1 var(--f-mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; font-size: 16px; }

/* ---------- 9. MEMBERSHIPS ---------- */
.plan { display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.highlight { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.plan .ribbon { position: absolute; top: -12px; left: 26px; background: var(--blue); color: #fff; font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }
.plan .freq { font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); }
.plan .price { font-size: 30px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 16px; flex: 1; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.plan li::before { content: ""; width: 10px; height: 6px; margin-top: 8px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.status-pill { align-self: flex-start; font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--silver); color: var(--gray); }
.status-pill.open { border-color: rgba(92, 220, 160, .5); color: #7be3b4; }

/* Credit tracker preview */
.credit-demo { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.credit-dots { display: flex; gap: 10px; }
.credit-dots span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--blue); background: var(--blue); }
.credit-dots span.used { background: transparent; border-color: var(--silver); }
@media (max-width: 620px) { .credit-demo { grid-template-columns: 1fr; } }

/* ---------- 10. AREAS ---------- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.area h3 { font-size: 18px; margin-bottom: 14px; }
.area ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.area li { display: flex; justify-content: space-between; color: var(--white); padding-bottom: 8px; border-bottom: 1px solid var(--silver); }
.area li span { font: 500 12px/1.8 var(--f-mono); color: var(--muted); }

/* ---------- 11. BEFORE / AFTER SLIDER ---------- */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--silver); aspect-ratio: 14 / 9; max-width: 100%; user-select: none; background: var(--black); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba .ba-knob { position: absolute; top: 50%; left: var(--pos, 50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); transform: translate(-50%, -50%); display: grid; place-items: center; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.ba .ba-knob svg { width: 22px; height: 22px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba input[type="range"]:focus-visible ~ .ba-knob { outline: 3px solid var(--blue); outline-offset: 3px; }
.ba-tag { position: absolute; top: 14px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(5,7,13,.75); color: var(--white); pointer-events: none; }
.ba-tag.before { left: 14px; } .ba-tag.after { right: 14px; }
.ba-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
.ba-caption h3 { font-size: 18px; }
.ba-caption p { font-size: 15px; color: var(--muted); }

/* ---------- 12. REVIEWS ---------- */
.review { display: grid; gap: 14px; align-content: start; }
.stars { color: var(--blue-soft); letter-spacing: 3px; font-size: 15px; }
.review blockquote { margin: 0; color: var(--white); font-size: 17px; }
.review footer { font-size: 14px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--silver); background: var(--black) center / cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,13,.94), rgba(5,7,13,.6)); }
.cta-band .inner { position: relative; padding: clamp(36px, 6vw, 72px); display: grid; gap: 18px; justify-items: start; }

/* ---------- 13. FORMS ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field legend { font: 600 14px/1.3 var(--f-body); color: var(--white); }
.field .hint { font-size: 13px; color: var(--muted); }
input, select, textarea {
  font: 400 16px/1.4 var(--f-body); color: var(--white);
  background: var(--black); border: 1px solid var(--silver); border-radius: var(--radius-sm);
  padding: 13px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(77,141,255,.25); }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--silver); border-radius: var(--radius-sm); cursor: pointer; font-size: 15px; color: var(--gray); }
.check input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.form-status { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(92,220,160,.4); background: rgba(92,220,160,.08); color: var(--white); font-size: 15px; }
.form-status.error { border-color: rgba(255,120,120,.5); background: rgba(255,120,120,.08); }
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 16px; margin: 0; }
.info-list div { display: grid; gap: 2px; }
.info-list dt { font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-list dd { margin: 0; color: var(--white); }

/* ---------- 14. FOOTER ---------- */
.site-footer { position: relative; z-index: 1; background: var(--black); border-top: 1px solid var(--silver); padding-block: 56px 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--gray); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--silver); color: var(--muted); font-size: 13px; }

/* ---------- 15. UTILITIES & MOTION ---------- */
.dev-note { display: inline-block; font: 500 11px/1.5 var(--f-mono); letter-spacing: .04em; color: var(--dev); border: 1px dashed rgba(255,174,92,.55); border-radius: 6px; padding: 2px 7px; }
.dev-banner { background: rgba(255,174,92,.10); border-bottom: 1px solid rgba(255,174,92,.3); color: var(--dev); font: 500 12px/1.4 var(--f-mono); text-align: center; padding: 8px var(--gutter); position: relative; z-index: 60; }
.muted { color: var(--muted); }
.mt-lg { margin-top: 48px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; }
.spin-mark { transition: transform .1s linear; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   16. STEP-BY-STEP PACKAGE EXPLANATIONS
   ===================================================================== */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 14px 0 16px 50px; border-bottom: 1px solid var(--silver);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 13px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 600 13px/1 var(--f-mono); color: #fff;
  background: linear-gradient(180deg, #2c4f99, #182d5c);
  border: 1px solid rgba(141, 182, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.steps li:not(:last-child)::after {           /* the line joining the numbers */
  content: ""; position: absolute; left: 15px; top: 46px; bottom: -12px; width: 2px;
  background: linear-gradient(var(--blue), transparent); opacity: .45;
}
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.step-head strong { color: var(--white); font-weight: 600; font-size: 17px; }
.step-time { font: 500 12px/1 var(--f-mono); color: var(--blue-soft); white-space: nowrap; padding: 5px 8px; border: 1px solid var(--silver); border-radius: 999px; }
.steps p { font-size: 15.5px; margin-top: 4px; }
.steps-total { margin-top: 14px; font-size: 15px; color: var(--muted); }
.steps-total b { color: var(--white); }

/* Services page: one card per package with its full step list */
.service-detail { padding: 0; overflow: hidden; }
.service-detail-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.service-detail-top img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.service-detail-top .service-body { padding: 30px; }
.service-detail-steps { padding: 6px 30px 30px; border-top: 1px solid var(--silver); background: rgba(0, 0, 0, 0.18); }
.service-detail-steps h4 { margin: 22px 0 8px; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.size-prices { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.size-prices b { color: var(--white); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .service-detail-top { grid-template-columns: 1fr; }
  .service-detail-top img { min-height: 0; aspect-ratio: 16 / 9; }
  .service-detail-top .service-body, .service-detail-steps { padding-inline: 20px; }
}

/* Home page: "Inside the $400 Premium Full Detail" */
.breakdown { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.breakdown-intro { display: grid; gap: 16px; position: sticky; top: 110px; }
.big-price { font: 700 clamp(72px, 11vw, 132px)/0.95 var(--f-display); letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--white), #7f8bab); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.mini-facts b { color: var(--white); }
@media (max-width: 900px) { .breakdown { grid-template-columns: 1fr; } .breakdown-intro { position: static; } }

.price-table th a { color: var(--white); text-decoration: none; }
.price-table th a:hover { color: var(--blue-soft); }
.row-time { display: block; font: 400 12px/1.4 var(--f-mono); color: var(--muted); }

.numbered { margin: 0; padding: 28px 28px 28px 48px; display: grid; gap: 12px; font-size: 16px; }
.numbered-plain { padding-left: 20px; display: grid; gap: 10px; font-size: 16px; margin: 16px 0 24px; }

/* =====================================================================
   17. FORMS: extras
   ===================================================================== */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* honeypot */
.check b { margin-left: auto; font: 500 13px/1 var(--f-mono); color: var(--blue-soft); }
.check.plain { border: 0; padding: 0; }
.credit-check { border-color: rgba(77, 141, 255, .5); background: rgba(77, 141, 255, .08); color: var(--white); }
.account-note { margin-bottom: 14px; font-size: 15px; }
input[readonly] { opacity: .75; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray); }
.inline-field input, .inline-field select { width: auto; padding: 9px 11px; }
.resend { display: grid; gap: 10px; }
.small { font-size: 13px; }
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 28px; }

/* =====================================================================
   18. ACCOUNT PAGES
   ===================================================================== */
.auth-wrap { display: grid; justify-items: center; }
.auth-wrap.with-aside { grid-template-columns: minmax(0, 520px) minmax(0, 340px); justify-content: center; gap: 28px; align-items: start; }
.auth-card { width: 100%; max-width: 520px; }
.auth-title { font-size: clamp(28px, 4vw, 38px); }
.auth-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 15px; }
@media (max-width: 860px) { .auth-wrap.with-aside { grid-template-columns: 1fr; } }

.dash-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; }
.dash-h { font-size: 22px; margin: 44px 0 14px; }
.stat-card { display: grid; gap: 8px; align-content: start; }
.stat-card h3 { font-size: 26px; }
.credit-row { display: flex; align-items: center; gap: 14px; }
.credit-row .credit-dots span { width: 22px; height: 22px; }
.vehicle-list, .plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.vehicle-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--silver); color: var(--white); }
.plain-list li { font-size: 15px; padding-bottom: 6px; border-bottom: 1px solid var(--silver); }

.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.data-table th { text-align: left; font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--silver); background: rgba(255,255,255,.02); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--silver); color: var(--white); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td.plus { color: #7be3b4; font-variant-numeric: tabular-nums; font-weight: 600; }
.data-table td.minus { color: #ffb3a1; font-variant-numeric: tabular-nums; font-weight: 600; }
.data-table .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Status badges: shape + color, so state reads at a glance */
.badge { display: inline-block; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--silver); color: var(--gray); white-space: nowrap; }
.badge-pending { border-color: rgba(255, 196, 92, .55); color: #ffd28a; background: rgba(255, 196, 92, .08); }
.badge-confirmed { border-color: rgba(77, 141, 255, .6); color: var(--blue-soft); background: rgba(77, 141, 255, .1); }
.badge-completed { border-color: rgba(92, 220, 160, .55); color: #7be3b4; background: rgba(92, 220, 160, .08); }
.badge-canceled, .badge-reversed { color: var(--muted); }

/* =====================================================================
   19. ADMIN
   ===================================================================== */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-mini { padding: 16px 18px; display: grid; gap: 4px; }
.stat-mini b { font: 700 28px/1 var(--f-display); color: var(--white); font-variant-numeric: tabular-nums; }
.stat-mini span { font-size: 13px; color: var(--muted); }
.tabs { display: flex; gap: 4px; padding: 4px; margin: 26px 0 18px; border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(255,255,255,.03)); border: 1px solid rgba(196,206,228,.10);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.55); }
.tabs button { font: 600 14.5px/1 var(--f-body); color: var(--gray); background: none; border: 1px solid transparent; padding: 10px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #2c4f99, #182d5c); border-color: rgba(141,182,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 16px -6px rgba(77,141,255,.7); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { max-width: 360px; }
.appt { display: grid; gap: 14px; }
.appt h3 { font-size: 19px; }
.appt-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; }
.appt-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.appt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; margin: 0; font-size: 15px; }
.appt-grid dt { font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.appt-grid dd { margin: 2px 0 0; color: var(--white); }
.appt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--silver); }
.appt-notes { display: flex; gap: 10px; }
.appt-notes input { padding: 9px 12px; font-size: 14px; }
.message.is-read { opacity: .65; }
.detail-panel { margin-bottom: 20px; border-color: rgba(77,141,255,.4); }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
