/* ==========================================================================
   Refzone website
   Same design system as the Refzone app: white and violet,
   Sora for headings, Hanken Grotesk for text.
   ========================================================================== */

:root {
  --ink: #17142b;
  --ink-2: #3a3650;
  --slate: #6b6880;
  --slate-2: #9592a6;
  --line: #e7e5ee;
  --line-2: #f0eef5;
  --mist: #f7f6fb;
  --white: #ffffff;

  --violet: #6a44f4;
  --violet-hover: #5a34e4;
  --violet-press: #4c28cf;
  --violet-soft: #f2eeff;
  --violet-soft-2: #e6deff;
  --violet-ink: #4426c8;
  --deep: #22145f;
  --deep-2: #2e1b80;

  --green: #12795a;
  --green-soft: #e6f5ef;
  --amber: #a8620a;
  --amber-soft: #fbf1e1;
  --blue: #2f62d6;
  --blue-soft: #e9f0fd;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow: 0 1px 2px rgba(23, 20, 43, .05), 0 8px 24px -10px rgba(23, 20, 43, .14);
  --shadow-float: 0 1px 2px rgba(23, 20, 43, .06), 0 24px 48px -16px rgba(34, 20, 95, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', 'Hanken Grotesk', system-ui, sans-serif;
  --wrap: 1180px;
  --head: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
a { color: var(--violet-ink); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--violet-soft-2); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section.tight { padding: 72px 0; }
.section.mist { background: var(--mist); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet-ink);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--violet); }
.center .eyebrow::after { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--violet); }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 14px; }
.sec-head p { margin-top: 16px; font-size: 18px; color: var(--slate); }

/* ------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--violet); color: #fff;
  font-weight: 600; font-size: 15.5px; white-space: nowrap;
  cursor: pointer; transition: background .2s, transform .2s var(--ease), box-shadow .2s, color .2s, border-color .2s;
  box-shadow: 0 8px 20px -8px rgba(106, 68, 244, .6);
}
.btn:hover { background: var(--violet-hover); transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(106, 68, 244, .7); }
.btn:active { background: var(--violet-press); transform: translateY(0); }
.btn.line { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.line:hover { border-color: var(--violet); color: var(--violet-ink); }
.btn.white { background: #fff; color: var(--deep); box-shadow: none; }
.btn.white:hover { background: var(--violet-soft); }
.btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .16); }
.btn.sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn.wa { background: #15803d; box-shadow: 0 8px 20px -8px rgba(21, 128, 61, .55); }
.btn.wa:hover { background: #116b33; }
.btn .i { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------- Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); font-weight: 500; font-size: 15px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--violet-ink); background: var(--violet-soft); }
.nav a.active { color: var(--violet-ink); background: var(--violet-soft); }
.head-cta { display: flex; gap: 10px; }
.menu-btn {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  place-items: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  position: relative; transition: transform .3s var(--ease), background .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(106, 68, 244, .16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; left: -200px; bottom: -260px; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(106, 68, 244, .08), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--violet-soft); color: var(--violet-ink);
  font-size: 14px; font-weight: 600;
}
.pill b { background: var(--violet); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); margin: 22px 0 22px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--violet); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em;
  background: var(--violet-soft-2); z-index: -1; border-radius: 4px;
}
.hero .lead { font-size: 19px; color: var(--slate); max-width: 560px; }
.hero .actions { margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; color: var(--slate); font-size: 14.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .i { color: var(--green); width: 18px; height: 18px; }

/* Hero visual: app-like lead tracker */
.hero-visual { position: relative; }
.device {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-float); padding: 22px;
}
.device-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.device-top img { height: 24px; }
.device-top .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--violet-soft); color: var(--violet-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 13px; }
.dev-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dev-kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.dev-kpi small { display: block; color: var(--slate); font-size: 12px; }
.dev-kpi b { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.dev-kpi.v { background: var(--deep); border-color: var(--deep); color: #fff; }
.dev-kpi.v small { color: rgba(255, 255, 255, .7); }
.dev-list { display: grid; gap: 8px; }
.dev-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r); background: var(--mist); }
.dev-row .ic { width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--violet); }
.dev-row .ic .i { width: 18px; height: 18px; }
.dev-row .t { flex: 1; min-width: 0; }
.dev-row .t b { display: block; font-size: 14px; font-weight: 600; }
.dev-row .t small { color: var(--slate); font-size: 12.5px; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag.g { background: var(--green-soft); color: var(--green); }
.tag.a { background: var(--amber-soft); color: var(--amber); }
.tag.b { background: var(--blue-soft); color: var(--blue); }
.tag.v { background: var(--violet-soft); color: var(--violet-ink); }
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float); padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  animation: bob 6s ease-in-out infinite;
}
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.float-card small { display: block; color: var(--slate); font-size: 12.5px; line-height: 1.3; }
.float-card b { font-family: var(--display); font-weight: 600; font-size: 16px; }
.float-card.one { left: -46px; bottom: -52px; }
.float-card.one .ic { background: var(--green-soft); color: var(--green); }
.float-card.two { right: -28px; top: -26px; animation-delay: -3s; }
.float-card.two .ic { background: var(--violet); color: #fff; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ------------------------------------------------------------- Strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 30px 24px; display: flex; align-items: center; gap: 14px; }
.strip-item + .strip-item { border-left: 1px solid var(--line); }
.strip-item .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; flex: none; }
.strip-item b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.strip-item small { color: var(--slate); font-size: 14px; }

/* ------------------------------------------------------------- Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; display: flex; flex-direction: column;
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.svc:hover { border-color: var(--violet-soft-2); transform: translateY(-4px); box-shadow: var(--shadow-float); }
.svc .ic {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet); margin-bottom: 22px;
  transition: background .25s, color .25s;
}
.svc:hover .ic { background: var(--violet); color: #fff; }
.svc .ic .i { width: 26px; height: 26px; }
.svc h3 { font-size: 22px; }
.svc p { color: var(--slate); margin-top: 10px; }
.svc ul { margin-top: 18px; display: grid; gap: 8px; }
.svc li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.svc li .i { width: 17px; height: 17px; color: var(--violet); margin-top: 3px; }
.svc .more { margin-top: auto; padding-top: 22px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.svc .more .i { width: 17px; height: 17px; transition: transform .2s; }
.svc .more:hover .i { transform: translateX(3px); }

/* Service detail blocks (services page) */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.svc-detail:first-child { border-top: 0; padding-top: 0; }
.svc-detail.flip .sd-text { order: 2; }
.sd-text .ic { width: 60px; height: 60px; border-radius: 18px; background: var(--violet); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.sd-text .ic .i { width: 28px; height: 28px; }
.sd-text h2 { font-size: clamp(28px, 3.4vw, 38px); }
.sd-text > p { color: var(--slate); font-size: 17.5px; margin-top: 14px; }
.sd-text .actions { margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); font-size: 14px; font-weight: 600; }
.sd-card { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; }
.sd-card h4 { font-size: 15px; letter-spacing: .02em; color: var(--slate); font-family: var(--font); font-weight: 600; text-transform: uppercase; margin-bottom: 16px; }
.sd-card ul { display: grid; gap: 12px; }
.sd-card li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.sd-card li .n { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--violet-soft); color: var(--violet-ink); display: grid; place-items: center; font-family: var(--display); font-size: 13px; font-weight: 600; }
.sd-card li span { font-size: 15.5px; }

.svc-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.svc-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 15px; transition: all .2s; }
.svc-nav a:hover { border-color: var(--violet); color: var(--violet-ink); }
.svc-nav a .i { width: 18px; height: 18px; color: var(--violet); }

