/* The dealer's own pages: service, promo, FAQ, about, contact, test ride. Tokens only, mobile first. */

/* Page head: eyebrow, h1, one intro sentence on the stage background (glow only; the energy field draws the grid). */
.page-head {
  background:
    radial-gradient(60% 80% at 70% 0%, var(--glow-brand), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 16px;
  position: relative;
  overflow: hidden; /* the energy field stays inside the head */
}
.page-head .container { position: relative; z-index: 1; }
.page-head__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--ai);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; overflow-wrap: anywhere; }
.page-head__intro { margin: 12px 0 0; max-width: 60ch; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }
@media (min-width: 768px) { .page-head { padding: 48px 0 24px; } }

/* Page sections (the home page's own .section stays in home.css). */
.dpage { padding-block: 32px; }
.dpage--tight { padding-block: 12px; }
.dpage__heading { margin: 0 0 16px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
.fact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.fact-card .dpage__heading { margin: 0; }
.fact-card__text { margin: 0; max-width: 64ch; color: var(--ink-2); line-height: 1.6; }
.dpage .service__list { max-width: 720px; }
.dpage .chip { min-height: 44px; height: auto; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; max-width: 720px; }
.steps__item { counter-increment: step; display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.steps__item::before {
  content: counter(step);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Company table (about page): a definition list, one row per known fact. */
.facts { width: 100%; margin: 0; }
.facts__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts__row:first-child { border-top: 0; padding-top: 0; }
.facts__row:last-child { padding-bottom: 0; }
.facts dt { color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.facts dd { margin: 0; min-width: 0; color: var(--ink); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.facts dd a { color: var(--brand-strong); }
.facts__action { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.facts dd .icon-link:not([data-brand]) { color: var(--ink); }
.facts dd .icon-link[data-brand] { color: var(--on-brand); }
@media (min-width: 768px) { .facts__row { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; } }

/* Service flow: five numbered steps, a hairline connector behind the number circles. */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; counter-reset: flow; }
.flow__step { counter-increment: flow; position: relative; min-width: 0; padding-left: 56px; }
.flow__step::before {
  content: counter(flow);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-weight: 700;
}
.flow__step:not(:last-child)::after { content: ''; position: absolute; top: 40px; bottom: -24px; left: 19.5px; width: 1px; background: var(--line); }
.flow__title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; min-height: 40px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.flow__title .icon { flex-shrink: 0; color: var(--brand-strong); }
.flow__text { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .flow__step { padding-left: 0; padding-top: 56px; }
  .flow__step:not(:last-child)::after { top: 19.5px; bottom: auto; left: 40px; width: calc(100% - 40px + 24px); height: 1px; }
}

/* Checklist and the "does not need" chips */
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.checks__item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); line-height: 1.4; }
.checks__tick { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--brand-strong); }
.noneed__heading { margin: 24px 0 12px; font-size: 1rem; }
.noneed { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.noneed__chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface-2); border-radius: var(--r-pill); color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 360px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .checks { gap: 10px; } .checks__item { padding: 12px; gap: 10px; overflow-wrap: anywhere; } }
@media (min-width: 1024px) { .checks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Two fact cards side by side */

/* About tiles */
.about-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.about-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.about-tile__link { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 20px; color: inherit; text-decoration: none; border-radius: var(--r-card); }
a.about-tile__link:hover { background: var(--surface-2); }
.about-tile__icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--surface-2); color: var(--brand-strong); }
.about-tile__text { margin: 0; flex: 1; min-width: 0; line-height: 1.5; }
@media (min-width: 768px) { .about-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Composer */
.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.composer__choices, .composer__preview { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.composer__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.composer__label { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 0; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.composer__segmented { display: flex; flex-wrap: wrap; border-radius: 22px; }
.composer__segmented .segmented__option { min-height: 44px; }
.composer__group[hidden] { display: none; }
/* The topic bar: six options with an icon each, wrapping on a tablet, two columns on a phone. */
.composer__topics { display: flex; flex-wrap: wrap; gap: 4px; border-radius: 22px; margin-bottom: 4px; }
.composer__topics .segmented__option { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 639px) {
  .composer__topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .composer__topics .segmented__option { min-width: 0; justify-content: center; }
}
/* Phones: a choice with more than three options is a two-column grid of equal-width options. */
@media (max-width: 767px) {
  .composer__segmented:has(> :nth-child(4)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; }
  .composer__segmented:has(> :nth-child(4)) .segmented__option { min-width: 0; padding-inline: 8px; text-align: center; }
}
.composer__field { display: flex; flex-direction: column; min-width: 0; }
.composer__input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  min-height: 44px;
  resize: vertical;
}
.composer__input::placeholder { color: var(--ink-2); opacity: 1; } /* the browser default grey is 3.6:1 on this field */
.composer__input:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; border-color: var(--brand-strong); }
.composer__counter { margin-top: 4px; text-align: right; font-size: 0.75rem; color: var(--ink-2); }
.composer__bubble {
  margin: 0;
  padding: 16px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface-2);
  border-radius: 18px 18px 4px 18px;
  font-size: 0.9375rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.composer__send { width: 100%; }
/* One column (phones, tablets): the message and its send button come right after the choices, before the
   optional name and note, so topic, motorbike and message are on screen together. */
@media (max-width: 1023px) {
  .composer { gap: 16px; }
  .composer__choices { display: contents; }
  .composer__preview { order: 1; }
  .composer__field { order: 2; }
}
html:not(.js) .composer__choices { display: none; }
@media (min-width: 768px) { .composer__send { width: auto; align-self: flex-start; } }
@media (min-width: 1024px) {
  .composer { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; padding: 32px; }
}

/* FAQ */
.container.faq { max-width: 824px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 12px; }
.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary .icon { flex-shrink: 0; transition: transform 160ms var(--ease); }
.faq__item[open] .faq__summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 20px 16px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }
.faq__answer p { margin: 0 0 10px; }
.faq__source { display: flex; align-items: flex-start; gap: 6px; font-size: 0.75rem; color: var(--provenance); }
.faq__source .icon { flex-shrink: 0; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .faq__summary .icon { transition: none; } }

/* Promo cards and the empty state */
.promo-list { display: grid; gap: 20px; margin-bottom: 20px; }
.promo-list:not(:has(.promo-card:not([hidden]))) { margin-bottom: 0; }
.promo-card { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.promo-card[hidden], .promo-empty[hidden] { display: none; }
.promo-card__photo { margin: 0; }
.promo-card__media { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.promo-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; min-width: 0; }
.promo-card__kind { margin: 0; padding: 4px 12px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ai); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.promo-card__title { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.promo-card__text { margin: 0; color: var(--ink-2); line-height: 1.6; }
.promo-card__period { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.promo-card__actions, .promo-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) {
  .promo-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .promo-card__body { padding: 28px; }
}
.promo-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.promo-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); color: var(--brand-strong); }
.promo-empty__title { margin: 0; font-size: 1.5rem; }
.promo-empty__text { margin: 0; max-width: 46ch; color: var(--ink-2); line-height: 1.6; }
.promo-empty__actions { justify-content: center; }

@media (max-width: 767px) {
  .composer__send, .promo-card__actions .btn, .promo-empty__actions .btn { width: 100%; }
}
/* Links inside the company table: a 44 px tap area with the same visual size. */
.facts dd a:not(.btn):not(.icon-link) { display: inline-block; padding-block: 12px; margin-block: -12px; }
