/*
 * Components (docs/DESIGN_SYSTEM.md section 4). BEM-style, prefixed "se-"
 * so nothing collides with the self-hosted Bootstrap CSS loaded before it.
 * No inline styles anywhere (CSP style-src 'self'): every state is a class
 * or a data-attribute selector.
 */

/* =========================================================
   Buttons
   ========================================================= */

.se-btn {
  --btn-bg: var(--blue-700);
  --btn-fg: var(--white);
  --btn-bg-hover: var(--blue-800);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.se-btn:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.se-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.se-btn .se-icon {
  transition: transform var(--dur-fast) var(--ease);
}

.se-btn:hover .se-icon--arrow {
  transform: translateX(3px);
}

.se-btn--lg {
  min-height: 56px;
  padding: 0 var(--space-6);
  font-size: 1.0625rem;
}

.se-btn--sm {
  min-height: 36px;
  padding: 0 var(--space-3);
  font-size: var(--fs-small);
}

.se-btn--block {
  width: 100%;
}

/* Primary on navy: inverted (Egyptian blue on navy is only 1.69:1). */
.se-btn--inverse {
  --btn-bg: var(--white);
  --btn-fg: var(--blue-700);
  --btn-bg-hover: var(--blue-50);
}

.se-btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--blue-700);
  --btn-bg-hover: var(--blue-50);
  --btn-border: var(--blue-700);
}

.se-btn--ghost-dark {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bg-hover: rgba(255, 255, 255, 0.08);
  --btn-border: rgba(255, 255, 255, 0.35);
}

.se-btn--icon {
  width: 48px;
  padding: 0;
  flex-shrink: 0;
}

.se-btn[disabled],
.se-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.se-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
}

.se-link-arrow:hover .se-icon {
  transform: translateX(3px);
}

.se-link-arrow .se-icon {
  transition: transform var(--dur-fast) var(--ease);
}

/* =========================================================
   Badges & chips
   ========================================================= */

.se-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.se-badge--success {
  background: var(--success-50);
  color: var(--success-700);
}

.se-badge--on-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
}

.se-chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin: 0 calc(-1 * var(--space-4));
  padding-inline: var(--space-4);
}

.se-chips::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .se-chips {
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding-inline: 0;
  }
}

.se-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink-900);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.se-chip:hover {
  border-color: var(--blue-700);
  color: var(--blue-700);
}

.se-chip[aria-current="true"],
.se-chip[aria-pressed="true"] {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}

.se-method {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  color: var(--ink-900);
}

/* Payment method with its brand logo (Zelle / Chime / Cash App). Logos
   keep their own aspect ratio inside a fixed-height slot. */
.se-method--logo img {
  width: auto;
  height: 26px;
  max-width: 64px;
  object-fit: contain;
  border-radius: 6px;
}

.se-method--dark.se-method--logo img {
  height: 22px;
  border-radius: 4px;
}

.se-method--dark {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
  font-size: var(--fs-small);
  padding: 6px 12px;
}

/* =========================================================
   Cards
   ========================================================= */

.se-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 900px) {
  .se-card {
    padding: var(--space-6);
  }
}

.se-icon-tile {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
}

.se-icon-tile .se-icon {
  width: 24px;
  height: 24px;
}

.se-on-dark .se-icon-tile {
  background: rgba(169, 188, 245, 0.12);
  color: var(--blue-200);
}

/* =========================================================
   Home hero
   ========================================================= */

.se-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue-900);
  color: var(--on-dark);
  padding-block: clamp(32px, 20px + 4vw, 96px) clamp(48px, 32px + 5vw, 120px);
}

/* Background slideshow (home.php + main.js): five truck photos that
   cross-fade every 4 s under a navy scrim, so the copy and the console
   always keep their contrast. Without JS only the first photo shows. */
.se-hero__slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--blue-950);
}

.se-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s var(--ease), transform 6s linear;
}

.se-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Scrim: strongest behind the copy (left) and the bottom edge. */
.se-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 15, 51, 0.92) 0%, rgba(6, 15, 51, 0.78) 45%, rgba(6, 15, 51, 0.45) 100%),
    linear-gradient(0deg, rgba(6, 15, 51, 0.85) 0%, rgba(6, 15, 51, 0) 40%);
}

