/* Sullivan Financing — design system (brand kit 2026-09-14).
   Deep navy ground, blue/cyan ribbon accents, Plus Jakarta Sans. */
:root {
  --bg: #050c1a; --bg-2: #071329; --bg-3: #0a1a36; --panel: rgba(255,255,255,.03); --panel-2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #f1f5f9; --text-2: #cbd5e1; --muted: #94a3b8; --muted-2: #64748b;
  --blue: #0052ff; --blue-2: #0045dc; --cyan: #22d3ee; --cyan-2: #67e8f9; --mint: #34d399; --red: #f87171;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 12px; --r-lg: 20px; --r-pill: 999px; --wrap: 1180px;
  --glow: 0 18px 50px -20px rgba(0,82,255,.55);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--cyan-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.grad { background: linear-gradient(90deg, #60a5fa, #67e8f9 55%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .5rem .8rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }

.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: var(--r-pill); background: rgba(59,130,246,.10); border: 1px solid rgba(34,211,238,.25); color: var(--cyan-2); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--cyan); margin: 0 0 .7rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 .95rem/1 var(--sans); padding: 1rem 1.6rem; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: var(--glow); border-color: rgba(96,165,250,.35); }
.btn-blue:hover { background: var(--blue-2); }
.btn-ghost { background: var(--panel); color: var(--text-2); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--panel-2); color: #fff; }
.btn-lg { padding: 1.15rem 2rem; font-size: 1.02rem; }
.btn-sm { padding: .7rem 1.1rem; font-size: .82rem; }
.btn-arrow::after { content: "→"; transition: transform .15s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5,12,26,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.logo { display: inline-flex; align-items: center; gap: .7rem; color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 39px; filter: drop-shadow(0 4px 14px rgba(0,140,255,.35)); }
.logo-sub { color: var(--cyan-2); font-weight: 600; }
.nav { display: flex; align-items: center; gap: .25rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-pill); padding: .35rem; }
.nav a { color: var(--text-2); font-weight: 600; font-size: .9rem; padding: .55rem 1rem; border-radius: var(--r-pill); }
.nav a:hover { color: #fff; background: var(--panel-2); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -8px rgba(0,82,255,.8); }
.nav .nav-cta { background: var(--blue); color: #fff; margin-left: .35rem; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.nav .nav-cta:hover { background: var(--blue-2); }
.nav-toggle { display: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: .55rem .9rem; font: 700 .85rem var(--sans); color: #fff; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 84px; flex-direction: column; align-items: stretch; gap: .2rem; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: .6rem; }
  .nav.is-open { display: flex; }
  .nav a { text-align: center; }
  .nav .nav-cta { margin: .4rem 0 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem); text-align: center; }
.hero-bg { position: absolute; inset: 0; background: url("/assets/wave.jpg") center / cover no-repeat; opacity: .55; z-index: 0; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 70%, transparent); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 70%, transparent); }
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--text-2); max-width: 60ch; margin: 1.6rem auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.2rem; }
.hero-fine { margin-top: 1.2rem; font-size: .85rem; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; margin-top: 3.2rem; text-align: left; }
.badge { padding: .9rem 1rem; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(6px); transition: border-color .15s ease, background .15s ease; color: inherit; }
.badge:hover { border-color: rgba(34,211,238,.35); background: var(--panel-2); text-decoration: none; }
.badge-k { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.badge-v { font-size: .9rem; font-weight: 700; color: #fff; margin-top: .15rem; }
.badge-s { font-size: .74rem; color: var(--muted); margin-top: .2rem; }
@media (max-width: 1000px) { .badges { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .badges { grid-template-columns: 1fr 1fr; } }

/* Sections */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band-head { max-width: 62ch; margin-bottom: clamp(1.5rem, 4vw, 2.6rem); }
.band-head.center { margin-inline: auto; text-align: center; }
.band-head p { font-size: 1.08rem; color: var(--text-2); }
.panel { position: relative; border-radius: 28px; background: linear-gradient(180deg, rgba(30,58,138,.28), rgba(7,19,41,.92)); border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3.5rem); backdrop-filter: blur(16px); overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 > *, .grid-3 > *, .badges > *, .team-grid > * { min-width: 0; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { border-radius: 18px; background: rgba(5,12,26,.7); border: 1px solid var(--line); padding: 1.7rem; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .15s ease; }
.card:hover { border-color: rgba(34,211,238,.3); }
.card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-stat { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.card-stat b { display: block; font-size: 1.6rem; color: var(--cyan-2); }
.card-stat span { font-size: .78rem; color: var(--muted); }
.icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.25); color: var(--cyan); display: grid; place-items: center; margin-bottom: 1.1rem; font-weight: 800; }

.compare { margin-top: 2.5rem; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: rgba(5,12,26,.9); display: grid; grid-template-columns: 1fr 1fr; }
.compare > div { padding: 1.8rem; }
.compare .bank { background: rgba(127,29,29,.08); border-right: 1px solid var(--line); }
.compare .us { background: rgba(30,58,138,.2); }
.compare .k { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: .4rem; }
.compare .us .k { color: var(--cyan); }
.compare h4 { font-size: 1.1rem; margin-bottom: 1rem; }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .92rem; color: var(--muted); }
.compare .us ul { color: var(--text-2); }
.compare li { display: flex; gap: .6rem; align-items: flex-start; }
.compare .bank li::before { content: "—"; color: var(--red); font-family: monospace; }
.compare .us li::before { content: "✓"; color: var(--cyan); font-weight: 800; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } .compare .bank { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Products */
.tabs { display: flex; justify-content: center; margin-bottom: 1.6rem; overflow-x: auto; padding-bottom: .3rem; }
.tabs-inner { display: inline-flex; gap: .25rem; padding: .35rem; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.tab { background: none; border: 0; color: var(--muted); font: 600 .85rem var(--sans); padding: .65rem 1.1rem; border-radius: 12px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: #fff; }
.tab.is-active { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(0,82,255,.9); }
.product { display: none; border-radius: 28px; background: rgba(7,19,41,.85); border: 1px solid rgba(34,211,238,.2); padding: clamp(1.5rem, 4vw, 3rem); backdrop-filter: blur(14px); }
.product.is-active { display: grid; grid-template-columns: 7fr 5fr; gap: 2.2rem; align-items: center; }
@media (max-width: 900px) { .product.is-active { grid-template-columns: 1fr; } }
.product .tag { display: inline-block; padding: .3rem .8rem; border-radius: var(--r-pill); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); color: var(--cyan-2); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.product h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.product p { color: var(--text-2); }
.feat { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; font-size: .92rem; color: var(--text-2); }
.feat li { display: flex; gap: .5rem; }
.feat li::before { content: "✓"; color: var(--cyan); font-weight: 800; }
@media (max-width: 600px) { .feat { grid-template-columns: 1fr; } }
.spec { border-radius: 16px; background: var(--bg); border: 1px solid var(--line); padding: 1.4rem; display: grid; gap: .9rem; }
.spec > div { padding-top: .9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-size: .9rem; }
.spec > div:first-child { border-top: 0; padding-top: 0; display: block; }
.spec .k { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.spec .v { color: #fff; font-weight: 700; text-align: right; }
.spec .v.cy { color: var(--cyan-2); }

.quote { text-align: center; border-radius: 28px; background: rgba(30,58,138,.3); border: 1px solid rgba(34,211,238,.3); padding: clamp(2rem, 5vw, 3.5rem); backdrop-filter: blur(14px); }
.quote blockquote { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; color: #fff; line-height: 1.35; max-width: 34ch; margin-inline: auto; }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; color: var(--cyan-2); font-size: .9rem; font-weight: 600; }

/* File strip (returning applicants) */
.file-strip { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .file-strip { grid-template-columns: 1fr; } }
.file-card { position: relative; border-radius: 18px; background: rgba(5,12,26,.8); border: 1px solid var(--line-2); padding: 1.5rem; font-size: .93rem; box-shadow: var(--glow); }
.file-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-bottom: .8rem; margin-bottom: .6rem; border-bottom: 1px dashed var(--line-2); }
.file-card-head strong { font-size: 1.15rem; color: #fff; }
.file-pill { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--mint); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); padding: .25rem .55rem; border-radius: var(--r-pill); }
.file-row { display: grid; grid-template-columns: 7rem 1fr; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.file-row:last-of-type { border-bottom: 0; }
.file-key { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding-top: .2rem; }
.file-val { font-weight: 600; color: var(--text-2); }
.file-val.is-held { color: var(--mint); } .file-val.is-held::before { content: "✓ "; }
.file-val.is-ask { color: var(--cyan-2); } .file-val.is-ask::before { content: "→ "; }
.file-card-foot { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line-2); font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) { .file-card-head { flex-wrap: wrap; } .file-row { grid-template-columns: 5.5rem 1fr; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.steps li { position: relative; padding: 1.4rem 1.4rem 1.4rem; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font-size: .75rem; letter-spacing: .12em; color: var(--cyan); font-weight: 800; margin-bottom: .6rem; }
.steps h4 { margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .team-grid { grid-template-columns: 1fr; } }
.member { border-radius: 18px; background: rgba(7,19,41,.9); border: 1px solid var(--line); padding: 1.6rem; transition: border-color .15s ease; }
.member:hover { border-color: rgba(34,211,238,.3); }
.member-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.member-head img { width: 68px; height: 68px; border-radius: 18px; object-fit: cover; border: 1px solid rgba(34,211,238,.3); box-shadow: 0 6px 20px -8px rgba(59,130,246,.6); }
.member-head h3 { font-size: 1.1rem; margin: 0; }
.member-role { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.member-focus { display: inline-block; font-size: .74rem; color: var(--text-2); background: var(--panel); border: 1px solid var(--line); padding: .25rem .6rem; border-radius: 8px; margin-bottom: .8rem; }
.member p { color: var(--text-2); font-size: .92rem; margin: 0; }

/* Insights */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.chip { background: var(--panel); border: 1px solid var(--line); color: var(--text-2); font: 600 .78rem var(--sans); padding: .45rem .9rem; border-radius: var(--r-pill); cursor: pointer; }
.chip.is-active { background: var(--blue); color: #fff; border-color: transparent; }
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 800px) { .articles { grid-template-columns: 1fr; } }
.art { border-radius: 18px; background: rgba(7,19,41,.85); border: 1px solid var(--line); padding: 1.6rem; color: inherit; display: block; transition: border-color .15s ease; }
.art:hover { border-color: rgba(34,211,238,.35); text-decoration: none; }
.art-meta { display: flex; gap: .8rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); font-weight: 700; margin-bottom: .6rem; }
.art-meta span + span { color: var(--muted); }
.art h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.art p { color: var(--muted); font-size: .92rem; margin: 0 0 .9rem; }
.art .more { color: var(--cyan-2); font-weight: 700; font-size: .85rem; }
.article { font-size: 1.05rem; color: var(--text-2); }
.article h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.article h2 { font-size: 1.45rem; margin-top: 2rem; color: #fff; }
.article p { margin-bottom: 1.1em; }
.article strong { color: #fff; }
.article ul { padding-left: 1.2rem; }
.article-cta { margin-top: 2.5rem; border-radius: 18px; background: rgba(30,58,138,.28); border: 1px solid rgba(34,211,238,.25); padding: 1.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--text-2); max-width: 70ch; }
.prose { font-size: 1.02rem; color: var(--text-2); }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose .fine { font-size: .88rem; color: var(--muted); }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { max-width: 22ch; }
.page-head p { font-size: 1.12rem; color: var(--text-2); max-width: 58ch; }
.cta-band { text-align: center; }
.cta-band h2 { max-width: 24ch; margin-inline: auto; }
.cta-band .btn { margin-top: 1.2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(5,12,26,.95); padding: 3.2rem 0 2rem; margin-top: 2rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: var(--text-2); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; font-size: .92rem; }
.footer-links a { color: var(--muted); } .footer-links a:hover { color: var(--cyan-2); }
.footer-note { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); padding: .4rem .8rem; border-radius: var(--r-pill); margin-top: .8rem; }
.footer-fine { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted-2); }
.footer-fine p { margin: 0 0 .5rem; max-width: 95ch; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================ Application ============================ */
.apply-shell { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(2rem, 5vw, 4rem) 0 5rem; }
.apply-shell > * { min-width: 0; }
@media (max-width: 900px) { .apply-shell { grid-template-columns: 1fr; } }
.apply-rail { position: sticky; top: 98px; align-self: start; }
.apply-rail h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.apply-rail .lede { color: var(--text-2); }
.rail-list { list-style: none; padding: 0; margin: 1.6rem 0 0; border-left: 1px solid var(--line-2); }
.rail-item { position: relative; padding: .45rem 0 .45rem 1.2rem; font-size: .9rem; color: var(--muted); }
.rail-item::before { content: ""; position: absolute; left: -5px; top: .95rem; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.rail-item.is-current { color: #fff; font-weight: 700; } .rail-item.is-current::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.rail-item.is-done { color: var(--mint); } .rail-item.is-done::before { background: var(--mint); }
.rail-fine { margin-top: 1.6rem; font-size: .82rem; color: var(--muted); }
.rail-fine strong { color: var(--text-2); }
@media (max-width: 900px) { .apply-rail { position: static; } .rail-list { display: none; } }
.welcome { display: none; border-radius: 16px; background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.3); padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; }
.welcome.is-active { display: block; }
.welcome-pill { display: inline-block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--mint); margin-bottom: .4rem; }
.welcome-title { font-size: 1.3rem; font-weight: 800; color: #fff; margin: 0 0 .25rem; }
.welcome-sub { margin: 0; color: var(--text-2); font-size: .93rem; }
.svform { border-radius: 24px; background: rgba(7,19,41,.9); border: 1px solid var(--line-2); box-shadow: var(--glow); padding: clamp(1.4rem, 3vw, 2.4rem); backdrop-filter: blur(14px); }
.svform-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.svform-bar { flex: 1; height: 4px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.svform-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .3s ease; }
.svform-count { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.svform-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.svform-step.is-active { display: block; animation: svin .25s ease; }
@keyframes svin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.svform-tag { display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--cyan); }
.svform-num { display: block; font-size: .78rem; color: var(--muted); margin: .2rem 0 .6rem; padding: 0; }
.svform-step h3 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: .5rem; }
.svform-help { color: var(--text-2); margin-bottom: 1.2rem; max-width: 60ch; }
.field { margin-bottom: 1rem; }
.field-grid { display: grid; gap: 1rem; }
.field-grid-2 { grid-template-columns: 1fr 1fr; }
.field-grid-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 600px) { .field-grid-2, .field-grid-3 { grid-template-columns: 1fr; } }
.lbl { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .35rem; color: var(--text-2); }
.lbl .opt-note { font-weight: 500; color: var(--muted); }
.inp { width: 100%; font: 500 1rem/1.3 var(--sans); color: #fff; background: rgba(5,12,26,.8); border: 1px solid var(--line-2); border-radius: 12px; padding: .85rem .95rem; outline: none; transition: border-color .15s ease, box-shadow .15s ease; color-scheme: dark; }
.inp::placeholder { color: var(--muted-2); }
.inp:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.inp.is-locked { background: var(--panel); color: var(--muted); }
.inp.is-held { border-color: rgba(52,211,153,.5); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
select.inp option { background: var(--bg-2); color: #fff; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 600px) { .opts { grid-template-columns: 1fr; } }
.opt { position: relative; display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(5,12,26,.6); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.opt:hover { border-color: var(--cyan); }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-key { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 6px; font-size: .72rem; font-weight: 800; color: var(--muted); flex: 0 0 auto; }
.opt-text { font-weight: 600; color: var(--text-2); }
.opt:has(input:checked) { border-color: var(--blue); background: rgba(0,82,255,.16); }
.opt:has(input:checked) .opt-key { background: var(--blue); color: #fff; border-color: var(--blue); }
.opt:has(input:checked) .opt-text { color: #fff; }
.slider-wrap { padding: .4rem 0 .6rem; }
.slider-val { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.slider-cap { display: block; font-size: .82rem; color: var(--muted); margin: .3rem 0 1.2rem; }
.slider { --pct: 35%; width: 100%; appearance: none; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan) var(--pct), var(--panel-2) var(--pct)); outline: none; }
.slider::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: pointer; box-shadow: 0 0 0 4px rgba(0,82,255,.25); }
.slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); cursor: pointer; }
.slider-ends { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: .4rem; }
.held-note { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.3); border-radius: 12px; padding: .75rem .9rem; margin-bottom: .8rem; font-size: .9rem; }
.held-note[hidden] { display: none; }
.held-chip { font-weight: 700; color: var(--mint); } .held-chip::before { content: "✓ "; }
.keep-row { display: inline-flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.keep-row input { width: 16px; height: 16px; accent-color: var(--mint); }
.drop { border: 2px dashed var(--line-2); border-radius: 18px; padding: 1.8rem 1.2rem; text-align: center; background: rgba(5,12,26,.5); transition: border-color .15s ease, background .15s ease; }
.drop.is-dragging { border-color: var(--cyan); background: rgba(34,211,238,.06); }
.drop.has-files { border-style: solid; }
.drop p { margin: 0 0 .6rem; color: var(--text-2); }
.drop small { color: var(--muted); }
.filelist { list-style: none; padding: 0; margin: 1rem 0 0; }
.file-item { display: grid; grid-template-columns: 1fr auto auto; gap: .8rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .5rem; background: rgba(5,12,26,.7); position: relative; overflow: hidden; }
.file-name { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.file-size { font-size: .78rem; color: var(--muted); }
.file-x { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; padding: 0 .2rem; }
.file-x:hover { color: var(--red); }
.file-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--mint); transition: width .2s ease; }
.file-item.is-done .file-bar { width: 100%; }
.file-item.is-failed .file-bar { background: var(--red); }
.mca-rows { display: grid; gap: .6rem; margin-bottom: .8rem; }
.mca-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: .6rem; }
@media (max-width: 600px) { .mca-row { grid-template-columns: 1fr; } }
.sign-box { position: relative; height: 180px; border: 1px solid var(--line-2); border-radius: 12px; background: #f8fafc; overflow: hidden; touch-action: none; }
.sign-pad { width: 100%; height: 100%; display: block; cursor: crosshair; }
.sign-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-style: italic; font-size: 1.3rem; color: #94a3b8; pointer-events: none; }
.sign-hint[hidden] { display: none; }
.sign-rule { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 2.4rem; height: 1px; background: #cbd5e1; pointer-events: none; }
.sign-actions { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; font-size: .84rem; color: var(--muted); }
.sign-clear { background: none; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: .4rem .8rem; font: 600 .78rem var(--sans); color: var(--text-2); cursor: pointer; }
.sign-clear[hidden] { display: none; }
.legal { font-size: .84rem; color: var(--muted); background: rgba(5,12,26,.6); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin: .8rem 0 1rem; line-height: 1.55; }
.svform-err { color: var(--red); font-weight: 600; font-size: .88rem; min-height: 1.4em; margin: .6rem 0 0; }
.svform-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.svform-nav .hint { font-size: .78rem; color: var(--muted); }
#sv-back[hidden] { visibility: hidden; display: inline-flex; }
.svform-state { display: none; text-align: center; padding: 2rem 0; }
.svform-state.is-active { display: block; }
.spinner { width: 42px; height: 42px; border: 3px solid var(--panel-2); border-top-color: var(--cyan); border-radius: 50%; margin: 0 auto 1.2rem; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.upbar { height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; max-width: 360px; margin: 1rem auto; }
.upbar i { display: block; height: 100%; width: 0; background: var(--mint); transition: width .2s ease; }
.upbar[hidden] { display: none; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: rgba(52,211,153,.12); color: var(--mint); display: grid; place-items: center; margin: 0 auto 1.2rem; font-size: 2rem; border: 1px solid rgba(52,211,153,.4); }
.banner { display: none; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.35); border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1rem; font-size: .93rem; color: var(--text-2); }
.banner.is-active { display: block; }
