:root {
  color-scheme: light;
  --canvas: #f4f5f8;
  --canvas-deep: #e4e8f0;
  --surface: #fafbff;
  --surface-strong: #ffffff;
  --surface-soft: #eef0f7;
  --ink: #111722;
  --ink-soft: #303846;
  --muted: #6e7787;
  --muted-light: #98a0ae;
  --line: #dfe3eb;
  --line-strong: #c9cfdb;
  --accent: #4a5cff;
  --accent-dark: #303ed0;
  --accent-bright: #ff846b;
  --accent-soft: #e9ebff;
  --amber: #efad4e;
  --amber-soft: #fff1d9;
  --danger: #bd565d;
  --danger-soft: #fff0f1;
  --dark: #111722;
  --dark-2: #202839;
  --shadow-sm: 0 10px 28px rgba(24, 34, 58, .08);
  --shadow-md: 0 22px 60px rgba(24, 34, 58, .14);
  --shadow-lg: 0 38px 100px rgba(24, 34, 58, .2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, "Avenir Next", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.55; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
body::selection { background: #cdd2ff; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(74, 92, 255, .3); outline-offset: 3px; }
.shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.055em; line-height: 1.08; }
h1 { font-size: clamp(3.5rem, 6.4vw, 6.6rem); font-weight: 680; }
h2 { font-size: clamp(2.4rem, 4vw, 4.1rem); font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 720; }
em { color: var(--accent); font-family: inherit; font-style: normal; font-weight: 780; }
.text-link { color: var(--accent-dark); font-weight: 720; text-decoration: underline; text-decoration-color: #b9c0ff; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color 160ms ease-out, text-decoration-color 160ms ease-out; }
.text-link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.text-link-arrow { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.signal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(255, 132, 107, .15); }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-strong); color: var(--ink); font-size: 13px; font-weight: 760; letter-spacing: -.01em; transition: transform 160ms var(--ease-out), border-color 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out; }
.button:active { transform: scale(.97); }
.button-primary { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(74, 92, 255, .18); }
.button-ghost { border-color: transparent; background: transparent; box-shadow: none; }
.button-small { min-height: 37px; padding-inline: 13px; font-size: 12px; }
.button-large { min-height: 55px; padding-inline: 23px; font-size: 14px; }
.button-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
  .button-primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); box-shadow: 0 12px 26px rgba(74, 92, 255, .26); }
  .button-ghost:hover { background: var(--accent-soft); box-shadow: none; }
}

