:root {
  /* Deck palette */
  --cream: #f0eee6;
  --bg: #f0eee6;
  --surface: #ffffff;
  --surface-2: #f7f5ee;
  --ink: #13212f;          /* deep navy — text + dark accents */
  --muted: #5f6b78;
  --border: #e4dfd2;       /* warm border on cream */
  --border-2: #ece8dd;
  --orange: #e8622a;       /* primary accent / CTA */
  --orange-ink: #c44e1d;
  --blue: #2c6e9b;         /* steel-blue labels */
  --green: #6faf93;        /* muted green labels */
  --tint-blue: #dce6ef;
  --tint-mint: #d9e7e0;
  --tint-sand: #e7e2d6;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 16px 40px -22px rgba(19, 33, 47, 0.28);
  --shadow-sm: 0 6px 18px -12px rgba(19, 33, 47, 0.22);
  --maxw: 1140px;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 6.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); font-weight: 700; }
h3 { font-weight: 700; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono-label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--blue); }
.mono-label.green { color: var(--green); }
.mono-label.orange { color: var(--orange); }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240, 238, 230, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-mark { width: 16px; height: 16px; background: var(--orange); border-radius: 3px; display: inline-block; transform: skewX(-8deg); }
.brand-line { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 1.3rem; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta, .nav-cta-ghost { padding: .55rem 1.1rem; border-radius: 8px; font-weight: 600; }
.nav-cta { background: var(--orange); color: #fff !important; }
.nav-cta:hover { background: var(--orange-ink); }
.nav-cta-ghost { border: 1px solid var(--border); color: var(--ink) !important; }
.nav-cta-ghost:hover { border-color: var(--orange); }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 8px; font-weight: 700; font-size: 1rem; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; transition: transform .1s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-ink); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { filter: brightness(1.12); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--orange); }
.btn-lg { padding: 1.02rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 66px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--orange);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--orange); display: inline-block; }
.hero h1 { color: var(--ink); }
.hero p.lead { font-size: 1.16rem; color: var(--muted); max-width: 520px; margin: 1rem 0 1.8rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 1.2rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-meta span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-weight: 700; }

/* Fitment search card (PARTLINE mockup) */
.fitment-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.fitment-head { background: var(--tint-blue); padding: .7rem 1.2rem; font-family: var(--font-head); font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.fitment-body { padding: 24px; }
.fitment-body h3 { font-size: 1.7rem; margin-bottom: 1.2rem; }
.fit-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: .7rem; }

/* Sections */
section { padding: 54px 0; }
.section-head { max-width: 720px; margin: 0 auto 36px; }
.section-head.center { text-align: center; }
.section-head h2 { color: var(--ink); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: .4rem 0 0; }

/* How it works / cards */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.step .n { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--orange); line-height: 1; }
.step .k { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 700; color: var(--blue); margin: .9rem 0 .5rem; }
.step h3 { font-size: 1.12rem; margin: 0 0 .35rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.product.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.product.featured .muted, .product.featured p { color: #c7d0da; }
.product .pic { font-size: 2rem; }
.product h3 { font-size: 1.3rem; margin: .8rem 0 .4rem; }
.product .tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); font-weight: 700; }

/* Why / trust columns */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .panel { border-radius: var(--radius); padding: 28px; }
.compare .friction { background: var(--tint-sand); }
.compare .response { background: var(--tint-mint); }
.compare h4 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; margin: 0 0 1rem; }
.compare .friction h4 { color: var(--orange); }
.compare .response h4 { color: var(--blue); }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { padding: .5rem 0; font-size: 1.02rem; border-bottom: 1px solid rgba(19,33,47,.08); }
.compare li:last-child { border-bottom: none; }