@media (max-width: 1023px) {
  .se-hero::before {
    background: linear-gradient(180deg, rgba(6, 15, 51, 0.72) 0%, rgba(6, 15, 51, 0.88) 55%, rgba(6, 15, 51, 0.96) 100%);
  }
}

.se-hero__pause {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(6, 15, 51, 0.55);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.se-hero__pause:hover {
  background: rgba(6, 15, 51, 0.8);
}

.se-hero__pause .se-icon {
  width: 18px;
  height: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .se-hero__slide {
    transition: none;
    transform: none;
  }
}

.se-hero__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 1024px) {
  .se-hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-8);
  }
}

.se-hero h1 {
  max-width: 13ch;
  margin-bottom: var(--space-4);
}

.se-hero__lead {
  color: var(--on-dark-muted);
  font-size: var(--fs-lead);
  margin-bottom: var(--space-5);
  max-width: 46ch;
}

.se-proof {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

@media (min-width: 600px) and (max-width: 1023px) {
  .se-proof {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    column-gap: var(--space-5);
  }
}

.se-proof li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
}

.se-proof .se-icon {
  color: var(--blue-200);
}

.se-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
}

.se-hero__meta a {
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}

.se-hero__meta a:hover {
  text-decoration: underline;
}

.se-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.se-hero__visual {
  position: relative;
}

/* Copy stays above the console on mobile but is kept short so the
   selector lands inside the first viewport at 360px. */
@media (max-width: 1023px) {
  .se-hero__copy .se-proof,
  .se-hero__copy .se-hero__meta {
    display: none;
  }

  .se-hero__after {
    display: grid;
    gap: var(--space-4);
  }

  .se-hero__after .se-proof {
    display: grid;
    margin: 0;
  }

  .se-hero__after .se-hero__meta {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .se-hero__after {
    display: none;
  }
}

/* Blueprint line art behind the console */
/* Anchored to the console's bottom-right so it peeks out onto the navy
   instead of hiding behind the white card. Desktop only: on phones the
   console fills the width and the art would just be noise. */
.se-blueprint {
  position: absolute;
  z-index: -1;
  width: 74%;
  right: -26%;
  bottom: -24%;
  color: var(--blue-200);
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .se-hero .se-blueprint {
    display: none;
  }
}

/* Shared blueprint line styles (hero art, empty states, 404). */
.bp-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bp-dim {
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.bp-label {
  fill: var(--blue-200);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* On light backgrounds: heavier strokes, readable labels. */
.se-empty__art .bp-line,
.se-error__art .bp-line {
  stroke-width: 2.2;
}

.se-empty__art .bp-label,
.se-error__art .bp-label {
  fill: var(--slate-600);
}

@media (prefers-reduced-motion: no-preference) {
  .se-blueprint .bp-line {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: se-draw 1.6s var(--ease) 0.15s forwards;
  }

  .se-blueprint .bp-dim,
  .se-blueprint .bp-label {
    opacity: 0;
    animation: se-fade 0.6s var(--ease) 1.3s forwards;
  }
}

@keyframes se-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes se-fade {
  to {
    opacity: 1;
  }
}

/* =========================================================
   Fitment Console (the conversion engine)
   ========================================================= */

.se-console {
  position: relative;
  background: var(--white);
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-console);
  padding: var(--space-5);
  --focus-color: var(--blue-700);
}

@media (min-width: 600px) {
  .se-console {
    padding: var(--space-6);
  }
}

.se-console__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.se-console__title {
  font-size: 1.25rem;
  margin: 0;
}

.se-console__counter {
  font-size: var(--fs-small);
  color: var(--slate-600);
  white-space: nowrap;
  padding-top: 4px;
}

/* Progress rail: 4 segments, filled via data-progress on the form. */
.se-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: var(--space-5);
}

.se-rail span {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: background-color var(--dur) var(--ease);
}

.se-console[data-progress="1"] .se-rail span:nth-child(-n + 1),
.se-console[data-progress="2"] .se-rail span:nth-child(-n + 2),
.se-console[data-progress="3"] .se-rail span:nth-child(-n + 3),
.se-console[data-progress="4"] .se-rail span:nth-child(-n + 4) {
  background: var(--blue-700);
}

.se-console__steps {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 600px) and (max-width: 1023px) {
  .se-console--hero .se-console__steps {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-3);
  }
}

