/* ============================================================================
   Showroom — the marketing site's own layer over theme.css.

   theme.css owns colour, type and the component library and is a verbatim
   port; nothing here redefines one of its tokens. This file adds only what a
   motorcycle showroom needs and the lender's brochure did not.

   The one idea: THE MONTHLY FIGURE IS THE PROTAGONIST. It is set like a price
   tag on a showroom floor — very large, tabular, tightly tracked — and its
   assumptions are locked directly beneath it as one inseparable unit. That
   scale contrast is where the boldness comes from. Everything else is quiet:
   1px borders, no gradients, no shadows beyond the one theme.css already
   defines for .card, no decoration.

   Written 375px-first. The only breakpoint that matters is 992px, where the
   showroom stops being a column and becomes a floor.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. The price tag
   ------------------------------------------------------------------------ */

/* The figure and its assumptions are one element, deliberately: the markup
   makes it awkward to render an instalment without the line that explains it,
   which is the rule the whole site turns on. */
.price-tag {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: .375rem;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
  line-height: 1;
}

.price-figure .price-currency {
  font-size: .5em;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink-muted);
  align-self: flex-start;
  padding-top: .28em;
}

.price-figure .price-amount {
  font-size: 1em;
  font-weight: 600;
  letter-spacing: -.045em;
}

.price-figure .price-suffix {
  font-size: .26em;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Three scales, one system. Hero, card, and the inline figure in a band. */
.price-hero      { font-size: clamp(3.25rem, 15vw, 4.5rem); }
.price-panel     { font-size: clamp(2.75rem, 12vw, 3.5rem); }
.price-card      { font-size: clamp(2.125rem, 9vw, 2.375rem); }
.price-inline    { font-size: 1.5rem; }

/* The assumption strip. 0.75rem against a 3–4rem figure is the contrast that
   carries the page — so it must never be allowed to grow. */
.assumptions {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums lining-nums;
}

.assumptions > li {
  display: flex;
  gap: .3125rem;
  align-items: baseline;
}

.assumptions > li + li {
  padding-left: .75rem;
  border-left: 1px solid var(--border);
}

.assumptions .assumption-label {
  color: var(--ink-soft);
}

.assumptions .assumption-value {
  color: var(--ink);
  font-weight: 500;
}

/* The hero states its assumptions as chips rather than a fine-print line —
   same four facts, same markup, more weight. Nothing is restated elsewhere,
   so there is exactly one place the deposit and tenure are declared. */
.assumptions-chips {
  gap: .5rem;
}

.assumptions-chips > li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .625rem;
  background: var(--surface);
  font-size: .75rem;
}

.assumptions-chips > li + li {
  padding-left: .625rem;
  border-left: 1px solid var(--border);
}

/* Cash price: present, checkable, and visibly subordinate to the monthly. */
.cash-price {
  font-size: .875rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---------------------------------------------------------------------------
   2. Chrome — utility bar, language toggle, header
   ------------------------------------------------------------------------ */

.utility-bar {
  background: var(--ink);
  color: #CBD5E1;
  font-size: .8125rem;
}

.utility-bar a {
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}

.utility-bar a:hover { color: #FFFFFF; }

/* 4.5:1 against --ink for the non-link text on the bar. */
.utility-bar .utility-note { color: #94A3B8; }

.lang-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  overflow: hidden;
}

/* The two halves are the bar's only real tap target, so they carry a 28px
   minimum height rather than hugging a 12px label. Two characters wide needs
   a width floor too, or "BM" and "EN" sit on the pill's own border. */
.lang-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 40px;
  padding: .25rem .625rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #CBD5E1;
  line-height: 1.5;
}

.lang-toggle a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.lang-toggle a[aria-current="true"] { background: #FFFFFF; color: var(--ink); }
.lang-toggle a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -2px; }

.site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
}

/* ---------------------------------------------------------------------------
   3. Sections
   ------------------------------------------------------------------------ */

