/* Dealer page. Uses the homepage system (styles.css); only page-specific bits here. */

.d-kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .8rem; color: var(--purple); margin-bottom: 14px; }
.d-hero-sub { margin-top: 20px; max-width: 46ch; font-size: 1.12rem; line-height: 1.6; color: var(--grey); }
.d-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero photo slideshow (crossfades through the customer photos) */
.hero-slides { position: relative; z-index: 1; width: 100%; aspect-ratio: 5 / 6; }
.hero-slides .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  object-fit: cover; border-radius: 20px 20px 130px 130px;
  opacity: 0; transition: opacity .9s ease;
}
.hero-slides .hero-img.is-active { opacity: 1; }

/* Stats strip */
.d-stats { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.d-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 38px 0; }
.d-stat { text-align: center; }
.d-stat-num { display: block; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; color: var(--purple); letter-spacing: -.02em; line-height: 1; }
.d-stat-label { display: block; margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---- Referral split (creative) ---- */
.d-split { padding: clamp(56px, 8vw, 90px) 0; }
.d-split-inner { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.d-split-left { text-align: center; }
.d-split-big { display: block; font-size: clamp(4.5rem, 12vw, 8rem); font-weight: 900; color: var(--purple); line-height: 1; letter-spacing: -.04em; }
.d-split-bigsub { margin: 12px auto 0; color: var(--muted); font-size: 1.05rem; max-width: 22ch; line-height: 1.4; }
.d-split-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--ink); line-height: 1.15; }
.d-split-lead { margin: 14px 0 26px; color: var(--grey); font-size: 1.05rem; line-height: 1.6; max-width: 60ch; }
.d-split-bars { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.d-split-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; }
.d-split-name { font-weight: 700; color: var(--ink); font-size: .95rem; }
.d-split-track { position: relative; height: 48px; border-radius: 999px; background: var(--purple-tint); overflow: hidden; }
.d-split-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; transition: width 1.1s cubic-bezier(.2,.7,.3,1); }
.d-fill-them { background: #d7cfe4; }
.d-fill-you { background: var(--purple); }
.js-split.in .d-fill-them { width: 100%; }
.js-split.in .d-fill-you { width: 50%; }
.d-split-cap { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: .92rem; color: var(--grey); z-index: 2; }
.d-split-cap-you { color: #fff; right: auto; left: 18px; }

/* ---- Roadmap "how it works" ---- */
.d-road { padding: clamp(56px, 8vw, 96px) 0; background: var(--bg-alt); }
.d-road-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.d-road-step { text-align: center; position: relative; }
.d-road-badge {
  width: 60px; height: 60px; border-radius: 50%; background: var(--purple); color: #fff;
  font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; position: relative; z-index: 2; box-shadow: 0 0 0 8px var(--bg-alt);
}
.d-road-step:not(:last-child)::after {
  content: ""; position: absolute; top: 30px; left: calc(50% + 42px); right: calc(-50% + 42px);
  border-top: 3px dashed var(--purple-line); z-index: 1;
}
.d-road-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.d-road-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.d-road-card p { color: var(--grey); font-size: .95rem; }

/* Partner form */
.d-formwrap { padding: clamp(56px, 8vw, 96px) 0; }
.d-form-card { max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(28px, 4vw, 42px); box-shadow: 0 14px 40px rgba(44,32,64,.08); }
.d-form-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--purple); text-align: center; }
.d-form-sub { text-align: center; color: var(--muted); margin: 8px 0 24px; }
.d-form { display: flex; flex-direction: column; gap: 16px; }
.df-row { display: flex; gap: 16px; }
.df-row .df-field { flex: 1; min-width: 0; }
.df-field { display: flex; flex-direction: column; gap: 6px; }
.df-field label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.df-input { font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.df-input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-tint); }
textarea.df-input { resize: vertical; }
.df-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.df-error { color: #b23025; font-weight: 700; font-size: .92rem; text-align: center; }
.df-fineprint { text-align: center; color: var(--muted); font-size: .82rem; }
.d-form-done { text-align: center; padding: 16px 0; }
.d-tick { width: 60px; height: 60px; border-radius: 50%; background: var(--purple); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.7rem; font-weight: 900; }
.d-form-done h2 { color: var(--purple); font-size: 1.5rem; font-weight: 800; }
.d-form-done p { color: var(--muted); margin-top: 10px; line-height: 1.6; }
.d-form-done a { color: var(--purple); font-weight: 700; }

/* Responsive */
@media (max-width: 820px) {
  .d-split-inner { grid-template-columns: 1fr; gap: 26px; }
  .d-split-left { text-align: left; }
  .d-split-bigsub { margin-left: 0; }
}
@media (max-width: 760px) {
  .d-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .d-road-steps { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .d-road-step { display: grid; grid-template-columns: 60px 1fr; gap: 18px; text-align: left; padding-bottom: 26px; }
  .d-road-badge { margin: 0; box-shadow: none; }
  .d-road-step:not(:last-child)::after {
    top: 60px; bottom: 6px; left: 28px; right: auto; width: 0;
    border-top: none; border-left: 3px dashed var(--purple-line);
  }
}
@media (max-width: 560px) {
  .df-row { flex-direction: column; gap: 16px; }
  .d-cta-row .btn { width: 100%; }
  .d-split-row { grid-template-columns: 1fr; gap: 6px; }
}