.se-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  column-gap: var(--space-3);
  row-gap: 6px;
}

.se-step__num {
  grid-row: 1 / span 2;
  align-self: end;
  display: grid;
  place-items: center;
  width: 32px;
  height: 52px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-600);
}

.se-step__num .se-icon {
  display: none;
  width: 22px;
  height: 22px;
  color: var(--success-700);
}

.se-step.is-done .se-step__num .se-num {
  display: none;
}

.se-step.is-done .se-step__num .se-icon {
  display: block;
}

.se-step__label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-900);
}

.se-select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 var(--space-4);
  border: 1.5px solid var(--slate-400);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  background-image: url("../img/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  color: var(--ink-900);
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.se-select:hover {
  border-color: var(--blue-700);
}

.se-select:focus-visible {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(16, 52, 166, 0.2);
}

.se-select:disabled {
  background-color: var(--paper);
  color: var(--slate-600);
  border-color: var(--line);
  cursor: not-allowed;
}

.se-step.is-done .se-select {
  border-color: var(--blue-700);
}

.se-console__result {
  max-width: none; /* override base p { max-width: 68ch } */
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--slate-600);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.se-console__result .se-icon {
  color: var(--blue-700);
}

.se-console__result[data-state="match"] {
  background: var(--success-50);
  color: var(--success-700);
}

.se-console__result[data-state="match"] .se-icon {
  color: var(--success-700);
}

.se-console__result[data-state="none"] {
  background: var(--warning-50);
  color: var(--warning-700);
}

.se-console__result[data-state="none"] .se-icon {
  color: var(--warning-700);
}

.se-console__result[data-state="loading"] {
  color: var(--slate-600);
}

/* Selected vehicle's photo (admin-uploaded), filled in by console.js. */
.se-console__photo {
  flex-shrink: 0;
  margin-left: auto;
  width: 72px;
  height: 54px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.se-console__photo[hidden] {
  display: none;
}

.se-console__photo picture,
.se-console__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.se-console__help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  color: var(--slate-600);
  text-align: center;
}

.se-console__help a {
  font-weight: 600;
}

/* Compact variant — final CTA band and shop "change vehicle". */
.se-console--compact {
  padding: var(--space-4);
}

@media (max-width: 899px) {
  .se-console--compact .se-btn {
    width: 100%;
    margin-top: var(--space-3);
  }
}

.se-console--compact .se-step {
  grid-template-columns: 1fr;
}

.se-console--compact .se-step__num,
.se-console--compact .se-rail,
.se-console--compact .se-console__head {
  display: none;
}

.se-console--compact .se-console__result {
  margin: var(--space-3) 0 0;
}

@media (min-width: 900px) {
  .se-console--compact .se-console__form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: var(--space-3);
    align-items: end;
  }

  .se-console--compact .se-console__steps {
    display: contents;
  }

  .se-console--compact .se-console__result {
    grid-column: 1 / -1;
    order: 2;
  }
}

/* =========================================================
   Trust strip
   ========================================================= */

.se-trust {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .se-trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .se-trust {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.se-trust__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.se-trust__item h3 {
  font-size: 1.0625rem;
  margin: 0 0 4px;
}

.se-trust__item p {
  font-size: var(--fs-small);
  color: var(--slate-600);
  margin: 0;
}

/* =========================================================
   How it works — timeline
   ========================================================= */

.se-timeline {
  list-style: none;
  display: grid;
  gap: var(--space-5);
  counter-reset: se-step;
  position: relative;
}

.se-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-4);
}

.se-timeline__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-700);
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-weight: 700;
}

.se-timeline__item--final .se-timeline__dot {
  background: var(--blue-700);
  color: var(--white);
}

.se-timeline__item h3 {
  margin: 10px 0 var(--space-2);
}

.se-timeline__item p {
  margin: 0;
  color: var(--slate-600);
}

.se-timeline__note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
}

