/* ==========================================================================
   YSADS LLC – design system
   ========================================================================== */
:root {
  --navy-950: #060a1c;
  --navy-900: #0a1030;
  --navy-800: #101a45;
  --navy-700: #1a2766;
  --primary: #2f5bff;
  --primary-600: #2347e0;
  --primary-50: #eef2ff;
  --primary-100: #dfe6ff;
  --mint: #19d3a2;
  --mint-ink: #0a8f6e;
  --amber: #f5a524;
  --red: #e5484d;
  --green: #12b76a;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #e6e9f2;
  --line-strong: #d5daea;
  --bg: #f6f8fc;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 16, 48, 0.18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.025em; font-weight: 800; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; color: var(--ink); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 780px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); background: var(--primary-50); padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }
.eyebrow-dark { color: var(--mint); background: rgba(25, 211, 162, .12); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.wrap { flex-wrap: wrap; }
.gap { gap: 12px; }
.gap-lg { gap: 24px; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 32px; } .mb { margin-bottom: 16px; } .mb-0 { margin-bottom: 0; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1; padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s; text-decoration: none; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(47, 91, 255, .32); }
.btn-primary:hover { background: var(--primary-600); color: #fff; box-shadow: 0 8px 22px rgba(47, 91, 255, .4); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--primary-50); color: var(--primary); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--primary-50); color: var(--navy-900); }
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-danger { background: #fff; color: var(--red); border-color: #f4c7c9; }
.btn-danger:hover { background: #fff1f1; color: #c0282d; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #0e9f5d; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-google:hover { background: #f8f9fc; border-color: var(--ink); color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---- badges ---- */
.badge { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; line-height: 1.5; white-space: nowrap; }
.badge-green { background: #e7f8ef; color: #0a7a47; }
.badge-amber { background: #fff4de; color: #9a6200; }
.badge-blue { background: var(--primary-50); color: var(--primary-600); }
.badge-red { background: #ffecec; color: #b42318; }
.badge-gray { background: #eef0f6; color: #475467; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); }

/* ---- forms ---- */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.input, select.input, textarea.input, input[type=text], input:not([type]), input[type=search], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47, 91, 255, .14); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primary); }
.help { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 14px; }
.check input { margin-top: 4px; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-prefix > input { padding-left: 28px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8rem; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---- alerts ---- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 11px; font-size: .92rem; margin-bottom: 18px; border: 1px solid; }
.alert ul { margin: 0; padding-left: 1.1em; }
.alert-success { background: #ecfbf3; border-color: #b8ebd0; color: #0a6b3f; }
.alert-error { background: #fff2f2; border-color: #f6c5c5; color: #a8231f; }
.alert-info { background: var(--primary-50); border-color: var(--primary-100); color: #2441b8; }
.alert-warning { background: #fff8e8; border-color: #f6dca3; color: #8a5a00; }
.alert .close { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; padding: 0; line-height: 1; }
.flash-wrap { position: fixed; top: 18px; right: 18px; z-index: 200; width: min(420px, calc(100vw - 36px)); }
.flash-wrap .alert { box-shadow: var(--shadow); margin-bottom: 10px; animation: slide-in .3s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---- cards / tables ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.02rem; letter-spacing: -0.01em; }
.card-body { padding: 24px; }
.card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 11px 16px; background: #fafbfe; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.table .right, .table th.right { text-align: right; }
.table-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cell-user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--mint)); color: #fff; font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .icon { color: var(--line-strong); margin-bottom: 10px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter { padding: 7px 14px; border-radius: 99px; font-size: .85rem; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--text); }
.filter:hover { border-color: var(--primary); color: var(--primary); }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; background: #fff; color: var(--text); padding: 0 10px; }
.pager .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.search-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.search-row input { max-width: 340px; }

.progress { height: 8px; background: #eaedf6; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--mint)); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { position: relative; padding: 0 0 22px 26px; border-left: 2px solid var(--line); margin-left: 6px; }
.feed-item:last-child { padding-bottom: 0; border-color: transparent; }
.feed-item::before { content: ''; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary-100); }
.feed-meta { font-size: .78rem; color: var(--muted); margin-bottom: 3px; }

/* ==========================================================================
   Public site
   ========================================================================== */
.topbar-slim { background: var(--navy-950); color: #aab4d8; font-size: .82rem; }
.topbar-slim .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar-slim a { color: #d7def5; }
.topbar-slim a:hover { color: #fff; }
.topbar-slim .tb-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-slim .tb-left span { display: inline-flex; gap: 7px; align-items: center; }
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--primary); font-weight: 800; }
.logo-light { color: #fff; }
.logo-light:hover { color: #fff; }
.logo-light b { color: var(--mint); }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 28px; }
.nav-links a { padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: .94rem; color: var(--text); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-50); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }

.hero { position: relative; overflow: hidden; color: #c4cdee; background: radial-gradient(900px 520px at 85% -10%, rgba(47,91,255,.5), transparent 60%), radial-gradient(700px 420px at -5% 25%, rgba(25,211,162,.2), transparent 60%), linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 96px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7f9bff, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.18rem; color: #b6c0e6; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; color: #aab5de; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--mint); }

.mock { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 20px; backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); }
.mock-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; color: #93a0d0; font-size: .78rem; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4780; display: inline-block; }
.mock-bar span { margin-left: auto; }
.mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.mock-stat { background: rgba(255,255,255,.07); border-radius: 12px; padding: 14px 16px; }
.mock-stat small { color: #93a0d0; display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.mock-stat strong { color: #fff; font-size: 1.5rem; letter-spacing: -0.02em; }
.mock-row { background: rgba(255,255,255,.05); border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; }
.mock-row .top { display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: 9px; }
.mock-row .top small { color: #8f9bcb; font-weight: 500; }
.mock-row .progress { background: rgba(255,255,255,.12); height: 6px; }
.mock-toast { display: flex; align-items: center; gap: 12px; margin-top: 14px; background: rgba(25,211,162,.14); border: 1px solid rgba(25,211,162,.35); color: #bff6e6; border-radius: 12px; padding: 12px 14px; font-size: .84rem; }
.mock-note { text-align: center; font-size: .72rem; color: #7886bb; margin: 12px 0 0; }

.channels { background: #fff; border-bottom: 1px solid var(--line); }
.channels .container { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; justify-content: center; }
.channels strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.channels span { font-weight: 700; color: #98a2b3; font-size: 1rem; letter-spacing: -.01em; }

.service-card { padding: 28px; display: flex; flex-direction: column; height: 100%; color: inherit; }
.service-card:hover { color: inherit; }
.service-card h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.service-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.icon-box { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-50); color: var(--primary); }
.icon-box-mint { background: #e2faf3; color: var(--mint-ink); }
.icon-box-dark { background: rgba(255,255,255,.1); color: var(--mint); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 16px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 30px; }
.feature-list li { display: flex; gap: 14px; margin-bottom: 18px; }
.feature-list .tick { width: 26px; height: 26px; border-radius: 50%; background: #e2faf3; color: var(--mint-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }
.feature-list strong { display: block; color: var(--ink); }
.feature-list span { color: var(--muted); font-size: .94rem; }
.panel-visual { background: linear-gradient(145deg, var(--navy-900), var(--navy-700)); border-radius: 22px; padding: 30px; color: #c4cdee; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.panel-visual::after { content: ''; position: absolute; width: 320px; height: 320px; right: -80px; top: -100px; background: radial-gradient(circle, rgba(47,91,255,.55), transparent 65%); }
.panel-visual > * { position: relative; z-index: 1; }
.pv-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.07); margin-bottom: 12px; color: #fff; font-weight: 500; font-size: .94rem; }
.pv-row .icon { color: var(--mint); }
.pv-row small { margin-left: auto; color: #8f9bcb; font-weight: 500; }

.value-card { padding: 28px; }
.value-card h3 { margin: 16px 0 6px; }
.value-card p { color: var(--muted); font-size: .94rem; margin: 0; }

.article-card { display: flex; flex-direction: column; height: 100%; color: inherit; overflow: hidden; }
.article-card:hover { color: inherit; }
.article-art { height: 150px; position: relative; display: flex; align-items: flex-end; padding: 16px; background: linear-gradient(135deg, var(--navy-800), var(--primary)); }
.article-art.v1 { background: linear-gradient(135deg, #0f766e, #19d3a2); }
.article-art.v2 { background: linear-gradient(135deg, #7c3aed, #2f5bff); }
.article-art.v3 { background: linear-gradient(135deg, #b45309, #f5a524); }
.article-art.v4 { background: linear-gradient(135deg, #be123c, #f43f5e); }
.article-art .chip { background: rgba(255,255,255,.92); }
.article-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.article-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.article-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.article-meta { font-size: .8rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

.cta-band { background: radial-gradient(700px 300px at 90% 0%, rgba(47,91,255,.55), transparent 60%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); border-radius: 26px; padding: 64px 48px; text-align: center; color: #c4cdee; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }

.page-hero { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: #b6c0e6; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; width: 520px; height: 520px; right: -120px; top: -220px; background: radial-gradient(circle, rgba(47,91,255,.45), transparent 65%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 12px; }
.page-hero p { max-width: 640px; font-size: 1.12rem; margin: 0; }
.crumbs { font-size: .84rem; margin-bottom: 18px; color: #8f9bcb; }
.crumbs a { color: #b6c0e6; }
.crumbs a:hover { color: #fff; }

.prose { font-size: 1.06rem; line-height: 1.8; color: #3b4559; }
.prose h2 { font-size: 1.55rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 22px; border-left: 4px solid var(--primary); color: var(--muted); font-style: italic; }
.prose > :first-child { margin-top: 0; }
.aside-card { position: sticky; top: 100px; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
@media (max-width: 900px) { .layout-aside { grid-template-columns: 1fr; gap: 32px; } .aside-card { position: static; } }
.contact-line { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-line .icon-box { width: 44px; height: 44px; border-radius: 12px; }
.contact-line strong { display: block; color: var(--ink); }

.footer { background: var(--navy-950); color: #8f9bcb; padding: 72px 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 52px; }
.footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer a { color: #aab5de; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer p { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 20px; }

/* ---- auth ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-brand { background: radial-gradient(700px 500px at 100% 0%, rgba(47,91,255,.55), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(25,211,162,.22), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #b6c0e6; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-brand h2 { color: #fff; font-size: 2.1rem; max-width: 460px; }
.auth-brand ul { list-style: none; padding: 0; margin: 28px 0 0; }
.auth-brand li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.auth-brand li .icon { color: var(--mint); margin-top: 3px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 1.85rem; margin-bottom: 6px; }
.auth-box .sub { color: var(--muted); margin-bottom: 26px; }
.auth-foot { text-align: center; font-size: .92rem; color: var(--muted); margin-top: 22px; }

/* ==========================================================================
   App shell (client portal + admin)
   ========================================================================== */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: var(--bg); }
.sidebar { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: #9aa6d3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px; }
.sidebar .logo { padding: 4px 10px 22px; }
.side-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5f6c9f; padding: 18px 12px 8px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #b0bbe2; font-weight: 500; font-size: .93rem; margin-bottom: 2px; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: rgba(47,91,255,.28); color: #fff; box-shadow: inset 3px 0 0 var(--mint); }
.sidebar nav a .count { margin-left: auto; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.sidebar nav a .count.alert-count { background: var(--amber); color: #3b2500; }
.side-user { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.side-user-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; }
.side-user-row strong { color: #fff; font-size: .9rem; display: block; line-height: 1.25; }
.side-user-row span { font-size: .76rem; color: #7886bb; display: block; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.side-user form { margin-top: 6px; }
.side-user .btn { width: 100%; background: rgba(255,255,255,.07); color: #c6cff0; justify-content: flex-start; padding: 10px 12px; }
.side-user .btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 68px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; position: sticky; top: 0; z-index: 50; gap: 16px; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn .dot { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }
.wallet-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #e2faf3; color: #086b50; font-weight: 700; font-size: .88rem; border: 1px solid #b6efdc; }
.wallet-pill:hover { color: #064f3a; }
.page { padding: 32px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.65rem; margin: 0 0 4px; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); margin: 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.backlink { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: .88rem; font-weight: 600; margin-bottom: 12px; }
.backlink:hover { color: var(--primary); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.stat-label { font-size: .84rem; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.15; }
.stat-sub { font-size: .8rem; color: var(--muted); }
.stat .icon-box { width: 38px; height: 38px; border-radius: 10px; }
.stat-feature { background: linear-gradient(135deg, var(--navy-800), var(--primary)); border: 0; color: #c9d3ff; }
.stat-feature .stat-label, .stat-feature .stat-sub { color: #b7c4ff; }
.stat-feature .stat-value { color: #fff; }
.stat-feature .icon-box { background: rgba(255,255,255,.16); color: #fff; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .meta { font-size: .82rem; color: var(--muted); }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 8px 4px 0; }
.bar-chart .bar { flex: 1; background: linear-gradient(180deg, var(--primary), #7f9bff); border-radius: 6px 6px 0 0; min-height: 3px; position: relative; opacity: .9; }
.bar-chart .bar:hover { opacity: 1; }
.bar-chart .bar.zero { background: var(--line); }
.bar-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 8px; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.slot { display: block; cursor: pointer; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: flex; flex-direction: column; align-items: center; padding: 11px 8px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 600; font-size: .92rem; color: var(--ink); background: #fff; transition: all .15s; }
.slot span small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.slot:hover span { border-color: var(--primary); }
.slot input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(47,91,255,.3); }
.slot input:checked + span small { color: #d6e0ff; }
.slot input:focus-visible + span { box-shadow: 0 0 0 4px rgba(47,91,255,.25); }
.amount-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.preset { cursor: pointer; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink); font: inherit; font-weight: 600; }
.preset:hover { border-color: var(--primary); color: var(--primary); }
.pay-box { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #b6c0e6; border-radius: var(--radius); padding: 28px; }
.pay-box h2 { color: #fff; font-size: 1.25rem; }
.pay-box .input { background: #fff; }
.pay-status { margin-top: 14px; font-size: .9rem; min-height: 22px; }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: #8f9bcb; margin-top: 14px; }
.pay-overlay { position: fixed; inset: 0; background: rgba(6,10,28,.72); z-index: 9999; display: none; align-items: center; justify-content: center; color: #fff; font-weight: 600; flex-direction: column; gap: 14px; backdrop-filter: blur(3px); }
.pay-overlay.show { display: flex; }
.spinner { width: 38px; height: 38px; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.option-hint { background: var(--primary-50); border-radius: 10px; padding: 12px 14px; font-size: .88rem; color: #2a3f9b; margin-top: 10px; }
.item-row { display: grid; grid-template-columns: 1fr 90px 130px 120px 38px; gap: 10px; align-items: start; margin-bottom: 10px; }
.item-row .line-total { padding-top: 11px; text-align: right; font-weight: 600; color: var(--ink); }
.item-head { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.totals { margin-left: auto; width: 320px; max-width: 100%; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-size: 1.2rem; font-weight: 800; color: var(--ink); }

/* ---- invoice document ---- */
.invoice-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px; max-width: 880px; box-shadow: var(--shadow-sm); position: relative; }
.inv-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.inv-head h2 { font-size: 2rem; letter-spacing: .04em; margin: 0 0 6px; color: var(--ink); }
.inv-meta { text-align: right; font-size: .92rem; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; font-size: .92rem; }
.inv-parties h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .93rem; }
.inv-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--ink); }
.inv-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); }
.inv-table .num { text-align: right; white-space: nowrap; }
.inv-stamp { position: absolute; top: 46px; right: 48px; transform: rotate(8deg); border: 3px solid; padding: 4px 16px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border-radius: 8px; font-size: 1.1rem; opacity: .85; }
.inv-stamp.paid { color: var(--green); border-color: var(--green); }
.inv-stamp.void, .inv-stamp.overdue { color: var(--red); border-color: var(--red); }
.inv-note { background: #fafbfe; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-size: .88rem; margin-top: 24px; white-space: pre-line; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-grid { padding: 56px 0 64px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; margin: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .topbar-slim .tb-right { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 120; transform: translateX(-102%); transition: transform .25s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .scrim { position: fixed; inset: 0; background: rgba(6,10,28,.5); z-index: 110; display: none; }
  .scrim.show { display: block; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .page { padding: 22px 16px; }
  .cta-band { padding: 44px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .inv-parties { grid-template-columns: 1fr; }
  .invoice-doc { padding: 28px 20px; }
  .inv-stamp { top: 22px; right: 18px; }
}
@media (max-width: 600px) {
  .stats, .steps, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .item-row { grid-template-columns: 1fr 1fr; }
  .item-row .desc { grid-column: 1 / -1; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .wallet-pill span.lbl { display: none; }
  .hero-actions .btn { width: 100%; }
}
@media print {
  .topbar-slim, .site-header, .footer, .sidebar, .topbar, .page-head .page-actions, .no-print, .flash-wrap, .backlink { display: none !important; }
  .app { display: block; background: #fff; }
  .page { padding: 0; max-width: none; }
  .invoice-doc { border: 0; box-shadow: none; padding: 0; max-width: none; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.layout-aside-sm { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
@media (max-width: 900px) { .layout-aside-sm { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 14px; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--primary); border-color: var(--primary); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; margin-top: 14px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar span { width: 100%; background: linear-gradient(180deg, var(--primary), #6f8bff); border-radius: 6px 6px 0 0; min-height: 3px; }
.bar em { font-style: normal; font-size: .68rem; color: var(--muted); }
@media (max-width: 600px) { .topbar .btn-sm { display: none; } }

/* Embedded J.P. Morgan Checkout */
.jpm-checkout-modal { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(6,10,28,.72); backdrop-filter: blur(3px); }
.jpm-checkout-modal.show { display: flex; }
.jpm-checkout-card { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.jpm-checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--navy-900); }
#jpm-checkout-root { min-height: 180px; }
