/* =========================================================
   RE UP CAPITAL — Design System (Light)
   Brand: paper white · ink · signal green
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --paper:      #f3f6ee;   /* page background */
  --paper-2:    #ffffff;   /* raised surface */
  --surface:    #ffffffcc;
  --surface-2:  #ffffff;
  --line:       #1a2b0f14;
  --line-strong:#1a2b0f24;

  --ink:        #16210f;   /* primary text */
  --muted:      #5a6a52;
  --muted-2:    #90a088;

  --green:      #5f9e2b;   /* brand olive-green, readable on white */
  --green-deep: #46791d;
  --green-bright:#7cc242;
  --lime:       #8fd23c;
  --green-soft: #5f9e2b16;

  --track:      #1a2b0f16; /* slider unfilled */

  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1180px;
  --ease:       cubic-bezier(.22,.61,.36,1);

  --shadow:     0 26px 60px -30px #2c4a1c40;
  --shadow-sm:  0 12px 30px -18px #2c4a1c40;
  --glow:       0 14px 34px -12px #5f9e2b80;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
ul { list-style: none; }

/* ---------- Ambient aurora background ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(680px 460px at 72% 94%, #7cc2421f, transparent 60%),
    linear-gradient(180deg, #f7faf2, var(--paper));
}
.bg-fx::before, .bg-fx::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(74px); will-change: transform;
}
.bg-fx::before {
  width: 56vw; height: 56vw; left: -10vw; top: -14vw; opacity: .6;
  background: radial-gradient(circle, #7cc2425e, transparent 66%);
  animation: aur1 24s ease-in-out infinite alternate;
}
.bg-fx::after {
  width: 50vw; height: 50vw; right: -8vw; top: 22vh; opacity: .5;
  background: radial-gradient(circle, #a8ea4f4a, transparent 66%);
  animation: aur2 30s ease-in-out infinite alternate;
}
@keyframes aur1 { to { transform: translate(16vw, 10vh) scale(1.18); } }
@keyframes aur2 { to { transform: translate(-14vw, -8vh) scale(1.14); } }

/* ---------- WebGL 3D layer ---------- */
#webgl { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease); }
#webgl.ready { opacity: 1; }