/* Vertical connector on mobile */
.se-timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: calc(-1 * var(--space-5));
  width: 2px;
  background: var(--line);
}

@media (min-width: 1024px) {
  .se-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }

  .se-timeline__item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .se-timeline__item:not(:last-child)::before {
    left: 60px;
    right: calc(-1 * var(--space-6));
    top: 25px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .se-timeline__item h3 {
    margin-top: var(--space-2);
  }

  /* Connector fills with brand blue as the section scrolls into view. */
  .se-timeline__item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 60px;
    right: calc(-1 * var(--space-6));
    top: 25px;
    height: 2px;
    background: var(--blue-700);
    transform-origin: left;
    transform: scaleX(1);
  }

  html.js .se-reveal .se-timeline__item:not(:last-child)::after {
    transform: scaleX(0);
    transition: transform 0.6s var(--ease);
  }

  html.js .se-reveal.is-visible .se-timeline__item:not(:last-child)::after {
    transform: scaleX(1);
  }

  html.js .se-reveal.is-visible .se-timeline__item:nth-child(2)::after {
    transition-delay: 0.25s;
  }

  html.js .se-reveal.is-visible .se-timeline__item:nth-child(3)::after {
    transition-delay: 0.5s;
  }
}

/* =========================================================
   Product cards & bento
   ========================================================= */

.se-products {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .se-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .se-products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Bento: one feature card + smaller cards; a snap carousel on phones. */
.se-bento {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(-1 * var(--space-4));
  padding: 4px var(--space-4) var(--space-4);
}

.se-bento::-webkit-scrollbar {
  display: none;
}

.se-bento > * {
  scroll-snap-align: start;
}

@media (min-width: 600px) {
  .se-bento {
    grid-auto-columns: 46%;
  }
}

@media (min-width: 1024px) {
  .se-bento {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: var(--space-5);
  }

  .se-bento--feature > :first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .se-bento--feature > :first-child .se-product__media {
    aspect-ratio: 4 / 3.4;
  }

  .se-bento--feature > :first-child .se-product__name {
    font-size: 1.5rem;
  }

  /* With only 1-2 products a 2x2 feature card leaves half the row empty;
     use an even 3-up grid instead. */
  .se-bento:not(.se-bento--feature) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.se-product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.se-product:hover {
  color: inherit;
  border-color: var(--blue-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.se-product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  overflow: hidden;
}

.se-product__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.se-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.se-product:hover .se-product__media img {
  transform: scale(1.03);
}

.se-product__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}

.se-product__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.se-product__category {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.se-product__name {
  font-size: 1.125rem;
  margin: 0;
}

.se-product__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.se-product__price,
.se-product__cta {
  white-space: nowrap;
}

.se-product__price {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink-900);
}

.se-product__price--quote {
  font-size: 1rem;
  color: var(--blue-700);
}

.se-product__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--blue-700);
}

.se-product__cta .se-icon {
  transition: transform var(--dur-fast) var(--ease);
}

.se-product:hover .se-product__cta .se-icon {
  transform: translateX(3px);
}

/* Skeleton shimmer for JS-driven loading states */
.se-skeleton {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--paper) 0%, var(--line) 50%, var(--paper) 100%);
  background-size: 200% 100%;
  min-height: 320px;
}

@media (prefers-reduced-motion: no-preference) {
  .se-skeleton {
    animation: se-shimmer 1.4s linear infinite;
  }
}

@keyframes se-shimmer {
  to {
    background-position: -200% 0;
  }
}

/* =========================================================
   Payment explainer
   ========================================================= */

.se-pay {
  display: grid;
  gap: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

@media (min-width: 900px) {
  .se-pay {
    grid-template-columns: 1.25fr 1fr;
    gap: var(--space-7);
    padding: var(--space-7);
  }
}

.se-pay__steps {
  list-style: none;
  display: grid;
  gap: var(--space-4);
  counter-reset: se-pay;
  margin-top: var(--space-5);
}

.se-pay__steps li {
  counter-increment: se-pay;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-3);
  align-items: start;
}

.se-pay__steps li::before {
  content: counter(se-pay);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
}

.se-pay__steps li span {
  padding-top: 6px;
}

@media (max-width: 599px) {
  .se-pay {
    padding: var(--space-4);
  }
}

