/* PadMatch – mobile-first styles in the COMPACT Brakes colours (charcoal, orange, blue).
   Text colours below meet 4.5:1 contrast. */
:root {
  /* COMPACT Brakes palette (measured from the COMPACT logo and packaging on mayshowagroup.com).
     --primary (main buttons) and --accent (header) can be overridden from config: PRIMARY_COLOR / ACCENT_COLOR.
     Bright orange is decoration only: white text on it is unreadable (2:1). */
  --primary: #c2410c;            /* deep orange – main buttons, white text 5.2:1 */
  --primary-mid: #d9530f;        /* top of the button gradient */
  --accent: #161922;             /* charcoal – header, like the COMPACT lettering */
  --accent-deep: #0b0d12;
  --orange: #f39a2b;             /* logo swoosh, decoration only */
  --orange-deep: #d87820;
  --orange-text: #c2410c;        /* orange that is dark enough for small text */
  --blue: #1878b8;               /* logo blue – links, chips, badges (4.75:1 on white) */
  --blue-mid: #2a8bcc;
  --blue-deep: #125f93;
  --blue-soft: #e8f1f9;
  --blue-soft-2: #d6e7f5;
  --charcoal: #161922;
  /* header + footer: slate grey, a softer version of the COMPACT charcoal (white title 7.8:1 or more).
     Other options tried: blue #1c74b4 / #16679f / #0f5585 with white text;
     orange #f8b048 / #f39a2b / #e8871d with charcoal text #161922 (white is unreadable on orange). */
  --header-1: #525b6e;
  --header-2: #434b5c;
  --header-3: #363d4c;
  --header-text: #ffffff;
  --header-text-soft: rgba(255, 255, 255, 0.85);

/* surfaces */
  --bg: #f3f5f9;
  --bg-top: #e6e8ee;
  --card: #ffffff;
  --card-tint: #fbfcfe;
  --field: #f4f6fa;

  /* text + lines */
  --text: #0f172a;
  --muted: #5b6678;
  --placeholder: #646e80;
  --border: #e2e7ef;
  --border-strong: #cdd5e1;

  /* status */
  --ok: #166534;   --ok-bg: #dcfce7;
  --warn: #92400e; --warn-bg: #fef3c7; --warn-border: #f5c26b;
  --bad: #991b1b;  --bad-bg: #fee2e2;
  --whatsapp: #0f7a41;

  /* shape + depth */
  --radius: 18px;
  --radius-sm: 14px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.04), 0 8px 20px -4px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 4px 8px rgba(15, 23, 42, 0.04), 0 18px 40px -10px rgba(22, 25, 34, 0.18);
  --inner-light: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --ring: 0 0 0 3px rgba(243, 154, 43, 0.4);

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 0.12s;
  --normal: 0.2s;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  display: flex; flex-direction: column;   /* footer stays at the bottom on short pages */
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }   /* solid logos, e.g. WhatsApp */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: none; box-shadow: var(--ring); }
h2[tabindex="-1"]:focus { outline: none; box-shadow: none; }

