/* Credifin dealer onboarding — mobile-first. Palette taken from the CREDIFIN wordmark.
   Shared with the customer form at ../../src/styles/app.css; the blocks at the end
   of this file are the ones only this form needs. */

:root{
  /* Brand — flame */
  --flame-500:#F25C29;      /* CRM primary orange */
  --flame-400:#F97316;      /* top of logo gradient */
  --flame-600:#E11D0C;      /* bottom of logo gradient */
  --flame-700:#C0330F;
  --flame-100:#FFE0D1;
  --flame-50:#FFF1EB;
  --flame:linear-gradient(180deg,var(--flame-400) 0%,var(--flame-600) 100%);

  /* Brand — the "R" */
  --blue:#1E6FE8;
  --blue-700:#1552B4;
  --blue-50:#EAF2FE;
  --cyan:#22C9F5;

  /* Ink & paper */
  --ink:#0F1421;
  --ink-2:#1F2637;
  --graphite:#3F4657;
  --mute:#767E90;
  --soft:#A5ABBA;           /* quieter than --mute: hints, rules, second-language names */
  --soft-2:#CBD5E1;
  --paper:#FFFFFF;
  --cream:#FCF7F1;
  --cream-2:#F6EEE4;
  --line:#E7DCCC;
  --line-2:#F0E7DA;

  --ok:#0E7C5A;
  --ok-50:#E6F6F0;
  --warn:#B45309;
  --warn-50:#FEF6E7;

  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:22px;
  --sh-card:0 1px 0 rgba(60,40,20,.04), 0 2px 8px rgba(60,40,20,.05);
  --sh-pop:0 12px 32px -10px rgba(60,40,20,.28);
  --sh-flame:0 8px 20px -6px rgba(226,60,20,.45);

  --sans:'Archivo',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,system-ui,sans-serif;
  --deva:'Noto Sans Devanagari','Archivo',system-ui,sans-serif;

  --pad:20px;
  --safe-t:env(safe-area-inset-top,0px);
  --safe-b:env(safe-area-inset-bottom,0px);
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--sans);
  background:var(--ink);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  overscroll-behavior-y:none;
}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
input{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:4px}
.hi{font-family:var(--deva)}

