/* SpendWise — SmitDev navy (#0f2238), aqua (#5ce1e6), Plus Jakarta Sans + Instrument Serif + JetBrains Mono */
:root {
  --ink: #0f2238;
  --ink-2: #16304b;
  --ink-3: #244468;
  --navy: #0c1b2e;
  --aqua: #5ce1e6;
  --aqua-2: #8ff0f3;
  --aqua-d: #0e8e9c;
  --blue: #0e7490;
  --blue-d: #0b5d73;
  --blue-l: #e7fafc;
  --bg: #f6f8fb;
  --text: #0f2238;
  --muted: #52657b;
  --line: #e2e8f0;
  --line-2: #cfd9e6;
  --white: #fff;
  --green: #0b6b47;
  --green-l: #dff6ec;
  --red: #b42318;
  --red-l: #fdecea;
  --amber: #b45309;
  --amber-l: #fef3e2;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 34, 56, 0.05), 0 14px 34px -22px rgba(15, 34, 56, 0.25);
  --shadow-lg: 0 36px 80px -28px rgba(7, 17, 30, 0.52);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.58;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.028em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 36px); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--aqua); letter-spacing: -0.01em; }

/* Brand Mark */
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-ic { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; box-shadow: 0 8px 20px -10px rgba(92, 225, 230, 0.55); }
.brand-ic svg { width: 38px; height: 38px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt strong { font-size: 18px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
.brand-txt small { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand.light .brand-txt strong { color: #fff; }
.brand.light .brand-txt small { color: #9ab3cf; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn i { font-style: normal; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(15, 34, 56, 0.45); }
.btn-aqua { background: var(--aqua); color: var(--ink); font-weight: 800; }
.btn-aqua:hover { background: var(--aqua-2); transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(92, 225, 230, 0.65); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.48); }
.btn-danger { background: #fff; border-color: #f2c4bf; color: var(--red); }
.btn-danger:hover { background: var(--red-l); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .lbl { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.field .hint { font-size: 13.5px; color: var(--muted); }
.in, select.in, textarea.in {
  width: 100%; min-height: 48px; padding: 0 15px; border: 1.5px solid var(--line-2);
  border-radius: 12px; background: #fff; font-size: 15.5px; transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none; -webkit-appearance: none;
}
textarea.in { padding: 12px 15px; min-height: 96px; resize: vertical; }
select.in {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2352657b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.in:focus { outline: none; border-color: var(--aqua-d); box-shadow: 0 0 0 4px rgba(92, 225, 230, 0.28); }
.in::placeholder { color: #8a99ab; }
.err { color: var(--red); font-size: 13.5px; font-weight: 600; }
.in.bad { border-color: var(--red); }
.row2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* Alerts */
.alert { padding: 14px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 600; margin-bottom: 18px; border: 1px solid; }
.alert-ok { background: var(--green-l); border-color: #bfe5d1; color: #0b5a3a; }
.alert-bad { background: var(--red-l); border-color: #f2c4bf; color: var(--red); }
.alert-info { background: var(--blue-l); border-color: #b8eef8; color: var(--blue-d); }

/* ---------- Marketing Header & Drawer (SmitPDF Navy Glass) ---------- */
.mk-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 34, 56, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.mk-nav .wrap { display: flex; align-items: center; gap: 16px; height: 70px; }
@media (max-width: 520px) { .mk-nav .brand-txt small { display: none; } .mk-cta .btn { display: none; } }
.mk-links { display: none; gap: 6px; margin-left: auto; font-weight: 600; font-size: 14.5px; color: #b8cae0; }
.mk-links a { padding: 8px 13px; border-radius: 99px; transition: background 0.2s, color 0.2s; }
.mk-links a:hover, .mk-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.mk-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (min-width: 900px) { .mk-links { display: flex; } .mk-cta { margin-left: 10px; } }
.mk-login { display: none; font-weight: 600; font-size: 14.5px; padding: 0 12px; color: #c9d7e8; }
.mk-login:hover { color: #fff; }
.burger { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: #fff; }
.mk-drawer { position: fixed; inset: 70px 0 0; background: var(--navy); color: #fff; z-index: 39; padding: 18px 22px 32px; overflow: auto; }
.mk-drawer a { display: block; padding: 15px 4px; font-size: 18px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.09); color: #e2ebf5; }
.mk-drawer .btn { margin-top: 20px; }
@media (min-width: 900px) { .mk-login { display: inline; } .burger { display: none; } }

/* ---------- Dark Navy Hero + Architectural Grid ---------- */
.mk-hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding: clamp(46px, 6vw, 84px) 0 clamp(44px, 5vw, 72px);
}
.mk-hero.small { padding: clamp(36px, 4.5vw, 56px) 0; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(85px); opacity: 0.45; }
.hero-bg .orb.a { width: 520px; height: 520px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(92, 225, 230, 0.45), transparent 70%); }
.hero-bg .orb.b { width: 420px; height: 420px; bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(28, 86, 138, 0.65), transparent 70%); }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.mk-hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  background: rgba(92, 225, 230, 0.1); border: 1px solid rgba(92, 225, 230, 0.25); color: #cbe6f2;
}
.eyebrow.light { background: var(--blue-l); border-color: #b8eef8; color: var(--blue-d); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 10px var(--aqua); flex: none; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: #9ab3cf; margin-bottom: 14px; }
.crumb a:hover { color: #fff; }
.crumb b { color: var(--aqua); font-weight: 600; }
.mk-hero h1 { font-size: clamp(2.35rem, 5.2vw, 3.85rem); line-height: 1.04; margin: 16px 0; color: #fff; letter-spacing: -0.035em; }
.mk-hero.small h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 19em; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #b8cae0; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-points { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: #a7bed7; font-weight: 500; }
.hero-points li { position: relative; padding-left: 22px; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--aqua); font-weight: 800; }

/* Dark Hero Sim Studio Card */
.sim {
  background: rgba(15, 34, 56, 0.85); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px; padding: 20px; box-shadow: 0 40px 80px -28px rgba(4, 10, 20, 0.8);
  backdrop-filter: blur(12px);
}
.sim-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sim-dots { display: flex; gap: 6px; }
.sim-dots .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.24); }
.sim-title { font-family: var(--mono); font-size: 11.5px; color: #9ab3cf; }
.sim-badge { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 99px; background: rgba(92, 225, 230, 0.14); color: var(--aqua); border: 1px solid rgba(92, 225, 230, 0.28); }
.sim-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0; }
.sim-tabs button { height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: #b8cae0; font-size: 12.5px; font-weight: 700; transition: 0.2s; }
.sim-tabs button.on { background: var(--aqua); color: var(--ink); border-color: var(--aqua); }
.sim-body { display: grid; gap: 10px; }
.demo-file { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09); }
.demo-file.after { border-color: rgba(92, 225, 230, 0.32); background: rgba(92, 225, 230, 0.08); }
.demo-file .thumb { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; color: var(--aqua); flex: none; }
.demo-file .thumb svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.demo-file .meta { flex: 1; min-width: 0; }
.demo-file .meta b { display: block; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-file .meta span { display: block; font-family: var(--mono); font-size: 12px; color: #9ab3cf; margin-top: 2px; }
.demo-file .tag { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); color: #dce7f5; flex: none; }
.demo-file .tag.good { background: var(--aqua); color: var(--ink); }
.demo-arrow { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--aqua); }
.demo-arrow span { height: 1px; flex: 1; background: rgba(255, 255, 255, 0.1); }
.demo-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.sim-foot { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 10px; margin-top: 4px; }
.sim-kv { padding: 11px 13px; border-radius: 13px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.sim-kv small { display: block; font-size: 11px; color: #8da6c4; }
.sim-kv b { font-family: var(--mono); font-size: 13px; color: #fff; display: block; margin-top: 3px; }

/* Dark 4-col Proof Strip */
.hero-strip { background: #091727; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in > div { padding: 20px 18px; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.strip-in > div:last-child { border-right: 0; }
.strip-in b { display: block; font-size: 15.5px; color: #fff; }
.strip-in span { display: block; font-size: 13px; color: #9ab3cf; margin-top: 2px; }
@media (max-width: 820px) { .strip-in { grid-template-columns: 1fr 1fr; } .strip-in > div:nth-child(2) { border-right: 0; } .strip-in > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); } }
@media (max-width: 500px) { .strip-in { grid-template-columns: 1fr; } .strip-in > div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); } }

/* Sections */
.sec { padding: clamp(54px, 6.5vw, 88px) 0; }
.sec.soft { background: var(--bg); }
.sec.dark { background: var(--ink); color: #fff; }
.sec-h { max-width: 44em; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-h.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-h h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); margin: 12px 0 12px; letter-spacing: -0.03em; }
.sec-h p { font-size: 1.08rem; color: var(--muted); }
.sec.dark .sec-h p { color: #b8cae0; }
.sec-line { border-top: 1px solid var(--line); }

.grid3 { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid2 { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid3, .grid2 { grid-template-columns: minmax(0, 1fr); } }

.fcard { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.ficon { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--aqua); display: grid; place-items: center; margin-bottom: 16px; }
.fcard h3 { font-size: 1.2rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.fcard p { color: var(--muted); font-size: 15px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; width: 38px; height: 38px; border-radius: 11px; background: var(--aqua); color: var(--ink); font-weight: 700; margin-bottom: 16px; }

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; gap: 58px; } .split.rev > :first-child { order: 2; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 11px; font-size: 15.5px; font-weight: 600; align-items: flex-start; }
.ticks .ic { color: var(--aqua-d); margin-top: 2px; flex: none; }

/* Comparison Table (SmitPDF Style) */
.compare-wrap { margin-top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.compare-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.compare-head h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); margin-top: 8px; }
.compare-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 580px; }
.compare-table th { text-align: left; padding: 12px 14px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1.5px solid var(--line); }
.compare-table td { padding: 14px; border-bottom: 1px solid var(--line); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .win { font-weight: 700; color: #0b6b47; background: #effbf5; }
.compare-table .lose { color: var(--muted); }

/* Pricing */
.price-grid { display: grid; gap: 20px; max-width: 960px; margin: 0 auto; }
@media (min-width: 760px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price { padding: clamp(24px, 3.2vw, 36px); border: 1.5px solid var(--line); border-radius: 26px; background: #fff; color: var(--ink); display: flex; flex-direction: column; }
.price.feat { border-color: var(--aqua); box-shadow: 0 36px 70px -36px rgba(0, 0, 0, 0.55); position: relative; }
.price .tag { align-self: flex-start; background: var(--aqua); color: var(--ink); font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.price h3 { font-size: 1.45rem; }
.price .amt { font-size: clamp(2.6rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; margin: 14px 0 4px; line-height: 1; }
.price .amt small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.price .ticks { margin: 0 0 24px; flex: 1; }
.cur-toggle { display: inline-flex; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.cur-toggle.light { border-color: var(--line-2); background: var(--bg); }
.cur-toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #b8cae0; transition: 0.2s; }
.cur-toggle.light button { color: var(--muted); }
.cur-toggle button.on { background: var(--aqua); color: var(--ink); }
.cur-toggle.light button.on { background: var(--ink); color: #fff; }
.price-note { text-align: center; color: var(--muted); margin-top: 22px; font-size: 14.5px; }
.sec.dark .price-note { color: #b8cae0; }

/* Dark Persona / Built-for Strip */
.who-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
@media (max-width: 960px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who-grid { grid-template-columns: minmax(0, 1fr); } }
.who-card { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.11); transition: border-color 0.2s, transform 0.2s var(--ease); }
.who-card:hover { border-color: rgba(92, 225, 230, 0.5); transform: translateY(-2px); }
.who-card b { display: block; color: #fff; font-size: 16px; margin-bottom: 6px; }
.who-card p { color: #a7bed7; font-size: 14px; line-height: 1.5; }
.who-tag { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--aqua); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.08em; }

/* Rich Mini UI Showcase Cards on Features Page */
.fui { padding: 24px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); box-shadow: var(--shadow); }
.fui:hover { transform: translateY(-2px); border-color: var(--line-2); }
.fui-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.fui-top strong { font-size: 14px; color: var(--ink); letter-spacing: -0.01em; }
.fui-top span { font-family: var(--mono); font-size: 11.5px; color: var(--blue-d); background: var(--blue-l); padding: 3px 9px; border-radius: 99px; font-weight: 700; }
.fui-rows { display: grid; gap: 10px; }
.fui-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; }
.fui-row b { display: block; font-size: 14px; color: var(--ink); }
.fui-row small { color: var(--muted); font-size: 12px; font-weight: 600; }
.fui-row .num { font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.fui-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.fui-pill { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); }
.fui-pill.on { background: var(--ink); border-color: var(--ink); color: var(--aqua); }

/* Sticky 2-col FAQ & CTA & Footer */
.faq-grid { display: grid; gap: clamp(24px, 4vw, 52px); align-items: start; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 0.78fr 1.22fr; } .faq-side { position: sticky; top: 96px; } }
.faq-side .sec-h { margin-bottom: 0; }
.faq { max-width: 860px; width: 100%; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 1.06rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 600; color: var(--aqua-d); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 15px; }

.cta-band { background: var(--aqua); color: var(--ink); padding: clamp(50px, 6.5vw, 84px) 0; text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.035em; line-height: 1.06; max-width: 18em; margin: 0 auto 12px; }
.cta-band p { color: var(--ink-2); font-size: 1.12rem; max-width: 36em; margin: 0 auto 24px; }

.band { background: var(--ink); color: #fff; border-radius: 26px; padding: clamp(38px, 5vw, 56px) 28px; text-align: center; position: relative; overflow: hidden; }
.band h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); max-width: 17em; margin: 0 auto 12px; }
.band p { color: #b8cae0; font-size: 1.08rem; max-width: 34em; margin: 0 auto 24px; }
.band::before { content: ""; position: absolute; width: 480px; height: 480px; right: -140px; top: -240px; background: radial-gradient(closest-side, rgba(92, 225, 230, 0.25), transparent); pointer-events: none; }

.mk-foot { background: var(--ink); color: #b0c2d8; padding: clamp(48px, 6vw, 72px) 0 28px; }
.foot-grid { display: grid; gap: 34px; }
@media (min-width: 780px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-note { margin-top: 14px; font-size: 14.5px; max-width: 24em; color: #a7bed7; }
.foot-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.foot-badges span { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.14); color: #c6d1df; }
.foot-grid h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8da6c4; margin-bottom: 14px; }
.foot-grid > div > a { display: block; padding: 5px 0; color: #c6d1df; font-weight: 600; font-size: 14.5px; }
.foot-grid > div > a:hover { color: #fff; }
.foot-bot { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #8da6c4; font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

.page-hero { padding: clamp(36px, 4.5vw, 56px) 0; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.035em; max-width: 18em; color: #fff; margin-top: 14px; }
.page-hero p { margin-top: 12px; font-size: 1.08rem; color: #b8cae0; max-width: 38em; }
.prose { max-width: 760px; padding-bottom: 40px; }
.prose h2 { font-size: 1.45rem; margin: 32px 0 10px; }
.prose p, .prose li { color: #33465c; font-size: 1.04rem; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }

/* ---------- Device Mockups ---------- */
.mock-stage { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.phone { position: relative; z-index: 1; width: 292px; border: 9px solid var(--ink); border-radius: 42px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; color: var(--ink); }
.phone .notch { width: 86px; height: 22px; background: var(--ink); border-radius: 0 0 16px 16px; margin: 0 auto; }
.ph-body { padding: 14px 16px 18px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.ph-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #eef2f7; border-radius: 12px; padding: 3px; gap: 3px; font-size: 13px; font-weight: 700; text-align: center; margin-bottom: 14px; }
.ph-seg span { padding: 7px 0; border-radius: 9px; color: var(--muted); }
.ph-seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 34, 56, 0.12); }
.ph-amt { text-align: center; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; margin: 6px 0 2px; }
.ph-amt small { font-size: 22px; color: var(--muted); font-weight: 700; }
.ph-cap { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ph-chip { padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; }
.ph-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ph-row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.ph-row span:last-child { color: var(--muted); }
.ph-btn { margin-top: 12px; background: var(--ink); color: #fff; text-align: center; font-weight: 800; padding: 14px; border-radius: 999px; font-size: 15px; }
.float-card { position: absolute; z-index: 2; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 14px; font-weight: 700; }
.float-card b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.float-card.a { left: -18px; top: 14%; width: 155px; animation: bob 6s ease-in-out infinite; }
.float-card.b { right: -18px; bottom: 12%; width: 155px; animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.float-card .bar { height: 7px; border-radius: 99px; background: #e7edf4; margin-top: 8px; width: 100%; overflow: hidden; }
.float-card .bar i { display: block; height: 100%; width: 64%; background: var(--aqua-d); border-radius: 99px; }
@media (max-width: 520px) { .float-card { display: none; } .phone { width: 268px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.browser { border: 1px solid var(--line-2); border-radius: 22px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #f3f6fa; }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.browser-dots i:nth-child(1) { background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url { margin: 0 auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 4px 14px; border-radius: 99px; }
.browser-body { display: grid; grid-template-columns: 146px 1fr; min-height: 316px; }
.b-side { border-right: 1px solid var(--line); padding: 14px 10px; font-size: 13px; font-weight: 700; color: var(--muted); display: grid; gap: 4px; align-content: start; background: #fcfdfe; }
.b-side span { padding: 8px 10px; border-radius: 10px; }
.b-side .on { background: var(--ink); color: #fff; }
.b-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.b-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.b-head strong { color: var(--ink); font-size: 14.5px; }
.b-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.b-stat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.b-stat.hero { background: var(--ink); border-color: var(--ink); color: #fff; }
.b-stat.hero small { color: #9ab3cf; }
.b-stat small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; margin-bottom: 2px; }
.b-stat b { font-size: 16px; letter-spacing: -0.02em; }
.b-bars { display: flex; align-items: flex-end; gap: 8px; height: 108px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px 10px; background: linear-gradient(180deg, #fff 0%, #f9fbfd 100%); }
.b-bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.b-bars i { width: 100%; max-width: 24px; border-radius: 6px 6px 2px 2px; background: var(--ink); display: block; }
.b-bars i.a { background: var(--aqua-d); }
.b-bars small { font-family: var(--mono); font-size: 10px; color: var(--muted); }
@media (max-width: 560px) { .browser-body { grid-template-columns: 1fr; } .b-side { display: none; } }

/* ---------- Auth Split Shell (SmitPDF Navy/Aqua System) ---------- */
.auth { min-height: 100svh; display: grid; background: var(--bg); }
@media (min-width: 960px) { .auth { grid-template-columns: 0.95fr 1.05fr; } }
.auth-side {
  display: none; background: var(--ink); color: #fff; padding: clamp(28px, 4vw, 48px);
  flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden;
  background-image: radial-gradient(700px 420px at 90% 10%, rgba(92, 225, 230, 0.18), transparent 65%);
}
.auth-side-copy { max-width: 440px; }
.auth-side-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.08; margin: 14px 0; }
.auth-side-copy p { color: #c6d1df; font-size: 15.5px; }
.auth-proof { margin: 22px 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.auth-proof div { flex: 1; }
.auth-proof span { display: block; font-size: 12px; color: #9ab3cf; }
.auth-proof b { font-family: var(--mono); font-size: 15px; color: #fff; }
.auth-proof .good b { color: var(--aqua); }
.auth-proof i { font-style: normal; color: var(--aqua); font-weight: 700; }
.auth-side-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; color: #c6d1df; font-size: 14.5px; }
.auth-side-copy li { position: relative; padding-left: 22px; }
.auth-side-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--aqua); font-weight: 700; }
.auth-back { font-size: 14px; font-weight: 600; color: #b0c2d8; }
.auth-back:hover { color: #fff; }
@media (min-width: 960px) { .auth-side { display: flex; } .auth-top-brand { display: none; } }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 28px 16px; }
.auth-card { width: 100%; max-width: 500px; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 3.8vw, 38px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; letter-spacing: -0.03em; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; font-size: 15.5px; }
.auth-foot { margin-top: 18px; color: var(--muted); font-size: 14.5px; text-align: center; }
.auth-foot a { color: var(--blue-d); font-weight: 700; }

/* ---------- Workspace App Shell ---------- */
.app { min-height: 100vh; background: var(--bg); }
.side { display: none; }
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 16px; }
.ws-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 8px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; font-weight: 700; font-size: 15px; max-width: 68vw; }
.ws-btn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--aqua); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.ws-dot.biz { background: var(--aqua); color: var(--ink); }
.top .grow { flex: 1; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--aqua); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.main { padding: 22px 16px calc(112px + env(safe-area-inset-bottom)); max-width: 1120px; margin: 0 auto; }
.page-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-h h1 { font-size: 1.75rem; letter-spacing: -0.03em; }
.page-h p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); align-items: end; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; font-size: 12.5px; font-weight: 700; color: var(--muted); min-height: 54px; border: 0; background: none; }
.tab .ic { width: 24px; height: 24px; }
.tab[aria-current] { color: var(--ink); }
.tab[aria-current] .ic { color: var(--aqua-d); }
.tab-add { display: grid; place-items: center; width: 60px; height: 60px; margin: -26px auto 0; border-radius: 50%; background: var(--ink); color: var(--aqua); box-shadow: 0 10px 26px rgba(15, 34, 56, 0.35); border: 4px solid #fff; }
.tab-add .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.sheet-back { position: fixed; inset: 0; background: rgba(15, 34, 56, 0.45); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; background: #fff; border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); max-height: 86vh; overflow: auto; animation: up 0.22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0.4; } }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 4px auto 14px; }
.sheet h3 { font-size: 1.15rem; margin-bottom: 8px; }
.sheet a, .sheet button.row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; font-weight: 700; font-size: 16.5px; text-align: left; }
.sheet .ic { color: var(--aqua-d); }
.ws-item { justify-content: space-between; }
.ws-item small { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.ws-item[aria-current] .ws-dot { outline: 3px solid var(--aqua); }

.trial { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #e7fafc 0%, #f1f7fd 100%); border: 1px solid #bdeaf2; color: var(--blue-d); padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 14.5px; margin-bottom: 20px; }
.trial a { display: inline-flex; align-items: center; gap: 5px; background: var(--ink); color: #fff; padding: 6px 13px; border-radius: 99px; font-size: 13px; font-weight: 700; text-decoration: none; }
.trial a:hover { background: var(--ink-2); }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 272px 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); padding: 22px 16px; background: #fff; overflow: auto; }
  .side .brand { padding: 0 6px; margin-bottom: 20px; }
  .side-ws { position: relative; margin-bottom: 18px; }
  .side-nav { display: grid; gap: 3px; }
  .side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--muted); }
  .side-nav a:hover { background: var(--bg); color: var(--ink); }
  .side-nav a[aria-current] { background: var(--ink); color: #fff; }
  .side-nav a[aria-current] .ic { color: var(--aqua); }
  .side-sec { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #7a8a9d; letter-spacing: 0.08em; text-transform: uppercase; padding: 18px 14px 6px; }
  .side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
  .top, .tabbar { display: none; }
  .app-main-wrap { min-width: 0; }
  .main { padding: 32px 36px 60px; }
  .page-h h1 { font-size: 1.95rem; }
}
@media (max-width: 899px) { .desk-only { display: none !important; } }
@media (min-width: 900px) { .mob-only { display: none !important; } }
.ws-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; z-index: 20; }
.ws-pop a, .ws-pop button.row { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px; border: 0; background: none; border-radius: 10px; font-weight: 700; font-size: 14.5px; text-align: left; }
.ws-pop a:hover, .ws-pop button.row:hover { background: var(--bg); }

/* Cards & Data */
.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 20px; box-shadow: 0 2px 12px -8px rgba(15, 34, 56, 0.12); }
.card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px 12px; }
.card-h h2, .card-h h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.card-h a { color: var(--blue-d); font-weight: 700; font-size: 14.5px; }
.stack { display: grid; gap: 16px; }
.stats { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats.stats-2 { grid-template-columns: repeat(2, 1fr); } .stats.stats-1 { grid-template-columns: 1fr; } .stats.stats-1 .stat.hero-stat { grid-column: 1 / -1; } }
@media (max-width: 520px) { .stats { gap: 10px; } .stat { padding: 14px; } .stat b { font-size: 1.25rem; word-break: break-word; } .stat.hero-stat b { font-size: 1.9rem; } }
.stat { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: #fff; }
.stat small { display: block; color: var(--muted); font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.stat b { font-size: 1.45rem; letter-spacing: -0.03em; display: block; }
.stat.hero-stat { grid-column: 1/-1; background: var(--ink); border-color: var(--ink); color: #fff; padding: 22px; position: relative; overflow: hidden; }
.stat.hero-stat small { color: #b0c2d8; }
.stat.hero-stat b { font-size: 2.3rem; }
.stat.hero-stat::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; background: radial-gradient(closest-side, rgba(92, 225, 230, 0.35), transparent); }
@media (min-width: 900px) { .stat.hero-stat { grid-column: span 2; } }
.pos { color: var(--green); }
.neg { color: var(--red); }
.cols { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1000px) { .cols { grid-template-columns: 1.25fr 1fr; } }

.tx-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3.2vw, 30px); box-shadow: var(--shadow); }
.report-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.report-filters { display: grid; gap: 10px; align-items: center; flex: 1; }
.report-filters .rf-period { min-width: 0; }
@media (min-width: 760px) { .report-filters { grid-template-columns: minmax(210px, 250px); } .report-filters.is-custom { grid-template-columns: minmax(180px, 210px) repeat(2, minmax(145px, 175px)) auto; } }
.report-meta { display: flex; align-items: center; gap: 8px; }
.acc-edit { width: 100%; margin-top: 10px; }
.acc-edit > summary { display: inline-flex; }
.acc-edit-box { margin-top: 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; }
.empty-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--blue-l); color: var(--blue-d); display: grid; place-items: center; margin: 0 auto 14px; }

.tx { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; flex: none; }
.tx-main { flex: 1; min-width: 0; }
.tx-main b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-main small { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.tx-amt { font-weight: 800; font-size: 15.5px; text-align: right; white-space: nowrap; }
.tx-amt small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.day { font-size: 13.5px; font-weight: 800; color: var(--muted); padding: 16px 0 4px; display: flex; justify-content: space-between; }
a.tx:hover { background: var(--bg); margin: 0 -10px; padding: 13px 10px; border-radius: 12px; }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #eef2f7; color: var(--muted); }
.badge.ok { background: var(--green-l); color: var(--green); }
.badge.warn { background: var(--amber-l); color: var(--amber); }
.badge.bad { background: var(--red-l); color: var(--red); }
.badge.blue { background: var(--blue-l); color: var(--blue-d); }

.meter { height: 10px; border-radius: 99px; background: #e8eef5; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--aqua-d); transition: width 0.5s; }
.meter.warn i { background: #d97706; }
.meter.over i { background: var(--red); }

.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; flex: none; }
.donut::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: #fff; }
.legend { display: grid; gap: 10px; flex: 1; min-width: 200px; }
.legend div { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.legend i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.legend span { margin-left: auto; font-weight: 800; }
.chart-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 170px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-pair { display: flex; gap: 4px; align-items: flex-end; height: 130px; width: 100%; justify-content: center; }
.bar-pair i { display: block; width: 42%; max-width: 26px; border-radius: 7px 7px 2px 2px; min-height: 3px; }
.bar-pair .inc { background: var(--aqua); }
.bar-pair .exp { background: var(--ink); }
.bar-col small { font-weight: 700; color: var(--muted); font-size: 12.5px; }
.key { display: flex; gap: 16px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 1.2rem; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* Add Transaction */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #eef2f7; border-radius: 16px; padding: 4px; gap: 4px; margin-bottom: 22px; }
.seg button { border: 0; background: transparent; min-height: 46px; border-radius: 12px; font-weight: 800; font-size: 15.5px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(15, 34, 56, 0.15); }
.amount-box { text-align: center; margin: 8px 0 22px; }
.amount-box label { display: block; color: var(--muted); font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.amount-in { display: flex; align-items: center; justify-content: center; gap: 4px; }
.amount-in span { font-size: 2.6rem; font-weight: 700; color: var(--muted); }
.amount-in input { border: 0; background: transparent; field-sizing: content; width: auto; min-width: 0; max-width: 68%; font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; text-align: center; padding: 0; }
.amount-in input:focus { outline: none; }
.amount-in input::placeholder { color: #c3ccd8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; font-weight: 700; font-size: 14.5px; }
.chip i { width: 10px; height: 10px; border-radius: 50%; }
.chip.on, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.form-sec { margin-bottom: 20px; }
.form-sec > .lbl { display: block; margin-bottom: 10px; }
.cat-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.cat-panel .chips { max-height: 210px; overflow: auto; margin-top: 10px; }
.sticky-save { position: sticky; bottom: calc(86px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: linear-gradient(to top, #fff 70%, transparent); padding: 14px 0 6px; margin-top: 10px; }
@media (min-width: 900px) { .sticky-save { position: static; grid-template-columns: 1fr 1fr; background: none; } }
details.more { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 18px; }
details.more summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 6px; }
.narrow { max-width: 620px; margin: 0 auto; }

.filters-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 16px; box-shadow: 0 2px 10px -8px rgba(15, 34, 56, 0.12); }
.filters { display: grid; gap: 10px; }
@media (min-width: 820px) { .filters { grid-template-columns: repeat(12, 1fr); } .filters .f-q { grid-column: span 5; } .filters .f-type { grid-column: span 2; } .filters .f-cat { grid-column: span 3; } .filters .f-acc { grid-column: span 2; } .filters .f-from { grid-column: span 3; } .filters .f-to { grid-column: span 3; } .filters .f-sort { grid-column: span 4; } .filters .f-go { grid-column: span 2; } }
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 15px; color: var(--muted); }
.search .in { padding-left: 44px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 700; padding: 0 12px; }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv div:last-child { border: 0; }
.kv span { color: var(--muted); font-weight: 600; }
.kv b { text-align: right; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border: 0; }
.list-row .grow { flex: 1; min-width: 160px; }
.list-row .grow b { display: block; }
.list-row .grow small { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches label { cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line-2); }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--ink); }

/* Paywall + Confirm Modals */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(15, 34, 56, 0.62); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; overflow: auto; }
.modal { width: 100%; max-width: 480px; background: #fff; border-radius: 26px; padding: 30px 26px 26px; box-shadow: var(--shadow-lg); position: relative; animation: pop 0.22s ease-out; }
@keyframes pop { from { transform: scale(0.96) translateY(10px); opacity: 0; } }
.modal h2 { font-size: 1.6rem; margin-bottom: 8px; letter-spacing: -0.03em; }
.modal .sub { color: var(--muted); margin-bottom: 18px; }
.modal-x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.plan-pick button { padding: 14px; border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff; text-align: left; }
.plan-pick button.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(92, 225, 230, 0.5); }
.plan-pick b { display: block; font-size: 16.5px; }
.plan-pick small { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.pw-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0; }
.pw-price b { font-size: 2.8rem; letter-spacing: -0.04em; font-weight: 800; }
.pw-price span { color: var(--muted); font-weight: 700; }
.pw-msg { min-height: 22px; font-size: 14.5px; font-weight: 600; margin-top: 10px; color: var(--muted); }
.pw-msg.bad { color: var(--red); }
.locked-bg { filter: blur(3px); pointer-events: none; user-select: none; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 90; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-lg); animation: up 0.25s; max-width: 92vw; }
@media (min-width: 900px) { .toast { bottom: 30px; } }
.table-wrap { overflow: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 13px 8px; border-bottom: 1px solid var(--line); }