.se-pay__methods {
  display: grid;
  align-self: start;
  align-content: start;
  gap: var(--space-4);
  padding: clamp(16px, 12px + 1.5vw, 24px);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.se-pay__methods h3 {
  font-size: 1.0625rem;
  margin: 0;
}

.se-pay__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.se-notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: var(--fs-small);
  font-weight: 500;
  margin: 0;
}

.se-notice .se-icon {
  margin-top: 2px;
}

/* =========================================================
   FAQ
   ========================================================= */

.se-faq-layout {
  display: grid;
  gap: var(--space-6);
}

.se-faq-layout > *,
.se-hero__grid > *,
.se-pdp > *,
.se-contact > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .se-faq-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--space-8);
    align-items: start;
  }

  .se-faq-layout__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
  }
}

.se-help-card {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--blue-900);
  color: var(--on-dark);
}

.se-help-card h3 {
  margin: 0;
  font-size: 1.125rem;
}

.se-help-card p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
}

.se-faq-group + .se-faq-group {
  margin-top: var(--space-6);
}

.se-faq-group__title {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-600);
  margin-bottom: var(--space-2);
}

.se-faq-group[hidden] {
  display: none;
}

.se-accordion {
  border-top: 1px solid var(--line);
}

.se-accordion__item {
  border-bottom: 1px solid var(--line);
}

.se-accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding: var(--space-3) 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.se-accordion__item summary::-webkit-details-marker {
  display: none;
}

.se-accordion__item summary:hover {
  color: var(--blue-700);
}

.se-accordion__toggle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue-700);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.se-accordion__item[open] .se-accordion__toggle {
  transform: rotate(45deg);
  background: var(--blue-700);
  color: var(--white);
}

.se-accordion__body {
  padding: 0 var(--space-7) var(--space-5) 0;
  color: var(--slate-600);
}

.se-accordion__body p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .se-accordion__item[open] .se-accordion__body {
    animation: se-slide-down var(--dur) var(--ease);
  }
}

@keyframes se-slide-down {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* =========================================================
   Final CTA band
   ========================================================= */

.se-final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.se-final::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1000px;
  height: 1000px;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 52, 166, 0.55), transparent 60%);
}

.se-final h2 {
  margin-inline: auto;
  max-width: 18ch;
}

.se-final > .se-container > p {
  margin-inline: auto;
  color: var(--on-dark-muted);
}

.se-final .se-console {
  max-width: 1040px;
  margin: var(--space-6) auto 0;
  text-align: left;
}

.se-final__alt {
  margin-top: var(--space-5);
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
}

.se-final__alt a {
  color: var(--on-dark);
  font-weight: 600;
}

/* =========================================================
   Shop
   ========================================================= */

.se-vehicle-bar {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .se-vehicle-bar {
    grid-template-columns: auto 1fr auto;
  }
}

.se-vehicle-bar__label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-small);
  color: var(--slate-600);
  font-weight: 500;
}

.se-vehicle-bar__photo {
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.se-vehicle-bar__photo picture,
.se-vehicle-bar__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.se-vehicle-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.se-vehicle-bar__chips li {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-weight: 600;
  font-size: 0.9375rem;
}

.se-change {
  margin-top: var(--space-4);
}

/* Category filter chips on /shop results (plain links, no JS). */
.se-category-chips {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-6);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.se-category-chips::-webkit-scrollbar {
  display: none;
}

.se-category-chips a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink-900);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.se-category-chips a:hover {
  border-color: var(--blue-700);
}

.se-category-chips a span {
  min-width: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--slate-600);
  font-size: 0.75rem;
  text-align: center;
}

.se-category-chips a[aria-current="page"] {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: var(--white);
}

.se-category-chips a[aria-current="page"] span {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.se-change > summary {
  list-style: none;
  cursor: pointer;
  width: fit-content;
}

.se-change > summary::-webkit-details-marker {
  display: none;
}

.se-change[open] > summary {
  margin-bottom: var(--space-4);
}

.se-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-7) 0 var(--space-5);
}

.se-results-head h2 {
  font-size: var(--fs-h3);
  margin: 0;
}