/* ------------------------------------------------------------- Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.step .n {
  width: 44px; height: 44px; border-radius: 14px; background: var(--deep); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 17px; margin-bottom: 20px;
}
.step h3 { font-size: 19px; }
.step p { color: var(--slate); margin-top: 8px; font-size: 15.5px; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 49px; right: -21px; width: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--violet) 0 4px, transparent 4px 8px);
}

/* ------------------------------------------------------------- Dark band */
.band { background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.band::before {
  content: ''; position: absolute; right: -180px; top: -200px; width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(140, 108, 255, .45), transparent 70%);
}
.band::after {
  content: ''; position: absolute; left: -160px; bottom: -260px; width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(106, 68, 244, .35), transparent 70%);
}
.band .wrap { position: relative; z-index: 1; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #c9bbff; }
.band .eyebrow::before, .band .eyebrow::after { background: #a891ff; }
.band .sec-head p { color: rgba(255, 255, 255, .72); }

.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.perk { padding: 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.perk .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #d6caff; display: grid; place-items: center; margin-bottom: 16px; }
.perk h3 { font-size: 18px; }
.perk p { color: rgba(255, 255, 255, .7); font-size: 15px; margin-top: 6px; }

/* ------------------------------------------------------------- Roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.role .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; margin-bottom: 18px; }
.role h3 { font-size: 19px; }
.role p { color: var(--slate); margin-top: 8px; font-size: 15.5px; }

/* ------------------------------------------------------------- Range sliders */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--violet) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--violet); cursor: pointer; box-shadow: 0 2px 8px rgba(106, 68, 244, .4); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--violet); cursor: pointer; }
/* ------------------------------------------------------------- Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team.founders { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 28px; }
.member { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.member .ph { aspect-ratio: 4 / 4.6; background: #2a2a2e; overflow: hidden; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .6s var(--ease); }
.member:hover .ph img { transform: scale(1.04); }
.member .info { padding: 20px 22px 22px; }
.member h3 { font-size: 19px; }
.member .role-t { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--violet-ink); background: var(--violet-soft); border-radius: 999px; padding: 4px 12px; }
.member p { color: var(--slate); font-size: 14.5px; margin-top: 12px; }
.member.soon .ph { background: linear-gradient(160deg, var(--violet-soft), var(--violet-soft-2)); display: grid; place-items: center; }
.member.soon .ph .av { width: 110px; height: 110px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--violet); box-shadow: var(--shadow); }
.member.soon .ph .av .i { width: 44px; height: 44px; stroke-width: 1.5; }
.team-label { text-align: center; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin: 72px 0 28px; }
.team-label:first-child { margin-top: 0; }

/* ------------------------------------------------------------- About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-grid h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 14px; }
.about-grid p { color: var(--slate); font-size: 17.5px; margin-top: 18px; }
.about-art { position: relative; border-radius: var(--r-xl); background: var(--deep); padding: 44px; color: #fff; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; }
.about-art::before { content: ''; position: absolute; right: -100px; top: -100px; width: 380px; height: 380px; background: radial-gradient(closest-side, rgba(140, 108, 255, .55), transparent 70%); }
.about-art img.mark { position: absolute; top: 40px; left: 44px; height: 70px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.about-art blockquote { position: relative; margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.35; letter-spacing: -.02em; font-weight: 500; }
.about-art cite { position: relative; display: block; margin-top: 18px; font-style: normal; color: rgba(255, 255, 255, .7); font-size: 15px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.value .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; margin-bottom: 16px; }
.value h3 { font-size: 18px; }
.value p { color: var(--slate); margin-top: 8px; font-size: 15px; }
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--violet-soft-2); }
.tl { position: relative; padding-bottom: 36px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ''; position: absolute; left: -32px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--violet); }
.tl b { font-family: var(--display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-ink); }
.tl h3 { font-size: 20px; margin-top: 6px; }
.tl p { color: var(--slate); margin-top: 6px; }

/* ------------------------------------------------------------- Page hero */
.page-hero { position: relative; overflow: hidden; padding: 84px 0 76px; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ''; position: absolute; right: -160px; top: -220px; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(106, 68, 244, .14), transparent 70%); }
.page-hero .wrap { position: relative; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--slate); margin-bottom: 18px; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--violet-ink); }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.035em; max-width: 820px; }
.page-hero p { font-size: 19px; color: var(--slate); margin-top: 18px; max-width: 680px; }
.page-hero .actions { margin-top: 30px; }

