/* Dostaa Finances: homepage. Direction "The product performs" (tasteskill v2), Work Sans, graphite and orange. */

:root {
  --bg: #18191b;
  --surface: #222427;
  --surface-2: #2b2e32;
  --ink: #eff0f1;
  --muted: #a3a5aa;
  --accent: #ff4a1f;
  --accent-press: #e63d14;
  --accent-ink: #18191b;
  --field-1: #eff0f1;
  --field-1-2: #e2e4e6;
  --field-1-ink: #18191b;
  --field-1-muted: #55585e;
  --paper: #f6f6f4;

  --font: 'Work Sans', 'Anek Kannada', system-ui, sans-serif;
  --font-kn: 'Anek Kannada', 'Work Sans', system-ui, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.875rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.5rem, 0.6rem + 7.4vw, 8rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 1.5rem);
  --section: clamp(6rem, 11vw, 11rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:root[lang=kn] body { font-family: var(--font-kn); }
:root[lang=kn] .t-clock { font-size: 1.5rem; }
:root[lang=kn] h1, :root[lang=kn] h2 { letter-spacing: -0.01em; line-height: 1.12; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
section[id], :target { scroll-margin-top: 5.5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.soft { color: var(--muted); }
h1, h2 { font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4rem; font-weight: 500; font-size: 1rem; text-decoration: none;
  border-radius: 0; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-press); }
.btn:active { transform: scale(0.97); }
.text-link { font-weight: 500; text-decoration: underline; transition: color var(--t-hover) var(--ease-out); }
.text-link:hover { color: var(--accent); }

/* ---------- floating nav ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40; padding: 0.75rem var(--margin);
  transition: padding var(--t-ui) var(--ease-out);
}
.top-inner {
  display: flex; align-items: center; gap: 1.5rem; padding: 0.6rem 0.6rem 0.6rem 0;
  border-radius: 999px; transition: background-color 360ms var(--ease-out), padding 360ms var(--ease-out), backdrop-filter 360ms;
}
.top.scrolled .top-inner {
  background: rgba(24, 25, 27, 0.74); padding-left: 1.4rem;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); /* taste-skill-ignore: the sticky bar, as the reference asks */
}
.wordmark { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.top-links { display: flex; gap: 1.75rem; font-size: 1rem; }
.top-links a { text-decoration: none; color: #c9cbcf; transition: color var(--t-hover) var(--ease-out); white-space: nowrap; }
.top-links a:hover { color: var(--ink); }
.top-action { min-height: 44px; border-radius: 999px; }

/* language switch: EN / ಕನ್ನಡ */
.lang { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.12); }
.lang a { display: grid; place-items: center; text-decoration: none; position: relative; z-index: 1; min-width: 3.4rem; height: 36px; padding: 0 0.8rem; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: #c9cbcf; transition: color var(--t-ui) var(--ease-out); }
.lang a[lang=kn] { font-family: var(--font-kn); }
.lang a[aria-current=true] { color: var(--accent-ink); }
.lang-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform 420ms var(--ease-expo); }
.is-kn .lang-thumb { transform: translateX(100%); }
main, footer, .top-inner > :not(.lang) { transition: opacity 220ms var(--ease-out), filter 220ms var(--ease-out); }
.lang-out main, .lang-out footer, .lang-out .top-inner > :not(.lang) { opacity: 0.15; filter: blur(3px); }

/* ---------- hero: the gateway of Belagavi fort ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(6.5rem + 2vh) var(--margin) clamp(3rem, 7vh, 5rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero-bg img {
  width: 100%; height: 115%; object-fit: cover; object-position: 50% 40%;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.06); opacity: 0.55; filter: grayscale(1) contrast(1.1);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,25,27,.55) 0%, rgba(24,25,27,.35) 40%, rgba(24,25,27,.92) 88%, var(--bg) 100%); } /* taste-skill-ignore: neutral scrim over a photograph */
.hero-caption { position: absolute; left: var(--margin); bottom: 1.1rem; font-size: var(--step-small); color: #9c9ea3; }
.hero-stage {
  align-self: center; justify-self: center; width: min(100%, 76rem);
  display: grid; justify-items: center; gap: clamp(1rem, 3vh, 2rem);
}
.hero-title { font-size: var(--step-display); text-align: center; line-height: 1.0; white-space: nowrap; font-weight: 500; letter-spacing: -0.045em; }
.hero-title .line-2 { font-style: italic; font-weight: 300; color: #d9dadc; }
:root[lang=kn] .hero-title { line-height: 1.15; letter-spacing: -0.02em; }
:root[lang=kn] .hero-title .line-2 { font-style: normal; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; font-variant-numeric: tabular-nums; }

.chip-row { display: flex; gap: clamp(1rem, 4vw, 4rem); justify-content: center; flex-wrap: wrap; }
.chip {
  width: 19rem; padding: 0.9rem 1.1rem 1rem; background: var(--surface-2); color: var(--ink);
  border-radius: 10px; font-size: 0.875rem; transition: transform var(--t-ui) var(--ease-out);
}
.chip-amount { transform: rotate(-2deg); justify-self: start; margin-left: 6%; }
.chip-tenure { transform: rotate(2.5deg); }
.chip-switch { transform: rotate(-3deg); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
.chip:hover { transform: rotate(0deg); }
.chip-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.chip-switch .chip-top { flex-direction: column; align-items: flex-start; gap: 0.15rem; margin: 0; }
.chip label, .chip-top > span { color: var(--muted); }
.chip output { font-weight: 500; font-size: 1rem; font-variant-numeric: tabular-nums; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill, 50%) 100% no-repeat, #45484d; border-radius: 3px; } /* taste-skill-ignore: a two-stop fill on a form track, not a decorative gradient */
input[type=range]::-moz-range-track { height: 6px; background: #45484d; border-radius: 3px; }
input[type=range]::-moz-range-progress { height: 6px; background: var(--accent); border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; background: var(--ink); border-radius: 50%; border: 0; transition: transform var(--t-press) var(--ease-out); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; background: var(--ink); border-radius: 50%; border: 0; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }

.switch { position: relative; width: 52px; height: 30px; border-radius: 15px; background: #45484d; flex: none; transition: background-color var(--t-ui) var(--ease-out); }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: transform var(--t-ui) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] span { transform: translateX(22px); background: var(--accent-ink); }

.hero-foot { display: grid; justify-items: center; text-align: center; gap: 1.25rem; padding-top: clamp(2rem, 5vh, 3.5rem); }
.hero-lede { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.hero-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; justify-content: center; }
.hero-note { font-size: 1rem; color: var(--muted); }

/* ---------- light fields ---------- */
.field-light { background: var(--field-1); color: var(--field-1-ink); --muted: var(--field-1-muted); }
.field-light ::selection { background: var(--field-1-ink); color: var(--field-1); }

/* ---------- intro ---------- */
.intro { padding: var(--section) var(--margin) clamp(4rem, 7vw, 6rem); }
.intro-title { font-size: var(--step-head); }
.intro-lead { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.875rem); line-height: 1.3; letter-spacing: -0.015em; max-width: 44ch; margin-top: 1.5rem; text-wrap: pretty; }
.intro-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-top: 4.5rem; }
.intro-cols p { font-size: var(--step-body); line-height: 1.5; max-width: 42ch; }
.intro-cols b { color: var(--field-1-ink); font-weight: 600; }
.intro-cols a { color: var(--field-1-ink); font-weight: 500; }

/* ---------- picture sheet ---------- */
.sheet { padding: 0 var(--margin) var(--section); }
.sheet-title { font-size: var(--step-head); margin-bottom: 2.5rem; }
.sheet-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.ph-a { grid-column: 1 / span 7; }
.ph-b { grid-column: 8 / span 5; margin-top: 18%; }
.ph-c { grid-column: 1 / span 4; margin-top: -2%; }
.ph-d { grid-column: 6 / span 7; margin-top: 6%; }
.ph-frame { overflow: clip; background: var(--field-1-2); }
.ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.ph-c img { aspect-ratio: 4 / 5; }
.ph figcaption { font-size: 1rem; color: var(--muted); margin-top: 0.75rem; max-width: 46ch; }

/* ---------- loans ---------- */
.loans { padding: var(--section) var(--margin); }
.loans-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.loans-head h2 { font-size: var(--step-head); }
.loans-head h2 span { display: block; }
.loans-body { display: grid; grid-template-columns: 11rem 1fr; gap: 2.5rem; margin-top: 3.5rem; }
.tabs { display: grid; gap: 6px; align-content: start; }
.tabs [role=tab] {
  display: grid; text-align: left; padding: 0.8rem 1rem; min-height: 64px; background: var(--surface);
  font-size: 1.0625rem; font-weight: 500; transition: background-color var(--t-hover) var(--ease-out);
}
.tabs [role=tab] small { font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.tabs [role=tab]:hover:not([aria-selected=true]) { background: var(--surface-2); }
.tabs [role=tab][aria-selected=true] { background: var(--ink); color: var(--bg); }
.tabs [role=tab][aria-selected=true] small { color: #55585e; }
.bands { display: grid; gap: 4px; }
.bands li {
  display: grid; grid-template-columns: 6rem 1fr auto; align-items: center; gap: 1.5rem;
  min-height: 76px; padding: 0.9rem 1.25rem; border-radius: 8px; background: var(--surface);
  transition: background-color var(--t-hover) var(--ease-out);
}
.bands li:nth-child(even) { background: var(--surface-2); }
.bands li:hover { background: #33363b; }
.b-kind { font-size: var(--step-body); color: var(--muted); }
.b-main { display: grid; gap: 0.15rem; }
.b-main b { font-weight: 500; font-size: var(--step-body); }
.b-main span { font-size: 1rem; color: var(--muted); max-width: 60ch; }
.bands a { font-weight: 500; font-size: 0.9375rem; text-decoration: underline; white-space: nowrap; transition: color var(--t-hover) var(--ease-out); }
.bands a:hover { color: var(--accent); }
.bands[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .bands:not([hidden]) li { animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 45ms); }
}

/* ---------- how it works ---------- */
.how { padding-bottom: 0; }
.how-fields { display: grid; grid-template-columns: 1fr 1fr; min-height: 78svh; }
.how-clause { background: var(--surface); padding: clamp(2.5rem, 6vw, 5rem) var(--margin); display: grid; align-content: start; gap: 1.5rem; }
.clause { font-size: clamp(2.25rem, 1rem + 3.4vw, 4.5rem); max-width: 17ch; transition: opacity 200ms var(--ease-out); }
.clause-note { font-size: var(--step-lead); line-height: 1.35; color: var(--muted); max-width: 30ch; transition: opacity 200ms var(--ease-out); }
.how-frag { background: var(--field-1); color: var(--field-1-ink); display: grid; place-items: center; padding: 3rem var(--margin); position: relative; }
.frag {
  grid-area: 1 / 1; width: min(100%, 27.5rem); background: #fff; color: #18191b; border-radius: 12px;
  padding: 1.4rem; font-size: 0.9375rem;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s 200ms;
}
.frag.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.frag-label { font-size: var(--step-small); color: #6a6d73; margin-bottom: 0.9rem; font-weight: 500; }
.frag-fine { font-size: var(--step-small); color: #6a6d73; margin-top: 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 0.55rem 0.9rem; border-radius: 6px; background: #eff0f1; font-size: 0.875rem; font-weight: 500; transition: background-color var(--t-hover) var(--ease-out); }
.pill:hover { background: #e2e4e6; }
.pill[aria-pressed=true] { background: #18191b; color: #fff; }
.verdict { display: grid; gap: 0.3rem; margin-top: 1rem; padding: 1rem; border-radius: 8px; background: #eff0f1; border-left: 4px solid var(--v, #1e9e5a); }
.verdict b { font-size: 1.0625rem; font-weight: 600; }
.verdict span { color: #4a4d52; line-height: 1.45; }
.short { display: grid; gap: 6px; }
.short li { display: grid; grid-template-columns: 1fr auto; padding: 0.75rem 0.9rem; border-radius: 8px; background: #eff0f1; }
.short li b { font-weight: 600; }
.short li span { grid-column: 1; color: #55585e; font-size: 0.875rem; }
.short li em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: var(--step-small); color: #55585e; }
.short li.sel { background: #18191b; color: #fff; }
.short li.sel span, .short li.sel em { color: #c9cbcf; }
.checks, .track { display: grid; gap: 0.7rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start; line-height: 1.4; }
.checks li::before { content: ""; width: 20px; height: 20px; border-radius: 4px; background: #e2e4e6; margin-top: 1px; }
.checks li.done::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%2318191b' stroke-width='2.4'/%3E%3C/svg%3E") center / 18px no-repeat; }
.track li { display: grid; grid-template-columns: 22px 1fr; column-gap: 0.7rem; }
.track li::before { content: ""; grid-row: 1 / span 2; width: 14px; height: 14px; border-radius: 50%; background: #c9cbcf; margin: 5px 4px 0; }
.track li.done::before { background: #18191b; }
.track li.now::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(255,74,31,.2); } /* taste-skill-ignore: data-ui fragment: current-step ring */
.track b { font-weight: 600; }
.track span { color: #55585e; font-size: 0.875rem; }
.how-slider { background: var(--bg); padding: 1.75rem var(--margin) 2.25rem; }
#stage { height: 40px; }
#stage::-webkit-slider-runnable-track { height: 8px; border-radius: 0; }
#stage::-webkit-slider-thumb { width: 32px; height: 32px; margin-top: -12px; border-radius: 0; background: var(--accent); }
#stage::-moz-range-thumb { width: 32px; height: 32px; border-radius: 0; background: var(--accent); }
#stage::-moz-range-track, #stage::-moz-range-progress { height: 8px; border-radius: 0; }
.stage-names { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 0.75rem; font-size: 1rem; color: var(--muted); }
.stage-names li:nth-child(2) { text-align: center; padding-right: 8%; }
.stage-names li:nth-child(3) { text-align: center; padding-left: 8%; }
.stage-names li:last-child { text-align: right; }
.stage-names li.cur { color: var(--ink); }

/* ---------- income bands ---------- */
.income { padding-top: var(--section); }
.income-title { font-size: var(--step-head); padding: 0 var(--margin) 2.5rem; }
.band {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem;
  min-height: max(20vh, 9rem); padding: 1.5rem var(--margin);
  transition: background-color 320ms var(--ease-out), color 320ms var(--ease-out);
}
.band-line { font-size: clamp(1.625rem, 0.9rem + 2.6vw, 3.5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.08; color: var(--muted); transition: color 320ms var(--ease-out); }
.band-more { font-size: var(--step-body); max-width: 60ch; margin-top: 0.6rem; display: none; }
.band .switch { width: 66px; height: 38px; border-radius: 19px; }
.band .switch span { width: 32px; height: 32px; }
.band .switch[aria-checked="true"] span { transform: translateX(28px); }
.band.is-on .band-line { color: inherit; }
.band.is-on .band-more { display: block; }
@media (prefers-reduced-motion: no-preference) { .band.is-on .band-more { animation: rise 360ms var(--ease-out) both; } }
.band.is-on.tone-a { background: var(--accent); color: var(--accent-ink); }
.band.is-on.tone-b { background: var(--field-1); color: var(--field-1-ink); }
.band.is-on.tone-c { background: var(--surface-2); color: var(--ink); }
.band.is-on.tone-a .switch, .band.is-on.tone-b .switch { background: var(--accent-ink); }
.band.is-on.tone-a .switch span, .band.is-on.tone-b .switch span { background: var(--field-1); }

/* ---------- cost ---------- */
.cost { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding: var(--section) var(--margin); }
.cost-left { grid-column: 1 / span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; }
.cost h2 { font-size: clamp(2.25rem, 1.6rem + 1.4vw, 2.75rem); }
.cost-note { margin-top: 1rem; max-width: 40ch; color: var(--muted); }
.total { font-size: min(8.4vw, 10.5rem); font-weight: 300; letter-spacing: -0.05em; line-height: 0.85; white-space: nowrap; }
.total-cap { font-size: var(--step-body); margin-top: 1rem; max-width: 36ch; }
.slip {
  grid-column: 8 / span 5; width: min(100%, 27.5rem); justify-self: end; background: var(--paper); color: var(--field-1-ink);
  padding: 1.6rem 1.5rem 2.6rem; font-size: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 10px), 85% 100%, 80% calc(100% - 10px), 75% 100%, 70% calc(100% - 10px), 65% 100%, 60% calc(100% - 10px), 55% 100%, 50% calc(100% - 10px), 45% 100%, 40% calc(100% - 10px), 35% 100%, 30% calc(100% - 10px), 25% 100%, 20% calc(100% - 10px), 15% 100%, 10% calc(100% - 10px), 5% 100%, 0 calc(100% - 10px));
}
.slip-group { font-weight: 600; margin: 1.1rem 0 0.4rem; }
.slip-group:first-child { margin-top: 0; }
.row { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.22rem 0; }
.row i { flex: 1; height: 4px; background-image: radial-gradient(circle, #9a9ca1 1.5px, transparent 1.6px); background-size: 8px 4px; transform: translateY(-3px); } /* taste-skill-ignore: dot leaders drawn with a radial pattern */
.row b { font-weight: 500; }
.row-total { margin-top: 1rem; padding: 0.7rem 0.8rem; background: var(--field-1-ink); color: var(--paper); justify-content: space-between; font-weight: 600; }
.row-total b { font-weight: 600; }
.slip-fine { font-size: var(--step-small); color: var(--field-1-muted); margin-top: 0.9rem; }

/* ---------- callback ---------- */
.callback { padding: clamp(8rem, 14vw, 12.5rem) var(--margin) clamp(7rem, 11vw, 10rem); display: grid; justify-items: center; }
.cb-prompt, .cb-form, .cb-rows { width: min(100%, 34rem); }
.cb-prompt { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.cb-prompt span { display: block; }
.cb-form { margin-top: 1.75rem; }
.cb-field { position: relative; }
.cb-field input {
  width: 100%; height: 64px; padding: 0 4.5rem 0 1.25rem; border: 0; border-radius: 0; background: var(--field-1); color: var(--field-1-ink);
  font-size: 1.125rem; font-variant-numeric: tabular-nums; outline: none; transition: box-shadow var(--t-hover) var(--ease-out);
}
.cb-field input::placeholder { color: #75787e; }
.cb-field input:focus { box-shadow: inset 0 0 0 2px var(--accent); } /* taste-skill-ignore: focus ring on a form field */
.cb-go { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease-out); }
.cb-go:hover { background: var(--accent-press); }
.cb-go:active { transform: scale(0.94); }
.cb-go svg { width: 22px; height: 22px; }
.cb-consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; font-size: 1rem; color: var(--muted); cursor: pointer; }
.cb-consent input { width: 18px; height: 18px; margin: 0.15rem 0 0; accent-color: var(--accent); flex: none; }
.cb-next { font-size: 1rem; color: var(--muted); margin-top: 0.6rem; }
.lead-status.ok { color: #6ee7a8; }
.cb-rows { margin-top: 4.5rem; display: grid; gap: 0.6rem; font-size: 1rem; }
.cb-rows div { display: grid; grid-template-columns: 11rem 1fr; }
.cb-rows dt { color: var(--muted); }
.cb-rows a { font-weight: 500; }

/* ---------- footer tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 10px; }
.tile { background: var(--surface); padding: 1.5rem; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.t-statement { grid-column: 1 / span 4; }
.t-big { font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.015em; }
.t-legal { font-size: var(--step-small); color: var(--muted); line-height: 1.5; }
.t-nav { grid-column: 5 / span 3; justify-content: flex-start; gap: 0.45rem; }
.t-nav a { text-decoration: none; font-size: var(--step-body); transition: color var(--t-hover) var(--ease-out); }
.t-nav a:hover { color: var(--accent); }
.t-time { grid-column: 8 / span 2; }
.t-clock { white-space: nowrap; font-size: 2rem; font-weight: 300; letter-spacing: -0.03em; }
.t-small { font-size: var(--step-small); color: var(--muted); }
.t-mail { grid-column: 10 / span 3; }
.t-link { font-size: 1.25rem; font-weight: 500; text-decoration: none; }
.t-link:hover { color: var(--accent); }
.t-word { grid-column: 1 / span 8; min-height: 320px; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; overflow: hidden; }
.t-word p { font-size: clamp(2.5rem, 6.6vw, 7rem); font-weight: 300; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.t-cta { grid-column: 9 / span 4; min-height: 320px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; transition: background-color var(--t-hover) var(--ease-out); }
.t-cta:hover { background: var(--accent-press); }
.t-cta svg { width: 56px; height: 56px; align-self: flex-end; transition: transform var(--t-ui) var(--ease-out); }
.t-cta:hover svg { transform: translate(4px, -4px); }
.t-foot { grid-column: 1 / -1; display: grid; gap: 0.5rem; padding: 1rem 0.75rem 0.75rem; font-size: var(--step-small); color: var(--muted); }
.credits a { color: inherit; }

/* ---------- popup (a real overlay, so it may float) ---------- */
.lead-popup {
  position: fixed; right: var(--margin); bottom: var(--margin); z-index: 50; width: min(calc(100% - 2 * var(--margin)), 22rem);
  background: var(--field-1); color: var(--field-1-ink); --muted: var(--field-1-muted); padding: 1.4rem;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); /* taste-skill-ignore: real overlay (dialog) */
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s 260ms;
}
.lead-popup[hidden] { display: none; }
.lead-popup.show { opacity: 1; visibility: visible; transform: none; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.pop-close { position: absolute; top: 0.9rem; right: 1rem; font-size: var(--step-small); text-decoration: underline; color: var(--field-1-muted); }
.pop-title { font-weight: 600; font-size: 1.125rem; padding-right: 3rem; }
.pop-text { font-size: 0.9375rem; color: var(--field-1-muted); margin: 0.4rem 0 1rem; }
.lead-popup input[type=tel] { width: 100%; height: 52px; padding: 0 1rem; border: 0; background: #fff; font-size: 1rem; outline: none; }
.lead-popup input[type=tel]:focus { box-shadow: inset 0 0 0 2px var(--accent); } /* taste-skill-ignore: focus ring on a form field */
.lead-popup .btn { width: 100%; margin-top: 1rem; }
.lead-popup .lead-status { font-size: 0.875rem; margin-top: 0.6rem; color: #1e7a48; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes hero-in { from { transform: translate3d(0, var(--py, 0px), 0) scale(1.22); opacity: 0; } to { transform: translate3d(0, var(--py, 0px), 0) scale(1.06); opacity: .55; } }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes reveal-frame { from { clip-path: inset(14% 10% 14% 10%); } to { clip-path: inset(0 0 0 0); } }
@keyframes reveal-img { from { transform: scale(1.28); } to { transform: scale(1); } }
@keyframes drift-y { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes word-up { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ticker of towns */
.ticker { overflow: clip; padding: 0 0 clamp(3rem, 6vw, 5rem); }
.ticker-track { display: flex; width: max-content; }
.ticker-set { flex: none; padding-right: 1.2em; white-space: nowrap; font-size: clamp(2.25rem, 1.2rem + 4.5vw, 5.5rem); font-weight: 300; letter-spacing: -0.04em; color: var(--field-1-ink); }
:root[lang=kn] .ticker-set { letter-spacing: -0.01em; }

/* tab marker that slides between tabs */
.tabs { position: relative; }
.tab-mark { position: absolute; top: 0; left: 0; background: var(--ink); z-index: 0; transition: transform 460ms var(--ease-expo), width 460ms var(--ease-expo), height 460ms var(--ease-expo); }
.tabs [role=tab] { position: relative; z-index: 1; }
.tabs [role=tab][aria-selected=true] { background: transparent; }

/* income band wipes in from the left when switched on */
.band { position: relative; isolation: isolate; overflow: clip; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--band-fill, transparent); transform: scaleX(0); transform-origin: left; transition: transform 620ms var(--ease-expo); }
.band.is-on::before { transform: scaleX(1); }
.band.is-on.tone-a, .band.is-on.tone-b, .band.is-on.tone-c { background: transparent; }
.band.tone-a { --band-fill: var(--accent); }
.band.tone-b { --band-fill: var(--field-1); }
.band.tone-c { --band-fill: var(--surface-2); }

/* buttons: a fill that sweeps up on hover */
.btn { position: relative; overflow: clip; isolation: isolate; }
.btn-accent::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform 360ms var(--ease-expo); }
.btn-accent:hover { background: var(--accent); }
.btn-accent:hover::after { transform: none; }

/* chips sit on the photograph */
.chip { background: rgba(43, 46, 50, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } /* taste-skill-ignore: interface chips over a photograph */

@media (prefers-reduced-motion: no-preference) {
  .js .hero-bg img { animation: hero-in 1800ms var(--ease-expo) both; }
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 1000ms var(--ease-expo) forwards; animation-delay: calc(var(--i) * 120ms + 300ms); }
  .js .hero-foot { animation: rise 700ms var(--ease-out) 900ms both; }
  .js .chip { animation: rise 700ms var(--ease-out) 750ms both; }
  .js .chip-amount { animation-delay: 550ms; }
  .ready .chip-tenure { animation: float-a 6s ease-in-out 2s infinite; }
  .ready .chip-switch { animation: float-a 7s ease-in-out 3s infinite; }
  .ticker-track { animation: ticker 38s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .chip:hover, .chip:focus-within { animation-play-state: paused; }

  @supports (animation-timeline: view()) {
    .js .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .js .ph-frame { animation: reveal-frame linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .js .ph-frame img { animation: reveal-img linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .js .ph-b, .js .ph-d { animation: drift-y linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .js .slip { animation: print linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    .js .bands:not([hidden]) li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .js .t-word .word { animation: word-up linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  }
  /* fallback for browsers without scroll timelines: one class from the observer */
  .io-reveal .rise, .io-reveal .ph, .io-reveal .slip, .io-reveal .bands li { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
  .io-reveal .on { opacity: 1 !important; transform: none !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .top-links { display: none; }
  .intro-cols { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .loans-body { grid-template-columns: 1fr; gap: 1rem; }
  .tabs { grid-auto-flow: column; grid-auto-columns: 1fr; position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 6px 0; }
  .tabs [role=tab] { min-height: 56px; padding: 0.6rem 0.7rem; }
  .t-statement { grid-column: 1 / span 7; }
  .t-nav { grid-column: 8 / span 5; }
  .t-time { grid-column: 1 / span 5; }
  .t-mail { grid-column: 6 / span 7; }
  .t-word { grid-column: 1 / -1; }
  .t-cta { grid-column: 1 / -1; min-height: 200px; }
}

@media (max-width: 760px) {
  .cost-left { grid-column: 1 / -1; }
  .slip { grid-column: 1 / -1; justify-self: start; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .cost-left { grid-column: 1 / span 6; }
  .slip { grid-column: 7 / span 6; }
  .total { font-size: 9vw; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .top { padding: 0.5rem 0.5rem; }
  .top-inner { gap: 0.5rem; padding: 0.4rem; }
  .top.scrolled .top-inner { padding-left: 1rem; }
  .wordmark { font-size: 1rem; padding-left: 0.5rem; }
  .top-action { display: none; }
  .lang a { min-width: 2.9rem; height: 34px; padding: 0 0.6rem; font-size: 0.875rem; }
  .hero { min-height: 100svh; padding-top: 5.5rem; padding-bottom: 3.5rem; }
  .hero-caption { bottom: 0.75rem; }
  .hero-stage { gap: 1.25rem; }
  .hero-title { font-size: clamp(2rem, 10.4vw, 3.25rem); }
  .chip, .chip-amount, .chip-tenure, .chip-switch { transform: none; width: 100%; max-width: 22rem; margin: 0; justify-self: center; }
  .chip-row { width: 100%; flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-foot { padding-top: 2.25rem; }
  .hero-lede { font-size: 1.1875rem; }
  .intro-lead { font-size: 1.3125rem; }
  .intro-cols { grid-template-columns: 1fr; row-gap: 1.75rem; margin-top: 2.5rem; }
  .sheet-grid { grid-template-columns: 1fr 1fr; row-gap: 1.75rem; }
  .ph-a { grid-column: 1 / -1; }
  .ph-b { grid-column: 1 / span 1; margin-top: 0; }
  .ph-c { grid-column: 2 / span 1; margin-top: 2.5rem; }
  .ph-d { grid-column: 1 / -1; margin-top: 0; }
  .ph-b img, .ph-c img { aspect-ratio: 4 / 5; }
  .loans-head .btn { width: 100%; }
  .tabs { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: hidden; }
  .tabs [role=tab] { font-size: 0.875rem; padding: 0.55rem 0.35rem; min-height: 52px; text-align: center; }
  .tabs [role=tab] small { display: none; }
  .bands li { grid-template-columns: 1fr auto; padding: 1rem; gap: 0.4rem 1rem; }
  .b-kind { grid-column: 1 / -1; font-size: 0.875rem; }
  .how-fields { grid-template-columns: 1fr; min-height: 0; }
  .how-frag { order: -1; min-height: 46svh; padding: 2rem 1rem; }
  .how-clause { padding: 2rem var(--margin) 2.5rem; }
  .clause { font-size: 9vw; }
  .clause-note { font-size: 1.0625rem; }
  .how-slider { padding-top: 1.25rem; }
  #stage::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -16px; }
  .stage-names { grid-template-columns: 1fr 1fr; gap: 0.3rem 1rem; font-size: 0.9375rem; }
  .stage-names li:nth-child(n) { text-align: left; padding: 0; }
  .band { min-height: 132px; gap: 1rem; }
  .band-line { font-size: 6.4vw; }
  .band-more { font-size: 0.9375rem; }
  .total { font-size: 15vw; }
  .slip { width: 100%; }
  .cb-rows div { grid-template-columns: 1fr; gap: 0.1rem; margin-bottom: 0.9rem; }
  .cb-prompt { font-size: 1.3125rem; }
  .t-foot { padding: 1rem 0.75rem 0.75rem; }
  .tiles { gap: 6px; padding: 6px; }
  .tile { min-height: 0; padding: 1.25rem; }
  .t-word { order: -2; min-height: 160px; }
  .t-word p { font-size: 11vw; }
  .t-cta { order: -1; min-height: 150px; font-size: 1.5rem; }
  .t-nav, .t-mail { grid-column: span 6; }
  .t-time, .t-statement { grid-column: 1 / -1; }
  .t-link { font-size: 1.0625rem; }
}

/* ---------- loader: wordmark and tagline while the page settles ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg);
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  transition: opacity 600ms var(--ease-out), visibility 0s 600ms;
  animation: loader-failsafe 0s linear 3.2s forwards; /* if the script never runs, it still goes away */
}
.loaded .loader { opacity: 0; visibility: hidden; }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader-inner { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.loader-mark { font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.1; }
.loader-tag { font-size: clamp(1.125rem, 1rem + 0.8vw, 1.625rem); color: #c9cbcf; max-width: 26em; text-wrap: balance; }
.loader-bar { width: 9rem; height: 3px; background: #2f3236; position: relative; overflow: hidden; margin-top: 0.75rem; }
.loader-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: ld-bar 1.4s var(--ease-out) forwards; }
@keyframes ld-bar { to { transform: scaleX(1); } }
.ld-en { display: none; }
:root[lang=en] .ld-en { display: inline; }
:root[lang=en] .ld-kn { display: none; }
.ld-kn { font-family: var(--font-kn); letter-spacing: -0.01em; }
@media (prefers-reduced-motion: no-preference) {
  .loader-mark, .loader-tag { animation: rise 700ms var(--ease-out) both; }
  .loader-tag { animation-delay: 160ms; }
  .loaded .loader-inner { transform: translateY(-12px); transition: transform 600ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* ---------- WhatsApp buttons ---------- */
.btn-wa { gap: 0.6rem; }
.wa-ic { width: 1.2em; height: 1.2em; flex: none; }
.btn-big { min-height: 60px; padding: 0 1.6rem; font-size: 1.125rem; width: 100%; }
.cb-wa { width: min(100%, 34rem); margin-top: 1.75rem; display: grid; gap: 0.75rem; }
.cb-wa-note { font-size: 1rem; color: var(--muted); }
.cb-or { width: min(100%, 34rem); margin-top: 2.5rem; font-size: 1rem; color: var(--muted); }
.cb-or + .cb-form { margin-top: 0.75rem; }

.wa-fab {
  position: fixed; z-index: 45; right: calc(var(--margin) + env(safe-area-inset-right, 0px)); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 0.55rem; height: 56px; padding: 0 1.2rem 0 1rem; border-radius: 999px;
  background: #25d366; color: #0b2d17; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.55); /* taste-skill-ignore: a floating control */
  transition: transform var(--t-ui) var(--ease-out);
}
.wa-fab svg { width: 26px; height: 26px; }
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab:active { transform: scale(0.96); }
@media (prefers-reduced-motion: no-preference) {
  .js .wa-fab { animation: rise 600ms var(--ease-out) 1.6s both; }
}
.lead-popup { bottom: calc(var(--margin) + 72px); }
@media (max-width: 640px) {
  .wa-fab { right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); height: 54px; width: 54px; padding: 0; justify-content: center; }
  .wa-fab-label { display: none; }
  .btn-wa { width: 100%; }
}

/* ---------- footer credit ---------- */
.by-borangi { justify-self: start; color: var(--ink); font-weight: 500; text-decoration: underline; transition: color var(--t-hover) var(--ease-out); }
.by-borangi:hover { color: var(--accent); }
/* keep footer text clear of the floating WhatsApp button */
.t-foot { padding-right: 12rem; }
@media (max-width: 640px) { .t-foot { padding-right: 0.5rem; padding-bottom: 76px; } .hero-note { padding-inline: 2.5rem; } }

/* ---------- partner banks ---------- */
.partners { padding: clamp(4rem, 8vw, 7rem) var(--margin) clamp(4rem, 7vw, 6rem); display: grid; gap: 2.75rem; }
.partners-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.partners-head h2 { grid-column: 1 / span 7; font-size: var(--step-head); }
.partners-lede { grid-column: 8 / span 5; font-size: var(--step-body); max-width: 44ch; }
.partner-group { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: start; }
.partner-label { font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; padding-top: 1.6rem; }
.partner-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.partner-grid .partner { flex: 1 1 calc(20% - 6px); min-width: 11rem; }
.partner {
  position: relative; display: grid; place-items: center; min-height: 92px; padding: 1rem 1.25rem; background: #fff; color: var(--field-1-ink);
  text-align: center; transition: transform var(--t-ui) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}
.partner:hover { transform: translateY(-3px); }
.partner img { grid-area: 1 / 1; max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity 300ms var(--ease-out); }
.partner-name { grid-area: 1 / 1; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; font-family: 'Work Sans', system-ui, sans-serif; }
.partner.has-logo img { opacity: 1; }
.partner.has-logo .partner-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .js .partner { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@media (max-width: 1000px) {
  .partners-head h2, .partners-lede { grid-column: 1 / -1; }
  .partner-group { grid-template-columns: 1fr; gap: 0.75rem; }
  .partner-label { padding-top: 0; }
}
@media (max-width: 640px) {
  .partner-grid .partner { flex-basis: calc(50% - 6px); min-width: 0; }
  .partner { min-height: 76px; padding: 0.75rem; }
  .partner-name { font-size: 0.9375rem; }
}