.se-empty {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: clamp(32px, 24px + 4vw, 72px) var(--space-5);
  text-align: center;
  border: 1.5px dashed var(--slate-400);
  border-radius: var(--radius-lg);
  background: var(--paper);
  margin-top: var(--space-7);
}

.se-empty__art {
  width: min(260px, 70%);
  color: var(--blue-700);
}

.se-empty h2 {
  font-size: var(--fs-h3);
  margin: 0;
}

.se-empty p {
  color: var(--slate-600);
  margin: 0 auto;
}

.se-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

/* =========================================================
   Product detail
   ========================================================= */

.se-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--slate-600);
  padding-block: var(--space-4);
}

.se-breadcrumb li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--slate-400);
}

.se-breadcrumb a {
  color: var(--slate-600);
  text-decoration: none;
}

.se-breadcrumb a:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.se-pdp {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--section-pad);
}

/* DOM order is gallery -> buy panel (h1) -> details (h2s) so headings stay
   in order and phones read naturally; grid areas restore the desktop
   two-column layout with the buy panel spanning both rows. */
@media (min-width: 1024px) {
  .se-pdp {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "gallery buy"
      "details buy";
    /* Row 1 hugs the gallery; the tall spanning buy panel only grows row 2,
       so "Details" sits right under the image instead of after a gap. */
    grid-template-rows: auto 1fr;
    column-gap: var(--space-8);
    row-gap: var(--space-6);
    align-items: start;
  }

  .se-gallery {
    grid-area: gallery;
  }

  .se-buy {
    grid-area: buy;
  }

  .se-pdp__details {
    grid-area: details;
  }
}

.se-gallery__main {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.se-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.se-gallery__thumbs {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  list-style: none;
}

.se-gallery__thumbs img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.se-buy {
  display: grid;
  gap: var(--space-4);
}

/* Same grid-blowout class of bug fixed for .se-form (above) and
   .se-admin-page (admin.css): a grid item's default min-width: auto lets
   its content (e.g. a long option label) push this whole panel wider
   than its column. */
.se-buy > * {
  min-width: 0;
}

.se-buy__options-label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: var(--space-2);
}

.se-buy__option {
  margin-bottom: var(--space-2);
}

.se-buy__option-group {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: var(--space-3) 0 0;
}

.se-buy__option-group legend {
  padding: 0;
  font-weight: 600;
  font-size: var(--fs-small);
}

.se-buy__qty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.se-buy__qty .se-select {
  width: auto;
}

@media (min-width: 1024px) {
  .se-buy {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
  }
}

.se-buy h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  margin: 0;
}

.se-buy__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.se-buy__price--quote {
  font-size: 1.5rem;
  color: var(--blue-700);
}

.se-specs {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.se-specs div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}

.se-specs dt {
  color: var(--slate-600);
}

.se-specs dd {
  margin: 0;
  font-weight: 600;
}

.se-fit {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 500;
}

.se-fit .se-icon {
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.se-fit p {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.se-fit__photo {
  flex-shrink: 0;
  width: 72px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.se-fit__photo picture,
.se-fit__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.se-fit a {
  font-weight: 600;
}

.se-fit--yes {
  background: var(--success-50);
  border-color: rgba(21, 122, 66, 0.3);
  color: var(--success-700);
}

.se-fit--no {
  background: var(--error-50);
  border-color: rgba(180, 35, 24, 0.3);
  color: var(--error-700);
}

.se-fit--unknown .se-icon {
  color: var(--blue-700);
}

.se-buy__actions {
  display: grid;
  gap: var(--space-3);
}

.se-mini-steps {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  counter-reset: se-mini;
  margin-top: var(--space-4);
}

.se-mini-steps li {
  counter-increment: se-mini;
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--fs-small);
}

.se-mini-steps li::before {
  content: counter(se-mini);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-700);
  color: var(--blue-700);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.se-prose {
  max-width: 72ch;
}

.se-prose h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-6);
}

.se-prose p {
  color: var(--slate-600);
}

.se-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.se-table th,
.se-table td {
  text-align: left;
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--line);
}

.se-table th {
  color: var(--slate-600);
  font-weight: 600;
}

/* =========================================================
   Forms
   ========================================================= */