/* ---------- Cinematic intro (light · logo pop) ---------- */
.curtain { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(780px 540px at 50% 44%, #e9f6d4, #f3f6ee 72%);
  transform-origin: 50% 46%;
  animation: curtainOut .9s cubic-bezier(.7,0,.2,1) 1.6s forwards; }
.curtain-logo { position: relative; display: flex; align-items: center; gap: clamp(12px,2.4vw,22px);
  transform: scale(.55); opacity: 0; animation: logoPop 1.05s cubic-bezier(.18,.9,.26,1.4) .12s forwards; }
.curtain-logo .logo-mark { gap: clamp(4px,.9vw,8px); }
.curtain-logo .logo-mark span { width: clamp(46px,7.5vw,74px); height: clamp(5px,1vw,9px);
  background: linear-gradient(90deg, var(--green), var(--lime)); border-radius: 3px;
  box-shadow: 0 0 22px #7cc24266; transform-origin: left; animation: barGrow .6s var(--ease) backwards; }
.curtain-logo .logo-mark span:nth-child(2){ width: clamp(32px,5.2vw,52px); }
.curtain-logo .logo-mark span:nth-child(1){ animation-delay:.26s }
.curtain-logo .logo-mark span:nth-child(2){ animation-delay:.38s }
.curtain-logo .logo-mark span:nth-child(3){ animation-delay:.50s }
.curtain-logo .logo-text { color: var(--ink); font-size: clamp(2.6rem,10vw,4.6rem); letter-spacing: .05em; line-height: .9; }
.curtain-logo .logo-text small { font-size: clamp(.72rem,1.7vw,1.05rem); letter-spacing: .5em; color: var(--green-deep); margin-top: 12px; }
.curtain-logo::after { content: ""; position: absolute; top: -25%; left: -75%; width: 48%; height: 150%;
  background: linear-gradient(100deg, transparent, #ffffffe0, transparent); transform: skewX(-16deg);
  opacity: 0; animation: sheen 1.1s ease 1s forwards; }
.curtain-load { position: absolute; bottom: 16%; left: 50%; transform: translateX(-50%);
  width: clamp(120px,20vw,200px); height: 3px; background: #1a2b0f16; border-radius: 3px; overflow: hidden; }
.curtain-load i { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--green), var(--lime));
  animation: loadBar 1.3s var(--ease) .2s forwards; }
@keyframes logoPop { 0%{opacity:0;transform:scale(.55)} 55%{opacity:1} 100%{opacity:1;transform:scale(1)} }
@keyframes curtainOut { to { opacity: 0; transform: scale(1.16); visibility: hidden; } }
@keyframes barGrow { from { transform: scaleX(0); opacity: 0; } }
@keyframes sheen { 0%{left:-75%;opacity:0} 25%{opacity:.85} 100%{left:135%;opacity:0} }
@keyframes loadBar { to { width: 100%; } }
body.loaded .curtain { pointer-events: none; }

/* ---------- Scroll progress bar ---------- */
#scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 350;
  background: linear-gradient(90deg, var(--green), var(--lime)); box-shadow: 0 0 12px #7cc24299; transition: width .1s linear; }

/* ---------- Custom cursor ---------- */
@media (pointer: fine) {
  .cursor-ring { position: fixed; top: 0; left: 0; width: 34px; height: 34px; z-index: 360;
    border: 1.5px solid #5f9e2b99; border-radius: 50%; transform: translate(-50%,-50%);
    pointer-events: none; transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s, opacity .3s; }
  .cursor-dot { position: fixed; top: 0; left: 0; width: 6px; height: 6px; z-index: 361;
    background: var(--green); border-radius: 50%; transform: translate(-50%,-50%); pointer-events: none; }
  .cursor-ring.hot { width: 58px; height: 58px; background: #7cc2421c; border-color: var(--green); }
  .cursor-ring.hide, .cursor-dot.hide { opacity: 0; }
}

/* ---------- Cinematic reveal handoff ----------
   When GSAP drives animation we let it fully control .reveal.
   Base CSS keeps them hidden; the IO fallback (no GSAP) adds .in. */
html.gsap .reveal { transition: none; }

/* 3D tilt surfaces */
.tilt { will-change: transform; transform-style: preserve-3d; }
.btn.mag { will-change: transform; }

/* Reduced motion: show everything, kill transforms */
@media (prefers-reduced-motion: reduce) {
  #webgl, .curtain, .cursor-ring, .cursor-dot { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  * { animation-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 78px 0; }
.section-sm { padding: 50px 0; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.35rem; }
p  { color: var(--muted); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--green-deep);
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 100px;
  background: #ffffffaa; backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green); }
.grad { background: linear-gradient(115deg, var(--ink) 8%, var(--green) 62%, var(--green-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }
.lead { font-size: 1.15rem; max-width: 620px; color: var(--muted); }
.section-head { max-width: 660px; margin: 0 auto 44px; }
.section-head.center { text-align: center; }
.section-head h2 { margin: 18px 0 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600;
  padding: 15px 28px; border-radius: 100px; transition: .3s var(--ease);
  font-size: .98rem; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(100deg, var(--green-bright), var(--green));
  color: #fff; box-shadow: var(--glow); position: relative; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px #5f9e2bcc; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink);
  background: #ffffffcc; backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: .35s var(--ease); }
.nav-inner { display: flex; align-items: center; justify-content: space-between;
  height: 74px; margin: 14px auto 0; max-width: var(--maxw); padding: 0 18px;
  border: 1px solid var(--line); border-radius: 100px;
  background: #ffffffb0; backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-sm); transition: .35s var(--ease); }
.nav.scrolled .nav-inner { background: #ffffffee; border-color: var(--line-strong); box-shadow: var(--shadow); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .93rem; color: var(--muted); font-weight: 500; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--green); border-radius: 2px; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-strong); flex-direction: column; gap: 5px;
  align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: .3s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: 'Space Grotesk', sans-serif; }
.logo-mark { display: flex; flex-direction: column; gap: 3px; }
.logo-mark span { width: 24px; height: 3px; background: var(--green); border-radius: 2px; }
.logo-mark span:nth-child(2) { width: 17px; }
.logo-text { font-weight: 700; font-size: 1.24rem; letter-spacing: .04em; line-height: 1; color: var(--ink); }
.logo-text small { display: block; font-size: .6rem; letter-spacing: .42em;
  color: var(--muted-2); font-weight: 500; margin-top: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 72px; text-align: center; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin: 26px auto 22px; max-width: 15ch; }
.hero .lead { margin: 0 auto 38px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: .86rem; color: var(--muted); display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--green); }

/* floating dashboard mock */
.hero-visual { margin: 46px auto 0; max-width: 940px; position: relative; z-index: 2; }
.dash { border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f4f8ee);
  box-shadow: var(--shadow); transform: perspective(1600px) rotateX(9deg); transform-origin: center top; }
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfdf8; }
.dash-bar i { width: 11px; height: 11px; border-radius: 50%; background: #00000018; display: block; }
.dash-bar i:first-child { background: #ff5f56aa; }
.dash-bar i:nth-child(2) { background: #ffbd2eaa; }
.dash-bar i:nth-child(3) { background: #27c93faa; }
.dash-bar b { margin-left: 12px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.dash-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; padding: 24px; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); }
.dash-card .lbl { font-size: .74rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .12em; }
.dash-card .big { font-family: 'Space Grotesk'; font-size: 2rem; font-weight: 700; margin-top: 6px; color: var(--ink); }
.dash-card .big.green { color: var(--green); }
.dash-approve { display: flex; align-items: center; gap: 12px; margin-top: 16px;
  padding: 12px 14px; background: var(--green-soft); border: 1px solid #5f9e2b33; border-radius: 12px; }
.dash-approve .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; color: #fff; flex: none; }
.dash-approve .dot svg { width: 18px; height: 18px; }
.dash-approve b { color: var(--ink); }
.dash-approve small { display: block; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 14px; }
.spark i { flex: 1; background: linear-gradient(180deg, var(--green-bright), #7cc24244);
  border-radius: 4px 4px 0 0; animation: grow 1.2s var(--ease) backwards; }
@keyframes grow { from { height: 0; opacity: 0; } }

/* ---------- Trust ---------- */
.trust { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust p { text-align: center; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 34px 54px; justify-content: center; align-items: center; opacity: .9; }
.trust-row span { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.15rem; color: var(--muted-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 34px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); box-shadow: var(--shadow-sm); }
.stat .num { font-family: 'Space Grotesk'; font-size: clamp(2.2rem,4vw,3rem); font-weight: 700; color: var(--green); line-height: 1; }
.stat .lbl { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
  padding: 30px; transition: .35s var(--ease); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-6px); border-color: #5f9e2b55; box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: .35s;
  background: radial-gradient(400px 200px at var(--mx,50%) 0%, #7cc2421f, transparent 70%); }
.card:hover::after { opacity: 1; }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid #5f9e2b33; color: var(--green); margin-bottom: 20px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; }

/* ---------- Rotating word (hero) ---------- */
.rotator { display: inline-grid; position: relative; vertical-align: bottom; overflow: hidden;
  height: 1.18em; line-height: 1.1; text-align: center; padding: 0 .08em; }
.rotator span { grid-area: 1 / 1; white-space: nowrap; justify-self: center;
  background: linear-gradient(115deg, var(--green-deep), var(--green-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(100%); animation: rotWord 12s infinite; }
.rotator span:nth-child(1){ animation-delay: 0s; }
.rotator span:nth-child(2){ animation-delay: 2.4s; }
.rotator span:nth-child(3){ animation-delay: 4.8s; }
.rotator span:nth-child(4){ animation-delay: 7.2s; }
.rotator span:nth-child(5){ animation-delay: 9.6s; }
@keyframes rotWord {
  0%   { opacity: 0; transform: translateY(100%); }
  4%   { opacity: 1; transform: translateY(0); }
  16%  { opacity: 1; transform: translateY(0); }
  20%  { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; transform: translateY(-100%); }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 34px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); box-shadow: var(--shadow-sm); }
.step .n { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1rem; width: 44px; height: 44px;
  border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--green); margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: stretch; }
.calc-panel { border: 1px solid var(--line-strong); border-radius: 24px; padding: 36px;
  background: #fff; box-shadow: var(--shadow); }
.calc-field { margin-bottom: 30px; }
.calc-field .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.calc-field label { font-size: .92rem; color: var(--muted); font-weight: 500; }
.calc-field .val { font-family: 'Space Grotesk'; font-size: 1.5rem; font-weight: 700; color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 6px; background: var(--track); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); cursor: pointer; border: 4px solid #fff; box-shadow: 0 0 0 1px #5f9e2b, 0 6px 16px -4px #5f9e2baa; transition: .2s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--green);
  cursor: pointer; border: 4px solid #fff; box-shadow: 0 0 0 1px #5f9e2b; }
.calc-result { border: 1px solid #5f9e2b33; border-radius: 24px; padding: 36px;
  background: radial-gradient(500px 300px at 80% -10%, #7cc2422a, transparent 60%), #fbfdf7;
  display: flex; flex-direction: column; box-shadow: var(--shadow); }
.calc-result .tag { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-deep); }
.calc-amount { font-family: 'Space Grotesk'; font-size: clamp(2.8rem,6vw,3.8rem); font-weight: 700; line-height: 1; margin: 8px 0 24px; }
.calc-lines { display: grid; gap: 2px; margin-top: auto; }
.calc-line { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--line); }
.calc-line span { color: var(--muted); font-size: .95rem; }
.calc-line b { font-family: 'Space Grotesk'; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.calc-line b.green { color: var(--green); }
.calc-disclaimer { font-size: .78rem; color: var(--muted-2); margin-top: 22px; }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px 22px;
  background: var(--surface-2); transition: .3s var(--ease); box-shadow: var(--shadow-sm); }
.ind:hover { transform: translateY(-5px); border-color: #5f9e2b55; box-shadow: var(--shadow); }
.ind .ico { color: var(--green); margin-bottom: 14px; }
.ind .ico svg { width: 30px; height: 30px; }
.ind h4 { font-size: 1.05rem; font-family: 'Space Grotesk'; color: var(--ink); }
.ind p { font-size: .85rem; margin-top: 6px; }

/* ---------- Ticker ---------- */
.ticker-wrap { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker { display: flex; gap: 16px; width: max-content; animation: scrollX 40s linear infinite; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.tick { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border: 1px solid var(--line);
  border-radius: 100px; background: #fff; white-space: nowrap; box-shadow: var(--shadow-sm); }
.tick .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; flex: none; }
.tick b { color: var(--green-deep); font-family: 'Space Grotesk'; }
.tick small { color: var(--muted-2); }
@keyframes scrollX { to { transform: translateX(-50%); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Testimonials ---------- */
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--green); letter-spacing: 3px; margin-bottom: 14px; }
.quote p { color: var(--ink); font-size: 1.02rem; }
.quote .by { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--green-bright),var(--green));
  display: grid; place-items: center; font-family: 'Space Grotesk'; font-weight: 700; color: #fff; }
.quote .by div b { display: block; font-size: .95rem; color: var(--ink); }
.quote .by div small { color: var(--muted-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px;
  background: var(--surface-2); overflow: hidden; transition: .3s; box-shadow: var(--shadow-sm); }
.faq-item.open { border-color: #5f9e2b55; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; font-family: 'Space Grotesk'; font-weight: 600; font-size: 1.08rem; width: 100%; text-align: left; color: var(--ink); }
.faq-q .plus { flex: none; width: 26px; height: 26px; position: relative; transition: .3s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--green);
  border-radius: 2px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.faq-q .plus::before { width: 14px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 14px; transition: .3s; }
.faq-item.open .plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { padding: 0 26px 24px; font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid #5f9e2b33; border-radius: 28px; padding: 52px 36px; text-align: center;
  background: radial-gradient(700px 340px at 50% -20%, #7cc2422e, transparent 60%), linear-gradient(180deg,#ffffff,#f2f7ea);
  box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 520px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; margin-top: 40px; background: #fbfdf8; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo { margin-bottom: 16px; }
.footer p { font-size: .92rem; max-width: 300px; }
.footer h5 { font-family: 'Space Grotesk'; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--muted); font-size: .92rem; }
.footer ul a:hover { color: var(--green-deep); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: .82rem; color: var(--muted-2); }
.footer-disc { font-size: .74rem; color: var(--muted-2); margin-top: 20px; line-height: 1.7; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Interior page hero ---------- */
.page-hero { padding: 126px 0 38px; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem,5vw,3.8rem); margin: 22px auto 18px; max-width: 16ch; }
.page-hero .lead { margin: 0 auto; }

/* ---------- Apply wizard ---------- */
.wizard { max-width: 720px; margin: 0 auto; }
.wz-progress { display: flex; align-items: center; margin-bottom: 40px; }
.wz-progress .node { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); font-family: 'Space Grotesk'; font-weight: 700; color: var(--muted);
  background: #fff; transition: .35s; z-index: 2; }
.wz-progress .node.active { background: var(--green); color: #fff; border-color: var(--green); box-shadow: var(--glow); }
.wz-progress .node.done { background: var(--green-soft); color: var(--green-deep); border-color: var(--green); }
.wz-progress .bar { flex: 1; height: 2px; background: var(--line-strong); position: relative; }
.wz-progress .bar span { position: absolute; inset: 0; background: var(--green); width: 0; transition: width .4s var(--ease); }
.wz-panel { border: 1px solid var(--line-strong); border-radius: 24px; padding: 40px; background: #fff; box-shadow: var(--shadow); }
.wz-step { display: none; animation: fadeUp .5s var(--ease); }
.wz-step.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.wz-step h3 { font-size: 1.5rem; margin-bottom: 6px; }
.wz-step .sub { color: var(--muted); margin-bottom: 26px; font-size: .95rem; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .86rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px;
  background: #fbfdf8; border: 1px solid var(--line-strong); color: var(--ink); transition: .25s; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px #5f9e2b22; background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { padding: 13px 20px; border: 1px solid var(--line-strong); border-radius: 100px; color: var(--muted);
  transition: .25s; font-size: .92rem; background: #fff; }
.chip:hover { border-color: var(--green); color: var(--ink); }
.chip.sel { background: var(--green); color: #fff; border-color: var(--green); font-weight: 600; }
.wz-nav { display: flex; justify-content: space-between; margin-top: 30px; gap: 14px; }
.wz-done { text-align: center; padding: 20px 0; }
.wz-done .check { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--green-soft); border: 1px solid var(--green); display: grid; place-items: center; color: var(--green); animation: pop .5s var(--ease); }
.wz-done .check svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* ---------- Plaid bank-link step ---------- */
.plaid-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: #fbfdf8; margin-bottom: 22px; }
.plaid-box .p-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid #5f9e2b33; color: var(--green); }
.plaid-box .p-ico svg { width: 22px; height: 22px; }
.plaid-box b { display: block; font-family: 'Space Grotesk'; margin-bottom: 2px; }
.plaid-box span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
#plaidBtn svg { width: 18px; height: 18px; }
.plaid-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px;
  padding: 13px; border-radius: 12px; background: var(--green-soft); border: 1px solid #5f9e2b40;
  color: var(--green-deep); font-weight: 600; animation: pop .4s var(--ease); }
.plaid-status svg { width: 20px; height: 20px; color: var(--green); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info li { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-info .ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-soft); border: 1px solid #5f9e2b33; color: var(--green); }
.contact-info .ico svg { width: 22px; height: 22px; }
.contact-info b { display: block; font-family: 'Space Grotesk'; color: var(--ink); }
.contact-info span { color: var(--muted); font-size: .95rem; }

/* ---------- Auth (login / signup) ---------- */
.auth-wrap { padding: 150px 0 90px; min-height: 70vh; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 460px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 38px; box-shadow: var(--shadow); }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .logo-mark { display: inline-flex; }
.auth-head .logo-mark span { background: linear-gradient(90deg, var(--green), var(--lime)); height: 4px; border-radius: 2px; }
.auth-head h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-head p { color: var(--muted); font-size: .95rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #f1f5ea;
  border-radius: 100px; margin-bottom: 22px; }
.auth-tab { padding: 11px; border-radius: 100px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: .25s var(--ease); }
.auth-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-error { background: var(--bg-danger, #fceaea); border: 1px solid #e2a3a3; color: #a3352f;
  padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin-bottom: 18px; }
.auth-form { display: none; animation: fadeUp .4s var(--ease); }
.auth-form.active { display: block; }
.auth-form textarea { width: 100%; }
.auth-hint { text-align: center; font-size: .82rem; color: var(--muted-2); margin-top: 16px; line-height: 1.6; }
.auth-hint b { color: var(--green-deep); }
.auth-foot { text-align: center; font-size: .8rem; color: var(--muted-2); margin-top: 22px; }

/* ---------- Client dashboard ---------- */
.dash-app { padding: 128px 0 80px; }
.dash-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-top h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 8px; }
.dash-top-actions { display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px;
  background: var(--green-soft); border: 1px solid #5f9e2b40; color: var(--green-deep); font-weight: 600; font-size: .9rem; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.kpi span { display: block; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.kpi b { font-family: 'Space Grotesk'; font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.kpi b.green { color: var(--green); }

.dash-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.dash-col { display: grid; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h3 { font-size: 1.15rem; }
.pct { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.3rem; color: var(--green); }
.muted { color: var(--muted-2); font-size: .85rem; }

.progress { height: 12px; border-radius: 100px; background: var(--track); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, var(--green), var(--lime)); transition: width 1.1s var(--ease); }
.progress-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.progress-meta div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.progress-meta span { display: block; font-size: .78rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.progress-meta b { display: block; font-family: 'Space Grotesk'; font-size: 1.25rem; font-weight: 700; margin: 4px 0 2px; }
.progress-meta small { color: var(--muted); font-size: .78rem; }

.sched { display: grid; gap: 2px; max-height: 340px; overflow-y: auto; }
.srow { display: grid; grid-template-columns: 40px 1fr auto 92px; align-items: center; gap: 12px;
  padding: 12px 6px; border-top: 1px solid var(--line); }
.srow:first-child { border-top: none; }
.srow .sn { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: .8rem;
  font-family: 'Space Grotesk'; font-weight: 600; background: #f1f5ea; color: var(--muted); }
.srow.paid .sn { background: var(--green-soft); color: var(--green-deep); }
.srow.next .sn { background: var(--green); color: #fff; }
.srow .sd { color: var(--ink); font-size: .92rem; }
.srow .sa { font-family: 'Space Grotesk'; font-weight: 600; }
.srow .sb { justify-self: end; font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 100px; }
.srow .sb.paid { background: var(--green-soft); color: var(--green-deep); }
.srow .sb.next { background: var(--green); color: #fff; }
.srow .sb.upcoming { background: #eef1e9; color: var(--muted-2); }

.detail-list { display: grid; gap: 0; }
.detail-list li { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.detail-list li:first-child { border-top: none; }
.detail-list span { color: var(--muted); font-size: .92rem; }
.detail-list b { font-family: 'Space Grotesk'; font-weight: 600; }
.detail-list b.green { color: var(--green); }

.renew-card { background: radial-gradient(400px 220px at 90% -10%, #7cc2422a, transparent 60%), #fbfdf7; border-color: #5f9e2b33; }
.renew-list { margin-top: 16px; }
.renew-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); margin: 6px 0 8px; }
.renew-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.renew-item b { display: block; font-family: 'Space Grotesk'; font-size: .95rem; }
.renew-item small { color: var(--muted-2); font-size: .82rem; }
.rstatus { font-size: .76rem; font-weight: 600; padding: 5px 12px; border-radius: 100px; background: #fdf3e0; color: #9a6a12; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; background: #16210f66; backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px; animation: fadeUp .3s var(--ease); }
.modal[hidden] { display: none; }
.btn-lock { background: #e7ebe0; color: var(--muted-2); box-shadow: none; cursor: not-allowed; }
.btn-lock:hover { transform: none; box-shadow: none; }
.chip[disabled] { opacity: .4; cursor: not-allowed; }
.chip[disabled]:hover { border-color: var(--line-strong); color: var(--muted); }
.modal-card { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 20px;
  padding: 34px; box-shadow: var(--shadow); }
.modal-card h3 { font-size: 1.5rem; }
.modal-x { position: absolute; top: 16px; right: 18px; font-size: 1.7rem; line-height: 1; color: var(--muted-2); }
.modal-x:hover { color: var(--ink); }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); z-index: 600;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 100px; font-size: .92rem; font-weight: 500;
  box-shadow: var(--shadow); opacity: 0; transition: .4s var(--ease); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 940px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .steps, .steps.four, .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .calc, .contact-grid, .dash-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash { transform: none; }
}
@media (max-width: 680px) {
  section { padding: 80px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 90px; left: 18px; right: 18px;
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px;
    background: #fffffff5; border: 1px solid var(--line-strong); border-radius: 18px; backdrop-filter: blur(18px); box-shadow: var(--shadow); }
  .nav.open .nav-links a { padding: 10px 4px; width: 100%; }
  .grid-3, .grid-2, .steps, .steps.four, .ind-grid, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 70px; }
  .field-row { gap: 0; }
}