/* ------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--violet-soft-2); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234426c8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--slate); }

/* ------------------------------------------------------------- Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.c-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 16px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
a.c-card { color: inherit; transition: border-color .2s, transform .2s var(--ease); }
a.c-card:hover { border-color: var(--violet); transform: translateY(-2px); }
.c-card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; flex: none; }
.c-card small { display: block; color: var(--slate); font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.c-card b { display: block; font-weight: 600; font-size: 17px; margin-top: 2px; }
.c-card span { color: var(--slate); font-size: 15px; }
.hours { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.hours td { padding: 5px 0; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--violet-ink); font-weight: 600; }
.hours tr.closed td:last-child { color: var(--slate-2); }
.open-now { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.open-now.on { background: var(--green-soft); color: var(--green); }
.open-now.off { background: var(--line-2); color: var(--slate); }
.open-now::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.form { padding: 36px; border-radius: var(--r-xl); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.form h3 { font-size: 24px; }
.form > p { color: var(--slate); margin-top: 6px; margin-bottom: 26px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-grid .full { grid-column: 1 / -1; }
.f label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.f input, .f select, .f textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--mist); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.f textarea { height: 120px; padding: 14px 16px; resize: vertical; }
.f select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6880' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px var(--violet-soft); }
.f .err { display: none; color: #c23a33; font-size: 13.5px; margin-top: 6px; }
.f.bad input, .f.bad select { border-color: #c23a33; }
.f.bad .err { display: block; }
.form .actions { margin-top: 24px; align-items: center; }
.form .fine { color: var(--slate); font-size: 13.5px; }

.map { margin-top: 32px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--mist); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-card { background: #fff; padding: 20px; }
.map-card img { height: 26px; width: auto; margin-bottom: 12px; }
.map-card p { color: var(--slate); font-size: 14.5px; margin-bottom: 14px; }

/* ------------------------------------------------------------- CTA */
.cta {
  border-radius: var(--r-xl); background: var(--violet); color: #fff; padding: 64px;
  display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::before { content: ''; position: absolute; right: -80px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta::after { content: ''; position: absolute; right: 120px; bottom: -220px; width: 360px; height: 360px; border-radius: 50%; background: rgba(34, 20, 95, .25); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); }
.cta p { color: rgba(255, 255, 255, .82); font-size: 18px; margin-top: 12px; max-width: 560px; }

/* ------------------------------------------------------------- App section */
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.app-grid h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 14px; }
.app-grid > div > p { color: var(--slate); font-size: 17.5px; margin-top: 16px; }
.checks { display: grid; gap: 12px; margin-top: 26px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li .i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green); stroke-width: 2.4; margin-top: 2px; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.platform { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14.5px; }
.platform .i { color: var(--violet); }
.phone {
  width: 300px; margin: 0 auto; border-radius: 42px; background: var(--ink); padding: 12px;
  box-shadow: var(--shadow-float);
}
.phone-screen { border-radius: 32px; background: #fff; overflow: hidden; min-height: 560px; padding: 30px 20px 20px; display: flex; flex-direction: column; }
.phone-screen .notch { width: 90px; height: 24px; border-radius: 20px; background: var(--ink); margin: -18px auto 22px; }
.phone-screen h4 { font-size: 20px; }
.phone-screen > p { color: var(--slate); font-size: 13.5px; margin-top: 4px; }
.ph-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.ph-pick div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 4px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ph-pick div .i { display: block; margin: 0 auto 6px; color: var(--violet); width: 20px; height: 20px; }
.ph-pick div.on { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-ink); }
.ph-progress { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.ph-progress b { font-size: 14px; }
.ph-progress small { display: block; color: var(--slate); font-size: 12px; }
.ph-track { display: flex; gap: 4px; margin-top: 12px; }
.ph-track i { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.ph-track i.on { background: var(--violet); }
.ph-earn { margin-top: auto; border-radius: 14px; background: var(--deep); color: #fff; padding: 16px; }
.ph-earn small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.ph-earn b { display: block; font-family: var(--display); font-size: 24px; font-weight: 600; }

/* ------------------------------------------------------------- Footer */
.site-foot { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 80px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.site-foot img.logo { height: 34px; width: auto; margin-bottom: 18px; }
.site-foot p { font-size: 15px; }
.site-foot h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 0; }
.site-foot ul { display: grid; gap: 10px; }
.site-foot a { color: rgba(255, 255, 255, .72); font-size: 15px; transition: color .2s; }
.site-foot a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.foot-contact .i { color: #a891ff; margin-top: 3px; width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: #15803d; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(21, 128, 61, .6);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .hero .wrap, .partner-grid, .about-grid, .app-grid, .contact-grid, .svc-detail { grid-template-columns: 1fr; gap: 48px; }
  .svc-detail.flip .sd-text { order: 0; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }

}
@media (max-width: 999px) {
  .nav, .head-cta { display: none; }
}
@media (max-width: 920px) {
  .menu-btn { display: grid; }
}
@media (max-width: 999px) {
  .menu-btn { display: grid; }
  .menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: fixed; top: var(--head); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 20px 24px; margin: 0; overflow-y: auto;
  }
  .menu-open .nav a { font-size: 19px; padding: 14px 16px; border-radius: 14px; }
  .menu-open .nav .m-cta { display: grid; gap: 10px; margin-top: 18px; }
}
@media (max-width: 920px) {
  .svc-grid, .roles { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 44px; }
}
.nav .m-cta { display: none; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 72px; }
  .hero .lead { font-size: 17.5px; }
  .svc-grid, .roles, .steps, .perks, .values, .f-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; gap: 14px; }
  .team.founders { grid-template-columns: 1fr 1fr; gap: 14px; }
  .member .info { padding: 14px; }
  .member h3 { font-size: 16px; }
  .member p { display: none; }
  .member .role-t { font-size: 12px; padding: 3px 9px; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip-item { padding: 20px 4px; }
  .strip-item + .strip-item { border-left: 0; border-top: 1px solid var(--line); }
  .float-card.one { left: -8px; bottom: -56px; }
  .float-card.two { right: -6px; top: -30px; }
  .dev-kpi b { font-size: 16px; }
  .form { padding: 26px; }
  .cta { padding: 34px 26px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .map iframe { height: 320px; }
  .sec-head { margin-bottom: 40px; }
  .about-art { padding: 30px; min-height: 320px; }
  .about-art img.mark { left: 30px; top: 30px; }
  .phone { width: 270px; }
}

.team.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; }
@media (max-width: 640px) { .team.three { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   v2 — dynamic content, tools, chat
   ========================================================================== */
.nav a { padding: 8px 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.grow { flex: 1; min-width: 0; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-row .sec-head { margin-bottom: 0; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.line.loading::after { border-color: var(--line); border-top-color: var(--violet); }
@keyframes spin { to { transform: rotate(360deg); } }
.form-msg { margin-top: 18px; padding: 14px 16px; border-radius: var(--r); font-size: 15px; }
.form-msg.ok { background: var(--green-soft); color: var(--green); }
.form-msg.bad { background: #fcebea; color: #c23a33; }

/* Team: member without photo */
.member.no-photo .ph { background: linear-gradient(160deg, var(--violet-soft), var(--violet-soft-2)); display: grid; place-items: center; }
.av-init { width: 120px; height: 120px; border-radius: 50%; background: #fff; color: var(--violet); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 40px; letter-spacing: -.02em; box-shadow: var(--shadow); }

/* Empty states */
.empty-state { text-align: center; max-width: 520px; margin: 0 auto; padding: 56px 24px; border: 1px dashed var(--violet-soft-2); border-radius: var(--r-xl); background: #fff; }
.empty-state .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; margin: 0 auto 18px; }
.empty-state .ic .i { width: 30px; height: 30px; }
.empty-state h3 { font-size: 22px; }
.empty-state p { color: var(--slate); margin: 10px 0 22px; }

/* ------------------------------------------------------------- Leaderboard */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); gap: 2px; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--slate); cursor: pointer; transition: all .2s; }
.tabs button.on { background: #fff; color: var(--violet-ink); box-shadow: 0 1px 3px rgba(23,20,43,.12); }
.lb { max-width: 860px; margin: 0 auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lb-upd { color: var(--slate-2); font-size: 13px; }
.lb-body { display: grid; gap: 10px; }
.lb-row { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.lb-row .rk { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 600; background: var(--mist); color: var(--slate); }
.lb-row.r1 { border-color: #f1d48a; background: linear-gradient(90deg, #fffaf0, #fff); }
.lb-row.r1 .rk { background: #f6c443; color: #5a3d00; }
.lb-row.r2 .rk { background: #d9dce4; color: #3a3f4d; }
.lb-row.r3 .rk { background: #ebc1a0; color: #5e3415; }
.lb-row .nm b { display: block; font-weight: 600; }
.lb-row .nm small { color: var(--slate); font-size: 13px; }
.lb-row .st { text-align: right; min-width: 70px; }
.lb-row .st b { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.1; }
.lb-row .st small { color: var(--slate); font-size: 12px; }
.lb-row .st.c b { color: var(--green); }
.lb-empty { text-align: center; color: var(--slate); padding: 32px 16px; border: 1px dashed var(--line); border-radius: var(--r-lg); background: #fff; }
.lb-card { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-float); }
.lb-card-h { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.lb-card-h > .i { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: #fff4d6; color: #a8620a; }
.lb-card-h b { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; }
.lb-card-h small { color: var(--slate); font-size: 13.5px; }
.lb-compact .lb-top { margin-bottom: 12px; }
.lb-compact .lb-row { padding: 10px 12px; grid-template-columns: 36px 1fr auto; gap: 12px; }
.lb-compact .lb-row .rk { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.lb-compact .lb-row .st.c { display: none; }
.lb-compact .lb-row .st b { font-size: 17px; }
.lb-compact .tabs button { padding: 6px 12px; font-size: 13px; }
.lb-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 15px; }
.lb-more .i { width: 17px; height: 17px; }

/* ------------------------------------------------------------- Projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--violet); color: var(--violet-ink); }
.filters button.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: pointer; text-align: left; padding: 0; transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; }
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.proj .cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.proj .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj:hover .cover img { transform: scale(1.05); }
.proj .badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.proj .badges span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(4px); }
.proj .badges span.on { background: var(--amber-soft); color: var(--amber); }
.proj .badges span.done { background: var(--green-soft); color: var(--green); }
.proj .count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(23,20,43,.72); color: #fff; }
.proj .count .i { width: 14px; height: 14px; }
.proj .body { padding: 18px 20px 20px; }
.proj h3 { font-size: 18.5px; }
.proj .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--slate); font-size: 14px; margin-top: 8px; }
.proj .meta span { display: inline-flex; gap: 6px; align-items: center; }
.proj .meta .i { width: 15px; height: 15px; color: var(--violet); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,10,26,.94); display: grid; grid-template-rows: 1fr auto; padding: 56px 72px 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.lightbox figure img { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; border-radius: 10px; min-height: 0; }
.lightbox figcaption { color: #fff; text-align: center; padding: 14px 0 6px; }
.lightbox figcaption b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; }
.lightbox figcaption span { color: rgba(255,255,255,.7); font-size: 14px; display: block; max-width: 760px; margin: 4px auto 0; }
.lb-x, .lb-nav { position: absolute; border: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-x { top: 14px; right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding-top: 8px; }
.lb-thumbs button { flex: none; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .6; background: none; }
.lb-thumbs button.on { border-color: #fff; opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- Jobs */
.jobs { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.job { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: border-color .2s, box-shadow .2s; }
.job[open] { border-color: var(--violet-soft-2); box-shadow: var(--shadow); }
.job summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; gap: 18px; align-items: center; }
.job summary::-webkit-details-marker { display: none; }
.job .jic { width: 50px; height: 50px; border-radius: 14px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; flex: none; }
.job h3 { font-size: 19px; }
.job .jmeta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.job .jmeta span { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2); }
.job .jmeta span.hl { background: var(--green-soft); color: var(--green); }
.job .jtog { margin-left: auto; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--violet-soft); display: grid; place-items: center; color: var(--violet-ink); transition: transform .3s var(--ease); }
.job[open] .jtog { transform: rotate(45deg); }
.job .jbody { padding: 0 24px 24px 92px; }
.job .jbody h4 { font-family: var(--font); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); margin: 16px 0 8px; font-weight: 600; }
.job .jbody p { white-space: pre-line; color: var(--ink-2); }
.job .jbody .actions { margin-top: 22px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(23,20,43,.55); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: 100%; max-width: 620px; background: #fff; border-radius: var(--r-xl); padding: 34px; box-shadow: var(--shadow-float); animation: pop .3s var(--ease-out); margin: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-card h3 { font-size: 24px; }
.modal-sub { color: var(--violet-ink); font-weight: 600; margin: 4px 0 22px; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.modal .actions { margin-top: 22px; }
.file { display: flex !important; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: var(--r); border: 1px dashed var(--violet-soft-2); background: var(--violet-soft); color: var(--violet-ink); font-weight: 600 !important; font-size: 14.5px !important; cursor: pointer; margin: 0 !important; }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f.bad .file { border-color: #c23a33; }

/* ------------------------------------------------------------- Loan tools */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1; min-width: 80px; border: 1px solid var(--line); background: #fff; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.seg button:hover { border-color: var(--violet); }
.seg button.on { background: var(--violet-soft); border-color: var(--violet); color: var(--violet-ink); }
.sched { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; }
.sched summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 12px; }
.sched summary::-webkit-details-marker { display: none; }
.sched summary .i { color: var(--violet); }
.sched summary::after { content: 'Show'; margin-left: auto; font-size: 14px; color: var(--violet-ink); }
.sched[open] summary::after { content: 'Hide'; }
.sched-chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 0 26px 6px; }
.sched-chart div { flex: 1; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-width: 4px; }
.sched-chart i { display: block; background: var(--violet); }
.sched-chart b { display: block; background: #c9bbff; }
.tbl-wrap { overflow-x: auto; padding: 10px 26px 26px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: right; font-weight: 600; color: var(--slate); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; display: grid; gap: 14px; align-content: start; transition: border-color .2s, box-shadow .2s; }
.offer.best { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.offer-h { display: flex; align-items: center; gap: 8px; }
.offer-name { flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed var(--line); font-family: var(--display); font-weight: 600; font-size: 19px; padding: 4px 0; outline: none; background: transparent; }
.offer-name:focus { border-bottom-color: var(--violet); }
.offer-x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--slate); }
.offer-x .i { width: 16px; height: 16px; }
.offer .f input { height: 46px; }
.offer .f label { font-size: 13.5px; }
.offer .f-grid { gap: 12px; }
.offer-out { margin-top: 4px; border-radius: var(--r-lg); background: var(--mist); padding: 18px; position: relative; }
.oo-emi small { color: var(--slate); font-size: 13px; }
.oo-emi b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.oo-rows { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.oo-rows div { display: flex; justify-content: space-between; gap: 10px; }
.oo-rows span { color: var(--slate); }
.oo-rows .tot { font-weight: 600; }
.oo-rows .tot span { color: var(--ink); }
.offer-badge { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.offer-badge:empty { display: none; }
.offer-badge.best { background: var(--green); color: #fff; }
.offer-badge.more { background: var(--amber-soft); color: var(--amber); }
.cmp-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.cmp-sum { font-size: 16px; color: var(--ink-2); }
.cmp-sum b { color: var(--green); }
.mini-emi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-float); padding: 28px; max-width: 440px; margin: 0 auto; width: 100%; }
.me-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.me-row span { color: var(--slate); }
.me-out { margin: 18px 0; padding: 18px; border-radius: var(--r-lg); background: var(--deep); color: #fff; }
.me-out small { color: rgba(255,255,255,.7); }
.me-out b { display: block; font-family: var(--display); font-size: 32px; font-weight: 600; }
.me-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.me-cmp div { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; position: relative; }
.me-cmp div:first-child { border-color: var(--green); }
.me-cmp small { display: block; color: var(--slate); font-size: 12.5px; }
.me-cmp b { font-family: var(--display); font-weight: 600; }
.me-cmp .tag { position: absolute; top: -10px; right: 10px; }

/* ------------------------------------------------------------- Chat */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  border: 0; background: var(--violet); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(106, 68, 244, .75); transition: transform .25s var(--ease), background .2s;
}
.chat-fab:hover { transform: scale(1.06); background: var(--violet-hover); }
.chat-fab .i { width: 26px; height: 26px; }
.chat-fab .ico-close { display: none; }
.chat-open .chat-fab .ico-open { display: none; }
.chat-open .chat-fab .ico-close { display: grid; }
.chat-hint {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 12px;
  box-shadow: var(--shadow-float); pointer-events: none; animation: hint 8s ease 2s both;
}
.chat-open .chat-hint, .chat-seen .chat-hint { display: none; }
@keyframes hint { 0% { opacity: 0; transform: translate(8px, -50%); } 8%, 85% { opacity: 1; transform: translate(0, -50%); } 100% { opacity: 0; } }
.chat { position: fixed; right: 22px; bottom: 96px; z-index: 95; width: 384px; max-width: calc(100vw - 24px); }
.chat[hidden] { display: none; }
.chat-panel { background: #fff; border-radius: 22px; box-shadow: 0 2px 6px rgba(23,20,43,.08), 0 30px 70px -20px rgba(34,20,95,.45); overflow: hidden; display: flex; flex-direction: column; height: min(600px, calc(100vh - 130px)); animation: pop .3s var(--ease-out); border: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; background: var(--deep); color: #fff; }
.chat-av { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.chat-head b { display: block; font-family: var(--display); font-weight: 600; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); font-size: 12.5px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.chat-dot.off { background: #f5b14c; }
.chat-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--mist); }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-line; word-wrap: break-word; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--violet); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg a { color: var(--violet-ink); text-decoration: underline; }
.msg.me a { color: #fff; }
.msg.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-2); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; }
.msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.handoff { align-self: stretch; background: #fff; border: 1px solid var(--violet-soft-2); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.handoff > b { font-size: 14px; }
.handoff > small { color: var(--slate); font-size: 13px; margin-top: -6px; }
.agent { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--mist); }
.agent .ph { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; position: relative; }
.agent .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.agent .ph::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.agent .t { flex: 1; min-width: 0; }
.agent .t b { display: block; font-size: 14px; }
.agent .t small { color: var(--slate); font-size: 12px; }
.agent a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.agent a .i { width: 17px; height: 17px; }
.agent a.w { background: #15803d; color: #fff; }
.agent a.c { background: #fff; border: 1px solid var(--line); color: var(--violet-ink); }
.cb-form { display: grid; gap: 8px; }
.cb-form input, .cb-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: var(--mist); outline: none; }
.cb-form textarea { resize: none; height: 64px; }
.cb-form input:focus, .cb-form textarea:focus { border-color: var(--violet); background: #fff; }
.cb-form .btn { height: 42px; font-size: 14px; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 0; background: #fff; scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex: none; border: 1px solid var(--violet-soft-2); background: var(--violet-soft); color: var(--violet-ink); font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.chat-quick button:hover { background: var(--violet-soft-2); }
.chat-form { display: flex; gap: 8px; padding: 12px; background: #fff; }
.chat-form input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; background: var(--mist); outline: none; font-size: 15px; }
.chat-form input:focus { border-color: var(--violet); background: #fff; }
.chat-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--violet); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.chat-send .i { width: 19px; height: 19px; }

/* ------------------------------------------------------------- v2 responsive */
@media (max-width: 1080px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .offers { grid-template-columns: 1fr 1fr; }
  .job .jbody { padding-left: 24px; }
}
@media (max-width: 640px) {
  .proj-grid, .offers { grid-template-columns: 1fr; }
  .lb-row { grid-template-columns: 38px 1fr auto; padding: 12px; gap: 10px; }
  .lb-row .st.c { display: none; }
  .lb-row .rk { width: 34px; height: 34px; }
  .lightbox { padding: 56px 8px 12px; }
  .lb-nav { top: auto; bottom: 90px; transform: none; }
  .job summary { padding: 18px; gap: 14px; }
  .job .jic { display: none; }
  .job .jbody { padding: 0 18px 20px; }
  .modal-card { padding: 26px 20px; }
  .chat { right: 8px; left: 8px; bottom: 88px; width: auto; max-width: none; }
  .chat-panel { height: calc(100vh - 110px); height: calc(100dvh - 110px); }
  .chat-fab { right: 16px; bottom: 16px; }
  .chat-hint { display: none; }
  .sec-row { margin-bottom: 28px; }
}
.seg { display: grid; grid-template-columns: repeat(4, 1fr); }
.seg button { min-width: 0; padding: 10px 6px; }

/* ==========================================================================
   v3 — EMI calculator (same as the Refzone app)
   ========================================================================== */
.emi-app { padding-top: 56px; }
.emi-app .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.emi-app .panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.emi-app .panel-h h2 { font-size: 17px; letter-spacing: -.01em; }
.emi-app .panel-b { padding: 20px; }
.emi-app .mt { margin-top: 16px; }
.emi-app .field { margin-bottom: 16px; }
.emi-app .field > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink-2); }
.emi-app .opt { font-weight: 400; color: var(--slate-2); }
.emi-app .hint { font-size: 12.5px; color: var(--slate); margin-top: 5px; }
.emi-app .muted { color: var(--slate); }
.emi-app .small { font-size: 13.5px; }
.emi-app .input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; outline: none; font-size: 15.5px; transition: border-color .2s, box-shadow .2s; font-variant-numeric: tabular-nums; }
.emi-app select.input { appearance: none; -webkit-appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6880' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center/16px no-repeat; cursor: pointer; }
.emi-app .input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.emi-app .row2 { display: flex; gap: 8px; align-items: center; }
.emi-app .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.emi-app input[type=range] { width: 100%; margin-top: 14px; }
.emi-app .btn.sm { height: 38px; font-size: 14px; padding: 0 14px; }
.emi-app .btn .i { width: 17px; height: 17px; }
.emi-app .icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--slate); }
.emi-app .icon-btn:hover { color: #c23a33; border-color: #f2c4c1; }
.emi-app .icon-btn .i { width: 17px; height: 17px; }
.emi-app .alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: 14.5px; }
.emi-app .alert.warn { background: var(--amber-soft); color: #6d4006; }
.emi-app .alert .i { width: 18px; height: 18px; margin-top: 1px; }
.emi-app .tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); }
.emi-app .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); grid-template-columns: none; }
.emi-app .seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--slate); cursor: pointer; min-width: 0; flex: none; }
.emi-app .seg button.on { background: #fff; color: var(--violet-ink); box-shadow: 0 1px 3px rgba(23,20,43,.12); }
.sub-c { font-size: 12.5px; color: var(--slate); }

.emi-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; padding: 5px; border-radius: 16px; background: var(--mist); border: 1px solid var(--line); width: max-content; max-width: 100%; }
.emi-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; color: var(--slate); font-weight: 600; font-size: 14.5px; transition: all .2s; }
.emi-tabs a .i { width: 17px; height: 17px; }
.emi-tabs a:hover { color: var(--ink); }
.emi-tabs a.on { background: #fff; color: var(--violet-ink); box-shadow: 0 1px 3px rgba(23,20,43,.1), 0 4px 14px -6px rgba(106,68,244,.35); }
.emi-tabs a small { font-weight: 500; color: var(--slate-2); font-size: 12px; }
#emi-root.fade-in { animation: emiFade .45s var(--ease-out); }
@keyframes emiFade { from { opacity: 0; transform: translateY(10px); } }

.emi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.emi-words { font-size: 12.5px; color: var(--violet-ink); font-weight: 600; margin-top: 5px; }
.emi-words:empty { display: none; }
.emi-mode { display: flex; flex-wrap: wrap; gap: 6px; }
.emi-mode button { height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 500; font-size: 14px; cursor: pointer; transition: all .2s; }
.emi-mode button:hover { border-color: var(--violet-soft-2); }
.emi-mode button.on { background: var(--violet-soft); border-color: var(--violet); color: var(--violet-ink); font-weight: 600; }
.emi-mode.sm button { height: 34px; font-size: 13px; }
.emi-adv { border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; margin: 4px 0 16px; background: var(--mist); }
.emi-adv summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 13px 0; font-weight: 600; font-size: 14.5px; flex-wrap: wrap; }
.emi-adv summary::-webkit-details-marker { display: none; }
.emi-adv summary .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.emi-adv[open] summary .i { transform: rotate(90deg); }
.emi-adv summary .muted { font-weight: 400; font-size: 12.5px; }
.emi-adv[open] { padding-bottom: 16px; }
.emi-sub { font-size: 14.5px; margin: 6px 0 10px; }
.emi-sub .muted { font-weight: 400; }
.emi-part { display: grid; grid-template-columns: 150px minmax(0, 1fr) 168px 40px; gap: 8px; margin-bottom: 8px; align-items: center; }
.emi-out .panel-b { display: flex; flex-direction: column; gap: 18px; }
.emi-big span { font-size: 13.5px; color: var(--slate); display: block; }
.emi-big b { display: block; font-family: var(--display); font-size: clamp(32px, 4vw, 42px); line-height: 1.15; letter-spacing: -.025em; color: var(--violet-ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.emi-big small { display: block; color: var(--slate); font-size: 13.5px; margin-top: 2px; }
.emi-big.bump b { animation: bump .45s var(--ease-out); }
@keyframes bump { 0% { transform: translateY(6px); opacity: .4; } 100% { transform: none; opacity: 1; } }
.emi-sum { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: center; }
.emi-donut { width: 140px; height: 140px; }
.emi-donut circle { transition: stroke-dasharray .5s var(--ease-out), stroke-dashoffset .5s var(--ease-out); }
.emi-donut .p { stroke: var(--violet); }
.emi-donut .i { stroke: #f2a65a; }
.emi-donut .f { stroke: #9592a6; }
.emi-donut .dn-l { font-size: 10px; fill: var(--slate); }
.emi-donut .dn-v { font-size: 17px; font-weight: 700; fill: var(--ink); font-family: var(--display); }
.emi-kv { display: flex; flex-direction: column; gap: 11px; }
.emi-kv > div { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.emi-kv b { margin-left: auto; font-variant-numeric: tabular-nums; }
.emi-kv .tot { border-top: 1px solid var(--line); padding-top: 11px; font-weight: 600; }
.emi-kv .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.emi-kv .dot.p { background: var(--violet); }
.emi-kv .dot.i { background: #f2a65a; }
.emi-kv .dot.f { background: #9592a6; }
.emi-dates { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.emi-dates > div { padding: 11px 13px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.emi-dates > div + div { border-left: 1px solid var(--line); }
.emi-dates span { font-size: 12px; color: var(--slate); }
.emi-dates b { font-size: 14.5px; }
.emi-save { display: flex; gap: 10px; align-items: flex-start; background: var(--green-soft); border: 1px solid #c6e9da; color: var(--green); border-radius: var(--r); padding: 13px 15px; }
.emi-save .i { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.emi-save b { display: block; color: #0c5c44; }
.emi-save span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.emi-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.emi-acts .btn { height: 44px; padding: 0 18px; font-size: 14.5px; }
.emi-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--slate); flex-wrap: wrap; }
.emi-legend span { display: inline-flex; align-items: center; gap: 6px; }
.emi-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.emi-legend i.p, .emi-bars .p { background: var(--violet); fill: var(--violet); }
.emi-legend i.i, .emi-bars .i { background: #f2a65a; fill: #f2a65a; }
.emi-legend i.x, .emi-bars .x { background: var(--green); fill: var(--green); }
.emi-bars { width: 100%; height: auto; display: block; }
.emi-bars g { transform-box: fill-box; transform-origin: bottom; animation: barUp .6s var(--ease-out) backwards; animation-delay: var(--d, 0s); }
@keyframes barUp { from { transform: scaleY(0); opacity: 0; } }
.emi-bars g:hover rect { opacity: .82; }
.emi-bars text { font-size: 10px; fill: var(--slate); }
.emi-chart-wrap { overflow-x: auto; }
.emi-app .tbl-wrap { overflow-x: auto; padding: 0; }
.etbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.etbl.num td, .etbl.num th { font-variant-numeric: tabular-nums; }
.etbl th { text-align: right; font-weight: 600; color: var(--slate); font-size: 12.5px; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fff; }
.etbl td { text-align: right; padding: 11px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.etbl th:first-child, .etbl td:first-child { text-align: left; }
.emi-tbl { max-height: 560px; overflow: auto; }
.emi-tbl thead th { position: sticky; top: 0; z-index: 1; }
.emi-tbl tr.yr { cursor: pointer; }
.emi-tbl tr.yr:hover td { background: var(--mist); }
.emi-tbl tr.yr .chev .i { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; transition: transform .2s var(--ease); }
.emi-tbl tr.yr[aria-expanded="true"] .chev .i { transform: rotate(90deg); }
.emi-tbl tr.mrow > td { padding: 0 0 8px 24px; background: var(--mist); }
.emi-tbl .inner { background: transparent; font-size: 13px; }
.emi-tbl .inner thead th { position: static; background: transparent; }
.emi-tbl tr.pp td { background: var(--green-soft); }
.emi-pbar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 6px 0 4px; min-width: 60px; }
.emi-pbar i { display: block; height: 100%; background: var(--violet); border-radius: 999px; }
.emi-cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cmp-name { font-family: var(--display); font-weight: 600; font-size: 16px !important; height: 40px !important; border-color: transparent !important; padding: 0 8px !important; margin-left: -8px; }
.cmp-name:hover { border-color: var(--line) !important; }
.cmp-add { min-height: 200px; border: 2px dashed var(--violet-soft-2); border-radius: var(--r-lg); background: var(--violet-soft); color: var(--violet-ink); font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: background .2s; font-size: 15px; }
.cmp-add:hover { background: var(--violet-soft-2); }
.cmp-add .i { width: 26px; height: 26px; }
.cmp-tbl th:first-child { text-align: left; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.cmp-tbl thead th { color: var(--ink); font-size: 14px; }
.cmp-tbl td.best, .cmp-tbl th.best { background: #f3fbf7; }
.cmp-tbl tr.tot td, .cmp-tbl tr.tot th { border-top: 2px solid var(--line); }
.emi-flag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); margin-left: 4px; vertical-align: 1px; }
.emi-flag.ok { background: var(--green); color: #fff; }
.emi-pbar.cost { max-width: 140px; margin-left: auto; }
.emi-share { white-space: pre-wrap; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font-family: var(--font); font-size: 14.5px; line-height: 1.6; margin: 16px 0 0; max-height: 320px; overflow: auto; }
.print-only { display: none; }

@media (max-width: 960px) {
  .emi-grid { grid-template-columns: 1fr; }
  .emi-cmp { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .emi-app { padding-top: 32px; }
  .emi-tabs { width: 100%; }
  .emi-tabs a { flex: 1; justify-content: center; padding: 0 8px; font-size: 14px; }
  .emi-tabs a.emi-tab-app { flex-basis: 100%; height: 36px; font-size: 13px; }
  .emi-app .panel-b { padding: 16px; }
  .emi-app .panel-h { padding: 14px 16px; }
  .emi-app .grid-2 { grid-template-columns: 1fr; }
  .emi-part { grid-template-columns: 1fr 1fr; }
  .emi-part .icon-btn { justify-self: end; }
  .emi-cmp { grid-template-columns: 1fr; }
  .emi-sum { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .emi-donut { width: 112px; height: 112px; }
  .emi-kv > div { font-size: 13.5px; }
  .emi-dates b { font-size: 13px; }
  .emi-bars { min-width: 560px; }
  .emi-acts .btn { flex: 1; }
  .emi-acts .btn:first-child { flex-basis: 100%; }
  .etbl th, .etbl td { padding: 10px 10px; font-size: 13px; }
}
@media (max-width: 380px) {
  .emi-sum { grid-template-columns: 1fr; justify-items: center; }
  .emi-sum .emi-kv { width: 100%; }
}

/* Print / Save as PDF */
@media print {
  @page { margin: 14mm; }
  body { font-size: 12px; }
  .site-head, .site-foot, .chat, .chat-fab, .page-hero, .cta, .no-print, .emi-tabs, .emi-in, .section.mist, .section.tight, #rz-curtain, #rz-splash { display: none !important; }
  .emi-app { padding: 0 !important; }
  .emi-grid { display: block; }
  .emi-app .panel { border: 1px solid #ddd; break-inside: avoid; margin-bottom: 12px; }
  .emi-tbl { max-height: none; overflow: visible; }
  .emi-bars { min-width: 0 !important; }
  .print-only { display: block; }
  .emi-out .panel-b::before { content: 'Refzone — EMI details'; font-family: var(--display); font-weight: 600; font-size: 16px; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
.emi-sticky { display: none; }
@media (max-width: 960px) {
  .emi-sticky { display: flex; position: fixed; left: 12px; right: 88px; bottom: 16px; z-index: 80; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-radius: 16px; background: var(--deep); color: #fff; box-shadow: 0 14px 30px -10px rgba(34,20,95,.6); transform: translateY(140%); opacity: 0; transition: transform .35s var(--ease-out), opacity .25s; pointer-events: none; }
  .emi-sticky.show { transform: none; opacity: 1; pointer-events: auto; }
  .emi-sticky small { display: block; font-size: 11.5px; color: rgba(255,255,255,.7); }
  .emi-sticky b { font-family: var(--display); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .emi-sticky em { font-style: normal; font-size: 13px; font-weight: 600; color: #d6caff; white-space: nowrap; }
}
@media print { .emi-sticky { display: none !important; } }

/* ==========================================================================
   v3 — motion: opening animation, page transitions, logo glow, 3D
   ========================================================================== */

/* ---------- Opening animation (first page of a visit) ---------- */
#rz-splash { display: none; }
.rz-first #rz-splash {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; overflow: hidden;
  background: #fff;
  animation: splashFailsafe 0s linear 4.5s forwards; /* hides itself even if scripts fail */
}
.rz-first:not(.rz-revealed) body { overflow: hidden; }
.sp-bg { position: absolute; inset: -20%; background:
  radial-gradient(40% 40% at 50% 50%, rgba(106,68,244,.16), transparent 70%),
  radial-gradient(30% 30% at 20% 80%, rgba(106,68,244,.08), transparent 70%),
  radial-gradient(30% 30% at 85% 15%, rgba(140,108,255,.10), transparent 70%);
  animation: spBg 3s ease-in-out infinite alternate; }
@keyframes spBg { to { transform: scale(1.08) rotate(2deg); } }
.sp-center { position: relative; display: grid; justify-items: center; gap: 22px; }
.splash-logo { position: relative; display: flex; align-items: flex-start; height: 72px; filter: drop-shadow(0 0 18px rgba(106,68,244,.35)); }
.splash-mark { height: 72px; width: auto; transform-origin: 50% 60%; animation: spMark .8s var(--ease-out) both; }
.splash-ring { position: absolute; left: 22px; top: 32px; width: 1px; height: 1px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(106,68,244,.4); animation: spRing 1.1s ease-out .5s both; }
.splash-ring.r2 { animation-delay: .8s; }
.splash-word { display: block; margin-left: 13px; clip-path: inset(0 100% 0 0); animation: spWord .7s var(--ease-out) .45s forwards; }
.splash-word img { height: 72px; width: auto; transform: translateX(-14px); animation: spWordX .7s var(--ease-out) .45s forwards; }
.sp-tag { font-family: var(--display); font-weight: 500; color: var(--slate); font-size: 15px; letter-spacing: -.01em; opacity: 0; transform: translateY(8px); animation: spTag .6s var(--ease-out) .95s forwards; }
.splash-bar { position: absolute; bottom: 16vh; width: 140px; height: 3px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--violet), #a891ff); transform-origin: left; transform: scaleX(0); animation: spBar 1.15s var(--ease) .15s forwards; box-shadow: 0 0 12px rgba(106,68,244,.7); }
#rz-splash.out { transform: translateY(-100%); transition: transform .85s cubic-bezier(.76,0,.24,1) .05s; }
#rz-splash.out .sp-center { transform: translateY(-40px) scale(.96); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s; }
#rz-splash.gone { display: none !important; }
@keyframes spMark { 0% { opacity: 0; transform: scale(.35) rotate(-14deg); } 60% { opacity: 1; transform: scale(1.07) rotate(2deg); } 100% { transform: none; } }
@keyframes spRing { 0% { box-shadow: 0 0 0 0 rgba(106,68,244,.4); } 100% { box-shadow: 0 0 0 110px rgba(106,68,244,0); } }
@keyframes spWord { to { clip-path: inset(0 0 0 0); } }
@keyframes spWordX { to { transform: none; } }
@keyframes spTag { to { opacity: 1; transform: none; } }
@keyframes spBar { to { transform: scaleX(1); } }
@keyframes splashFailsafe { to { visibility: hidden; pointer-events: none; } }
/* Hold the hero animations until the splash lifts */
.rz-first:not(.rz-revealed) .reveal.in { opacity: 0; transform: perspective(800px) translateY(26px) rotateX(10deg); }
.rz-revealed .hero .reveal.in { transition-duration: 1s; }

/* ---------- Page transitions ---------- */
#rz-curtain {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; pointer-events: none; visibility: hidden;
  background: radial-gradient(60% 50% at 50% 50%, #3a22a8, var(--deep) 70%);
  transform: translateY(100%);
}
#rz-curtain img { height: 64px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(190,170,255,.9)) drop-shadow(0 0 30px rgba(106,68,244,.9)); animation: curtainPulse 1s ease-in-out infinite alternate; }
@keyframes curtainPulse { to { transform: scale(1.08); } }
.rz-leaving #rz-curtain { visibility: visible; transform: none; transition: transform .34s cubic-bezier(.76,0,.24,1); }
.rz-leaving main, .rz-leaving .site-foot { transform: translateY(-24px); opacity: .5; transition: transform .42s cubic-bezier(.76,0,.24,1), opacity .42s; }
.rz-enter #rz-curtain { visibility: visible; transform: none; animation: curtainUp .55s cubic-bezier(.76,0,.24,1) .06s forwards; }
@keyframes curtainUp { to { transform: translateY(-100%); visibility: hidden; } }
.rz-enter main { animation: pageIn .8s var(--ease-out) .12s backwards; }
@keyframes pageIn { from { opacity: 0; transform: translateY(30px); } }

/* ---------- Glowing logo ---------- */
.glow-logo { position: relative; display: inline-block; isolation: isolate; }
.glow-logo img { animation: logoGlow 3.2s ease-in-out infinite alternate; transition: filter .3s; }
.glow-logo:hover img { filter: drop-shadow(0 0 10px rgba(106,68,244,.75)) drop-shadow(0 0 22px rgba(140,108,255,.45)); animation-play-state: paused; }
.glow-logo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(/assets/img/logo-color.png) center / contain no-repeat; mask: url(/assets/img/logo-color.png) center / contain no-repeat;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
  animation: logoSheen 5.5s ease-in-out 1.2s infinite;
}
@keyframes logoGlow { 0% { filter: drop-shadow(0 0 1px rgba(106,68,244,.15)); } 100% { filter: drop-shadow(0 0 7px rgba(106,68,244,.55)) drop-shadow(0 0 16px rgba(140,108,255,.25)); } }
@keyframes logoSheen { 0%, 70% { background-position: 150% 0; } 100% { background-position: -60% 0; } }
.foot-glow { animation: footGlow 3.5s ease-in-out infinite alternate; }
@keyframes footGlow { from { filter: drop-shadow(0 0 2px rgba(168,145,255,.25)); } to { filter: drop-shadow(0 0 10px rgba(168,145,255,.7)) drop-shadow(0 0 22px rgba(106,68,244,.45)); } }

/* ---------- 3D: reveal ---------- */
.reveal { transform: perspective(800px) translateY(26px) rotateX(10deg); transform-origin: 50% 0; }

/* ---------- 3D: hero globe + stage ---------- */
.hero-visual { perspective: 1400px; }
#rz-globe { position: absolute; left: -24%; top: -20%; width: 148%; height: 140%; z-index: 0; pointer-events: none; }
.stage3d { position: relative; z-index: 1; transform-style: preserve-3d; transform: rotateY(calc(-9deg + var(--hx, 0deg))) rotateX(calc(5deg + var(--hy, 0deg))); transition: transform .6s var(--ease-out); }
.stage3d .device { transform: translateZ(0); box-shadow: 0 1px 2px rgba(23,20,43,.06), 30px 40px 80px -30px rgba(34,20,95,.38); }
.stage3d .float-card { transform: translateZ(80px); animation: bob3d 6s ease-in-out infinite; }
.stage3d .float-card.two { transform: translateZ(110px); animation-delay: -3s; }
@keyframes bob3d { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.dev-row { transition: transform .3s var(--ease-out); }
.stage3d:hover .dev-row:nth-child(1) { transform: translateZ(18px); }

/* ---------- 3D: tilt cards ---------- */
.tilt { position: relative; }
.tilt.tilting { transform: perspective(900px) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) !important; transition: transform .1s linear, box-shadow .3s, border-color .25s !important; box-shadow: var(--shadow-float); z-index: 2; }
.tilt-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.55), rgba(255,255,255,0) 50%); mix-blend-mode: overlay; z-index: 3; }
.tilt.tilting .tilt-glare { opacity: 1; }
.band .perk.tilt .tilt-glare { mix-blend-mode: soft-light; }

/* ---------- 3D: inner page hero orb ---------- */
.ph-3d { position: absolute; right: 9%; top: 50%; width: 220px; height: 220px; transform: translateY(-50%); perspective: 900px; pointer-events: none; }
.ph-orb { position: absolute; inset: 40px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #efe9ff 45%, #d9ceff 100%); box-shadow: inset -12px -16px 30px rgba(106,68,244,.25), 0 30px 60px -20px rgba(106,68,244,.55), 0 0 60px rgba(140,108,255,.35); animation: orbFloat 6s ease-in-out infinite; }
.ph-orb img { height: 70px; width: auto; position: relative; z-index: 1; filter: drop-shadow(0 6px 10px rgba(106,68,244,.35)); }
.ph-ring { position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid rgba(106,68,244,.28); transform: rotateX(72deg) rotateZ(0deg); animation: ringSpin 9s linear infinite; }
.ph-ring.r2 { inset: -14px; border-color: rgba(106,68,244,.16); animation-duration: 14s; animation-direction: reverse; transform: rotateX(68deg) rotateY(18deg); }
.ph-ring::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px 3px rgba(106,68,244,.7); }
@keyframes orbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spinY { to { transform: rotateY(360deg); } }
@keyframes ringSpin { to { transform: rotateX(72deg) rotateZ(360deg); } }
.page-hero .wrap { z-index: 1; }

/* About: rotating 3D mark */
.about-art .mark3d { position: absolute; top: 40px; left: 44px; perspective: 600px; }
.about-art .mark3d img.mark { position: static; height: 70px; animation: spinY 8s linear infinite; filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(190,170,255,.8)); }

/* Buttons: soft glow on hover */
.btn:not(.line):not(.white):not(.ghost):hover { box-shadow: 0 12px 30px -8px rgba(106,68,244,.75), 0 0 0 4px rgba(106,68,244,.12); }

@media (max-width: 1080px) {
  .ph-3d { width: 170px; height: 170px; right: 4%; opacity: .9; }
  .ph-orb img { height: 54px; }
  .ph-orb { inset: 30px; }
}
@media (max-width: 760px) {
  .ph-3d { width: 120px; height: 120px; right: -10px; top: 70px; transform: none; opacity: .55; }
  .ph-orb { inset: 22px; }
  .ph-orb img { height: 36px; }
  .stage3d { transform: rotateY(-5deg) rotateX(4deg); }
  .stage3d .float-card, .stage3d .float-card.two { transform: translateZ(40px); }
  #rz-globe { left: -30%; width: 160%; top: -14%; height: 128%; }
  .splash-logo, .splash-mark, .splash-word img { height: 54px; }
  .splash-ring { left: 16px; top: 24px; }
}

/* Reduced motion: keep it calm */
.rz-reduce .reveal, .rz-reduce .rz-first:not(.rz-revealed) .reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .glow-logo img, .glow-logo::after, .foot-glow, .ph-orb, .ph-orb img, .ph-ring, .about-art .mark3d img.mark, .stage3d .float-card, .sp-bg, #rz-curtain img { animation: none !important; }
  .rz-enter #rz-curtain { animation-duration: .01s; }
  .rz-enter main { animation: none; }
  .splash-mark, .splash-word, .splash-word img, .sp-tag, .splash-bar i { animation-duration: .01s !important; animation-delay: 0s !important; }
}
@media print { #rz-splash, #rz-curtain, .ph-3d, #rz-globe { display: none !important; } }
/* Mark sways in 3D instead of turning edge-on */
@keyframes swayY { 0%, 100% { transform: rotateY(-38deg) rotateX(6deg); } 50% { transform: rotateY(38deg) rotateX(-6deg); } }
/* Never let animations or 3D transforms create sideways scrolling on phones */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.reveal { transform: perspective(900px) translateY(24px) rotateX(6deg); }
.rz-first:not(.rz-revealed) .reveal.in { transform: perspective(900px) translateY(24px) rotateX(6deg); }
/* ---------- Mobile polish ---------- */
@media (max-width: 640px) {
  .hero .actions .btn, .page-hero .actions .btn, .cta .actions .btn, .band .actions .btn, .app-grid .actions .btn { flex: 1 1 100%; }
  .hero-meta { gap: 10px 18px; }
  .team.three > :last-child:nth-child(odd), .team.founders > :last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
  .ph-3d { width: 84px; height: 84px; top: 14px; right: 8px; opacity: .6; }
  .ph-orb { inset: 14px; }
  .ph-orb img { height: 26px; }
  .ph-ring.r2 { inset: -6px; }
  .page-hero { padding: 64px 0 56px; }
  .sec-head h2 { font-size: 28px; }
  .lb-card { padding: 20px; }
  .lb-top { gap: 8px; }
  .tabs button { padding: 7px 12px; }
  .float-card { padding: 10px 12px; }
  .float-card b { font-size: 14px; }
  .float-card .ic { width: 34px; height: 34px; }
}
@media (min-width: 641px) and (max-width: 1080px) {
  .hero { padding-top: 48px; }
  .hero-visual { max-width: 560px; }
}
/* Mobile menu: the header's blur would trap the fixed menu panel, so drop it while open */
.menu-open .site-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
.menu-open .nav a { opacity: 0; transform: translateY(10px); animation: menuIn .35s var(--ease-out) forwards; }
.menu-open .nav a:nth-child(2) { animation-delay: .03s; } .menu-open .nav a:nth-child(3) { animation-delay: .06s; }
.menu-open .nav a:nth-child(4) { animation-delay: .09s; } .menu-open .nav a:nth-child(5) { animation-delay: .12s; }
.menu-open .nav a:nth-child(6) { animation-delay: .15s; } .menu-open .nav a:nth-child(7) { animation-delay: .18s; }
.menu-open .nav .m-cta a { animation-delay: .22s; }
@keyframes menuIn { to { opacity: 1; transform: none; } }
.menu-open .chat-fab { display: none; }
.nav .m-cta .btn { color: #fff; background: var(--violet); justify-content: center; }
.nav .m-cta .btn.line { color: var(--ink); background: #fff; }

/* ==========================================================================
   v4 — QA fixes
   ========================================================================== */
/* Forms never grow wider than the screen (long file names, small phones) */
.f, .f-grid > *, .emi-app .field { min-width: 0; }
.file span { min-width: 0; flex: 1; }
.modal-card { max-width: min(620px, 100%); }
@media (max-width: 380px) {
  .modal { padding: 10px; }
  .modal-card { padding: 22px 16px; border-radius: 20px; }
  .modal-card h3 { font-size: 21px; padding-right: 40px; }
}
/* Hero image sits below the text on tablets and phones without covering it */
@media (max-width: 1080px) { .hero-visual { margin-top: 36px; } }
@media (max-width: 640px) { .hero-visual { margin-top: 44px; } }
/* Bigger tap targets */
.lb-more { padding: 10px 0; margin-top: 6px; }
.crumbs a { padding: 6px 0; }
/* Loan comparison fits on phones */
@media (max-width: 640px) {
  .cmp-add { min-height: 84px; flex-direction: row; }
  .cmp-tbl th, .cmp-tbl td { white-space: normal; padding: 10px 8px; font-size: 13px; }
  .cmp-tbl th:first-child { width: 34%; }
  .cmp-tbl .emi-flag { display: block; width: max-content; margin: 4px 0 0 auto; }
  .emi-pbar.cost { max-width: none; }
}

/* ==========================================================================
   v5 — fixes: logo orb, breadcrumb, map, WhatsApp
   ========================================================================== */
/* Breadcrumb: keep "Home" and the page name on one line */
.crumbs { align-items: center; }
.crumbs a { display: inline-block; padding: 6px 0; }

/* Logo orb: the mark always faces forward (no twisting); light moves over the glass instead */
.ph-orb { overflow: hidden; }
.ph-orb img { animation: orbLogo 4.5s ease-in-out infinite !important; transform: none; filter: drop-shadow(0 6px 12px rgba(106,68,244,.35)); }
.ph-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 46%, transparent 60%); background-size: 260% 100%; animation: orbShine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes orbLogo { 0%, 100% { transform: translateY(2px) scale(1); } 50% { transform: translateY(-3px) scale(1.06); } }
@keyframes orbShine { 0%, 40% { background-position: 140% 0; } 100% { background-position: -60% 0; } }
.about-art .mark3d img.mark { animation: markGlow 3.5s ease-in-out infinite alternate !important; }
@keyframes markGlow { from { transform: translateY(0); filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(190,170,255,.5)); } to { transform: translateY(-6px); filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(190,170,255,.95)); } }

/* Map: address card beside the map, never on top of Google's own controls */
.map-wrap { margin-top: 32px; display: grid; grid-template-columns: 340px 1fr; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map-wrap .map-card { position: static; max-width: none; box-shadow: none; border-radius: 0; padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-right: 1px solid var(--line); }
.map-wrap .map-card img { height: 30px; width: auto; margin-bottom: 14px; }
.map-wrap .map-card p { color: var(--slate); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.map-wrap .map-card p b { color: var(--ink); }
.map-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.map-wrap .map { margin: 0; border: 0; border-radius: 0; min-height: 420px; }
.map-wrap .map iframe { height: 100%; min-height: 420px; }
@media (max-width: 860px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-wrap .map-card { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .map-wrap .map, .map-wrap .map iframe { min-height: 320px; }
}

/* WhatsApp */
.wa-ic { background: #e5f6ec !important; color: #15803d !important; }
.btn.wa .i { stroke: #fff; }
.f-wa .i { color: #4ade80 !important; }
.f-wa span:first-child { color: rgba(255,255,255,.55); }
.c-wa:hover { border-color: #15803d !important; }
.agent a.w .i { stroke: #fff; }
.cta .actions .btn.wa { box-shadow: none; }

/* Job poster modal */
.poster-card { max-width: min(600px, 100%); }
.poster-fmt { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); margin-bottom: 14px; }
.poster-fmt button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--slate); cursor: pointer; }
.poster-fmt button.on { background: #fff; color: var(--violet-ink); box-shadow: 0 1px 3px rgba(23,20,43,.12); }
.poster-prev { position: relative; background: var(--mist); border-radius: var(--r-lg); display: grid; place-items: center; padding: 12px; min-height: 260px; }
.poster-prev img { max-height: 54vh; width: auto; max-width: 100%; border-radius: 10px; box-shadow: 0 14px 34px -12px rgba(34,20,95,.5); transition: opacity .2s; }
.poster-wait { position: absolute; font-weight: 600; color: var(--violet-ink); }
.poster-card .actions { margin-top: 16px; }
.poster-note { font-size: 13.5px; color: var(--slate); margin-top: 12px; }
@media (max-width: 640px) {
  .poster-card .actions .btn { flex: 1 1 100%; }
  .poster-fmt button { padding: 7px 10px; font-size: 12.5px; }
  .poster-prev img { max-height: 46vh; }
}
.map-wrap .map-card img { align-self: flex-start; width: auto; max-width: 160px; object-fit: contain; }
.map-wrap .map-card .btn { align-self: flex-start; }

/* ==========================================================================
   v6 — header/footer polish
   ========================================================================== */
/* Full menu fits from 1000px: tighten spacing on small laptops */
@media (min-width: 1000px) and (max-width: 1180px) {
  .site-head .wrap { gap: 16px; }
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .head-cta .btn { padding: 0 14px; }
}
/* Footer bottom line never sits under the chat button */
.foot-bottom { padding-right: 96px; }
@media (max-width: 640px) {
  .foot-bottom { padding: 20px 0 92px; flex-direction: column; gap: 6px; }
}
.site-foot ul a { display: inline-block; padding: 2px 0; }
.foot-contact li a, .foot-contact li span { line-height: 1.55; }
/* Without JavaScript nothing animates in, so show everything straight away */
html:not(.rz-js) .reveal { opacity: 1 !important; transform: none !important; }
.rz-reduce #rz-splash.out { transition: opacity .2s; transform: none; opacity: 0; }
/* Back to top */
.to-top { position: fixed; right: 30px; bottom: 96px; z-index: 85; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--violet-ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease-out), border-color .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--violet); }
.chat-open .to-top, .menu-open .to-top { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .to-top { right: 24px; bottom: 86px; width: 40px; height: 40px; } }
@media print { .to-top { display: none !important; } }

/* ==========================================================================
   v8 — usability & readability
   ========================================================================== */
/* No zoom-in on iPhone when tapping a field (needs 16px text) */
.chat-form input, .cb-form input, .cb-form textarea, .emi-app .input, .offer .f input, .f input, .f select, .f textarea { font-size: 16px; }
/* Readable text */
.tag.a { color: #8f5208; }
.lb-upd, .emi-app .opt, .emi-tabs a small, .range-ends { color: var(--slate); }
.cta p { color: rgba(255,255,255,.95); }
.foot-h { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 0; font-family: var(--display); font-weight: 600; }
.sd-card .sd-h { font-size: 15px; letter-spacing: .02em; color: var(--slate); font-family: var(--font); font-weight: 600; text-transform: uppercase; margin-bottom: 16px; }
/* Job application: thank-you view */
.apply-done { text-align: center; padding: 20px 6px 6px; }
.apply-done .ok-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.apply-done .ok-ic .i { width: 30px; height: 30px; stroke-width: 2.4; }
.apply-done h3 { font-size: 22px; }
.apply-done p { color: var(--slate); margin: 8px 0 20px; }
.apply-done .actions { justify-content: center; }
.form-msg:focus { outline: 2px solid var(--green); outline-offset: 2px; }

/* Team: the middle person of the core team stays in the centre */
.team.three.has-mid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .team.three.has-mid > :last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
  .team.three.has-mid .member.mid { order: -1; grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
  .team.three.has-mid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 340px) {
  .team, .team.founders, .team.three, .team.three.has-mid { grid-template-columns: 1fr; }
  .team .member, .team.three.has-mid .member.mid, .team.founders > :last-child:nth-child(odd), .team.three > :last-child:nth-child(odd) { width: 100%; max-width: 300px; justify-self: center; grid-column: auto; }
}
@media (max-width: 640px) { .member .role-t { border-radius: 8px; line-height: 1.35; } }

/* Team rows: co-founders → CEO → directors */
.team.solo { grid-template-columns: minmax(0, 340px); justify-content: center; }
.team.founders + .team-label, .team.solo + .team-label { margin-top: 56px; }
@media (max-width: 640px) {
  .team.solo { grid-template-columns: 1fr 1fr; }
  .team.solo > .member { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
  .team.founders + .team-label, .team.solo + .team-label { margin-top: 40px; }
}
@media (max-width: 340px) { .team.solo { grid-template-columns: 1fr; } .team.solo > .member { width: 100%; max-width: 300px; } }
