/* ==========================================================================
   Pages — page-specific sections. Scoped by body[data-page="…"] where needed.
   ========================================================================== */

/* === shared page bits ================================================== */
.trust-strip { border-top: 1px solid rgba(255,255,255,0.08); background: var(--ink-900); color: var(--ink-200); }
.trust-strip__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 24px 20px; padding-block: 36px; }
.trust-strip .stat__value { color: #fff; font-size: var(--text-3xl); }
.trust-strip .stat__label { color: var(--ink-300); }

.cta-band { position: relative; overflow: hidden; background: var(--ink-900); color: #fff; border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px); display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 90% 10%, rgba(201,127,53,0.45), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(30,79,122,0.8), transparent 60%); }
.cta-band h2 { color: #fff; font-size: var(--text-3xl); }
.cta-band p { color: var(--ink-200); margin-top: 12px; max-width: 52ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 767px) { .cta-band__actions { justify-content: flex-start; } }

.page-intro { padding-block: clamp(48px, 6vw, 80px) 0; }

/* === page: home ========================================================= */
body[data-page="home"] .hero__title { max-width: 22ch; }
.value-grid { display: grid; gap: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 36px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.brands-band { padding-block: clamp(36px, 5vw, 56px); border-block: 1px solid var(--line); background: var(--surface); }
.brands-band .eyebrow { margin-bottom: 20px; justify-content: center; width: 100%; }
.brands-band .eyebrow::before { display: none; }
.cred-panel { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.cred-panel .card { padding: clamp(24px, 3vw, 36px); }
.cred-panel .cred-block dt:first-of-type { margin-top: 0; }
.faq-layout { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
@media (max-width: 959px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-layout .sticky { position: sticky; top: calc(var(--header-h) + 24px); }

/* === page: catalog ====================================================== */
body[data-page="catalog"] .page-intro h1 { font-size: var(--text-4xl); }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.active-filters .chip button { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: inherit; }
.active-filters .chip button:hover { background: rgba(0,0,0,0.08); }
.filters__clear { align-self: flex-start; font-size: var(--text-sm); color: var(--accent-700); text-decoration: underline; text-underline-offset: 3px; }
.load-more { display: flex; justify-content: center; margin-top: 40px; }

/* === page: product ====================================================== */
.product-hero { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 80px); }
.product-hero__visual { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 1; border-radius: var(--radius-xl); background: var(--tone-bg, var(--paper-2)); display: grid; place-items: center; padding: 14%; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.product-hero__visual svg { width: 100%; height: 100%; color: var(--ink-800); }
.product-hero__visual .chip--brand { position: absolute; top: 20px; left: 20px; }
.product-hero__visual .visual-note { position: absolute; bottom: 16px; right: 16px; font-size: var(--text-xs); color: var(--ink-500); background: rgba(255,255,255,0.75); padding: 4px 10px; border-radius: var(--radius-full); }
@media (max-width: 959px) { .product-hero__visual { position: static; } }
.product-hero__info { display: flex; flex-direction: column; gap: 22px; }
.product-hero__title { font-size: var(--text-4xl); }
.product-hero__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.product-hero__add { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.product-hero__add .field__label { margin-right: 4px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; font-weight: 600; color: var(--ink-500); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; padding-right: 16px; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.spec-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--ink-700); padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.spec-list li svg { width: 16px; height: 16px; color: var(--accent-700); flex: none; margin-top: 2px; }
.related { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }

/* === page: quote ======================================================== */
.quote-layout { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
@media (max-width: 959px) { .quote-layout { grid-template-columns: minmax(0, 1fr); } }
.quote-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.quote-panel + .quote-panel { margin-top: 24px; }
.quote-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.quote-panel__head h2 { font-size: var(--text-2xl); }
.quote-table .line__visual { width: 52px; height: 52px; padding: 10px; }
.quote-table td:first-child { width: 68px; }
.quote-table .line__name { font-size: var(--text-sm); }
.quote-table .note-input { width: 100%; min-height: 36px; padding: 6px 10px; font-size: var(--text-xs); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); margin-top: 6px; }
.quote-table .note-input:focus { outline: none; border-color: var(--accent); }
.quote-side { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 959px) { .quote-side { position: static; } }
.quote-empty { text-align: center; padding: 56px 20px; }
.quote-empty svg { width: 48px; height: 48px; color: var(--ink-200); margin: 0 auto 14px; }
.quote-steps { display: grid; gap: 14px; }
.quote-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: var(--text-sm); color: var(--ink-600); }
.quote-steps li span:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-700); font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; }
.quote-add-more { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* === page: success ====================================================== */
.success-card { text-align: center; max-width: 640px; margin-inline: auto; padding: clamp(36px, 5vw, 56px); }
.success-card__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #E4F3EA; color: #1F6B41; }
.success-card__icon svg { width: 34px; height: 34px; }
.success-card h1 { font-size: var(--text-4xl); }
.success-card .lead { margin: 16px auto 0; }
.success-card .cluster { justify-content: center; margin-top: 28px; }

/* === page: about ======================================================== */
.founder-card { display: grid; gap: 24px; grid-template-columns: 96px 1fr; align-items: start; }
@media (max-width: 559px) { .founder-card { grid-template-columns: 1fr; } }
.founder-card__avatar { width: 96px; height: 96px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--ink-900); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; }
.founder-card blockquote { font-size: var(--text-lg); line-height: 1.6; color: var(--ink-800); }
.founder-card figcaption { margin-top: 14px; font-size: var(--text-sm); color: var(--ink-500); }
.timeline { display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding: 0 0 28px 40px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline li.is-planned::before { background: var(--paper); border-style: dashed; border-color: var(--ink-300); }
.timeline__date { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent-700); letter-spacing: 0.06em; }
.timeline li.is-planned .timeline__date { color: var(--ink-500); }
.timeline__title { font-family: var(--font-display); font-weight: 700; margin-top: 4px; color: var(--ink-900); }
.timeline__body { font-size: var(--text-sm); color: var(--ink-600); margin-top: 4px; max-width: 56ch; }
.serve-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.serve-grid .card { display: flex; flex-direction: column; gap: 10px; }
.serve-grid .card svg { width: 26px; height: 26px; color: var(--accent-700); }
.serve-grid h3 { font-size: 1.05rem; }
.serve-grid p { font-size: var(--text-sm); color: var(--ink-600); }

/* === page: capabilities ================================================= */
.cap-grid { display: grid; gap: clamp(20px, 2.5vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cap-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.cap-card__icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--ink-900); color: var(--accent); }
.cap-card__icon svg { width: 26px; height: 26px; }
.cap-card h3 { font-size: 1.2rem; }
.cap-card p { font-size: var(--text-sm); color: var(--ink-600); }
.cap-card .chip { align-self: flex-start; }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-sm); color: var(--ink-700); }
.check-list li svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 2px; }
.section--dark .check-list li { color: var(--ink-200); }
.section--dark .check-list li svg { color: var(--accent); }
.compliance-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.compliance-item { padding: 22px 24px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.compliance-item h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.compliance-item h3 svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.compliance-item p { font-size: var(--text-sm); color: var(--ink-300); }
.ops-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.ops-grid .card { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.ops-grid .card svg { width: 22px; height: 22px; color: var(--accent-700); }
.ops-grid h3 { font-size: var(--text-base); }
.ops-grid p { font-size: var(--text-sm); color: var(--ink-600); }

/* === page: contact ====================================================== */
.contact-layout { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 959px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.info-card svg { width: 22px; height: 22px; color: var(--accent-700); flex: none; margin-top: 2px; }
.info-card h3 { font-size: var(--text-base); margin-bottom: 4px; }
.info-card p, .info-card a { font-size: var(--text-sm); color: var(--ink-600); }
.info-card a:hover { color: var(--accent-700); }
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--lake-soft); aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; }
.map-card__inner { text-align: center; padding: 24px; color: var(--lake-600); }
.map-card__inner svg { width: 36px; height: 36px; margin: 0 auto 10px; }
.map-card__inner strong { display: block; font-family: var(--font-display); }
.map-card__inner span { font-size: var(--text-sm); }
.map-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(30,79,122,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(30,79,122,0.08) 1px, transparent 1px); background-size: 32px 32px; }

/* === page: legal ======================================================== */
body[data-page="privacy"] .prose, body[data-page="terms"] .prose { color: var(--ink-700); }
.legal-meta { font-size: var(--text-sm); color: var(--ink-500); margin-bottom: 32px; }

/* === page: 404 ========================================================== */
.notfound { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.notfound__code { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent-700); letter-spacing: 0.2em; margin-bottom: 12px; }

/* === mobile refinements ================================================= */
@media (max-width: 559px) {
  .breadcrumb li[aria-current] { display: none; }
  .product-hero__add .btn { flex: 1 1 100%; }
  .product-hero__add .stepper--lg { flex: 1 1 auto; justify-content: space-between; }
  .hero--compact .hero__title { font-size: var(--text-4xl); }
  .section-head__actions .btn { width: 100%; }
}

/* Quote table: stacked rows on phones */
@media (max-width: 559px) {
  .quote-table.table-wrap { border: 0; background: transparent; overflow: visible; border-radius: 0; }
  .quote-table thead { display: none; }
  .quote-table table, .quote-table tbody { display: block; width: 100%; }
  .quote-table tr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "vis info info" "vis qty rm"; gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .quote-table tr:last-child { border-bottom: 0; }
  .quote-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .quote-table td:first-child { width: auto; grid-area: vis; }
  .quote-table td:nth-child(2) { grid-area: info; }
  .quote-table td:nth-child(3) { grid-area: qty; }
  .quote-table td:nth-child(4) { grid-area: rm; align-self: center; text-align: right; }
}

/* === automotive additions =============================================== */
.product-card__fit { display: flex; gap: 8px; align-items: flex-start; font-size: var(--text-xs); color: var(--ink-700); line-height: 1.45; }
.product-card__fit svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--accent-700); }
.product-card__fit strong { font-weight: 600; color: var(--ink-900); }
.product-card__fit em { font-style: normal; color: var(--ink-500); }
.fitment-list li svg { color: var(--lake); }
#filter-facets .filters__group + .filters__group { margin-top: 0; }
.spec-table td.mono { font-size: 0.85em; }