.container {
  max-width: 640px; margin: 0 auto;
  padding: 18px max(16px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.loading-text, .noscript { color: var(--muted); }

/* ---------- header: tall slate area that the page's first card overlaps, so it reads as one page ---------- */
.dummy-banner {   /* thin announcement strip above the header */
  background: #fef3c7; color: #78350f; border-bottom: 1px solid #fcd34d;
  padding: 5px 16px; font-size: 0.75rem; font-weight: 650; text-align: center; line-height: 1.35;
}
:root { --overlap: 52px; }   /* how far the first card reaches up into the header */
.site-header {
  position: relative; color: var(--header-text);
  background:
    radial-gradient(520px 220px at 88% 0%, rgba(243, 154, 43, 0.16), transparent 70%),
    linear-gradient(160deg, var(--header-1) 0%, var(--header-2) 50%, var(--header-3) 100%);
  padding: env(safe-area-inset-top) 0 calc(var(--overlap) + 16px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 640px; margin: 0 auto; min-height: 84px;
  padding: 14px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
}
.brand-link {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 48px;
  color: inherit; text-decoration: none; border-radius: var(--radius-sm);
}
.logo {
  width: 52px; height: 52px; flex: none; object-fit: contain; padding: 7px;
  background: #fff; border-radius: 15px;   /* white tile, as the COMPACT logo appears on its box */
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.4);
}
.brand-text { min-width: 0; }
.app-name { margin: 0; font-size: 1.22rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.tagline { margin: 3px 0 0; font-size: 0.84rem; color: var(--header-text-soft); line-height: 1.3; }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  min-width: 44px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--whatsapp); color: #fff;
  font-size: 0.9rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 14px -6px rgba(15, 122, 65, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: filter var(--fast), transform var(--fast);
}
.header-cta .icon { width: 22px; height: 22px; }
.header-cta:active { transform: scale(0.96); }
@media (hover: hover) { .header-cta:hover { filter: brightness(1.1); } }
@media (max-width: 480px) {   /* phones: icon-only button (it keeps its "Contact us" label for screen readers) */
  .header-cta { padding: 0; width: 46px; height: 46px; }
  .header-cta-text { display: none; }
  .app-name { font-size: 1.12rem; }
}

/* the page's first card sits half on the header */
body { overflow-x: clip; }
.container { position: relative; z-index: 1; width: 100%; flex: 1 0 auto; margin-top: calc(-1 * var(--overlap)); padding-top: 0; }
.view > :first-child { margin-top: 0; }
.loading-text { color: var(--header-text-soft); padding-top: 14px; }

/* footer */
.site-footer {
  margin-top: 8px; background: linear-gradient(160deg, var(--header-1), var(--header-3));
  padding: 18px max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.site-footer p { max-width: 640px; margin: 0 auto; font-size: 0.8rem; color: var(--header-text); text-align: center; }

/* ---------- screen change ---------- */
.view { animation: enter 0.26s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
/* tiles and cards come in one after another */
.view .grid > *, .view .pad, .view .result-list li { animation: rise 0.32s var(--ease) both; }
.view .grid > :nth-child(2), .view .result-list li:nth-child(2) { animation-delay: 30ms; }
.view .grid > :nth-child(3), .view .result-list li:nth-child(3) { animation-delay: 60ms; }
.view .grid > :nth-child(4), .view .result-list li:nth-child(4) { animation-delay: 90ms; }
.view .grid > :nth-child(5), .view .result-list li:nth-child(5) { animation-delay: 120ms; }
.view .grid > :nth-child(6), .view .result-list li:nth-child(6) { animation-delay: 150ms; }
.view .grid > :nth-child(n+7), .view .result-list li:nth-child(n+7) { animation-delay: 180ms; }
.view .pad:nth-of-type(2) { animation-delay: 50ms; }
.view .pad:nth-of-type(n+3) { animation-delay: 100ms; }

/* ---------- loading skeleton ---------- */
.skel {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #e3e8f0 25%, #eff3f8 50%, #e3e8f0 75%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
.skel-title { height: 28px; width: 60%; margin: 12px 0 16px; }
.skel-tile { height: 64px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- shared surfaces ---------- */
.card, .hero, .pad, .option, .topbar-row, .result-list {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-tint) 100%);
  border: 1px solid var(--border);
}
.card { border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm), var(--inner-light); }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- home: hero + search ---------- */
.hero {
  position: relative; overflow: hidden;
  margin: 2px 0 26px; padding: 24px 18px 18px;
  border-radius: var(--radius); border-color: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-lg), var(--inner-light);
}
.hero::before {   /* brand stripe on top */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange) 60%, var(--blue));
}
.hero::after {    /* soft decorative glow, top right */
  content: ""; position: absolute; top: -70px; right: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 154, 43, 0.13), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-title { margin: 0 0 4px; font-size: 1.55rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; }
.hero-text { margin: 0 0 16px; color: var(--muted); }

.search { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 15px; color: var(--muted); pointer-events: none; transition: color var(--normal); }
.search:focus-within .search-icon { color: var(--blue); }
.search-input {
  width: 100%; min-height: 54px; padding: 12px 48px 12px 46px;
  font-size: 1.05rem; background: var(--field);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color var(--normal), background var(--normal), box-shadow var(--normal);
  -webkit-appearance: none; appearance: none;
}
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-input::placeholder { color: var(--placeholder); }
.search-input:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: var(--ring); }
.search-clear {
  position: absolute; right: 5px; width: 44px; height: 44px;
  display: grid; place-items: center; background: none; border: 0; border-radius: 11px;
  color: var(--muted); cursor: pointer; transition: background var(--fast);
}
.search-clear:active { background: var(--blue-soft); }
.view > .search { margin-bottom: 16px; }
.view > .search .search-input { background: var(--card); box-shadow: var(--shadow-xs); }

.search-results:empty { display: none; }
.search-results { margin-top: 10px; }
.search-none { margin: 8px 2px 0; color: var(--muted); font-size: 0.93rem; }
.result-list { list-style: none; margin: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.result-list li + li { border-top: 1px solid var(--border); }
.result-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 10px 14px;
  background: transparent; border: 0; text-align: left; cursor: pointer;
  transition: background var(--fast);
}
.result-item:active { background: var(--blue-soft); }
.result-text { display: flex; flex-direction: column; min-width: 0; }
.result-text strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.result-brand { font-size: 0.85rem; color: var(--muted); }
.result-arrow { color: var(--muted); transition: transform var(--normal) var(--ease), color var(--normal); }
@media (hover: hover) {
  .result-item:hover { background: var(--blue-soft); }
  .result-item:hover .result-arrow { transform: translateX(3px); color: var(--blue); }
}