.section {
  padding-block: 3rem;
}

.section-tight { padding-block: 2rem; }

.section-bordered { border-top: 1px solid var(--border); }

.section-head {
  max-width: 58ch;
}

.section-head h2 {
  font-size: 1.625rem;
  margin: 0;
}

.section-head p {
  margin: .75rem 0 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

@media (min-width: 992px) {
  .section { padding-block: 4.5rem; }
  .section-tight { padding-block: 3rem; }
  .section-head h2 { font-size: 2rem; }
}

/* ---------------------------------------------------------------------------
   4. Hero
   ------------------------------------------------------------------------ */

.hero {
  padding-block: 2.5rem 0;
}

.hero h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
  color: var(--ink-muted);
}

.hero .hero-model {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.015em;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem .75rem;
  align-items: center;
  font-size: .75rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.hero-trust > * + *::before {
  content: "·";
  padding-right: .75rem;
  color: var(--border-strong);
}

@media (min-width: 992px) {
  .hero { padding-block: 4rem 0; }
  .hero h1 { font-size: 1.75rem; }
}

/* ---------------------------------------------------------------------------
   5. The marked-up placeholder
   Deliberate, not broken: the site's own border, the site's own subtle fill,
   the model name where the bike will be, and a quiet marker saying whose job
   the photograph is.
   ------------------------------------------------------------------------ */

.stock-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  border: 1px solid var(--border);
  border-radius: .75rem;
  overflow: hidden;
  background: var(--surface-subtle);
}

.stock-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stock-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  /* The panel inherits --surface-subtle from .stock-frame. The drawn outline,
     the model name and the marker already say "photograph pending"; a ruled
     grid on top of them would be decoration doing work the content has done. */
}

.stock-placeholder .stock-outline {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-strong);
  pointer-events: none;
}

.stock-placeholder .stock-outline svg {
  width: 44px;
  height: 44px;
}

.stock-placeholder .stock-meta {
  position: relative;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  max-width: 22ch;
}

.stock-placeholder .stock-capacity {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums lining-nums;
}

.stock-placeholder .stock-marker {
  position: relative;
  align-self: flex-start;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .1em;
  /* The brief asked for --ink-faint here. That is 2.6:1 on white and fails
     AA even for a marker, and accessibility is the harder constraint, so it
     is one step darker at --ink-soft (4.8:1) — visually still the quietest
     thing in the frame. */
  color: var(--ink-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: .125rem .5rem;
  background: var(--surface);
}

.stock-frame-hero { aspect-ratio: 3 / 2; }

/* ---------------------------------------------------------------------------
   6. Calculator
   ------------------------------------------------------------------------ */

.calc {
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--surface);
  overflow: hidden;
}

.calc-controls { padding: 1.25rem; }
.calc-readout {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
}

@media (min-width: 992px) {
  .calc { display: grid; grid-template-columns: 1.15fr 1fr; }
  .calc-controls { padding: 2rem; }
  .calc-readout { border-top: 0; border-left: 1px solid var(--border); padding: 2rem; }

  /* Beside the gallery on a detail page there is no room for two columns, so
     the panel keeps its phone layout — controls, then the figure they produce.
     DOM order is reading order at every width; nothing is visually reordered. */
  .calc-stacked { grid-template-columns: 1fr; }
  .calc-stacked .calc-controls { padding: 1.5rem; }
  .calc-stacked .calc-readout { border-left: 0; border-top: 1px solid var(--border); padding: 1.5rem; }
}

.calc-field + .calc-field { margin-top: 1.5rem; }

.calc-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}

.calc-field-head .calc-value {
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
}

.calc-bounds {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--ink-soft);
  margin-top: .375rem;
  font-variant-numeric: tabular-nums lining-nums;
}

/* Segmented control for tenure. Radios, so it is keyboard-operable and
   announces as a group without a line of JavaScript. */
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  border: 0;
  padding: 0;
  margin: 0;
}

.segmented .segment { position: relative; }

