

/* compare table */
.fi-cmp { padding-top: clamp(88px, 13vh, 150px) !important; }
.fi-table { margin-top: clamp(40px, 6vh, 64px); width: 100%; border-collapse: collapse; }
.fi-table thead th { position: sticky; top: 78px; z-index: 2; background: var(--white); text-align: left; padding: 18px 16px 18px 0; font-size: var(--t-3); font-weight: 500; letter-spacing: -0.015em; border-bottom: 1px solid var(--ink); }
.fi-table thead small { display: block; font-size: var(--t-0); color: var(--ink-2); font-weight: 400; letter-spacing: 0; }
.fi-table tbody th { text-align: left; font-weight: 400; font-size: var(--t-1); color: var(--ink-2); width: 22%; padding: 22px 16px 22px 0; }
.fi-table td { padding: 22px 16px 22px 0; width: 39%; vertical-align: top; }
.fi-table tbody tr { border-bottom: 1px solid var(--line); transition: background 0.3s; }
.fi-table tbody tr:hover { background: #f1f3f4; }
.fi-table tbody tr:hover th { color: var(--ink); }
@media (max-width: 700px) {
  .fi-table thead th { top: 0; font-size: var(--t-2); }
  .fi-table tbody th { display: block; width: auto; padding: 18px 0 4px; }
  .fi-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .fi-table tbody th { grid-column: 1 / -1; }
  .fi-table td { width: auto; padding: 4px 0 18px; font-size: var(--t-1); }
  .fi-table thead tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .fi-table thead th:first-child { display: none; }
}

.fi-faq { padding-top: clamp(88px, 13vh, 150px) !important; }

/* 3 · two cards */
.fd-cards { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding: calc(var(--hero-top) + 44px) var(--edge) 56px; overflow: hidden; color: var(--white); }
.fd-cards__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fd-cards__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 28, 0.7), rgba(10, 18, 28, 0.55) 50%, rgba(10, 18, 28, 0.8)); }
.fd-cards > .crumbs { position: absolute; z-index: 2; top: var(--hero-top); left: var(--edge); }
.fd-cards__in { position: relative; display: grid; justify-items: center; gap: clamp(28px, 5vh, 48px); text-align: center; }
.fd-cards__h { color: var(--white); margin: 0 auto; }