/* Shell — a phone-width column, centred, so it also reads fine on a desktop. */
.app{
  max-width:480px;
  margin:0 auto;
  height:100vh;                    /* last-resort fallback */
  height:-webkit-fill-available;   /* iOS Safari before 15.4 */
  height:100dvh;                   /* tracks the phone's URL bar as it hides */
  background:var(--cream);
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
}
/* The question column: the whole app on a phone, beside the rail on a laptop. */
.pane{
  display:flex;flex-direction:column;
  flex:1;min-width:0;min-height:0;overflow:hidden;
  background:radial-gradient(130% 46% at 50% 0%, #FFFAF5 0%, var(--cream) 58%);
}
.rail{display:none}

@media(min-width:520px) and (max-width:779px){
  .app{box-shadow:0 0 0 1px rgba(0,0,0,.06),0 30px 80px -20px rgba(0,0,0,.5)}
}

/* Header — logo, progress, back */
.hdr{
  padding:calc(var(--safe-t) + 12px) var(--pad) 0;
  background:var(--cream);
  position:sticky;top:0;z-index:20;
  flex:0 0 auto;
}
.hdr-row{display:flex;align-items:center;gap:12px;height:40px}
.hdr-logo{height:19px;width:auto;display:block}
.hdr-spacer{flex:1}

.iconbtn{
  width:40px;height:40px;border-radius:50%;
  display:grid;place-items:center;
  color:var(--graphite);
  transition:background .14s;
  flex:0 0 auto;
}
.iconbtn:active{background:var(--cream-2)}
.iconbtn svg{width:22px;height:22px}

.lang-toggle{
  height:34px;padding:0 14px;border-radius:999px;
  border:1.5px solid var(--line);background:var(--paper);
  font-size:13px;font-weight:700;color:var(--graphite);
  display:flex;align-items:center;gap:6px;
}
.lang-toggle:active{background:var(--cream-2)}

/* Segmented progress — one segment per section, filling left to right */
.prog{display:flex;gap:5px;margin-top:12px}
.prog-seg{flex:1;height:5px;border-radius:99px;background:var(--line-2);overflow:hidden}
.prog-fill{display:block;height:100%;width:0;border-radius:99px;background:var(--flame);
  transition:width .42s cubic-bezier(.4,0,.2,1)}
.prog-meta{
  display:flex;align-items:baseline;justify-content:space-between;
  margin-top:9px;
}
.prog-sec{
  font-size:11.5px;font-weight:800;letter-spacing:.9px;text-transform:uppercase;
  color:var(--flame-600);
}
.prog-sec.hi{letter-spacing:.2px;font-size:12.5px;text-transform:none}
.prog-num{font-size:11.5px;font-weight:700;color:var(--mute);font-variant-numeric:tabular-nums}

/* Scrolling body */
.scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:0 var(--pad) 24px;
  display:flex;flex-direction:column;
}
.screen{display:flex;flex-direction:column;flex:1;animation:slidein .3s cubic-bezier(.22,1,.36,1) both}
@keyframes slidein{from{opacity:0;transform:translateX(22px)}to{opacity:1;transform:none}}
.screen.back{animation-name:slideback}
@keyframes slideback{from{opacity:0;transform:translateX(-22px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .screen,.screen.back{animation:none}
  .prog-fill{transition:none}
}

/* Question head */
.q{padding:22px 0 18px}
.q-main{
  font-family:var(--deva);
  font-size:27px;line-height:1.32;font-weight:700;
  color:var(--ink);letter-spacing:-.2px;
  text-wrap:balance;
}
.q-main.en{font-family:var(--sans);font-size:26px;letter-spacing:-.7px;line-height:1.22}
.q-sub{
  margin-top:8px;
  font-size:15px;line-height:1.4;font-weight:500;color:var(--mute);
}
.q-sub.hi{font-family:var(--deva);font-size:15.5px}
.q-help{
  margin-top:14px;
  display:flex;gap:9px;align-items:flex-start;
  background:var(--blue-50);border-radius:var(--r-md);
  padding:11px 13px;
  font-size:13.5px;line-height:1.42;color:var(--blue-700);font-weight:600;
}
.q-help.hi{font-family:var(--deva);font-size:14px}
.q-help svg{width:17px;height:17px;flex:0 0 auto;margin-top:1px}

/* Options — the whole app is really just this control */
.opts{display:flex;flex-direction:column;gap:10px;padding-bottom:8px}

.opt{
  display:flex;align-items:center;gap:14px;
  width:100%;min-height:68px;
  padding:13px 15px;
  background:var(--paper);
  border:1.5px solid var(--line);
  border-radius:var(--r-lg);
  text-align:left;
  box-shadow:var(--sh-card);
  transition:transform .1s, border-color .14s, background .14s;
  position:relative;
}
.opt:active{transform:scale(.982)}
.opt-ico{
  width:44px;height:44px;flex:0 0 auto;
  border-radius:12px;
  background:var(--cream-2);
  color:var(--flame-600);
  display:grid;place-items:center;
  transition:background .14s,color .14s;
}
.opt-ico svg{width:24px;height:24px}
.opt-txt{flex:1;min-width:0}
.opt-lbl{
  display:block;
  font-size:17px;font-weight:700;color:var(--ink);line-height:1.28;
  overflow-wrap:anywhere;
}
.opt-lbl.hi{font-family:var(--deva);font-size:18px;font-weight:600}
.opt-note{
  display:block;
  font-size:13px;font-weight:600;color:var(--mute);margin-top:3px;line-height:1.3;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
.opt-note.hi{font-family:var(--deva)}
.opt-tag{
  display:inline-block;margin-top:7px;
  font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;
  padding:4px 8px;border-radius:6px;
  background:var(--ok-50);color:var(--ok);
}
.opt-tag.hi{font-family:var(--deva);text-transform:none;letter-spacing:0;font-size:12px}

/* the tick that only appears once chosen */
.opt-mark{
  width:26px;height:26px;flex:0 0 auto;border-radius:50%;
  border:2px solid var(--line);
  display:grid;place-items:center;
  color:transparent;
  transition:all .14s;
}
.opt-mark svg{width:15px;height:15px}

.opt[aria-checked="true"],.opt.sel{
  border-color:var(--flame-500);
  background:var(--flame-50);
}
.opt[aria-checked="true"] .opt-ico,.opt.sel .opt-ico{background:var(--flame-500);color:#fff}
.opt[aria-checked="true"] .opt-mark,.opt.sel .opt-mark{
  background:var(--flame-500);border-color:var(--flame-500);color:#fff;
}

/* Text / number input */
.field{margin-bottom:16px}
.field-lbl{
  font-size:13px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;
  color:var(--mute);margin-bottom:8px;display:block;
}
.field-lbl.hi{font-family:var(--deva);text-transform:none;letter-spacing:0;font-size:14.5px}
.input-wrap{
  display:flex;align-items:center;
  background:var(--paper);border:1.5px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
  transition:border-color .14s;
}
.input-wrap:focus-within{border-color:var(--flame-500)}
.input-pre{
  padding:0 4px 0 16px;font-size:20px;font-weight:700;color:var(--graphite);
  font-variant-numeric:tabular-nums;
}
.input-wrap input{
  flex:1;min-width:0;border:none;background:none;outline:none;
  padding:18px 16px 18px 8px;
  font-size:20px;font-weight:700;letter-spacing:.5px;
  font-variant-numeric:tabular-nums;
}
.input-wrap input.text{letter-spacing:0;font-size:18px;padding-left:16px}
.input-wrap input::placeholder{color:#B9BDC8;font-weight:500;letter-spacing:0}
.field-err{
  margin-top:7px;font-size:13.5px;font-weight:700;color:var(--flame-600);
  display:none;
}
.field-err.hi{font-family:var(--deva)}
.field.bad .input-wrap{border-color:var(--flame-600)}
.field.bad .field-err{display:block}

/* Running answer summary — the customer form totals money here, this one lists answers */
.tally{
  background:var(--ink);color:#fff;
  border-radius:var(--r-lg);
  padding:14px 16px;margin-bottom:16px;
}
.tally-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.tally-row + .tally-row{margin-top:9px;padding-top:9px;border-top:1px solid rgba(255,255,255,.11)}
.tally-k{font-size:13px;font-weight:600;color:#A6ADBD}
.tally-k.hi{font-family:var(--deva);font-size:14px}
.tally-v{font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.2px}

/* Footer CTA */
.foot{
  flex:0 0 auto;
  padding:12px var(--pad) calc(var(--safe-b) + 14px);
  background:linear-gradient(180deg,rgba(252,247,241,0) 0%,var(--cream) 26%);
  position:sticky;bottom:0;z-index:15;
}
.btn{
  width:100%;min-height:58px;border-radius:var(--r-lg);
  display:flex;align-items:center;justify-content:center;gap:9px;
  font-size:17.5px;font-weight:800;letter-spacing:.1px;
  background:var(--flame);color:#fff;
  box-shadow:var(--sh-flame);
  transition:transform .1s,filter .14s;
}
.btn.hi{font-family:var(--deva);font-weight:700}
.btn:active{transform:scale(.985)}
.btn svg{width:20px;height:20px}
.btn[disabled]{background:#D8CFC2;color:#fff;box-shadow:none;pointer-events:none}
.btn.ghost{
  background:none;color:var(--graphite);box-shadow:none;
  min-height:50px;font-size:16px;font-weight:700;text-decoration:underline;
  text-underline-offset:3px;text-decoration-color:var(--line);
}
.btn.dark{background:var(--ink);box-shadow:0 8px 20px -6px rgba(15,20,33,.4)}
.foot .btn + .btn{margin-top:6px}

/* ===========================================================================
   THE ENTRY SCREEN — the same one /preview1 opens with.

   Dark, and deliberately. This is the screen an ad click lands on, and a dark
   page with one hot accent reads as a product where a cream page with several
   reads as a form. Everything AFTER it is the cream flow exactly as it was —
   the inversion is the welcome mat, not the house.

   Every selector below is scoped to `.app.cover`, which render() sets only
   while the entry screen is up, so none of it can reach the questions. The
   tokens are the ones the rest of this file already uses; only --bg and the
   three text values are new, and they are mixed from --ink rather than reached
   for somewhere else.

   Lifted from src/styles/preview1.css. If one changes, change both.
   =========================================================================== */

.app.cover{
  max-width:none;
  --bg:#0B0F19; --bg-2:#131926; --bg-3:#1B2232;
  --hair:rgba(255,255,255,.08); --hair-2:rgba(255,255,255,.14);
  --on-bg:#F3F5F9; --on-bg-2:#A5ABBA; --on-bg-3:#767E90;
  --flame-soft:linear-gradient(135deg,rgba(249,115,22,.16),rgba(225,29,12,.06));
  --ease:cubic-bezier(.22,1,.36,1);
  --t-fast:140ms; --t:240ms; --t-slow:380ms;
  --sh-flame:0 10px 26px -8px rgba(226,60,20,.55);
  background:
    radial-gradient(120% 55% at 50% -8%, rgba(249,115,22,.16) 0%, transparent 62%),
    radial-gradient(90% 40% at 50% 104%, rgba(30,111,232,.10) 0%, transparent 70%),
    var(--bg);
  color:var(--on-bg);
  display:flex;flex-direction:column;
}
/* On a laptop the entry screen becomes a centred column rather than a field of
   dark with a paragraph stranded in the middle of it. */
@media(min-width:620px){
  .app.cover{max-width:520px;margin:0 auto}
}

/* The flow's own button is cream-themed and lives on a cream footer; the one on
   this screen sits on ink and needs its own. */
.app.cover .btn{
  width:100%;min-height:58px;border-radius:20px;
  display:flex;align-items:center;justify-content:center;gap:9px;
  background:var(--flame);color:#fff;border:none;
  font-size:16.5px;font-weight:800;letter-spacing:.2px;
  box-shadow:var(--sh-flame);
  transition:transform var(--t-fast) var(--ease),opacity var(--t-fast);
}
.app.cover .btn.hi{font-family:var(--deva)}
.app.cover .btn svg{width:20px;height:20px}
.app.cover .btn:active{transform:scale(.985)}
.app.cover .btn[disabled]{opacity:.38;box-shadow:none;pointer-events:none}
/* Links on ink, not on paper. */
.app.cover .consent-link{color:#7FB2FF;text-decoration-color:rgba(127,178,255,.5)}

/* --------------------------------------------------------------- landing -- */
/* The first screen after an ad click. It is not the form — it is the reason to
   start one, and it has about two seconds to give it. */

.app.cover .land{
  flex:1 1 auto;min-height:0;overflow-y:auto;
  padding:0 var(--pad) calc(var(--safe-b) + 20px);
  display:flex;flex-direction:column;
  animation:fade var(--t-slow) ease both;
}
/* Same rule, with the one exception that has to be able to grow. */
.app.cover .land > *{flex:0 0 auto}
.app.cover .land > .land-gap{flex:1 1 auto}

@keyframes fade{from{opacity:0}to{opacity:1}}
.app.cover .land-top{
  display:flex;align-items:center;gap:10px;
  padding:12px 0 0;
}
.app.cover .land-logo{height:22px;width:auto}
/* Every vertical measure on this screen is a clamp with a vh term in it. An ad
   landing whose call to action is below the fold is an ad landing that does not
   convert, and "the fold" on a Windows laptop at 125% scaling is about 750px —
   a lot less than the 950 a 1080p screen suggests. */
.app.cover .land-hero{padding:clamp(14px,3.2vh,34px) 0 0;flex:0 0 auto}
.app.cover .eyebrow{
  display:inline-flex;align-items:center;gap:7px;
  padding:7px 13px;border-radius:99px;
  background:var(--flame-soft);border:1px solid rgba(249,115,22,.3);
  font-size:11.5px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;
  color:var(--flame-400);
}
.app.cover .eyebrow svg{width:14px;height:14px}
.app.cover .land-h{
  margin-top:clamp(10px,2vh,18px);
  font-size:clamp(30px,min(9.2vw,5.6vh),46px);font-weight:900;line-height:1.04;
  letter-spacing:-1.4px;color:var(--on-bg);text-wrap:balance;
}
.app.cover .land-h em{
  font-style:normal;
  background:linear-gradient(120deg,var(--flame-400),var(--flame-600));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.app.cover .land-h-hi{
  font-family:var(--deva);font-size:clamp(20px,5.2vw,26px);font-weight:700;
  line-height:1.34;letter-spacing:0;margin-top:11px;color:var(--on-bg-2);
}

.app.cover .land-p{
  margin-top:clamp(10px,1.8vh,16px);max-width:34ch;
  font-size:clamp(14px,1.9vh,15.5px);font-weight:500;line-height:1.55;color:var(--on-bg-2);
}
.app.cover .land-p.hi{font-family:var(--deva);font-size:16.5px}
/* The phrase the sentence is actually about, picked out of it. Colour and
   weight rather than a second gradient: the headline already spends one on
   "Dealer", and two of them competing for the same eye is neither winning.
   #F97316 on this ground is about 6.6:1 — emphasis a dealer can read, not
   decoration they have to squint at. */
.app.cover .land-p .hl{color:var(--flame-400);font-weight:800}

/* Three facts, not three adjectives. */
.app.cover .proof{display:flex;flex-direction:column;gap:clamp(7px,1.3vh,11px);margin-top:clamp(14px,2.6vh,26px)}
.app.cover .proof-row{display:flex;align-items:center;gap:12px}
.app.cover .proof-ico{
  width:34px;height:34px;flex:0 0 auto;border-radius:11px;display:grid;place-items:center;
  background:var(--bg-2);border:1px solid var(--hair);color:var(--flame-400);
}
.app.cover .proof-ico svg{width:18px;height:18px}
.app.cover .proof-t{font-size:14.5px;font-weight:700;color:var(--on-bg);line-height:1.35}
.app.cover .proof-t.hi{font-family:var(--deva);font-weight:600;font-size:15.5px}
.app.cover .proof-t small{display:block;font-size:12.5px;font-weight:500;color:var(--on-bg-3);margin-top:1px}

.app.cover .land-gap{flex:1 1 auto;min-height:10px}
.app.cover .land-cta{flex:0 0 auto;padding-top:clamp(6px,1.4vh,10px)}
.app.cover .land-note{
  margin-top:clamp(8px,1.4vh,13px);text-align:center;

  font-size:12px;font-weight:600;color:var(--on-bg-3);line-height:1.5;
}
.app.cover .land-note.hi{font-family:var(--deva);font-size:13px}

/* language, as two pills rather than a screen of its own */
.app.cover .langpick{display:flex;gap:10px;margin-top:clamp(13px,2.4vh,22px)}
.app.cover .pill{
  flex:1;min-height:54px;border-radius:var(--r-md);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  background:var(--bg-2);border:1.5px solid var(--hair);
  color:var(--on-bg-2);
  transition:border-color var(--t-fast),background var(--t-fast),color var(--t-fast);
}
.app.cover .pill b{font-size:16px;font-weight:800}
.app.cover .pill span{font-size:11px;font-weight:600;color:var(--on-bg-3)}
.app.cover .pill[aria-pressed="true"]{
  border-color:var(--flame-500);background:rgba(242,92,41,.12);color:var(--on-bg);
}
.app.cover .pill[aria-pressed="true"] span{color:var(--flame-400)}

/* Result screen */
/* Sized off vmin so a short laptop does not give the hero a third of the viewport. */
.res-hero{
  text-align:center;
  padding:clamp(14px, 2.6vmin, 28px) 0 clamp(12px, 2.2vmin, 24px);
}
.res-badge{
  width:clamp(54px, 8.4vmin, 78px);height:clamp(54px, 8.4vmin, 78px);
  border-radius:50%;margin:0 auto clamp(10px, 1.8vmin, 18px);
  display:grid;place-items:center;color:#fff;
  background:var(--flame);box-shadow:var(--sh-flame);
}
.res-badge.ok{background:linear-gradient(180deg,#12A16F,#0E7C5A);box-shadow:0 8px 20px -6px rgba(14,124,90,.45)}
.res-badge{animation:badgein .42s cubic-bezier(.22,1,.36,1) both}
@keyframes badgein{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
/* a ring that expands out of the badge once, so a pass reads as an event */
.res-badge.ok::after{
  content:'';position:absolute;inset:-6px;border-radius:50%;
  border:2px solid var(--ok);
  animation:ring 1.1s cubic-bezier(.22,1,.36,1) .3s both;
}
.res-badge{position:relative}
@keyframes ring{from{opacity:.55;transform:scale(.85)}to{opacity:0;transform:scale(1.5)}}
.res-badge svg{width:clamp(28px, 4.4vmin, 41px);height:clamp(28px, 4.4vmin, 41px)}
.res-h{
  font-family:var(--deva);font-size:clamp(21px, 3.3vmin, 32px);
  font-weight:700;line-height:1.28;color:var(--ink);text-wrap:balance;
}
.res-p{
  margin-top:clamp(6px, 1.2vmin, 11px);
  font-size:clamp(14px, 1.95vmin, 17px);font-weight:600;color:var(--mute);line-height:1.45;
}
.res-p.hi{font-family:var(--deva)}

/* Plan and answers sit side by side only when each can hold 320px, so they stack
   on a phone without needing a breakpoint. */
.res-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));
  gap:14px;align-items:start;
}
.res-cards .card{margin-bottom:0}

.card{
  background:var(--paper);border:1.5px solid var(--line);
  border-radius:var(--r-lg);padding:4px 16px;margin-bottom:14px;
  box-shadow:var(--sh-card);
}
.card-h{
  font-size:11.5px;font-weight:800;letter-spacing:.9px;text-transform:uppercase;
  color:var(--mute);padding:14px 0 4px;
}
.card-h.hi{font-family:var(--deva);text-transform:none;letter-spacing:0;font-size:13.5px}
.kv{
  display:flex;justify-content:space-between;align-items:baseline;gap:14px;
  padding:12px 0;border-top:1px solid var(--line-2);
}
.kv:first-of-type{border-top:none}
.kv-k{font-size:14.5px;font-weight:600;color:var(--mute);flex:0 0 auto;max-width:46%}
.kv-k.hi{font-family:var(--deva);font-size:15px}
.kv-v{font-size:15.5px;font-weight:700;color:var(--ink);text-align:right;
  font-variant-numeric:tabular-nums;flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.kv-v.hi{font-family:var(--deva)}

.ref{
  text-align:center;padding:18px 0 6px;
}
.ref-k{font-size:12px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--mute)}
.ref-v{
  font-size:26px;font-weight:800;letter-spacing:2px;color:var(--ink);
  font-variant-numeric:tabular-nums;margin-top:4px;
}

/* Multi-select "done" hint */
.multi-hint{
  font-size:13.5px;font-weight:700;color:var(--mute);text-align:center;padding:4px 0 10px;
}
.multi-hint.hi{font-family:var(--deva);font-size:14.5px}

.res-h.en{font-family:var(--sans);font-size:clamp(22px, 3.5vmin, 34px);letter-spacing:-.8px}


/* Desktop rail — the dark left column: brand, section stepper, running loan total. */
.rail{
  background:linear-gradient(168deg,#1B2234 0%,#0C1120 100%);
  color:#fff;
  padding:34px 28px 26px;
  flex-direction:column;
  position:relative;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:none;
}
.rail::-webkit-scrollbar{width:0;display:none}
/* a faint ember behind the stepper, echoing the logo */
.rail::before{
  content:'';position:absolute;left:-70px;top:120px;width:260px;height:260px;
  background:radial-gradient(circle,rgba(242,92,41,.18) 0%,transparent 68%);
  pointer-events:none;
}
.rail > *{position:relative}
.rail-logo{width:148px;display:block;margin-bottom:13px}
.rail-tag{
  font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;
  color:#FF8B5E;margin-bottom:36px;
}

.stepper{list-style:none;display:flex;flex-direction:column}
.step{display:flex;gap:14px;align-items:center;padding:9px 0;position:relative}
.step::before{
  content:'';position:absolute;left:16px;top:38px;height:20px;width:2px;
  background:rgba(255,255,255,.10);
}
.step:last-child::before{display:none}
.step-dot{
  width:34px;height:34px;border-radius:50%;flex:0 0 auto;z-index:1;
  display:grid;place-items:center;
  font-size:13.5px;font-weight:800;font-variant-numeric:tabular-nums;
  background:rgba(255,255,255,.06);color:#6E7789;
  border:1.5px solid rgba(255,255,255,.11);
  transition:background .32s,color .32s,box-shadow .32s,border-color .32s;
}
.step-dot svg{width:17px;height:17px}
.step-txt{display:flex;flex-direction:column;gap:1px;min-width:0}
.step-name{font-size:15px;font-weight:700;color:#6E7789;transition:color .32s}
.step-name.hi{font-family:var(--deva);font-size:15.5px;font-weight:600}
.step-sub{font-size:11.5px;font-weight:600;color:#4B5365;transition:color .32s}
.step.now  .step-dot{background:var(--flame);border-color:transparent;color:#fff;
  box-shadow:0 0 0 5px rgba(242,92,41,.15)}
.step.now  .step-name{color:#fff}
.step.now  .step-sub{color:#FF9E78}
.step.done .step-dot{background:rgba(255,255,255,.15);border-color:transparent;color:#fff}
.step.done .step-name{color:#AEB6C6}

.rail-gap{flex:1;min-height:24px}
.rail-foot{
  font-size:11.5px;font-weight:600;line-height:1.65;color:#4F5768;margin-top:18px;
}
.rail-foot b{color:#8A92A4;font-weight:700}

.tally.in-rail{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.09);
  margin-bottom:0;
}
.tally-h{
  font-size:10.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;
  color:#7D8496;margin-bottom:11px;
}
.tally-h.hi{font-family:var(--deva);text-transform:none;letter-spacing:.2px;font-size:12.5px}

/* Laptop layout */
@media(min-width:780px){
  body{background:#080C15}

  .app.shell{
    max-width:none;width:100%;
    height:100dvh;min-height:0;
    display:grid;
    grid-template-columns:272px minmax(0,1fr);
    overflow:hidden;
  }
  .rail{display:flex;padding:26px 22px 22px}
  .rail-logo{width:126px}
  .rail-tag{margin-bottom:26px;font-size:10px;letter-spacing:1.2px}
  .hdr-row{max-width:576px;margin:0 auto}

  /* the rail already shows the brand and the progress */
  .hdr{padding:18px 26px 0;background:none}
  .hdr-logo,.prog,.prog-meta{display:none}
  .hdr-row{height:40px}

  .scroll{padding:0 26px 30px;scroll-behavior:smooth}
  .scroll > .screen{width:100%;max-width:576px;margin:0 auto}
  /* the result has two cards side by side and needs more room than a question */
  .scroll > .screen.wide{max-width:860px}
  .foot{padding:14px 26px 26px;background:linear-gradient(180deg,rgba(252,247,241,0),var(--cream) 30%)}
  .foot > *{max-width:576px;margin-left:auto;margin-right:auto}

  .tally:not(.in-rail){display:none}

  .q{padding:10px 0 24px}
  .q-main{font-size:29px}
  .q-main.en{font-size:30px}
  .q-sub,.q-sub.hi{font-size:16px}
  .opt{min-height:74px;padding:14px 17px}
  .opt-lbl{font-size:17.5px}
  .opt-lbl.hi{font-size:19px}

}

/* Comfortable laptop and up — the rail and the padding both grow. */
@media(min-width:1080px){
  .app.shell{grid-template-columns:336px minmax(0,1fr)}
  .rail{padding:34px 28px 26px}
  .rail-logo{width:148px}
  .rail-tag{margin-bottom:36px;font-size:11px;letter-spacing:1.5px}
  .hdr{padding:20px 44px 0}
  .scroll{padding:0 44px 32px}
  .foot{padding:14px 44px 28px}
  .q-main{font-size:32px}
  .q-main.en{font-size:33px}
}

@media(min-width:1500px){
  .app.shell{grid-template-columns:392px minmax(0,1fr)}
  .rail{padding:40px 34px 30px}
  .rail-logo{width:168px}
  .scroll > .screen{max-width:620px}
  .foot > *{max-width:620px}
  .hdr-row{max-width:620px}
  .q-main{font-size:34px}
  .q-main.en{font-size:35px}
}

/* Polish */

/* A flame edge on the chosen card — the tick alone is easy to miss. */
.opt{overflow:hidden}
.opt::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:3.5px;
  background:var(--flame);
  opacity:0;transform:translateX(-4px);
  transition:opacity .18s,transform .18s;
}
.opt[aria-checked="true"]::before,.opt.sel::before{opacity:1;transform:none}

/* Rows arrive in reading order, so the eye starts at the top of the list. */
.opts .opt{animation:optin .3s cubic-bezier(.22,1,.36,1) both}
.opts .opt:nth-child(1){animation-delay:.02s}
.opts .opt:nth-child(2){animation-delay:.06s}
.opts .opt:nth-child(3){animation-delay:.10s}
.opts .opt:nth-child(4){animation-delay:.14s}
.opts .opt:nth-child(5){animation-delay:.18s}
.opts .opt:nth-child(n+6){animation-delay:.22s}
@keyframes optin{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}

/* Mouse users get feedback that touch users get from the tap itself. */
@media(hover:hover) and (pointer:fine){
  .opt:hover{
    border-color:var(--flame-500);
    transform:translateY(-1px);
    box-shadow:0 6px 18px -6px rgba(226,60,20,.24);
  }
  .opt:hover .opt-ico{background:var(--flame-100)}
  .opt[aria-checked="true"]:hover .opt-ico{background:var(--flame-500)}
  .btn:not([disabled]):hover{filter:brightness(1.07)}
  .btn.ghost:hover{color:var(--flame-600);text-decoration-color:var(--flame-500)}
  .iconbtn:hover{background:var(--cream-2)}
  .lang-toggle:hover{border-color:var(--flame-500);color:var(--flame-600)}
  .helpline-row:hover{background:var(--flame-50)}
}

/* Confirmation in place of the primary button once the lead has been sent. */
.sent{
  display:flex;align-items:center;justify-content:center;gap:9px;
  min-height:54px;padding:0 16px;border-radius:var(--r-lg);
  background:var(--ok-50);color:var(--ok);
  font-size:15px;font-weight:700;text-align:center;
  animation:optin .3s cubic-bezier(.22,1,.36,1) both;
}
.sent.hi{font-family:var(--deva)}
.sent svg{width:20px;height:20px;flex:0 0 auto}

/* Shown above the retry button when the application could not be filed. */
.file-err{
  padding:11px 14px;border-radius:var(--r-lg);
  background:var(--warn-50);color:var(--warn);
  font-size:14px;font-weight:600;line-height:1.45;text-align:center;
}
.file-err.hi{font-family:var(--deva)}

/* `.btn` is sometimes an <a> (tel: links on the decline screen). */
a.btn{text-decoration:none}

/* Decline screen helpline */
.card.helpline{padding:0;overflow:hidden}
.helpline-row{
  display:flex;align-items:center;gap:14px;
  padding:16px;text-decoration:none;color:inherit;
  transition:background .14s;
}
.helpline-row svg{width:20px;height:20px;color:var(--mute);flex:0 0 auto}
.helpline-row .opt-lbl{font-variant-numeric:tabular-nums;letter-spacing:.5px}

.scroll{overscroll-behavior:contain}
.scroll::-webkit-scrollbar{width:10px}
.scroll::-webkit-scrollbar-thumb{
  background:#DCD1C0;border-radius:8px;border:3px solid transparent;background-clip:padding-box;
}
.scroll::-webkit-scrollbar-thumb:hover{background:#C6B9A4;background-clip:padding-box;border:3px solid transparent}


/* The card deck — one either/or per card, swiped or tapped */
/* Card and hint travel together, centred in whatever height is left. */
.swipe-scroll > .screen{justify-content:center}
.swipe-scroll .deck{flex:0 0 auto;padding-bottom:16px}

 /* The deck absorbs the slack; the card is only as tall as what it asks, so it reads
   as something to flick away rather than as a page. */
/* The entrance animation lives on the deck, never on the card. A CSS animation
   outranks inline styles, so a filled animation on `.deck-card` would pin its
   transform and the drag and fly-out would silently stop moving it. */
.deck{
  position:relative;
  flex:1 1 auto;min-height:0;
  display:flex;align-items:center;justify-content:center;
  perspective:1000px;
  animation:cardin .34s cubic-bezier(.22,1,.36,1) both;
}
/* the cards waiting behind, so the stack reads as "there are more" */
.deck-ghost{
  position:absolute;inset:0;
  background:var(--paper);
  border:1.5px solid var(--line);
  border-radius:var(--r-xl);
  transform:translateY(calc(var(--i) * 7px)) scale(calc(1 - var(--i) * .05));
  opacity:calc(1 - var(--i) * .4);
  box-shadow:var(--sh-card);
}
.deck-card{
  position:relative;width:100%;z-index:1;
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(20px, 3.6vmin, 40px) clamp(14px, 2.8vmin, 32px);
  background:var(--paper);
  border:1.5px solid var(--line);
  border-radius:var(--r-xl);
  box-shadow:0 16px 40px -16px rgba(60,40,20,.35);
  cursor:grab;touch-action:pan-y;
  user-select:none;-webkit-user-select:none;
  will-change:transform;
}
.deck-card:active{cursor:grabbing}

.duel-ask{
  font-size:clamp(17px, 2.9vmin, 26px);
  font-weight:700;line-height:1.32;color:var(--ink);
  text-align:center;text-wrap:balance;
  margin-bottom:clamp(18px, 3.4vmin, 34px);
}
.duel-ask.hi{font-family:var(--deva);font-weight:600;font-size:clamp(18px, 3vmin, 27px)}

/* the two choices, side by side, with the OR rule between them */
.duel{flex:0 0 auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:4px}
.duel-side{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  padding:12px 8px;border-radius:var(--r-lg);
  border:1.5px solid transparent;
  touch-action:pan-y;
  transition:background .16s,transform .16s,border-color .16s;
}
/* Each side is a button, so it presses like one when tapped rather than swiped. */
.duel-side:active{transform:scale(.96)}
.duel-side.left:active {background:var(--blue-50); border-color:var(--blue)}
.duel-side.right:active{background:var(--flame-50);border-color:var(--flame-500)}
.duel-arrow{
  font-size:19px;font-weight:800;line-height:1;
  color:var(--soft-2,#CBD5E1);transition:color .16s;
}
.duel-ico{
  width:clamp(54px, 9.6vmin, 84px);height:clamp(54px, 9.6vmin, 84px);border-radius:50%;
  display:grid;place-items:center;
  background:var(--cream-2);color:var(--flame-600);
  transition:background .16s,color .16s;
}
.duel-ico svg{width:clamp(29px, 5vmin, 43px);height:clamp(29px, 5vmin, 43px);stroke-width:1.7}
.duel-lbl{
  font-size:clamp(15px, 2.5vmin, 21px);
  font-weight:700;line-height:1.24;color:var(--ink);
  text-align:center;text-wrap:balance;
}
.duel-lbl.hi{font-family:var(--deva);font-weight:600;font-size:clamp(16px, 2.65vmin, 22px)}
.duel-note{
  font-size:13.5px;font-weight:700;color:var(--flame-600);
  font-variant-numeric:tabular-nums;
}
.duel-or{
  align-self:center;
  font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;
  color:var(--soft);padding:0 2px;
  position:relative;
}
.duel-or::before,.duel-or::after{
  content:'';position:absolute;left:50%;width:1px;height:26px;
  background:var(--line-2);
}
.duel-or::before{bottom:calc(100% + 7px)}
.duel-or::after{top:calc(100% + 7px)}

@keyframes cardin{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}

/* Dragging lights up the side you are heading for. Left and right are peers, not yes
   and no, so they take Credifin's two brand colours rather than green/red. */
.duel-side.left {background:rgba(30,111,232,calc(var(--no,0) * .12))}
.duel-side.right{background:rgba(242,92,41,calc(var(--yes,0) * .12))}
.duel-side.left {transform:scale(calc(1 + var(--no,0) * .05))}
.duel-side.right{transform:scale(calc(1 + var(--yes,0) * .05))}
.duel-side.left  .duel-arrow{color:color-mix(in srgb, var(--blue) calc(var(--no,0) * 100%), var(--soft-2))}
.duel-side.right .duel-arrow{color:color-mix(in srgb, var(--flame-500) calc(var(--yes,0) * 100%), var(--soft-2))}
.duel-side.left  .duel-ico{
  background:color-mix(in srgb, var(--blue-50) calc(var(--no,0) * 100%), var(--cream-2));
  color:color-mix(in srgb, var(--blue) calc(var(--no,0) * 100%), var(--flame-600));
}
.duel-side.right .duel-ico{
  background:color-mix(in srgb, var(--flame-100) calc(var(--yes,0) * 100%), var(--cream-2));
}

/* The answer the card is about to commit to, stamped on as it travels. */
.stamp{
  position:absolute;top:14px;z-index:2;
  padding:5px 11px;border-radius:8px;
  font-size:12px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;
  color:#fff;pointer-events:none;
  transition:opacity .1s;
}
.stamp.hi{font-family:var(--deva);text-transform:none;letter-spacing:0;font-size:13px}
.stamp.left {left:14px; background:var(--blue); opacity:var(--no,0);  transform:rotate(-7deg)}
.stamp.right{right:14px;background:var(--flame-600);opacity:var(--yes,0);transform:rotate(7deg)}

.swipe-hint{
  display:flex;align-items:center;justify-content:center;gap:7px;
  padding:16px 0 4px;
  font-size:13px;font-weight:600;color:var(--soft);
}
.swipe-hint.hi{font-family:var(--deva);font-size:14px}
.swipe-hint svg{width:16px;height:16px;opacity:.7;animation:nudge 1.9s ease-in-out infinite}
@keyframes nudge{0%,100%{transform:translateX(-3px)}50%{transform:translateX(3px)}}

/* The two buttons are deliberately the biggest thing on screen — a swipe is invisible. */
.swipe-acts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sbtn{
  min-height:clamp(56px, 8.4vmin, 74px);border-radius:var(--r-lg);
  display:flex;align-items:center;justify-content:center;gap:9px;
  font-size:18px;font-weight:800;
  border:2px solid;
  transition:transform .1s,background .14s;
}
.sbtn svg{width:22px;height:22px}
.sbtn:active{transform:scale(.97)}
.sbtn.left {background:var(--paper);border-color:#D4C9B5;color:var(--ink)}
.sbtn.right{background:var(--flame);border-color:transparent;color:#fff;box-shadow:var(--sh-flame)}
.sbtn .hi{font-family:var(--deva);font-weight:700}
.sbtn-arrow{font-size:19px;font-weight:800;opacity:.75;flex:0 0 auto}
.sbtn{padding:10px 12px;font-size:clamp(15px, 2.3vmin, 20px);line-height:1.2;text-align:center}
.sbtn.left .sbtn-arrow{color:var(--mute)}

@media(hover:hover) and (pointer:fine){
  .sbtn.left:hover{background:var(--cream-2);border-color:var(--graphite)}
  .sbtn.right:hover{filter:brightness(1.07)}
  .duel-side.left:hover {background:var(--blue-50); border-color:rgba(30,111,232,.35)}
  .duel-side.right:hover{background:var(--flame-50);border-color:rgba(242,92,41,.35)}
  .duel-side.left:hover  .duel-arrow{color:var(--blue)}
  .duel-side.right:hover .duel-arrow{color:var(--flame-500)}
}

@media(min-width:780px){
  .deck,.swipe-acts{max-width:clamp(400px, 56vmin, 560px);margin:0 auto;width:100%}
  .duel-arrow{font-size:clamp(19px, 2.6vmin, 24px)}
  .swipe-hint{font-size:clamp(13px, 1.8vmin, 15px)}
  .stamp{font-size:clamp(12px, 1.8vmin, 15px);padding:7px 14px}
}
@media(prefers-reduced-motion:reduce){
  .deck,.deck-ghost,.opts .opt,.res-badge,.sent{animation:none!important}
  .deck-card{transition:none!important}
  .swipe-hint svg,.res-badge.ok::after{animation:none!important}
}




/* One numbered step per row on the "what happens next" card. */
.vrow{
  display:flex;align-items:center;gap:11px;
  padding:13px 0;border-top:1px solid var(--line-2);
}
.vrow:first-of-type{border-top:none}
.vrow-n{
  flex:0 0 auto;width:22px;height:22px;border-radius:50%;
  background:var(--cream-2);color:var(--graphite);display:grid;place-items:center;
  font-size:12px;font-weight:800;
}
.vrow-lbl{flex:1 1 auto;font-size:15px;font-weight:700;color:var(--ink)}
.vrow-lbl.hi{font-family:var(--deva)}


/* ===========================================================================
   DEALER FORM ONLY — the controls the customer form has no use for.
   A multi-select, a state dropdown, a free-text address, and an error that
   says what is wrong with an icon as well as a colour.
   =========================================================================== */

/* ---- multi-select ------------------------------------------------------- */
/* A square mark, not the round one a single-choice row gets. The shape is the
   only thing telling a dealer that this question takes more than one answer
   before they have tapped anything, so it is not a detail. */
.opt.multi .opt-mark{border-radius:7px}
.opt.multi[aria-checked="true"] .opt-mark{border-radius:7px}

/* ---- "Optional" on a label ---------------------------------------------- */
/* Required fields outnumber optional ones, so the rule is inverted from the
   usual asterisk: nothing is marked except the fields that may be left empty.
   A dealer scanning for the shortest way through the form can see it. */
.opt-badge{
  display:inline-block;margin-left:8px;
  font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;
  padding:3px 7px;border-radius:5px;vertical-align:2px;
  background:var(--line-2);color:var(--mute);
}
.opt-badge.hi{font-family:var(--deva);text-transform:none;letter-spacing:0;font-size:11.5px}

/* ---- the state dropdown ------------------------------------------------- */
/* A native <select>. The phone already knows how to show 36 options — a custom
   dropdown would only be a worse version of the one the OS ships, and on a
   cheap Android it is the thing that will not scroll properly. */
.select-wrap{position:relative}
.select-wrap select{
  flex:1;min-width:0;width:100%;
  border:none;background:none;outline:none;
  padding:18px 46px 18px 16px;
  font-family:inherit;font-size:18px;font-weight:700;color:var(--ink);
  border-radius:var(--r-lg);
  appearance:none;-webkit-appearance:none;
  cursor:pointer;
}
.hi .select-wrap select,.select-wrap select:lang(hi){font-family:var(--deva)}
/* An unanswered dropdown reads as a placeholder, not as an answer. The class is
   set by app.js and cleared the moment a state is chosen. */
.select-wrap select.empty{color:#B9BDC8;font-weight:500}
.select-wrap select option{color:var(--ink);font-weight:600}
.select-chev{
  position:absolute;right:14px;top:50%;
  width:20px;height:20px;margin-top:-10px;
  color:var(--mute);pointer-events:none;
  transform:rotate(90deg);
}
.select-chev svg{width:20px;height:20px}

/* ---- the address box ---------------------------------------------------- */
.area-wrap{align-items:stretch}
.area-wrap textarea{
  flex:1;min-width:0;width:100%;resize:vertical;
  border:none;background:none;outline:none;
  padding:16px;min-height:92px;
  font-family:inherit;font-size:17px;font-weight:600;line-height:1.45;color:var(--ink);
}
.hi .area-wrap textarea{font-family:var(--deva)}
.area-wrap textarea::placeholder{color:#B9BDC8;font-weight:500}

/* ---- the error line ----------------------------------------------------- */
/* Colour is never the only signal: the icon carries the same meaning for a
   dealer who cannot tell the red border from the grey one. */
.field-err{align-items:flex-start;gap:7px;line-height:1.35}
.field.bad .field-err{display:flex}
.field-err svg{width:16px;height:16px;flex:0 0 auto;margin-top:1px}
.field.bad .input-wrap{border-color:var(--flame-600);background:#FFFCFB}

/* A 44px minimum on everything a finger has to land on, including the row that
   only looks like a label. */
.input-wrap input,.select-wrap select,.area-wrap textarea{min-height:44px}

/* ---- the answer summary ------------------------------------------------- */
/* Names, not rupees — so it wraps, and it is not tabular. */
.tally-v.sm{
  font-size:13.5px;font-weight:700;letter-spacing:0;
  font-variant-numeric:normal;text-align:right;
  max-width:62%;line-height:1.35;
}
.tally-v.sm.hi{font-family:var(--deva)}

/* ---- the line that says this is not a gate ------------------------------ */
/* On the entry screen, before a language has been chosen, so it carries both. */
.splash-note{
  max-width:34ch;margin:0 auto;text-align:center;
  font-size:clamp(11.5px,1.5vmin,13px);font-weight:600;line-height:1.45;
  color:var(--graphite);
  background:var(--ok-50);border-radius:var(--r-md);
  padding:9px 12px;
}
.splash-note .hi{display:block;font-family:var(--deva)}
.splash-note-en{display:block;color:var(--mute);margin-top:3px}
/* WAS display:none, and that was wrong. This is the one line on the entry
   screen that tells a dealer who has been turned down by three NBFCs that this
   is not a fourth — and it was being hidden on exactly the phones most likely to
   be carrying one, plus every phone held sideways. An iPhone SE is 568px tall.
   It shrinks instead: the sentence still reads, and it still fits. */
@media(max-height:620px){
  .splash-note{
    font-size:11px;line-height:1.35;padding:6px 10px;max-width:40ch;
  }
  .splash-note-en{margin-top:1px}
}
@media(max-height:470px){
  /* Below this there is genuinely no room, and the English half is the half a
     Hindi-first dealer does not need. */
  .splash-note-en{display:none}
}

/* ===========================================================================
   THE TICK, AND THE TWO DOCUMENTS BEHIND IT
   =========================================================================== */

/* A real <input type=checkbox>, moved off screen rather than display:none —
   hidden that way it keeps its focus, its keyboard and its screen-reader role,
   and the square below is only the part you can see. */
.consent{margin:18px 0 4px}
.consent-row{
  display:flex;align-items:flex-start;gap:12px;
  padding:14px;min-height:44px;
  background:var(--paper);border:1.5px solid var(--line);
  border-radius:var(--r-lg);
  cursor:pointer;
  transition:border-color .14s,background .14s;
}
.consent-row input{
  position:absolute;width:1px;height:1px;
  opacity:0;margin:0;pointer-events:none;
}
.consent-box{
  flex:0 0 auto;width:26px;height:26px;border-radius:7px;
  border:2px solid var(--soft-2);
  display:grid;place-items:center;color:transparent;
  transition:all .14s;
}
.consent-box svg{width:16px;height:16px}
.consent-row input:checked ~ .consent-box{
  background:var(--flame-500);border-color:var(--flame-500);color:#fff;
}
.consent-row input:checked ~ .consent-txt{color:var(--ink)}
/* The focus ring belongs on the box the eye is on, not on the hidden input. */
.consent-row input:focus-visible ~ .consent-box{
  outline:3px solid var(--blue);outline-offset:2px;
}
.consent-txt{
  flex:1;min-width:0;
  font-size:13.5px;font-weight:600;line-height:1.5;color:var(--graphite);
}
.consent-txt.hi{font-family:var(--deva);font-size:14.5px}

/* The two document links, inside the sentence. Underlined as well as coloured,
   because a link that is only a colour is not a link to everybody. */
.consent-link{
  display:inline;padding:0;border:none;background:none;
  font:inherit;color:var(--blue);font-weight:800;
  text-decoration:underline;text-underline-offset:2px;
  cursor:pointer;
}
.consent-link.hi{font-family:var(--deva)}
.consent-link:active{color:var(--blue-700)}

.consent-err{
  margin-top:7px;display:none;align-items:flex-start;gap:7px;
  font-size:13.5px;font-weight:700;color:var(--flame-600);line-height:1.35;
}
.consent-err svg{width:16px;height:16px;flex:0 0 auto;margin-top:1px}
.consent.bad .consent-row{border-color:var(--flame-600);background:#FFFCFB}
.consent.bad .consent-box{border-color:var(--flame-600)}
.consent.bad .consent-err{display:flex}

/* On the entry screen, under the chips. */
.splash-legal{
  display:flex;align-items:center;justify-content:center;gap:9px;
  margin-top:10px;font-size:12px;
}
.splash-legal .consent-link{font-weight:700;color:var(--mute);text-decoration-color:var(--soft-2)}

/* ---- the document, over the flow ---------------------------------------- */
/* Covers the pane and the rail both: it is the only thing being read while it
   is open, and a half-covered form behind it is just something to mis-tap. */
.doc{
  position:absolute;inset:0;z-index:60;
  background:var(--cream);
  display:flex;flex-direction:column;
  animation:docin .22s cubic-bezier(.22,1,.36,1) both;
}
@keyframes docin{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){ .doc{animation:none} }

.doc-hdr{
  flex:0 0 auto;display:flex;align-items:center;gap:10px;
  padding:calc(var(--safe-t) + 12px) var(--pad) 12px;
  background:var(--paper);border-bottom:1px solid var(--line);
}
.doc-h{font-size:16px;font-weight:800;color:var(--ink);letter-spacing:-.2px}
.doc-h.hi{font-family:var(--deva);font-size:17px;font-weight:700}

.doc-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:18px var(--pad) 24px}
.doc-ver{
  font-size:11.5px;font-weight:700;color:var(--soft);
  text-transform:uppercase;letter-spacing:.6px;margin-bottom:16px;
}
.doc-sec + .doc-sec{margin-top:20px}
.doc-sh{font-size:15px;font-weight:800;color:var(--ink);margin-bottom:6px}
.doc-sh.hi{font-family:var(--deva);font-size:16px;font-weight:700}
.doc-p{
  font-size:14.5px;font-weight:500;line-height:1.62;color:var(--graphite);
  /* Long-form text, so it gets a readable measure rather than the full width
     of a laptop. */
  max-width:68ch;
}
.doc-p.hi{font-family:var(--deva);font-size:15.5px;line-height:1.75}

.doc-contact{
  margin-top:26px;padding-top:18px;border-top:1px solid var(--line);
}
.doc-tel{
  display:flex;align-items:center;gap:9px;min-height:44px;
  font-size:16px;font-weight:800;color:var(--blue);
  font-variant-numeric:tabular-nums;
}
.doc-tel svg{width:18px;height:18px;flex:0 0 auto}
.doc-foot{font-size:12.5px;font-weight:600;color:var(--mute);margin-top:8px;line-height:1.5}

.doc-act{
  flex:0 0 auto;
  padding:12px var(--pad) calc(var(--safe-b) + 14px);
  background:var(--paper);border-top:1px solid var(--line);
}
