/* Sell / trade-in page, version 2 (2026-11-24, behind MBS_TRADEIN=v2). Scoped under .ti so nothing leaks into the
   shared bundle (m.css). Same tokens as the homepage, the financing page and the contact page: Inter, #151515 ink,
   #f2f2f2 stone, white cards with a 20px radius, black pill buttons, the coral brand colour for WhatsApp. Top: photo on
   the left (sticky on desktop), the estimate form on the right, like the contact page. */
.ti { --ink: #151515; --ink-2: #3d3d3d; --muted: #5c5c5c; --line: #dcdcdc; --stone: #f2f2f2; --brand: #ff7a59; --brand-hover: #ff8f72;
  --ok: #1f8a4c; --err: #b3261e; --edge: #8a8a8a; --star: #ffb400; --ease: cubic-bezier(.16, 1, .3, 1); --pad: clamp(16px, 4vw, 48px); }
.ti *, .ti *::before, .ti *::after { box-sizing: border-box; }
.ti { color: var(--ink); font-size: 16px; line-height: 24px; letter-spacing: -.32px; background: #fff; }
:where(.ti) img { max-width: 100%; display: block; }
:where(.ti) a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ti :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
:where(.ti) :is(h1, h2, h3) { margin: 0; text-wrap: balance; }
:where(.ti) p { margin: 0; text-wrap: pretty; }
:where(.ti) fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:where(.ti) legend { padding: 0; }
:where(.ti) ul, :where(.ti) ol { margin: 0; padding: 0; list-style: none; }
.ti svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ti [hidden] { display: none !important; }
.ti-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ti-wrap { max-width: 1344px; margin: 0 auto; padding: 0 var(--pad); }
.ti-narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--pad); }
.ti-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ti-center { text-align: center; }

/* buttons */
.ti-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 500 16px/20px 'Inter', 'Helvetica Neue', Arial, sans-serif; letter-spacing: -.32px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, transform .2s var(--ease); }
.ti-btn:active { transform: scale(.98); }
.ti-btn:disabled { opacity: .6; cursor: progress; }
.ti-btn-black { background: #000; color: #fff !important; }
.ti-btn-black:hover { background: var(--ink-2); }
.ti-btn-brand { background: var(--brand); color: #151515 !important; }
.ti-btn-brand:hover { background: var(--brand-hover); }
.ti-btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ti-btn-line:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.ti-link { background: none; border: 0; padding: 4px 0; font: 500 15px/20px 'Inter', sans-serif; letter-spacing: -.2px; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* ------------------------------------------------------------------ top: photo + panel */
.ti-top { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; }
.ti-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #d9d6d2; }
.ti-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ti-panel { padding: 24px 16px 64px; min-width: 0; }
@media (min-width: 768px) { .ti-panel { padding: 48px 40px 80px; } }
@media (min-width: 1024px) {
  .ti-top { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: start; }
  .ti-media { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 640px; aspect-ratio: auto; }
  .ti-panel { padding: 120px clamp(40px, 5vw, 96px) 96px; width: 100%; max-width: 820px; justify-self: center; }
}
.ti .ti-h2:focus, .ti .ti-h2:focus-visible, .ti .ti-fail:focus-visible { outline: none; }
.ti-toprow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.ti-lang { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); text-decoration: underline; white-space: nowrap; }
.ti-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; line-height: 20px; color: var(--muted); }
.ti-crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--edge); }
.ti-crumbs a { color: var(--muted); text-decoration: none; }
.ti-crumbs a:hover { text-decoration: underline; color: var(--ink); }
.ti-top h1 { font-size: clamp(36px, 2.4vw + 22px, 56px); line-height: 1.03; font-weight: 500; letter-spacing: -.035em; }
.ti-sub { margin-top: 16px; max-width: 50ch; font-size: 17px; line-height: 26px; color: var(--ink-2); }
.ti-proofline { margin-top: 12px; font-size: 14px; line-height: 20px; font-weight: 500; }
.ti-proofline a { text-decoration: none; color: var(--ink-2); }
.ti-proofline a:hover { text-decoration: underline; }
.ti-stars { color: var(--star); }
.ti-chips-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.ti-chips-row li { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--stone);
  font-size: 14px; line-height: 18px; font-weight: 500; letter-spacing: -.25px; }
.ti-chips-row svg.i { width: 16px; height: 16px; stroke-width: 2.2; color: var(--ok); }