/* Segments table */
.segments { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.seg-row { display: grid; grid-template-columns: 40px 1fr 120px 120px; gap: 1rem; align-items: center; padding: 1rem 1.3rem; border-bottom: 1px solid var(--border-2); }
.seg-row:last-child { border-bottom: none; }
.seg-row.head { background: var(--surface-2); }
.seg-row.head span { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.seg-row .rank { font-family: var(--font-head); font-weight: 800; color: var(--orange); font-size: 1.3rem; }
.seg-row .name { font-weight: 700; }
.pill { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .05em; }
.pill.high { color: var(--blue); }
.pill.med { color: var(--muted); }

/* Forms */
.form-row { margin-bottom: 1.05rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .92rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .8rem .9rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; -webkit-appearance: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 98, 42, .16);
}
.form-row input[type="checkbox"] { width: auto; margin-right: .5rem; vertical-align: middle; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-error { color: var(--orange-ink); font-size: .82rem; margin-top: .35rem; }
.help { color: var(--muted); font-size: .82rem; margin-top: .3rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }

/* Quote questionnaire */
.quiz-wrap { max-width: 760px; margin: 0 auto; }
.quiz-progress { display: flex; gap: .5rem; margin-bottom: 1.6rem; }
.quiz-progress span { flex: 1; height: 5px; border-radius: 999px; background: var(--border); }
.quiz-progress span.on { background: var(--orange); }
.quiz-step-label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--blue); margin: 1.4rem 0 .7rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
.choice { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--orange); }
.choice input { display: none; }
.choice.selected { border-color: var(--orange); background: rgba(232, 98, 42, .07); }
.choice .ic { font-size: 1.5rem; }

/* Quote wizard (one field per slide, htmx-driven) */
.wizard-slide { min-height: 212px; }
.wizard-progress { display: flex; gap: .4rem; margin-bottom: 1.3rem; }
.wizard-progress span { flex: 1; height: 5px; border-radius: 999px; background: var(--border); transition: background .2s; }
.wizard-progress span.on { background: var(--orange); }
.wizard-q { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.32rem; line-height: 1.15; margin-bottom: 1rem; color: var(--ink); }
.wizard-slide .form-row input, .wizard-slide .form-row textarea { font-size: 1.05rem; padding: .9rem 1rem; }
.wizard-nav { display: flex; gap: .6rem; margin-top: 1.1rem; align-items: stretch; }
.wizard-nav .btn-ghost { flex: 0 0 auto; padding-left: 1.1rem; padding-right: 1.1rem; }
.wizard-count { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .9rem; text-align: center; }

@keyframes slideInNext { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: translateX(0); } }
.slide-in-next { animation: slideInNext .26s ease; }
.slide-in-back { animation: slideInBack .26s ease; }
@media (prefers-reduced-motion: reduce) { .slide-in-next, .slide-in-back { animation: none; } }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: 20px; padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d0da; max-width: 520px; margin: .4rem auto 1.5rem; }