.segmented input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.segmented label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 .875rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  font-variant-numeric: tabular-nums lining-nums;
}

.segmented label:hover { border-color: var(--border-strong); }

.segmented input:checked + label {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
}

.segmented input:focus-visible + label {
  outline: 0;
  box-shadow: 0 0 0 var(--bs-focus-ring-width, 3px) var(--bs-focus-ring-color);
}

.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
}

.calc-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.calc-breakdown dt { font-weight: 400; color: var(--ink-muted); }
.calc-breakdown dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }

/* ---------------------------------------------------------------------------
   7. Catalogue
   ------------------------------------------------------------------------ */

.filter-bar {
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--surface);
  padding: 1rem;
}

.filter-bar .form-label { margin-bottom: .25rem; }

.filter-primary .form-label {
  font-size: .875rem;
}

.result-count {
  font-size: .875rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums lining-nums;
}

.stock-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) { .stock-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .stock-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.stock-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--surface);
  overflow: hidden;
}

.stock-card:hover { border-color: var(--border-strong); }

.stock-card .stock-frame { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); }

.stock-card-body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  flex: 1 1 auto;
}

.stock-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

.stock-card-title a { color: var(--ink); }
.stock-card-title a:hover { color: var(--brand); }

.stock-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem .625rem;
  font-size: .75rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums lining-nums;
}

.stock-card-foot {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* ---------------------------------------------------------------------------
   8. Vehicle detail
   ------------------------------------------------------------------------ */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.spec-table th,
.spec-table td {
  padding: .625rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  font-weight: 400;
  color: var(--ink-muted);
  width: 45%;
}

.spec-table td {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}

.gallery-strip {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: .75rem;
}

/* ---------------------------------------------------------------------------
   9. Will I qualify — cards that differ in weight, not five identical tiles
   ------------------------------------------------------------------------ */

.objections {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .objections {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
  /* Two wide, then three narrow. The first two objections are the ones
     buyers actually arrive with, so they get the room. */
  .objections > li:nth-child(1),
  .objections > li:nth-child(2) { grid-column: span 3; }
  .objections > li:nth-child(n+3) { grid-column: span 2; }
}

.objection {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--surface);
  padding: 1.25rem;
}

.objection h3 {
  font-size: 1rem;
  margin: .75rem 0 0;
  letter-spacing: -.015em;
}

.objection p {
  margin: .5rem 0 0;
  font-size: .875rem;
  color: var(--ink-muted);
}

.objection .objection-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: .5rem;
  color: var(--ink-muted);
  background: var(--surface-subtle);
}

@media (min-width: 992px) {
  .objections > li:nth-child(-n+2) .objection { padding: 1.75rem; }
  .objections > li:nth-child(-n+2) .objection h3 { font-size: 1.125rem; }
  .objections > li:nth-child(-n+2) .objection p { font-size: .9375rem; }
}

/* The credit-check explainer sits inside the same band on a darker ground so
   it reads as the dealer speaking plainly, not as another objection. */
.credit-check {
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--surface-subtle);
  padding: 1.25rem;
}