/* Marketing */
.marketing-page { position: relative; overflow: clip; background: var(--canvas); }
.marketing-page::before { position: absolute; top: -260px; right: -180px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(204, 210, 255, .78), transparent 68%); content: ""; pointer-events: none; }
.site-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 90px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 790; letter-spacing: -.06em; }
.brand-mark { position: relative; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--accent); color: #fff; transform: rotate(-4deg); }
.brand-mark::after { position: absolute; right: -3px; bottom: -3px; width: 7px; height: 7px; border: 2px solid var(--canvas); border-radius: 50%; background: var(--accent-bright); content: ""; }
.brand-mark span { display: block; font-family: inherit; font-size: 15px; font-style: normal; font-weight: 850; line-height: 1; transform: rotate(4deg); }
.brand-word { line-height: 1; }
.brand-dot { color: var(--accent-bright); }
.site-nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 12px; font-weight: 680; }
.site-nav a:not(.button) { transition: color 160ms ease-out; }
.site-nav a:not(.button):hover { color: var(--ink); }
.site-nav-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-light); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 64px; align-items: center; min-height: 700px; padding-top: 70px; padding-bottom: 88px; }
.hero-copy { position: relative; z-index: 1; max-width: 625px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 680px; margin: 0 0 25px; }
.hero-lede { max-width: 510px; margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 36px; }
.hero-note { margin: 17px 0 0; color: var(--muted-light); font-size: 11px; }
.hero-proof { display: flex; gap: 24px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-proof span { display: grid; gap: 2px; min-width: 94px; }
.hero-proof strong { color: var(--ink); font-size: 10px; letter-spacing: .09em; }
.hero-proof small { color: var(--muted); font-size: 11px; }
.hero-visual { position: relative; display: grid; min-height: 570px; place-items: center; }
.hero-visual::before { position: absolute; top: 50%; left: 50%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 204, 255, .92) 0, rgba(220, 222, 255, .38) 52%, transparent 72%); content: ""; transform: translate(-50%, -50%); }
.hero-visual-grid { position: absolute; inset: 9% 0 5%; opacity: .58; background-image: linear-gradient(rgba(74, 92, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 92, 255, .13) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%); }
.preview-window { position: relative; z-index: 1; width: min(100%, 560px); overflow: hidden; border: 1px solid #303b55; border-radius: 14px; background: var(--dark); color: #fff; box-shadow: var(--shadow-lg); transform: rotate(-2.5deg); }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 18px; border-bottom: 1px solid #303b55; background: #1a2130; }
.preview-context { display: inline-flex; align-items: center; gap: 11px; color: #aeb7ca; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.window-dots { display: inline-flex; gap: 5px; }
.window-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #546179; }
.window-dots i:first-child { background: var(--accent-bright); }
.window-dots i:last-child { background: #6f84ff; }
.preview-avatar { display: grid; width: 27px; height: 27px; place-items: center; border: 3px solid #303b55; border-radius: 50%; background: #29344e; color: #cbd1ff; font-size: 9px; font-weight: 850; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.preview-body { padding: 27px 29px 25px; }
.preview-topline { display: flex; justify-content: space-between; margin-bottom: 18px; color: #8490a6; font-size: 9px; font-weight: 680; }
.preview-link { color: #9da8ff; }
.preview-greeting { margin-bottom: 5px; color: #aeb7ff; font-size: 11px; font-weight: 780; }
.preview-balance-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.preview-balance-row span { display: block; color: #8d98ae; font-size: 10px; }
.preview-balance-row strong { display: block; margin-top: 4px; color: #fff; font-size: 30px; letter-spacing: -.065em; line-height: 1; }
.preview-trend { padding: 6px 8px; border-radius: 7px; background: rgba(255, 132, 107, .14); color: #ffb09d !important; font-size: 9px !important; font-weight: 800; }
.preview-chart { padding: 13px 13px 0; border: 1px solid #303b55; border-radius: 10px; background: #182131; }
.chart-head { display: flex; justify-content: space-between; color: #8d98ae; font-size: 9px; font-weight: 720; }
.chart-head span:last-child { color: #e4e7ff; }
.chart-bars { display: flex; height: 62px; align-items: end; gap: 6px; padding-top: 12px; background: linear-gradient(to bottom, transparent 49%, #2a3448 50%, transparent 51%, transparent 74%, #2a3448 75%, transparent 76%); }
.chart-bars i { display: block; width: 100%; min-height: 11px; border-radius: 3px 3px 0 0; background: #5966bd; }
.chart-bars i:nth-child(1) { height: 26%; }.chart-bars i:nth-child(2) { height: 39%; }.chart-bars i:nth-child(3) { height: 34%; }.chart-bars i:nth-child(4) { height: 53%; }.chart-bars i:nth-child(5) { height: 47%; }.chart-bars i:nth-child(6) { height: 67%; }.chart-bars i:nth-child(7) { height: 58%; }.chart-bars i:nth-child(8) { height: 80%; }.chart-bars i:nth-child(9) { height: 71%; }.chart-bars i:nth-child(10) { height: 91%; background: var(--accent); }.chart-bars i:nth-child(11) { height: 78%; }.chart-bars i:nth-child(12) { height: 100%; background: var(--accent-bright); }
.preview-list { margin-top: 23px; }
.preview-list-head { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 10px; }
.preview-list-head span { color: var(--accent); font-size: 9px; font-weight: 800; }
.preview-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #303b55; }
.preview-row-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: var(--amber-soft); color: #a66c2b; font-size: 13px; }
.preview-row-icon.positive { background: rgba(74, 92, 255, .18); color: #aeb7ff; }
.preview-row-main { display: grid; flex: 1; gap: 1px; min-width: 0; }
.preview-row-main strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.preview-row-main small { color: #8d98ae; font-size: 9px; }
.preview-row-amount { font-size: 10px; }
.positive-text { color: var(--accent) !important; }
.floating-note { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid #d6d9ef; border-radius: 10px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-sm); color: var(--muted); }
.floating-note > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.floating-note div { display: grid; gap: 1px; }
.floating-note strong { color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.floating-note small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.floating-note-one { top: 94px; right: -8px; }
.floating-note-two { bottom: 45px; left: -16px; }
.trust-strip { position: relative; z-index: 1; display: flex; align-items: center; gap: 19px; padding: 19px 0 21px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.trust-line { width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-bright); }
.section { padding-top: 150px; padding-bottom: 160px; }
.section-intro { max-width: 650px; }
.section-intro h2 { margin-bottom: 20px; }
.section-intro > p:last-child { max-width: 500px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 68px; }
.feature-card { position: relative; min-height: 265px; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 252, .58); transition: transform 200ms var(--ease-out), border-color 200ms ease-out, box-shadow 200ms ease-out; }
.feature-card::after { position: absolute; right: -35px; bottom: -55px; width: 145px; height: 145px; border-radius: 50%; background: radial-gradient(circle, rgba(204, 210, 255, .72), transparent 68%); content: ""; }
.feature-card-top { display: flex; align-items: center; justify-content: space-between; }
.feature-card-top > span:first-child { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.feature-arrow { color: var(--muted-light); font-size: 19px; transition: color 180ms ease-out, transform 180ms var(--ease-out); }
.feature-card h3 { position: relative; z-index: 1; margin: 82px 0 10px; font-size: 20px; }
.feature-card p { position: relative; z-index: 1; max-width: 270px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover { border-color: #aab2ff; box-shadow: var(--shadow-sm); transform: translateY(-4px); }
  .feature-card:hover .feature-arrow { color: var(--accent); transform: translate(2px, -2px); }
}
.principles-section { padding: 112px 0; background: var(--dark); color: #fff; }
.principles-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 130px; }
.principles-intro h2 { margin-bottom: 20px; }
.principles-intro h2 em, .principles-section .eyebrow { color: #aeb7ff; }
.principles-intro > p:last-child { max-width: 330px; margin-bottom: 0; color: #aab3c7; font-size: 14px; line-height: 1.75; }
.principles-list { border-top: 1px solid rgba(211, 216, 255, .18); }
.principle { display: grid; grid-template-columns: 34px 1fr; gap: 19px; padding: 25px 0; border-bottom: 1px solid rgba(211, 216, 255, .18); }
.principle-mark { color: #ff9a84; font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.principle h3 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.03em; }
.principle p { max-width: 430px; margin: 0; color: #aab3c7; font-size: 14px; }
.final-cta { display: flex; align-items: end; justify-content: space-between; padding-top: 112px; padding-bottom: 124px; }
.final-cta h2 { margin-bottom: 10px; }
.final-cta p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 36px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; color: var(--muted); font-size: 11px; }

/* Auth */
.auth-page { min-height: 100vh; background: radial-gradient(circle at 15% 12%, rgba(204, 210, 255, .82), transparent 30%), var(--canvas); }
.auth-header { display: flex; align-items: center; justify-content: space-between; min-height: 90px; }
.auth-main { display: grid; min-height: calc(100vh - 90px); place-items: center; padding-top: 35px; padding-bottom: 78px; }
.auth-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, .85fr); gap: 70px; align-items: center; width: min(100%, 930px); }
.auth-story { position: relative; min-height: 510px; padding: 42px; overflow: hidden; border-radius: 28px; background: var(--dark); color: #fff; box-shadow: var(--shadow-lg); }
.auth-story::after { position: absolute; right: -100px; bottom: -130px; width: 330px; height: 330px; border: 1px solid rgba(174, 183, 255, .24); border-radius: 50%; box-shadow: 0 0 0 34px rgba(174, 183, 255, .05), 0 0 0 68px rgba(255, 132, 107, .04); content: ""; }
.auth-story-mark { display: grid; width: 38px; height: 38px; margin-bottom: 112px; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9px; color: #aeb7ff; font-family: inherit; font-size: 15px; font-style: normal; font-weight: 850; }
.auth-story .eyebrow { color: #aeb7ff; }
.auth-story h2 { max-width: 360px; margin: 0 0 17px; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.065em; }
.auth-story > p:not(.eyebrow) { max-width: 350px; margin: 0; color: #aab3c7; font-size: 14px; line-height: 1.7; }
.auth-story-note { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(211, 216, 255, .18); }
.auth-story-note > span { color: #ff9a84; font-size: 17px; }
.auth-story-note div { display: grid; gap: 2px; }
.auth-story-note strong { font-size: 12px; }.auth-story-note small { color: #aab3c7; font-size: 11px; }
.auth-card { width: 100%; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 252, .82); box-shadow: var(--shadow-md); }
.auth-card h1 { margin: 0 0 11px; font-size: clamp(2.3rem, 5vw, 3.4rem); }
.auth-lede { margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.stack-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-label { color: var(--ink-soft); font-size: 11px; font-weight: 780; }
.field input, .field select, .field textarea, .inline-form input { width: 100%; min-height: 47px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 11px; outline: 0; background: var(--surface-strong); color: var(--ink); font-size: 14px; transition: border-color 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out; }
.field input::placeholder, .field textarea::placeholder, .inline-form input::placeholder { color: #9aa2b2; }
.field textarea { min-height: 100px; padding-top: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(74, 92, 255, .12); }
.field-help { color: var(--muted-light); font-size: 10px; }
.auth-links, .auth-footnote { display: flex; justify-content: space-between; gap: 15px; margin: 22px 0 0; color: var(--muted); font-size: 11px; }
.auth-footnote { display: block; text-align: center; }
.notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid; border-radius: 11px; font-size: 12px; }
.notice-error { border-color: #efc4c4; background: var(--danger-soft); color: #963e3e; }.notice-success { border-color: #c4d5f4; background: #eef3ff; color: #334e8f; }.notice-info { border-color: #c5d7e6; background: #f0f7fc; color: #385b73; }

/* App shell */
.app-page { min-height: 100vh; background: var(--canvas); }
.app-mobile-header { display: none; }
.app-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 50px; align-items: start; }
.app-sidebar { position: sticky; top: 0; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: 30px 0 28px; }
.workspace-switcher { display: flex; align-items: center; gap: 10px; margin-top: 43px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 252, .7); }
.workspace-mark { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; font-weight: 850; }
.workspace-switcher > span:nth-child(2) { display: grid; flex: 1; gap: 1px; min-width: 0; }.workspace-switcher small { color: var(--muted-light); font-size: 9px; }.workspace-switcher strong { overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.workspace-chevron { color: var(--muted-light); font-size: 16px; }
.sidebar-label { margin: 31px 10px 10px; color: var(--muted-light); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.app-nav { display: grid; gap: 3px; }
.app-nav-link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px; border-radius: 11px; color: var(--muted); font-size: 12px; font-weight: 700; transition: color 150ms ease-out, background-color 150ms ease-out, transform 150ms var(--ease-out); }
.nav-icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: var(--muted-light); font-size: 14px; }
.app-nav-link.active { background: var(--dark); color: #fff; box-shadow: 0 8px 18px rgba(24, 34, 58, .16); }.app-nav-link.active .nav-icon { background: rgba(255, 255, 255, .12); color: #b9c0ff; }
@media (hover: hover) and (pointer: fine) { .app-nav-link:not(.active):hover { background: var(--accent-soft); color: var(--accent-dark); transform: translateX(2px); } }
.sidebar-bottom { display: grid; gap: 17px; }.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px 0 16px; border-top: 1px solid var(--line); }.sidebar-user > span:last-child { display: grid; min-width: 0; gap: 1px; }.sidebar-user strong { overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.sidebar-user small { overflow: hidden; color: var(--muted-light); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-size: 10px; font-weight: 850; }.sidebar-logout { display: inline-flex; align-items: center; gap: 9px; padding: 0 10px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; transition: color 150ms ease-out; }.sidebar-logout span { font-size: 15px; transform: rotate(90deg); }.sidebar-logout:hover { color: var(--danger); }
.app-main { min-width: 0; padding-top: 60px; padding-bottom: 100px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 39px; }.page-heading-copy { min-width: 0; }.page-heading h1 { max-width: 780px; margin: 0 0 10px; font-size: clamp(2.3rem, 4.4vw, 4.3rem); }.page-description { margin: 0; color: var(--muted); font-size: 14px; }.page-heading-action { flex: 0 0 auto; }
.stat-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }.stat-card { min-height: 146px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, .78); }.stat-card-top { display: flex; align-items: center; justify-content: space-between; }.stat-card p, .stat-card > span { display: block; margin: 0; color: var(--muted); font-size: 10px; }.stat-card-spark { color: var(--accent); font-size: 14px !important; }.stat-card strong { display: block; margin: 26px 0 8px; color: var(--ink); font-size: 27px; letter-spacing: -.065em; line-height: 1; }.stat-card-dark { border-color: var(--dark); background: var(--dark); box-shadow: 0 12px 26px rgba(24, 34, 58, .18); }.stat-card-dark p, .stat-card-dark > span { color: #aeb7ca; }.stat-card-dark strong { color: #fff; }.stat-card-dark .stat-card-spark { color: #ff9a84; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.panel, .create-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .78); }.panel { padding: 24px; }.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 20px; }.panel-head h2, .create-panel h2 { margin: 0 0 5px; font-size: 18px; }.panel-head p, .create-panel p { margin: 0; color: var(--muted); font-size: 12px; }.panel-count { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent-dark); font-size: 10px; font-weight: 850; }
.list-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }.list-cards-large { grid-template-columns: repeat(3, 1fr); }.list-card { display: grid; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-strong); transition: transform 180ms var(--ease-out), border-color 180ms ease-out, box-shadow 180ms ease-out; }.list-card-top { display: flex; align-items: start; justify-content: space-between; }.list-avatar { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 850; }.arrow { color: var(--muted-light); font-size: 17px; }.list-card > strong { overflow: hidden; color: var(--ink-soft); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.list-card-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }.list-card-meta b { color: var(--ink); font-size: 11px; }
@media (hover: hover) and (pointer: fine) { .list-card:hover { border-color: #aab2ff; box-shadow: var(--shadow-sm); transform: translateY(-3px); } }
.debt-list { display: grid; }.debt-row { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; min-height: 66px; border-top: 1px solid var(--line); }.debt-kind { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: var(--amber-soft); color: #a66c2b; font-size: 14px; }.debt-kind.positive { background: var(--accent-soft); color: var(--accent); }.debt-main { display: grid; min-width: 0; gap: 2px; }.debt-main strong, .debt-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.debt-main strong { color: var(--ink-soft); font-size: 12px; }.debt-main small { color: var(--muted); font-size: 10px; }.debt-amount { font-size: 12px; font-weight: 800; }.debt-label { padding: 4px 7px; border-radius: 6px; background: var(--amber-soft); color: #98672e; font-size: 9px; font-weight: 850; }.debt-row:has(.positive-text) .debt-label { background: var(--accent-soft); color: var(--accent-dark); }.icon-button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted-light); font-size: 18px; transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms var(--ease-out); }.icon-button:hover { background: var(--danger-soft); color: var(--danger); transform: scale(1.04); }
.empty-state { display: grid; justify-items: center; padding: 38px 15px 30px; text-align: center; }.empty-icon { position: relative; display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid #c6ccef; border-radius: 14px; background: var(--accent-soft); }.empty-icon i { position: absolute; width: 13px; height: 2px; border-radius: 2px; background: var(--accent); }.empty-icon i:first-child { transform: rotate(90deg); }.empty-icon i:last-child { transform: rotate(0); }.empty-state h2 { margin: 15px 0 6px; font-size: 16px; }.empty-state p { max-width: 310px; margin-bottom: 0; color: var(--muted); font-size: 12px; }.empty-action { margin-top: 17px; }
.quick-create { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 14px; padding: 21px 24px; }.quick-create h2 { margin-bottom: 4px; font-size: 17px; }.quick-create p:last-child { margin: 0; color: var(--muted); font-size: 11px; }.inline-form { display: flex; gap: 8px; min-width: min(100%, 370px); }.inline-form input { min-width: 0; }.create-panel { display: grid; grid-template-columns: minmax(180px, .55fr) 1fr; gap: 30px; align-items: center; margin-bottom: 20px; padding: 23px; }.create-panel h2 { margin-top: 0; }.record-form { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }.field-wide { grid-column: 1 / -1; }.form-actions { display: flex; justify-content: end; margin-top: 18px; }.totals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }.total-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 252, .75); }.total-card-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }.total-card-head small { font-size: 9px; }.total-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }.total-pair small { display: block; color: var(--muted); font-size: 9px; }.total-pair strong { display: block; margin-top: 5px; font-size: 13px; }.muted { color: var(--muted); font-size: 12px; }.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 17px; color: var(--muted); font-size: 11px; font-weight: 700; }.back-link:hover { color: var(--accent); }.debt-list-detail .debt-row { min-height: 75px; }.person-table { overflow: auto; }.person-row { display: grid; grid-template-columns: minmax(230px, 1.5fr) 1fr 1fr 1fr; align-items: center; gap: 14px; min-width: 680px; min-height: 65px; border-top: 1px solid #edf1ed; font-size: 12px; }.person-row-head { min-height: 35px; border-top: 0; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }.person-cell { display: flex; align-items: center; gap: 10px; }.person-cell > span:last-child { display: grid; gap: 2px; }.person-cell small { color: var(--muted); font-size: 10px; }.avatar-small { width: 30px; height: 30px; }.settings-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 13px; }.profile-panel { text-align: center; }.profile-avatar { width: 74px; height: 74px; margin: 20px auto 15px; border-radius: 22px; font-size: 24px; }.profile-panel h2 { margin-bottom: 4px; font-size: 20px; }.profile-panel > p:not(.eyebrow) { color: var(--muted); font-size: 12px; }.status-pill { display: inline-block; margin-top: 16px; padding: 5px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 9px; font-weight: 800; }.error-page { display: grid; min-height: 70vh; place-content: center; justify-items: start; }.error-page h1 { max-width: 500px; margin-bottom: 12px; font-size: clamp(2.5rem, 6vw, 4rem); }.error-page p:not(.eyebrow) { max-width: 440px; margin-bottom: 25px; color: var(--muted); }

@media (max-width: 1040px) {
  .hero { gap: 34px; }
  .app-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 34px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card-dark { grid-column: span 2; }
}
@media (max-width: 820px) {
  .shell { width: min(100% - 44px, 1240px); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; padding-bottom: 70px; }
  .hero-copy { max-width: 690px; }
  .hero-visual { min-height: 540px; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; width: min(100%, 520px); }
  .auth-story { min-height: 280px; padding: 30px; }.auth-story-mark { margin-bottom: 45px; }.auth-story h2 { font-size: 2.4rem; }.auth-story-note { position: static; margin-top: 30px; }
  .app-sidebar { display: none; }
  .app-mobile-header { display: block; border-bottom: 1px solid rgba(205, 210, 255, .8); background: rgba(255, 255, 255, .76); backdrop-filter: blur(18px) saturate(135%); }
  .app-mobile-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; }
  .app-mobile-inner .app-account { display: flex; align-items: center; gap: 8px; }
  .app-mobile-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 10px; }
  .app-mobile-nav .app-nav-link { min-height: 37px; white-space: nowrap; }
  .app-layout { display: block; }
  .app-main { padding-top: 42px; }
  .account-name { display: inline; max-width: 150px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 32px, 1240px); }
  h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .site-header { min-height: 76px; }.site-nav { gap: 0; }.site-nav > a:not(.button), .site-nav-note { display: none; }
  .hero { padding-top: 58px; }.hero h1 { max-width: 520px; }.hero-lede { font-size: 15px; }.hero-actions { align-items: start; flex-direction: column; gap: 18px; margin-top: 28px; }.hero-proof { gap: 14px; margin-top: 42px; }.hero-proof span { min-width: 0; }.hero-proof small { font-size: 10px; }
  .hero-visual { min-height: 405px; margin-inline: -5px; }.hero-visual::before { width: 330px; height: 330px; }.hero-visual-grid { inset: 8% -4% 3%; }.preview-window { transform: rotate(-1.4deg) scale(.86); transform-origin: center; }.floating-note { padding: 8px 10px; }.floating-note-one { top: 13px; right: -3px; }.floating-note-two { bottom: 0; left: -2px; }.floating-note strong { font-size: 9px; }.floating-note small { font-size: 8px; }
  .trust-strip { flex-wrap: wrap; gap: 9px 12px; padding: 16px 0; font-size: 8px; }.trust-line { display: none; }.section { padding-top: 95px; padding-bottom: 100px; }.section-intro h2 { font-size: 2.7rem; }.feature-grid, .principles-grid { grid-template-columns: 1fr; }.feature-grid { gap: 9px; margin-top: 38px; }.feature-card { min-height: 215px; }.feature-card h3 { margin-top: 58px; }.principles-section { padding: 82px 0; }.principles-grid { gap: 52px; }.final-cta { align-items: start; flex-direction: column; gap: 25px; padding-top: 78px; padding-bottom: 88px; }.final-cta h2 { font-size: 2.9rem; }.site-footer { align-items: start; flex-direction: column; gap: 15px; }
  .auth-header { min-height: 76px; }.auth-main { min-height: calc(100vh - 76px); padding-top: 22px; padding-bottom: 45px; }.auth-story { display: none; }.auth-card { padding: 29px 22px; }.auth-card h1 { font-size: 2.45rem; }.auth-links { align-items: start; flex-direction: column; }
  .app-mobile-inner { min-height: 64px; }.app-mobile-nav { padding-bottom: 8px; }.app-mobile-nav .app-nav-link { padding-inline: 9px; font-size: 10px; }.app-mobile-nav .nav-icon { width: 20px; height: 20px; font-size: 12px; }.app-main { padding-top: 32px; padding-bottom: 65px; }.page-heading { align-items: start; flex-direction: column; gap: 19px; margin-bottom: 28px; }.page-heading h1 { font-size: 2.65rem; }.page-heading-action { width: 100%; }.page-heading-action .button { width: 100%; }
  .stat-grid, .list-cards, .list-cards-large, .totals-grid { grid-template-columns: 1fr; }.stat-card-dark { grid-column: auto; }.panel { padding: 18px; }.quick-create, .create-panel { display: flex; align-items: stretch; flex-direction: column; gap: 18px; }.inline-form { flex-direction: column; min-width: 0; }.form-grid { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }.form-actions { justify-content: stretch; }.form-actions .button { width: 100%; }.debt-row, .debt-list-detail .debt-row { grid-template-columns: 31px minmax(0, 1fr) auto; gap: 8px; }.debt-label { display: none; }.debt-row form { grid-column: 3; grid-row: 1; }.debt-amount { grid-column: 3; grid-row: 1; margin-right: 27px; }.debt-main { grid-column: 2; grid-row: 1; }.debt-kind { grid-column: 1; grid-row: 1; }.settings-grid { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .app-mobile-header { background: var(--surface-strong); backdrop-filter: none; }
}

/* Command-center palette: a cool, high-contrast system distinct from the old cream/green skin. */
.feature-card,
.auth-card,
.workspace-switcher,
.stat-card,
.panel,
.total-card { background: rgba(255, 255, 255, .8); }
.list-card { border-color: var(--line); }
.debt-row,
.person-row { border-top-color: var(--line); }
.app-page { background: var(--canvas); }