/* Flash */
.flash { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin: 1rem 0; border: 1px solid var(--border); background: var(--surface); }
.flash-success { background: var(--tint-mint); border-color: #bcd6c9; }
.flash-error { background: #f6e0d7; border-color: #e7bda9; }

/* Auth pages */
.auth-shell { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-switch { text-align: center; color: var(--muted); margin-top: 1.2rem; }
.auth-switch a { color: var(--orange); font-weight: 600; }
.errorlist { list-style: none; padding: 0; margin: .4rem 0 0; }
.errorlist li { color: var(--orange-ink); font-size: .85rem; }

/* ---------- Booking calendar ---------- */
.booking-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 24px; align-items: start; }
.cal-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.cal-head h3 { margin: 0; font-size: 1.2rem; }
.cal-head .mono-label { color: var(--muted); }
.cal-dow-row, .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: .66rem; font-weight: 700; padding: .3rem 0 .5rem; text-transform: uppercase; letter-spacing: .04em; }
.cal-cell {
  aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid transparent; color: #b3ac9c; font-weight: 600; font-size: .95rem; position: relative;
}
.cal-cell .mo { font-family: var(--font-mono); font-size: .58rem; color: var(--orange); font-weight: 700; }
.cal-cell.selectable { background: var(--surface); border-color: var(--border); color: var(--ink); cursor: pointer; transition: border-color .12s, transform .1s, background .12s; }
.cal-cell.selectable:hover { border-color: var(--orange); transform: translateY(-1px); }
.cal-cell.selectable.has-dot::after { content: ""; position: absolute; bottom: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.cal-cell.today { box-shadow: inset 0 0 0 2px rgba(232, 98, 42, .4); }
.cal-cell.selected { background: var(--orange); border-color: var(--orange); color: #fff; }
.cal-cell.selected .mo { color: #fff; }
.cal-cell.selected.has-dot::after { background: #fff; }

.slots-panel { margin-top: 1.4rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.slots-panel h4 { margin: 0 0 .8rem; font-size: 1rem; font-family: var(--font-head); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.slot { padding: .72rem .5rem; text-align: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .92rem; transition: border-color .12s, background .12s; }
.slot:hover:not(:disabled) { border-color: var(--orange); }
.slot.selected { background: var(--orange); border-color: var(--orange); color: #fff; }
.slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.empty-hint { color: var(--muted); padding: .6rem 0; }

.summary-card { position: sticky; top: 86px; }
.summary-card h3 { font-size: 1.15rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--border); }
.summary-line:last-of-type { border-bottom: none; }

/* Portal */
.portal-head { padding: 40px 0 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 22px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat .v { font-family: var(--font-head); font-size: 2rem; font-weight: 800; }
.stat .k { color: var(--muted); font-size: .9rem; }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; min-width: 420px; }
table.data th, table.data td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border-2); }
table.data th { color: var(--muted); font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
table.data tr:last-child td { border-bottom: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 44px 0 26px; background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 22px; }
.footer-grid h4 { font-family: var(--font-mono); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a { display: block; color: var(--muted); padding: .2rem 0; }
.footer-grid a:hover { color: var(--ink); }
.footer-grid .mono-label { margin-top: .8rem; color: var(--green); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .booking-grid, .compare { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 720px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 20px 18px;
    display: none; box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .nav-cta, .nav-cta-ghost { text-align: center; margin-top: .6rem; }
  .steps, .form-grid-2, .fit-row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 20px; }
  .cta-band { padding: 32px 20px; }
  .seg-row { grid-template-columns: 30px 1fr; row-gap: .3rem; }
  .seg-row .urg, .seg-row .diff { grid-column: 2; font-size: .8rem; }
  .seg-row.head { display: none; }
  .cal-cell { font-size: .85rem; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); }
}

/* ============================================================
   Storefront extras (parts grid, product pages, lead wizard)
   ============================================================ */
.sales-call { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-top: 1.4rem; }
.sales-call.center { justify-content: center; }
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.part-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.part-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.part-card .pic { font-size: 2rem; }
.part-card h3 { margin: .6rem 0 .3rem; font-size: 1.15rem; }
.part-go { margin-top: auto; color: var(--orange); font-weight: 700; font-size: .9rem; padding-top: .9rem; }
.part-points { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .25rem; font-size: .88rem; color: var(--ink); }

.pd-hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
.pd-section { padding: 3.2rem 0; }
.pd-section.alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.pd-prose p { font-size: 1.05rem; color: var(--ink); margin: 0 0 1rem; }
.pd-prose h2 { margin-bottom: 1rem; }
.pd-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.pd-highlight { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; font-weight: 600; display: flex; gap: .6rem; align-items: flex-start; }
.pd-highlight .tick { color: var(--orange); font-weight: 800; }
.pd-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.pd-side h3 { margin-top: 0; }
.pd-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.pd-checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.pd-checklist li b { display: block; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: .7rem; }
.faq summary { font-weight: 700; cursor: pointer; font-family: var(--font-head); }
.faq details p { margin: .7rem 0 0; color: var(--muted); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; justify-content: center; padding: 1.4rem 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } .pd-side { position: static; } }

/* Lead wizard (htmx, one field per slide) */
.lead-form { display: flex; flex-direction: column; gap: .8rem; }
.lead-field { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.lead-field input { width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: var(--surface); }
.lead-field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,98,42,.16); }
.lead-q { min-height: 232px; display: flex; flex-direction: column; }
.lead-thanks { text-align: center; padding: 1rem 0; }
.lead-thanks .pic { font-size: 2.6rem; }
.bubble-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.bubble { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.bubble:hover { border-color: var(--orange); color: var(--orange-ink); }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .55rem; }
.tag-chip { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); padding: .7rem .8rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-align: left; transition: border-color .12s, background .12s; }
.tag-chip:hover { border-color: var(--orange); }
.tag-chip.on { border-color: var(--orange); background: rgba(232,98,42,.08); color: var(--orange-ink); }

/* ============================================================
   Landing polish — hero backdrop, social proof, stat band,
   makes strip, testimonials, assurance band, spec tiles
   ============================================================ */
.hero-home {
  background:
    radial-gradient(1100px 440px at 88% -12%, rgba(44,110,155,.12), transparent 60%),
    radial-gradient(900px 420px at -5% 0%, rgba(232,98,42,.08), transparent 55%);
}
.hero .lead strong { color: var(--ink); font-weight: 700; }

/* Stat band — product guarantees */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat-band .cell { background: var(--surface); padding: 1.5rem 1.2rem; text-align: center; }
.stat-band .num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1; }
.stat-band .num em { color: var(--orange); font-style: normal; }
.stat-band .lbl { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; font-weight: 700; color: var(--muted); margin-top: .5rem; }

/* Makes we source strip */
.makes { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.1rem; }
.makes .make { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--ink); opacity: .55; transition: opacity .15s; }
.makes .make:hover { opacity: 1; }
.makes .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); opacity: .5; }