.credit-check ol {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.credit-check h3 {
  font-size: .9375rem;
  margin: 0;
  letter-spacing: -.01em;
}

.credit-check p {
  margin: .25rem 0 0;
  font-size: .875rem;
  color: var(--ink-muted);
}

@media (min-width: 992px) {
  .credit-check { padding: 2rem; }
  .credit-check ol { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ---------------------------------------------------------------------------
   10. How it works
   ------------------------------------------------------------------------ */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.steps > li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.steps .step-icon {
  flex: 0 0 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: .5rem;
  color: var(--ink-muted);
  background: var(--surface);
}

.steps h3 {
  font-size: 1rem;
  margin: 0;
  letter-spacing: -.015em;
}

.steps p {
  margin: .25rem 0 0;
  font-size: .875rem;
  color: var(--ink-muted);
}

.step-time {
  font-size: .75rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    border-top: 0;
    gap: 1.5rem;
  }
  .steps > li {
    flex-direction: column;
    padding: 1.5rem 0 0;
    border-bottom: 0;
    border-top: 2px solid var(--ink);
  }
  .steps > li + li { border-top-color: var(--border-strong); }
}

/* ---------------------------------------------------------------------------
   11. Social proof
   ------------------------------------------------------------------------ */

.proof-band {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: .75rem;
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 992px) {
  .proof-band { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}

.proof-tile {
  background: var(--surface);
  padding: 1.25rem;
}

.proof-value {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
  line-height: 1.1;
}

.proof-label {
  margin: .375rem 0 0;
  font-size: .8125rem;
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------------------
   12. Statutory band
   ------------------------------------------------------------------------ */

.statutory {
  border: 1px solid var(--border-strong);
  border-radius: .75rem;
  background: var(--surface);
  padding: 1.25rem;
}

.statutory h3 {
  font-size: 1rem;
  margin: 0;
  letter-spacing: -.015em;
}

.statutory p {
  margin: .5rem 0 0;
  font-size: .875rem;
  color: var(--ink-muted);
}

.statutory-body {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--ink-muted);
  white-space: pre-line;
}

.statutory-marker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  /* --warning on --warning-tint is 3.5:1 and fails AA at this size. The tint
     and border still carry the warning; the text is set in --ink so it can
     actually be read. */
  color: var(--ink);
  background: var(--warning-tint);
  border: 1px solid var(--warning);
  border-radius: .375rem;
  padding: .25rem .5rem;
}

@media (min-width: 992px) {
  .statutory { padding: 2rem; }
}

/* ---------------------------------------------------------------------------
   13. Sticky mobile bar and the WhatsApp float
   ------------------------------------------------------------------------ */

/* Pages that carry the bar reserve room for it, so the last form field and
   the footer always clear it. */
.has-sticky-cta { padding-bottom: 5.5rem; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .625rem .875rem calc(.625rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.sticky-cta .sticky-figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.sticky-cta .sticky-amount {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}

.sticky-cta .sticky-note {
  font-size: .6875rem;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-cta .btn { flex: 0 0 auto; }

/* A focused input must never be covered by the bar. */
body.is-typing .sticky-cta { display: none; }

@media (min-width: 992px) {
  .sticky-cta { display: none; }
  .has-sticky-cta { padding-bottom: 0; }
}

.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 1029;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 44px;
  padding: 0 .875rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
}

.wa-float:hover { text-decoration: none; border-color: var(--ink); }

/* On the two pages that carry the bottom bar, the float steps up over it. */
body.has-sticky-cta .wa-float { bottom: 5.25rem; }

body.is-typing .wa-float { display: none; }

@media (min-width: 992px) {
  .wa-float,
  body.has-sticky-cta .wa-float { bottom: 1.5rem; right: 1.5rem; }
}

/* ---------------------------------------------------------------------------
   14. Small shared pieces
   ------------------------------------------------------------------------ */

.chip-outline {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  height: 26px;
  padding: 0 .625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.link-quiet { color: var(--ink-muted); }
.link-quiet:hover { color: var(--ink); }

.rule-top { border-top: 1px solid var(--border); }

.measure { max-width: 62ch; }

/* ---------------------------------------------------------------------------
   15. Contrast corrections, scoped to the marketing site

   theme.css is a verbatim port and its tokens are not ours to change. Two of
   its utility classes are set in --ink-faint, which is 2.6:1 on white — below
   AA for text. On these pages that text is not decoration: `.fine` carries the
   indicative-quote disclaimer that makes a quoted instalment lawful, and
   `.form-text` explains what the deposit slider does. Both are raised one step
   to --ink-soft (4.8:1). The tokens are untouched, and showroom.css loads only
   on the public site, so no other surface moves.
   ------------------------------------------------------------------------ */

.fine,
.form-text,
.text-faint {
  color: var(--ink-soft) !important;
}