.se-form {
  display: grid;
  gap: var(--space-4);
}

/* Grid items default to min-width: auto, so a field whose content has a
   wide min-content size (long label text, a mono-font value, an
   un-truncated placeholder, ...) would otherwise force the single
   implicit column — and therefore the whole form — wider than its
   container instead of just wrapping. Same class of bug as the
   .se-admin-page grid blowout fixed in admin.css; it recurs at every
   nested grid level, so it is fixed here once, generically, for every
   .se-form on the site rather than per-page. */
.se-form > * {
  min-width: 0;
}

@media (min-width: 600px) {
  .se-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .se-form__row > * {
    min-width: 0;
  }
}

.se-field {
  display: grid;
  gap: 6px;
}

.se-field label {
  font-weight: 600;
  font-size: var(--fs-small);
}

.se-input {
  width: 100%;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--slate-400);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.se-input:hover {
  border-color: var(--blue-700);
}

.se-input:focus-visible {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(16, 52, 166, 0.2);
}

textarea.se-input {
  min-height: 150px;
  resize: vertical;
}

.se-field.has-error .se-input {
  border-color: var(--error-700);
}

.se-field__hint {
  font-size: var(--fs-small);
  color: var(--slate-600);
  margin: 0;
}

.se-field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--error-700);
  margin: 0;
}

.se-consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--fs-small);
  color: var(--slate-600);
  cursor: pointer;
}

.se-consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--blue-700);
  cursor: pointer;
}

/* ---------- Order review / confirmation (roadmap 2.7) ---------- */

.se-order,
.se-order-confirmation {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-6);
}

/* Same grid-blowout class of bug as .se-form/.se-buy/.se-admin-page above:
   every grid introduced on this page gets the min-width: 0 override on its
   direct items so a long instructions string or label can't push a column
   past its container. */
.se-order > *,
.se-order-confirmation > *,
.se-order__form > *,
.se-order__methods > *,
.se-order__method > *,
.se-order__line > * {
  min-width: 0;
}

.se-order__empty {
  text-align: center;
  display: grid;
  gap: var(--space-3);
  justify-items: center;
}

.se-order__lines {
  list-style: none;
  display: grid;
  gap: var(--space-4);
  margin: var(--space-4) 0;
  padding: 0;
}

.se-order__line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  column-gap: var(--space-3);
  row-gap: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.se-order__line-thumb img {
  display: block;
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--paper);
}

@media (min-width: 600px) {
  .se-order__line {
    grid-template-columns: 96px minmax(0, 1fr) auto;
  }

  .se-order__line-thumb img {
    width: 96px;
    height: 72px;
  }
}

.se-order__line-name a {
  color: inherit;
  text-decoration: none;
}

.se-order__line-name a:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

/* The line just added from a product page. */
.se-order__line--new {
  margin: 0 calc(var(--space-3) * -1);
  padding: var(--space-3) var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--success-50);
  box-shadow: inset 3px 0 0 var(--success-700);
}

.se-badge--new {
  margin-bottom: 4px;
  background: var(--success-700);
  color: #fff;
}

.se-alert__list {
  margin: var(--space-2) 0 0;
  padding-left: 1.1em;
}

.se-order__form .se-alert {
  margin-bottom: var(--space-4);
}

.se-order__line-main p {
  margin: 0 0 2px;
}

.se-order__line-total {
  text-align: right;
  font-weight: 600;
  max-width: 9rem;
}

.se-order__line-remove {
  grid-column: 1 / -1;
}

.se-order__line--unavailable {
  color: var(--slate-600);
}

.se-order__line--unavailable .se-order__line-name {
  text-decoration: line-through;
}

.se-order__subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: var(--space-3);
  border-top: 1.5px solid var(--line);
}

.se-order__form {
  display: grid;
  gap: var(--space-4);
}

.se-order__methods {
  display: grid;
  gap: var(--space-3);
}

.se-order__method {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--slate-400);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.se-order__method:has(input:checked) {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 2px rgba(16, 52, 166, 0.15);
}

.se-order__method input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--blue-700);
  cursor: pointer;
}

.se-order__method span {
  display: grid;
  gap: 2px;
}