.section-label {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; font-size: 0.76rem; font-weight: 750;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.section-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }

/* ---------- top bar: back + progress + chosen car ---------- */
.topbar { margin: 0 0 4px; }
.topbar-row {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  box-shadow: var(--shadow-sm), var(--inner-light);
}
.back-btn {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  min-height: 44px; padding: 0 16px 0 10px;
  background: var(--blue-soft); border: 0; border-radius: 999px;
  color: var(--blue); font-weight: 650; cursor: pointer;
  transition: background var(--fast), transform var(--fast);
}
.back-btn:active { transform: scale(0.97); background: var(--blue-soft-2); }
@media (hover: hover) { .back-btn:hover { background: var(--blue-soft-2); } }
.progress { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.progress-text { font-size: 0.78rem; font-weight: 650; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.progress-seg { height: 6px; border-radius: 999px; background: var(--border); box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.06); }
.progress-seg.done { background: linear-gradient(90deg, var(--orange-deep), var(--orange)); box-shadow: 0 1px 3px rgba(243, 154, 43, 0.35); }

/* breadcrumb: All brands › Proton › X50 › 2022 */
.crumbs { margin: 10px 0 0; }
.crumb-list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.crumb-item { display: inline-flex; align-items: center; min-width: 0; }
.crumb-sep { margin: 0 6px; color: var(--muted); font-size: 1.25em; line-height: 1; }
.crumb-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: 0 -4px;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
  color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(24, 120, 184, 0.35);
  text-underline-offset: 3px; overflow-wrap: anywhere;
}
@media (hover: hover) { .crumb-link:hover { text-decoration-color: currentColor; } }
.crumb-current { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; color: var(--text); overflow-wrap: anywhere; }

/* ---------- step titles ---------- */
.step-title { font-size: 1.4rem; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; margin: 20px 0 14px; }
.hint { color: var(--muted); font-size: 0.92rem; margin: -4px 0 14px; }
.muted { color: var(--muted); }

/* ---------- option tiles ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-list { grid-template-columns: 1fr; }
@media (min-width: 480px) {
  .grid:not(.grid-list) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.option {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 62px; padding: 12px 10px;
  color: var(--text); font-weight: 650; text-align: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm), var(--inner-light);
  cursor: pointer; overflow-wrap: anywhere;
  transition: border-color var(--normal), box-shadow var(--normal), transform var(--normal) var(--ease);
}
.option:active { transform: scale(0.97); transition-duration: var(--fast); }
@media (hover: hover) {
  .option:hover { border-color: rgba(243, 154, 43, 0.6); box-shadow: var(--shadow-md), var(--inner-light); transform: translateY(-2px); }
}
.grid-list .option { justify-content: flex-start; text-align: left; padding: 15px 44px 15px 18px; }
.grid-list .option:not(.option-muted)::after {   /* chevron hint on list rows */
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid var(--muted); border-right: 2px solid var(--muted);
  transform: translateY(-50%) rotate(45deg);
}
.option-muted {
  color: var(--muted); font-weight: 550;
  background: transparent; border: 1.5px dashed var(--border-strong); box-shadow: none;
}
@media (hover: hover) { .option-muted:hover { box-shadow: none; transform: none; border-color: var(--blue); color: var(--blue); } }

.option-brand {   /* brand badge: name in spaced capitals, orange strip on top like the COMPACT box */
  flex-direction: column; justify-content: center; gap: 2px;
  min-height: 78px; padding: 16px 10px 12px; overflow: hidden;
}
.option-brand::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
  transition: height var(--normal) var(--ease);
}
@media (hover: hover) { .option-brand:hover::before { height: 5px; } }
.option-label { min-width: 0; font-size: 1rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.25; }
.option-count { font-size: 0.78rem; font-weight: 500; color: var(--muted); }

/* ---------- year form ---------- */
.year-form { padding: 22px 20px; box-shadow: var(--shadow-md), var(--inner-light); }
.field-label { display: block; font-weight: 650; margin-bottom: 8px; }
.year-input {
  display: block; width: 100%; max-width: 220px; min-height: 64px; padding: 8px 18px;
  font-size: 2rem; font-weight: 750; letter-spacing: 0.14em; font-variant-numeric: tabular-nums;
  background: var(--field); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.06);
  transition: border-color var(--normal), box-shadow var(--normal), background var(--normal);
}
.year-input::placeholder { color: var(--placeholder); font-weight: 500; letter-spacing: 0.04em; }
.year-input:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: var(--ring); }
.year-input[aria-invalid="true"] { border-color: var(--bad); background: #fff8f8; }
.year-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.25); }
.year-form .hint { margin: 10px 0 0; }
.field-error { color: var(--bad); font-weight: 650; font-size: 0.93rem; margin: 8px 0 0 !important; }
.field-error:empty { display: none; }
.year-form .btn { margin-top: 20px; }