/* Part-detail content topics (editorial two-column list) */
.pd-topics { max-width: 960px; }
.pd-topics .section-head { margin-bottom: 1rem; }
.pd-topic { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.55fr); gap: 2.4rem; padding: 2.2rem 0; border-top: 1px solid var(--border); align-items: start; }
.pd-topic:first-of-type { border-top: 0; }
.pd-topic-head { display: flex; gap: .85rem; align-items: baseline; }
.pd-topic-head .num { font-family: var(--font-mono); font-weight: 700; color: var(--orange); font-size: .85rem; }
.pd-topic h3 { font-size: 1.42rem; margin: 0; line-height: 1.14; }
.pd-topic-body p { font-size: 1.04rem; color: var(--muted); margin: 0 0 .85rem; }
.pd-topic-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .pd-topic { grid-template-columns: 1fr; gap: .7rem; padding: 1.6rem 0; }
}

/* Assurance / warranty callout band */
.assure { display: flex; gap: 1.3rem; align-items: center; background: var(--tint-mint); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.7rem; }
.assure .ico { font-size: 2.1rem; line-height: 1; }
.assure h3 { margin: 0 0 .2rem; font-size: 1.22rem; }
.assure p { margin: 0; color: var(--muted); }
.assure .btn { margin-left: auto; flex-shrink: 0; }

/* Part-detail spec tiles (verified checklist, as a grid) */
.spec-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.spec-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.spec-tile .tick { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(232,98,42,.12); color: var(--orange); font-weight: 800; margin-bottom: .6rem; }
.spec-tile b { display: block; font-family: var(--font-head); font-size: 1rem; }

/* Colored icon badge on part cards */
.part-card .pic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 13px; font-size: 1.7rem;
  background: rgba(232,98,42,.10); border: 1px solid rgba(232,98,42,.18);
}
.part-card .pic-tag { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; font-weight: 700; color: var(--blue); margin-top: .9rem; }

/* Breadcrumb on part hero */
.crumbs { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); margin-bottom: .9rem; }
.crumbs a { color: var(--blue); font-weight: 700; }

@media (max-width: 900px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-band { grid-template-columns: 1fr 1fr; }
  .assure { flex-direction: column; align-items: flex-start; }
  .assure .btn { margin-left: 0; }
}

/* ============================================================
   Operations portal (/ops) — shared so htmx-boosted navigation
   from the storefront keeps the layout.
   ============================================================ */