/* V2 estimator */
.fv2-est { display: grid; gap: clamp(28px, 5vh, 48px); }
.fv2-est__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.fv2-est__head .h2 { color: var(--white); max-width: 18ch; }
.fv2-est__ctl { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; }
.fv2-est__ctl label { color: rgba(251, 251, 250, 0.7); }
.fv2-est__ctl output { font-size: var(--t-5); letter-spacing: -0.04em; font-weight: 500; }
.fv2-est__ctl input { grid-column: 1 / -1; width: 100%; height: 6px; appearance: none; -webkit-appearance: none; border-radius: 3px; background: linear-gradient(90deg, var(--sun) var(--v), rgba(255, 255, 255, 0.15) var(--v)); }
.fv2-est__ctl input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 6px rgba(30, 150, 241, 0.35); cursor: grab; }
.fv2-est__ctl input::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--white); }
.fv2-est__out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fv2-card { display: grid; gap: 10px; padding: clamp(22px, 2.4vw, 34px); border-radius: 20px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.fv2-card--l { background: var(--sun); box-shadow: none; }
.fv2-card__k { font-size: var(--t-0); opacity: 0.75; }
.fv2-card__v { font-size: var(--t-5); letter-spacing: -0.04em; font-weight: 500; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fv2-card__v span { font-size: 0.4em; letter-spacing: 0; margin-left: 4px; opacity: 0.75; }
.fv2-card__l { opacity: 0.8; max-width: 36ch; }
.fv2-est__note { font-size: var(--t-0); color: rgba(251, 251, 250, 0.55); }
@media (max-width: 800px) { .fv2-est__out { grid-template-columns: 1fr; } }

/* 3 · the fork (replaces the two cards) */
.fd-cards__bg { transition: transform 1.4s var(--ease-out); }
.fd-cards.is-own .fd-cards__bg { transform: scale(1.04) translateX(1.5%); }
.fd-cards.is-lease .fd-cards__bg { transform: scale(1.04) translateX(-1.5%); }
.fd-cards::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.8s, background 0.8s; }
.fd-cards.is-own::after { opacity: 1; background: radial-gradient(60% 70% at 25% 60%, rgba(30, 150, 241, 0.18), transparent 70%); }
.fd-cards.is-lease::after { opacity: 1; background: radial-gradient(60% 70% at 75% 60%, rgba(255, 200, 140, 0.16), transparent 70%); }
.fd-fork { position: relative; width: min(1040px, 100%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: clamp(24px, 4vw, 64px); margin: clamp(8px, 2vh, 24px) 0; }
.fd-path { display: grid; gap: 12px; align-content: start; text-decoration: none; color: var(--white); padding: 8px 0; transition: opacity 0.5s; }
.fd-path--own { justify-items: end; text-align: right; }
.fd-path--lease { justify-items: start; text-align: left; }
.fd-path__k { font-size: var(--t-0); letter-spacing: 0.02em; color: rgba(251, 251, 250, 0.65); }
.fd-path__n { position: relative; font-size: var(--t-4); letter-spacing: -0.03em; font-weight: 500; line-height: 1; padding-bottom: 10px; }
.fd-path__n::after { content: ""; position: absolute; bottom: 0; height: 2px; width: 100%; background: var(--sun); transform: scaleX(0); transition: transform 0.7s var(--ease-out); }
.fd-path--own .fd-path__n::after { right: 0; transform-origin: 100% 50%; }
.fd-path--lease .fd-path__n::after { left: 0; transform-origin: 0 50%; }
.fd-path:hover .fd-path__n::after, .fd-path:focus-visible .fd-path__n::after { transform: scaleX(1); }
.fd-path__fig { display: flex; align-items: baseline; gap: 10px; }
.fd-path__fig b { font-size: clamp(3.4rem, 1.6rem + 5vw, 7rem); line-height: 0.9; letter-spacing: -0.06em; font-weight: 500; color: var(--white); }
.fd-path__fig span { font-size: var(--t-2); color: rgba(251, 251, 250, 0.75); }
.fd-path__l { max-width: 32ch; font-size: var(--t-1); color: rgba(251, 251, 250, 0.72); }
.fd-path:focus-visible { outline: none; }
.fd-fork.is-own .fd-path--lease, .fd-fork.is-lease .fd-path--own { opacity: 0.4; }
.fd-fork.is-own .fd-path--own .fd-path__fig b, .fd-fork.is-lease .fd-path--lease .fd-path__fig b { color: var(--sun); transition: color 0.5s; }
.fd-fork__or { position: relative; width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45) 20%, rgba(255, 255, 255, 0.45) 80%, transparent); }
.fd-fork__or i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(11, 21, 34, 0.6); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); font-style: normal; font-size: var(--t-1); color: var(--white); }
@media (max-width: 800px) {
  .fd-fork { grid-template-columns: 1fr; gap: 20px; }
  .fd-path--own, .fd-path--lease { justify-items: center; text-align: center; }
  .fd-fork__or { width: auto; height: 44px; background: none; }
  .fd-path .fd-path__n::after { left: 0; right: 0; transform-origin: 50% 50%; }
}