.se-order__method--logo {
  grid-template-columns: 24px 72px minmax(0, 1fr);
  align-items: center;
  row-gap: var(--space-2);
}

.se-order__method-desc {
  grid-column: 2 / -1;
}

.se-order__method:not(.se-order__method--logo) .se-order__method-desc {
  grid-column: 2;
}

.se-footer__methods + .se-footer__heading {
  margin-top: var(--space-5);
}

.se-order__method-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 44px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.se-order__method-logo img {
  width: auto;
  height: 32px;
  max-width: 60px;
  object-fit: contain;
}

.se-order__method-desc {
  font-weight: 400;
}

.se-order__methods legend {
  padding: 0;
  margin-bottom: var(--space-2);
  font-weight: 600;
  font-size: var(--fs-small);
}

.se-order__methods {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* Required-field marker. The input itself carries `required`, which is
   what assistive tech announces; the asterisk is a visual cue only. */
.se-req {
  color: var(--error-700);
  font-weight: 700;
  margin-left: 2px;
}

.se-form__required-note {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--slate-600);
}

.se-order-confirmation__ref {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Honeypot: hidden from users and screen readers */
.se-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.se-alert {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 500;
}

.se-alert .se-icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.se-alert p {
  margin: 0;
}

.se-alert--error {
  background: var(--error-50);
  border-color: rgba(180, 35, 24, 0.3);
  color: var(--error-700);
}

.se-alert--success {
  background: var(--success-50);
  border-color: rgba(21, 122, 66, 0.3);
  color: var(--success-700);
}

/* =========================================================
   Contact
   ========================================================= */

.se-contact {
  display: grid;
  gap: var(--space-5);
  padding-bottom: var(--section-pad);
}

@media (min-width: 1024px) {
  .se-contact {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-6);
    align-items: start;
  }
}

.se-contact__info {
  display: grid;
  gap: var(--space-4);
}

.se-info-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.se-info-card h2 {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--slate-600);
  margin: 0 0 4px;
}

.se-info-card p {
  margin: 0;
  font-weight: 600;
}

.se-info-card a {
  text-decoration: none;
  font-weight: 600;
}

.se-info-card a:hover {
  text-decoration: underline;
}

/* =========================================================
   About / facts grid
   ========================================================= */

.se-facts {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .se-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.se-facts .se-card {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.se-facts h3 {
  margin: 0;
  font-size: 1.125rem;
}

.se-facts p {
  margin: 0;
  color: var(--slate-600);
}

.se-placeholder {
  border-left: 3px solid var(--warning-700);
  background: var(--warning-50);
  color: var(--warning-700);
  padding: var(--space-4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 500;
}

/* =========================================================
   Error pages
   ========================================================= */

.se-error {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--space-4);
  padding-block: var(--section-pad);
}

.se-error__art {
  width: min(320px, 80%);
  color: var(--blue-700);
}

.se-error h1 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  margin: 0;
}

.se-error p {
  color: var(--slate-600);
  margin: 0 auto;
}

.se-error__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

/* =========================================================
   Scroll reveal (progressive: content is visible without JS
   and with reduced motion — only html.js opts into the effect)
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {
  html.js .se-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  html.js .se-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   About: story + pull quote
   ========================================================= */

.se-story {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.se-story > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .se-story {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-8);
  }
}

.se-story__text p {
  font-size: var(--fs-lead);
  line-height: 1.7;
}

.se-story__quote {
  margin: 0;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 20% 0%, rgba(58, 95, 208, 0.45), rgba(58, 95, 208, 0) 60%), var(--blue-900);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}

.se-story__quote blockquote {
  margin: 0 0 var(--space-4);
}

.se-story__quote blockquote p {
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.se-story__quote blockquote p::before {
  content: "\201C";
  display: block;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--blue-200);
  margin-bottom: var(--space-3);
}

.se-story__quote figcaption {
  color: var(--blue-200);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.se-story__cta {
  margin-top: var(--space-6);
  text-align: center;
  max-width: none;
}

/* Footer social icons */
.se-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.se-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--on-dark);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.se-footer__social a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.se-footer__social .se-icon {
  width: 20px;
  height: 20px;
}

.se-story__text h2 {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-5);
}