/* the estimate card */
.ti-card { margin-top: 28px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 96px; }
@media (min-width: 768px) { .ti-card { padding: 32px; } }
.ti-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ti-eyebrow { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ti-stepof { font-size: 13px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ti-progress { margin: 12px 0 20px; height: 3px; border-radius: 3px; background: #ececec; overflow: hidden; }
.ti-progress span { display: block; height: 100%; width: 33.34%; background: var(--ink); transition: width .4s var(--ease); }
.ti-h2 { font-size: clamp(24px, .8vw + 18px, 30px); line-height: 1.12; font-weight: 500; letter-spacing: -.03em; outline: none; }
.ti-hint { font-size: 15px; line-height: 22px; color: var(--muted); }
.ti-step > * + * { margin-top: 16px; }
.ti-step > .ti-actions { margin-top: 24px; }
.ti-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.ti-field > label, .ti-field > legend { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -.14px; }
fieldset.ti-field > legend { margin-bottom: 8px; }
.ti-opt { font-weight: 400; color: var(--muted); }
.ti-input { scroll-margin-top: 120px; width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--edge); background: #fff; color: var(--ink);
  font: 400 16px/24px 'Inter', 'Helvetica Neue', Arial, sans-serif; letter-spacing: -.2px; transition: border-color .15s, box-shadow .15s; }
textarea.ti-input { resize: vertical; min-height: 76px; }
.ti-input::placeholder { color: #8f8f8f; }
.ti-input:hover { border-color: var(--ink); }
.ti-input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ti-field.bad .ti-input { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.ti-ferr { display: none; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--err); }
.ti-field.bad > .ti-ferr { display: block; }
.ti-fhint { font-size: 13px; line-height: 18px; color: var(--muted); }
.ti-two, .ti-three { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 560px) { .ti-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ti-three { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 559px) { .ti-three { grid-template-columns: 96px minmax(0, 1fr); } .ti-three > :last-child { grid-column: 1 / -1; } }
@media (min-width: 560px) { .ti-field-short { max-width: 220px; } }
.ti-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ti-chip { position: relative; }
.ti-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ti-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--edge); background: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: -.3px; transition: background-color .15s, color .15s, border-color .15s; }
.ti-chip input:hover + span { border-color: var(--ink); }
.ti-chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.ti-chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.ti-field.bad .ti-chip span { border-color: var(--err); }
@media (forced-colors: active) { .ti-chip input:checked + span { background: Highlight; color: HighlightText; forced-color-adjust: none; } }
.ti-note { padding: 12px 14px; border-radius: 12px; background: var(--stone); font-size: 14px; line-height: 21px; color: var(--ink-2); }
.ti-note[hidden] { display: none; }
fieldset.ti-field .ti-note { margin-top: 10px; }
.ti-fine { font-size: 13px; line-height: 19px; color: var(--muted); }
.ti-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ti-fail { padding: 14px 16px; border-radius: 12px; background: #fdecea; color: #5f1410; font-size: 14px; line-height: 21px; outline: none; }
.ti-fail[hidden] { display: none; }
.ti-fail b { display: block; }
.ti-actions .ti-btn-black { flex: 1 1 auto; }
@media (min-width: 560px) { .ti-actions .ti-btn-black { flex: 0 1 auto; min-width: 200px; } }
.ti-wa-instead { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); }
.ti-wa-instead svg.i { width: 18px; height: 18px; }

/* photos */
.ti-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.ti-shots li { display: flex; align-items: center; gap: 8px; }
.ti-shots svg.i { width: 18px; height: 18px; color: var(--muted); }
.ti-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.ti-photos:empty { display: none; }
.ti-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--stone); }
.ti-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ti-thumb.busy::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.6) linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent) -100% 0 / 50% 100% no-repeat; animation: ti-shine 1s linear infinite; }
@keyframes ti-shine { to { background-position: 200% 0; } }
.ti-thumb button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(21,21,21,.78); color: #fff; cursor: pointer; }
.ti-thumb button svg.i { width: 16px; height: 16px; stroke-width: 2.2; }
.ti-files { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ti-add { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 12px 20px; border-radius: 14px; border: 1.5px dashed var(--edge);
  background: #fff; font-size: 16px; font-weight: 500; letter-spacing: -.3px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.ti-add:hover { border-color: var(--ink); background: #fafafa; }
.ti-files:focus-visible + .ti-count, .ti-add:focus-within { outline: none; }
.ti-files:focus-visible ~ .ti-add, .ti-add.focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.ti-field.bad .ti-add { border-color: var(--err); }
.ti-count { font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ti-count.ok { color: var(--ok); font-weight: 500; }

/* JS on: one step at a time (without JS the steps all show and the noscript note explains) */
.ti-js .ti-step { display: none; }
.ti-js #ti-form[data-step="1"] .ti-step[data-step="1"], .ti-js #ti-form[data-step="2"] .ti-step[data-step="2"], .ti-js #ti-form[data-step="3"] .ti-step[data-step="3"] { display: block; }
.ti-done[hidden] { display: none; }
.ti-done-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ok); color: #fff; margin-bottom: 16px; }
.ti-done-ic svg.i { width: 24px; height: 24px; stroke-width: 2.2; }
.ti-done p { margin: 10px 0 20px; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .ti-js .ti-step, .ti-done { animation: ti-in .35s var(--ease); }
  @keyframes ti-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ------------------------------------------------------------------ sections */
.ti-display { font-size: clamp(36px, 3vw + 20px, 72px); line-height: 1; font-weight: 500; letter-spacing: -.035em; text-align: center; }
.ti-display.ti-left { text-align: left; }
.ti-lead { margin: 20px auto 0; max-width: 56ch; text-align: center; font-size: 17px; line-height: 26px; color: var(--muted); }
.ti-choice, .ti-brands { background: var(--stone); padding: clamp(72px, 9vw, 128px) 0; }
.ti-how, .ti-value, .ti-faq { padding: clamp(72px, 9vw, 128px) 0; }
.ti-value { padding-top: 0; }

.ti-choice-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .ti-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.ti-opt-card { padding: 28px; border-radius: 20px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .ti-opt-card { padding: 40px; } }
.ti-opt-card h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: clamp(26px, 1vw + 20px, 34px); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; }
.ti-opt-card p { font-size: 16px; line-height: 25px; color: var(--ink-2); }
.ti-opt-card .ti-fit { margin-top: auto; padding-top: 14px; border-top: 1px solid #ececec; font-size: 15px; line-height: 22px; color: var(--muted); }
.ti-opt-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--stone); }
.ti-opt-ic svg.i { width: 24px; height: 24px; }
.ti-opt-card-dark { background: #151515; color: #fff; }
.ti-opt-card-dark p { color: #d6d6d6; }
.ti-opt-card-dark .ti-fit { color: #b5b5b5; border-top-color: #333; }
.ti-opt-card-dark .ti-opt-ic { background: #2a2a2a; }
.ti-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--brand); color: #151515; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0; }
.ti-table-wrap { margin-top: 24px; border-radius: 20px; background: #fff; overflow-x: auto; }
.ti-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.ti-table th, .ti-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid #ececec; }
.ti-table tbody tr:last-child th, .ti-table tbody tr:last-child td { border-bottom: 0; }
.ti-table thead th { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ti-table tbody th { font-weight: 600; width: 26%; }
.ti-table td { color: var(--ink-2); }
.ti-choice .ti-center { margin-top: 32px; }
/* phones: each row becomes a small card, the two answers side by side under their labels */
@media (max-width: 639px) {
  .ti-table { min-width: 0; }
  .ti-table thead { display: none; }
  .ti-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 16px 20px; border-bottom: 1px solid #ececec; }
  .ti-table tbody tr:last-child { border-bottom: 0; }
  .ti-table tbody th, .ti-table td { display: block; padding: 0; border: 0; width: auto; }
  .ti-table tbody th { grid-column: 1 / -1; margin-bottom: 6px; }
  .ti-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
}

.ti-how-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 1024px) { .ti-how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.ti-steps { margin-top: 40px; display: grid; gap: 28px; counter-reset: s; }
.ti-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.ti-num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #151515; color: #fff; font-size: 18px; font-weight: 600; }
.ti-steps h3 { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.5px; }
.ti-steps p { margin-top: 6px; font-size: 16px; line-height: 25px; color: var(--ink-2); }
.ti-how-photo { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.ti-how-photo img { width: 100%; height: 100%; object-fit: cover; }

.ti-brand-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .ti-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.ti-brand-col { padding: 28px; border-radius: 20px; background: #fff; }
@media (min-width: 768px) { .ti-brand-col { padding: 36px; } }
.ti-brand-col h3 { font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ti-brand-list { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ti-brand-list li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--stone); font-size: 15px; font-weight: 500; letter-spacing: -.3px; }
.ti-brand-list a { text-decoration: none; }
.ti-brand-list a:hover { text-decoration: underline; }
.ti-models { margin-top: 18px; font-size: 15px; line-height: 24px; color: var(--muted); }
.ti-noel { margin-top: 24px; text-align: center; font-size: 15px; line-height: 22px; color: var(--muted); }

.ti-value-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .ti-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ti-value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.ti-value-grid li { padding: 24px; border-radius: 20px; background: var(--stone); }
.ti-value-grid h3 { font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -.5px; }
.ti-value-grid p { margin-top: 8px; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.ti-value-grid a { font-weight: 500; }

.ti-faq { background: #fff; padding-top: 0; }
.ti-faq-list { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.ti-q { border-bottom: 1px solid var(--line); }
.ti-q summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; }
.ti-q summary::-webkit-details-marker { display: none; }
.ti-q summary h3 { font-size: 18px; line-height: 25px; font-weight: 600; letter-spacing: -.4px; }
.ti-plus { position: relative; width: 20px; height: 20px; flex: none; }
.ti-plus::before, .ti-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.8px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.ti-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.ti-q[open] .ti-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.ti-q p { padding: 0 36px 22px 0; font-size: 16px; line-height: 25px; color: var(--ink-2); }
.ti-q p a { font-weight: 500; }
.ti-faq-cta { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