/* Which suits you? a scripted advisor chat */
.fi-ai { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.fi-ai__copy { display: grid; gap: 16px; justify-items: start; }
.fi-chat { display: grid; grid-template-rows: auto 1fr auto; height: 520px; border-radius: 26px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(15, 27, 42, 0.12); overflow: hidden; }
.fi-chat__top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fi-chat__av { position: relative; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(from 200deg, var(--sun), #7cc4ff, var(--night), var(--sun)); animation: fi-spin 6s linear infinite; }
.fi-chat__av i { position: absolute; inset: 4px; border-radius: 50%; background: var(--night); }
.fi-chat__av i::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--sun) 60%, transparent 70%); animation: fi-pulse 2s ease-in-out infinite; }
@keyframes fi-spin { to { transform: rotate(360deg); } }
@keyframes fi-pulse { 50% { transform: scale(0.75); opacity: 0.7; } }
.fi-chat__who { display: grid; }
.fi-chat__who b { font-weight: 500; }
.fi-chat__who small { font-size: var(--t-0); color: var(--sun-deep); }
.fi-chat__reset { margin-left: auto; border: 0; background: none; font: inherit; font-size: var(--t-0); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fi-chat__box { display: flex; flex-direction: column; gap: 10px; padding: 20px; overflow-y: auto; scrollbar-width: none; background: linear-gradient(180deg, #f6f8f9, var(--white)); }
.fi-msg { max-width: 78%; padding: 12px 16px; border-radius: 18px; font-size: var(--t-1); line-height: 1.45; animation: fi-pop 0.45s var(--ease-out) both; }
@keyframes fi-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.fi-msg--bot { align-self: flex-start; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }
.fi-msg--me { align-self: flex-end; background: var(--night); color: var(--white); border-bottom-right-radius: 6px; }
.fi-msg--typing { display: flex; gap: 5px; padding: 15px 16px; }
.fi-msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); animation: fi-dot 1.1s ease-in-out infinite; }
.fi-msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.fi-msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes fi-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.fi-msg--card { align-self: flex-start; display: grid; gap: 6px; justify-items: start; max-width: 85%; padding: 18px 20px; background: var(--sand); }
.fi-msg__k { font-size: var(--t-0); color: var(--sun-deep); }
.fi-msg--card b { font-size: var(--t-4); letter-spacing: -0.03em; font-weight: 500; line-height: 1; color: #1c2a37; }
.fi-msg--card .b { margin-top: 8px; }
.fi-chat__reply { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-height: 76px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.fi-chat__reply button { height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--sun); color: var(--sun-deep); font: inherit; cursor: pointer; animation: fi-pop 0.4s var(--ease-out) both; transition: background 0.3s, color 0.3s; }
.fi-chat__reply button:hover { background: var(--sun); color: var(--white); }
.fi-chat__hint { margin-right: auto; font-size: var(--t-0); color: var(--ink-2); }
@media (max-width: 900px) { .fi-ai { grid-template-columns: 1fr; } .fi-chat { height: 480px; } }
@media (prefers-reduced-motion: reduce) { .fi-chat__av, .fi-chat__av i::after, .fi-msg, .fi-msg--typing i { animation: none; } }

/* estimator: values never reflow while sliding; both paths in one view on phones */
.fv2-card__v small { display: block; font-size: 0.32em; letter-spacing: 0; font-weight: 400; opacity: 0.75; margin-bottom: 4px; }
.fv2-card__v { white-space: nowrap; }
.fv2-est__ctl output { font-variant-numeric: tabular-nums; min-width: 8ch; text-align: right; }
@media (max-width: 800px) {
  .fv2-est { gap: 22px; }
  .fv2-est__out { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fv2-card { padding: 16px 14px; border-radius: 16px; gap: 6px; align-content: start; }
  .fv2-card__k { font-size: 11px; }
  .fv2-card__v { font-size: clamp(1.25rem, 5.4vw, 1.6rem); }
  .fv2-card__v span { display: block; margin: 2px 0 0; font-size: 0.5em; }
  .fv2-card__l { font-size: 12px; line-height: 1.4; }
  .fv2-est__ctl output { font-size: var(--t-4); }
}

/* side by side: each path has its own colour column */
.fi-table thead th.fi-th--own, .fi-table thead th.fi-th--lease { padding: 18px 20px; border-bottom: 0; border-radius: 16px 16px 0 0; }
.fi-table thead th.fi-th--own { background: #eef1f3; }
.fi-table thead th.fi-th--lease { background: #e3f1fd; color: #0b5ea8; }
.fi-table thead th.fi-th--lease small { color: #2a78bd; }
.fi-table td { padding: 22px 20px; }
.fi-table td:nth-child(2) { background: #f5f7f8; }
.fi-table td:nth-child(3) { background: #f0f7fe; }
.fi-table tbody tr:last-child td:nth-child(2), .fi-table tbody tr:last-child td:nth-child(3) { border-radius: 0 0 16px 16px; }
.fi-table tbody tr:hover { background: none; }
.fi-table tbody tr:hover td:nth-child(2) { background: #eceff1; }
.fi-table tbody tr:hover td:nth-child(3) { background: #e3f1fd; }
.fi-table { border-collapse: separate; border-spacing: 10px 0; margin-left: -10px; width: calc(100% + 20px); }
.fi-table tbody tr td, .fi-table tbody tr th { border-bottom: 1px solid var(--line); }
@media (max-width: 800px) {
  .fi-table { border-spacing: 0; margin-left: 0; width: 100%; }
  .fi-table thead { display: none; }
  .fi-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .fi-table tbody tr td, .fi-table tbody tr th { border-bottom: 0; }
  .fi-table td { padding: 12px 12px 14px; border-radius: 12px !important; font-size: var(--t-1); }
  .fi-table td::before { content: attr(data-l); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 500; color: var(--ink-2); }
  .fi-table td:nth-child(3)::before { color: #0b5ea8; }
}

/* advisor answers: side by side */
@media (max-width: 900px) {
  .fi-chat__reply { flex-wrap: nowrap; gap: 6px; padding: 12px; }
  .fi-chat__reply button { flex: 1; min-width: 0; height: 44px; padding: 0 10px; font-size: var(--t-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 800px) {
  .fv2-card__v span.fv2-u { display: inline; margin-left: 2px; font-size: 0.6em; }
  .fv2-card__v small { font-size: 11px; }
}
.fv2-card__v { overflow: hidden; }
.fv2-est__ctl { grid-template-columns: minmax(0, 1fr) auto; }
.fv2-est__ctl output { justify-self: end; min-width: 0; }
.fv2-est__ctl output { white-space: nowrap; }
@media (max-width: 800px) { .fv2-est__ctl { grid-template-columns: minmax(0, 1fr) auto; } .fv2-est__ctl output { min-width: 7.2em; font-size: clamp(1.4rem, 6.4vw, 1.9rem); } }