/* ---------- notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; }
.notice p { margin: 0; }
.notice-icon { width: 22px; height: 22px; margin-top: 1px; }
.card.notice-warn { background: linear-gradient(180deg, #fff8e1, var(--warn-bg)); border-color: var(--warn-border); color: #713f12; box-shadow: var(--shadow-xs); }
.notice-warn .notice-icon { color: var(--warn); }
.card.notice-error { border-color: #fca5a5; background: #fff5f5; }
.notice-error .notice-icon { color: var(--bad); }

/* ---------- results ---------- */
.results-head { margin: 20px 0 16px; }
.results-head .step-title { margin: 0; }
.eyebrow { margin: 0 0 2px; font-size: 0.76rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange-text); }

.group { margin: 0 0 24px; }
.group-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.group-title { margin: 0; font-size: 1.08rem; font-weight: 750; display: flex; align-items: center; gap: 10px; }
.group-title::before {
  content: ""; width: 5px; height: 20px; border-radius: 5px;
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
}
.count {
  min-width: 26px; height: 24px; padding: 0 8px; display: inline-grid; place-items: center;
  font-size: 0.8rem; font-weight: 750; border-radius: 999px; background: var(--blue-soft-2); color: var(--blue);
}
.group .hint { margin: 0 0 10px; }
.empty {
  margin: 0; padding: 16px; font-size: 0.95rem;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.5);
}

.pad {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 18px 18px 16px 22px; margin-bottom: 12px;
  box-shadow: var(--shadow-md), var(--inner-light);
}
.pad::before {   /* brand accent along the left edge */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
}
.pad-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pad-brand { margin: 0; font-size: 1.14rem; line-height: 1.3; font-weight: 750; letter-spacing: -0.01em; }
.pad-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; font-weight: 700;
  padding: 4px 10px; border-radius: 9px; letter-spacing: 0.03em;
  background: linear-gradient(145deg, #2c3140, var(--charcoal)); color: #fff;
  box-shadow: 0 2px 6px -1px rgba(11, 13, 18, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 650;
  background: var(--field); color: var(--muted); border: 1px solid var(--border);
}
.pill-ok, .pill-warn, .pill-bad { border-color: transparent; }
.pill-ok::before, .pill-warn::before, .pill-bad::before {   /* status dot, so colour is not the only signal next to the text */
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pad-details {
  display: grid; grid-template-columns: auto 1fr; gap: 5px 14px;
  margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--border-strong); font-size: 0.93rem;
}
.pad-details dt { color: var(--muted); }
.pad-details dd { margin: 0; overflow-wrap: anywhere; }
.variant-tag {
  display: inline-block; margin: 0 0 10px; padding: 3px 11px; border-radius: 999px;
  background: linear-gradient(145deg, var(--blue-mid), var(--blue)); color: #fff;
  font-size: 0.78rem; font-weight: 650;
}
.variant-all { background: var(--blue-soft-2); color: var(--blue); }

.card.nomatch { text-align: center; padding: 30px 20px 22px; box-shadow: var(--shadow-lg), var(--inner-light); }
.nomatch .step-title { margin: 12px 0 8px; }
.nomatch p { color: var(--muted); }
.nomatch-icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-soft), var(--blue-soft-2)); color: var(--blue);
  box-shadow: 0 0 0 8px rgba(232, 241, 249, 0.6);
}
.nomatch-icon .icon { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 12px 18px; margin-top: 10px;
  font-weight: 700; text-decoration: none; text-align: center;
  border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--normal) var(--ease), box-shadow var(--normal), filter var(--normal), background var(--normal);
}
.btn:active { transform: scale(0.98); transition-duration: var(--fast); }
.btn-primary {
  background: linear-gradient(180deg, var(--primary-mid) 0%, var(--primary) 100%); color: #fff;
  box-shadow: 0 8px 18px -6px rgba(194, 65, 12, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-secondary { background: var(--card); color: var(--blue); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-whatsapp {
  background: linear-gradient(180deg, #13914d 0%, var(--whatsapp) 100%); color: #fff;
  box-shadow: 0 8px 18px -6px rgba(15, 122, 65, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-outline { background: var(--card); color: var(--whatsapp); border-color: var(--whatsapp); box-shadow: var(--shadow-xs); }
@media (hover: hover) {
  .btn-primary:hover, .btn-whatsapp:hover { transform: translateY(-1px); filter: brightness(1.08); }
  .btn-secondary:hover, .btn-outline:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
}
.actions { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.topbar + .card { margin-top: 18px; }
