/* Lendwise Auto additions. style.css is the Trustline layout, unchanged; this adds phone-shaped
   screens and the animations. */
.sec-head .rule + .rule { border-top-color: transparent; }

/* A compact header, so the screens show in the first viewport. */
.nav { padding: 16px 0; }
.hero { padding-top: 12px; gap: 24px; }
.hero-top { gap: 14px; }
.hero-top h1 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.015em; max-width: 34ch; }
.hero-top .lede { font-size: clamp(16px, 1.35vw, 18px); max-width: 78ch; }
.meta { font-size: 13.5px; row-gap: 8px; }
.meta div { padding-top: 7px; }
.goals.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .goals.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .goals.four { grid-template-columns: 1fr; } }

/* ---------- phone ---------- */
.phone { background: #17181b; padding: 7px; border-radius: 30px; box-shadow: var(--frame-sh); }
.pv { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 390 / 760; background: #f8f7f4; container-type: size; }
.pv img { display: block; width: 100%; height: auto; }

/* ---------- hero ---------- */
.vp.s-vp { aspect-ratio: 16 / 9; background: var(--alt); border-radius: var(--rf); }
.s.trio { height: 100%; display: flex; justify-content: center; align-items: flex-start; gap: 4%; padding-top: 5%; }
.trio .phone { flex: none; width: 25%; }
.trio .phone:nth-child(2) { margin-top: -2%; }
.trio .phone:nth-child(1), .trio .phone:nth-child(3) { margin-top: 3%; }
.s.on { animation: slidein .8s cubic-bezier(.2,.7,.2,1) both; }
.s.trio.on .phone { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.s.trio.on .phone:nth-child(2) { animation-delay: .12s; }
.s.trio.on .phone:nth-child(3) { animation-delay: .24s; }
/* Each screen drifts down its own page while the slide is showing. */
.s.trio.on .pv img { animation: drift var(--dwell, 6s) ease-in-out .9s both; }
@keyframes drift { to { translate: 0 min(0px, max(100cqh - 100%, -48cqh)); } }
@media (max-width: 600px) {
  .vp.s-vp { aspect-ratio: 4 / 5; }
  .trio .phone { width: 56%; }
  .s.trio { gap: 4%; }
}

/* ---------- problem 1: who the dealership never sees ---------- */
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rf); padding: 22px; max-width: 560px; }
.flow .lane { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.flow .track { position: relative; height: 132px; margin: 10px 0 16px; border-inline: 2px solid var(--line2); background: repeating-linear-gradient(var(--line) 0 1px, transparent 1px 44px) 0 22px; }
.flow .track i { position: absolute; left: 0; top: calc(var(--y) * 44px + 12px); width: 20px; height: 20px; margin-left: -1px; border-radius: 50%; background: var(--ink); opacity: 0; }
.flow .seen { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--alt); border-radius: var(--r); padding: 12px 14px; font-size: 14px; }
.flow .seen span { display: flex; gap: 8px; }
.flow .seen i { width: 20px; height: 26px; background: var(--ink); border-radius: 2px; opacity: .12; }
.anim.run.flow .track i.in { animation: handin 9s linear var(--d) infinite; }
.anim.run.flow .track i.gone { animation: walkoff 9s linear var(--d) infinite; }
.anim.run.flow .seen i { animation: arrive 9s linear calc(var(--d) + 3.6s) infinite; }
@keyframes handin { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 40% { left: calc(100% - 20px); opacity: 1; } 46%, 100% { left: calc(100% - 20px); opacity: 0; } }
@keyframes walkoff { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 22% { left: var(--stop); opacity: 1; translate: 0 0; background: var(--ink); } 25% { background: #B03020; } 36%, 100% { left: var(--stop); opacity: 0; translate: 0 18px; background: #B03020; } }
@keyframes arrive { 0% { opacity: .12; transform: scale(.7); } 4%, 55% { opacity: 1; transform: none; } 62%, 100% { opacity: .12; } }

/* ---------- problem 2: the paper form that keeps going ---------- */
.paper { position: relative; max-width: 560px; aspect-ratio: 16 / 11; overflow: hidden; border: 1px solid var(--line); border-radius: var(--rf); background: #c9c6bf; container-type: size; }
.paper img { display: block; width: min(100%, 390px); margin-inline: auto; }
.anim.run.paper img { animation: scrollform 14s ease-in-out infinite alternate; }
@keyframes scrollform { 0%, 8% { translate: 0 0; } 92%, 100% { translate: 0 calc(100cqh - 100%); } }
.paper span { position: absolute; right: 14px; bottom: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; padding: 7px 13px; border-radius: 99px; }

/* ---------- problem 3: brand swap ---------- */
.swap { max-width: 560px; background: var(--alt); border-radius: var(--rf); padding: 24px 24px 0; overflow: hidden; }
.swap .phone { width: min(280px, 100%); margin-inline: auto; border-radius: 30px 30px 0 0; padding-bottom: 0; }
.swap .pv { aspect-ratio: 390 / 560; border-radius: 24px 24px 0 0; }
.swap .pv img.top { position: absolute; left: 0; top: 0; min-height: 100%; clip-path: inset(0 100% 0 0); }
.anim.run.swap img.top { animation: brandwipe 8s cubic-bezier(.65,0,.25,1) infinite; }
@keyframes brandwipe { 0%, 30% { clip-path: inset(0 100% 0 0); } 45%, 80% { clip-path: inset(0 0 0 0); } 95%, 100% { clip-path: inset(0 100% 0 0); } }

/* ---------- phone tours ---------- */
.tour.ptour { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.tour.ptour.flip .stage { order: 2; }
.stage { display: grid; justify-items: center; background: var(--alt); border-radius: var(--rf); padding: 30px 20px; }
section.alt .stage { background: var(--surface); }
.stage .phone { width: min(340px, 100%); }
.roll { position: absolute; left: 0; top: 0; width: 100%; transition: transform 1s cubic-bezier(.65,0,.25,1); }
.roll img { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .45s; }
.roll img.on { opacity: 1; }
.roll .spot { z-index: 2; border-width: 2.5px; }
section.alt .steps li.on button { background: var(--surface); }
@media (max-width: 900px) {
  .tour.ptour { grid-template-columns: 1fr; }
  .tour.ptour.flip .stage { order: 0; }
  .stage { padding: 20px 12px; }
  .stage .phone { width: min(300px, 100%); }
}

/* ---------- tracker states ---------- */
.track-card { margin-top: clamp(32px, 5vw, 56px); background: var(--surface); border: 1px solid var(--line2); border-radius: var(--rf); padding: clamp(16px, 3vw, 32px); box-shadow: var(--frame-sh); }
.tc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tc-head > b { font-size: 18px; }
.tc-dots, .duo-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-dots button, .duo-tabs button { font: 600 14px var(--fb); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; cursor: pointer; }
.tc-dots button[aria-pressed="true"], .duo-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tc-view { position: relative; max-width: 560px; margin: 0 auto 14px; aspect-ratio: 390 / 137; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.tc-view img { position: absolute; inset: 0; width: 100%; opacity: 0; translate: 24px 0; transition: opacity .5s, translate .6s cubic-bezier(.2,.7,.2,1); }
.tc-view img.on { opacity: 1; translate: 0 0; }

/* ---------- lead timeline ---------- */
.tl.lead .tl-fill { width: 45%; transition: none; }
.tl.lead .tl-flag { left: 78%; }
.tl.lead.after .tl-fill { width: 45%; }
.tl.lead.after .tl-flag { left: 12%; }
.tl.lead .leave { position: absolute; left: 45%; top: 26px; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; color: #A12C1E; }
.tl.lead .leave::before { content: ''; position: absolute; left: 50%; top: -30px; width: 3px; height: 28px; margin-left: -1.5px; background: #A12C1E; }
.tl.lead .tl-ends { margin-top: 34px; }

/* ---------- plan swipe ---------- */
.swipe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(20px, 4vw, 64px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.sw-copy h3 { margin-bottom: 12px; }
/* One card is 262px of the 838px strip; the window shows a card and a peek of the next. */
.sw-window { overflow: hidden; border: 1px solid var(--line2); border-radius: var(--rf); box-shadow: var(--frame-sh); background: #f8f7f4; }
.sw-window img { width: 262.5%; max-width: none; }
.anim.run.swipe img { animation: swipeplans 9s cubic-bezier(.65,0,.25,1) infinite; }
@keyframes swipeplans { 0%, 22% { translate: 0 0; } 32%, 54% { translate: -32.7% 0; } 64%, 86% { translate: -61.9% 0; } 96%, 100% { translate: 0 0; } }
.swipe:hover img { animation-play-state: paused; }
@media (max-width: 760px) { .swipe { grid-template-columns: 1fr; } .sw-window { max-width: 340px; } }
@media (prefers-reduced-motion: reduce) { .sw-window { overflow-x: auto; } }

/* ---------- two clients ---------- */
.duo-tabs { justify-content: center; margin-bottom: 26px; }
.duo-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: clamp(12px, 5vw, 72px); }
.duo figure { margin: 0; }
.duo figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.duo figcaption span { font-size: 14px; color: var(--ink2); }
.duo .pv img { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .5s; }
.duo .pv img.on { opacity: 1; }
.skipped { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 24px; text-align: center; background: rgba(30, 26, 22, .93); color: #fff; font-size: 15px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.skipped b { font: 500 28px var(--fd); }
.duo.skip .skipped { opacity: 1; visibility: visible; }
.config { width: 100%; max-width: 820px; margin: clamp(32px, 5vw, 56px) auto 0; border-collapse: collapse; font-size: 15.5px; text-align: left; }
.config caption { text-align: left; font: 600 18px var(--fb); margin-bottom: 10px; }
.config th, .config td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.config thead th { border-bottom-color: var(--line2); }
.config tbody th { font-weight: 500; color: var(--ink2); width: 26%; }
@media (max-width: 600px) { .config { font-size: 14px; } .skipped { font-size: 13px; padding: 14px; } .duo figcaption span { font-size: 12.5px; } .duo .phone { padding: 4px; border-radius: 20px; } .duo .pv { border-radius: 17px; } }

/* ---------- retrospective ---------- */
.ba { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.ba .cmp .vp { aspect-ratio: 390 / 704; }
.ba .cmp .vp img { height: 100%; object-fit: cover; object-position: top; }
.ba .cmp .lbl { top: auto; bottom: 12px; }
.ba h3 { margin-bottom: 12px; }
@media (max-width: 860px) { .ba { grid-template-columns: 1fr; } .ba .cmp { width: min(420px, 100%); margin-inline: auto; } }
.measure { list-style: none; padding: 0; counter-reset: m; }
.measure li { counter-increment: m; position: relative; padding: 18px 0 18px 36px; border-top: var(--rule); }
.measure li:last-child { border-bottom: var(--rule); }
.measure li::before { content: counter(m); position: absolute; left: 0; top: 20px; width: 22px; height: 22px; border: 1px solid var(--line2); border-radius: 50%; font: 600 12px/20px var(--fb); text-align: center; }
footer { padding-bottom: 48px; }

/* Looping illustrations hold still, in a readable state, for people who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  .anim.run, .anim.run * { animation: none !important; }
  .flow .track i.in { opacity: 1; left: calc(100% - 20px); }
  .flow .track i.gone { opacity: .45; left: var(--stop); background: #B03020; }
  .flow .seen i { opacity: 1; }
}