.ops-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.ops-side { background: var(--ink); color: #fff; padding: 26px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.ops-side .brand { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: #fff; margin: 0 .5rem 1.2rem; line-height: 1.1; }
.ops-side .brand .tag { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; color: var(--orange); margin-top: .25rem; }
.ops-side .role-badge { margin: 0 .5rem 1.4rem; display: inline-block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink); background: var(--orange); padding: .25rem .6rem; border-radius: 999px; }
.ops-side a { color: #c7d0da; font-weight: 600; padding: .65rem .85rem; border-radius: 9px; display: flex; align-items: center; gap: .6rem; }
.ops-side a:hover { background: rgba(255,255,255,.08); color: #fff; }
.ops-side a.active { background: var(--orange); color: #fff; }
.ops-side .ico { width: 1.2rem; text-align: center; }
.ops-side .spacer { flex: 1; }
.ops-side .foot { border-top: 1px solid rgba(255,255,255,.12); margin-top: .6rem; padding-top: .6rem; }
.ops-side .who { color: #8a97a6; font-size: .78rem; padding: 0 .85rem .4rem; word-break: break-all; }
.ops-main { padding: 30px 38px 60px; background: var(--bg); min-width: 0; }
.ops-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.ops-head h1 { font-size: 1.8rem; margin: 0; }
.ops-sub { color: var(--muted); margin: .2rem 0 0; font-size: .92rem; }
.ops-search { padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--surface); }
.ops-search:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,98,42,.16); }
.ops-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ops-table th, .ops-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: middle; }
.ops-table th { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
.ops-table tr:last-child td { border-bottom: none; }
.ops-table tbody tr.link-row { cursor: pointer; }
.ops-table tbody tr.link-row:hover { background: var(--surface-2); }
.ops-table a { color: var(--orange); font-weight: 600; }
.ops-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ops-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; }
.ops-card > h3, .card-head h3 { margin: 0 0 .9rem; font-size: 1.05rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.card-head h3 { margin: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: .45rem .8rem; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.badge { display: inline-block; padding: .22rem .62rem; border-radius: 999px; background: var(--tint-sand); font-size: .7rem; font-weight: 700; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.badge.orange { background: var(--orange); color: #fff; }
.badge.green { background: var(--tint-mint); color: #1d5c43; }
.badge.blue { background: var(--tint-blue); color: #1d4e6b; }
.badge.red { background: #fde3df; color: #b42318; }
.badge.grey { background: var(--surface-2); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: 2fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .84rem; color: var(--ink); }
.field input, .field select, .field textarea { padding: .62rem .8rem; border: 1px solid var(--border); border-radius: 9px; font: inherit; font-weight: 400; background: #fff; width: 100%; }
.field input:disabled, .field select:disabled { background: var(--surface-2); color: var(--muted); }
.section-label { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); font-weight: 700; margin: 1.2rem 0 .6rem; }
.check { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .84rem; color: var(--muted); font-family: var(--font-body); }
.ops-main [hidden] { display: none !important; }
.ops-form { display: flex; flex-direction: column; gap: .8rem; }
.flash { padding: .75rem 1rem; border-radius: 10px; font-weight: 600; margin-bottom: 1rem; border: 1px solid; }
.flash-success { background: #eafaf0; color: #11704a; border-color: #b7e6ca; }
.flash-error { background: #fff5f4; color: #b42318; border-color: #f3c4bd; }
.flash-info, .flash-warning { background: #fff8eb; color: #8a5a00; border-color: #f2dba6; }
.row-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; border-radius: 8px; }
.btn-danger-link { background: none; border: 0; color: #b42318; font: inherit; font-weight: 600; font-size: .82rem; cursor: pointer; padding: .2rem .4rem; border-radius: 6px; }
.btn-danger-link:hover { background: #fde3df; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.ops-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sticky-col { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 1.2rem; }
.totals { margin-top: 1rem; border-top: 1px dashed var(--border); padding-top: .8rem; display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; font-size: .92rem; font-variant-numeric: tabular-nums; }
.totals .lbl { color: var(--muted); }
.totals .grand { font-weight: 800; font-size: 1.15rem; padding-top: .4rem; border-top: 1px solid var(--border); margin-top: .3rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 1.2rem; }
.ops-main .stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); display: block; }
.ops-main .stat .v { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; line-height: 1.1; }
.ops-main .stat .k { color: var(--muted); font-size: .8rem; font-weight: 600; margin-top: .2rem; }
.ops-main .stat.accent { border-color: var(--orange); }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border-2); font-size: .9rem; }
.timeline li:last-child { border-bottom: 0; }
.muted-sm { color: var(--muted); font-size: .82rem; }
.stepbar { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 0; }
.stepbar .pip { font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.stepbar .pip.done { background: var(--tint-mint); color: #1d5c43; border-color: #bcd6c9; }
.stepbar .pip.now { background: var(--orange); color: #fff; border-color: var(--orange); }
.demo-note { font-size: .78rem; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border); border-radius: 8px; padding: .5rem .7rem; margin-top: .6rem; }
@media (max-width: 1100px) { .ops-cols { grid-template-columns: 1fr; } .sticky-col { position: static; } }
@media (max-width: 820px) {
  .ops-shell { grid-template-columns: 1fr; }
  .ops-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; position: static; height: auto; }
  .ops-side .brand, .ops-side .role-badge { margin: 0 1rem 0 0; }
  .ops-side .spacer, .ops-side .foot { display: none; }
  .ops-main { padding: 22px 16px 50px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
}

/* Report bar charts (CSS-only) */
.bars { display: grid; gap: .7rem; margin-top: .4rem; }
.bar-row { display: grid; grid-template-columns: 150px 1fr auto; gap: .8rem; align-items: center; font-size: .9rem; }
.bar-row .bar-label { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { display: block; background: var(--surface-2); border-radius: 999px; height: 16px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--orange); border-radius: 999px; min-width: 2px; }
.bar-fill.blue { background: var(--blue); }
.bar-row .bar-val { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 110px 1fr auto; } }
