/* BudgetOps — public pages (landing, sign in, sign up) */
:root {
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #94a3b8;
  --line: #e6e9f2;
  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --primary: #6366f1;
  --primary-2: #7c3aed;
  --night: #0b0c22;
  --radius: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 14.5px; border: 1px solid transparent; cursor: pointer; transition: transform .1s, box-shadow .2s, background .2s; white-space: nowrap; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 14px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #6366f1, #7c3aed); box-shadow: 0 10px 26px -10px rgba(99, 102, 241, .9); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(99, 102, 241, 1); }
.btn-ghost { color: inherit; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .15); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; color: #fff; background: rgba(11, 12, 34, .72); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6366f1, #a855f7); box-shadow: 0 8px 18px -6px rgba(124, 58, 237, .8); }
.logo-mark svg { width: 19px; height: 19px; }
.logo.small { font-size: 15px; }
.logo.small .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.logo.small .logo-mark svg { width: 15px; height: 15px; }
.nav-links { display: flex; gap: 24px; font-size: 14.5px; color: #c7c9e8; font-weight: 600; }
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }

/* ---------- hero ---------- */
.hero {
  color: #fff; padding: 72px 0 96px; overflow: hidden; position: relative;
  background:
    radial-gradient(55% 60% at 10% 0%, rgba(99, 102, 241, .5), transparent 70%),
    radial-gradient(45% 55% at 95% 80%, rgba(168, 85, 247, .38), transparent 70%),
    var(--night);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; color: #c7d2fe; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.035em; margin: 20px 0 18px; font-weight: 800; }
.grad { background: linear-gradient(90deg, #a5b4fc, #f0abfc 60%, #fcd34d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: #c7c9e8; max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: #a9acd6; }
.ticks li::before { content: '✓'; color: #34d399; font-weight: 800; margin-right: 6px; }
.hero-visual { position: relative; }
.browser { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); max-height: 470px; }
.browser img { width: 100%; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef0f6; border-bottom: 1px solid #dde1ea; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.browser-bar i:nth-child(2) { background: #fbbf24; }
.browser-bar i:nth-child(3) { background: #34d399; }
.browser-bar span { margin-left: 10px; font-size: 11.5px; color: #64748b; background: #fff; padding: 3px 12px; border-radius: 6px; }
.float { position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); font-size: 13px; animation: bob 5s ease-in-out infinite; }
.float b { display: block; font-size: 13.5px; }
.float small { color: var(--ink-2); }
.f1 { left: -28px; bottom: 70px; }
.f2 { right: -16px; top: 40px; animation-delay: -2.5s; }
.dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; }
.dot.warn { background: #fffbeb; color: #d97706; }
.dot.ok { background: #ecfdf5; color: #059669; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.025em; margin: 10px 0 14px; }
.section-head p, .privacy p { color: var(--ink-2); font-size: 17px; margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(15, 23, 42, .25); }
.f-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.feature h3 { margin: 18px 0 6px; font-size: 17.5px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6366f1, #7c3aed); }
.steps h3 { margin: 16px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.privacy { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.privacy-list li { padding: 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.privacy-list b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.privacy-list span { font-size: 13.5px; color: var(--ink-2); }
.cta-band { color: #fff; padding: 72px 0; background: radial-gradient(60% 120% at 50% 0%, rgba(99, 102, 241, .55), transparent 70%), var(--night); }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta-band h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.025em; }
.footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { margin-left: auto; display: flex; gap: 18px; }
.footer nav a:hover { color: var(--ink); }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  color: #fff; padding: 40px 56px; display: flex; flex-direction: column;
  background: radial-gradient(70% 60% at 0% 0%, rgba(99, 102, 241, .55), transparent 70%), radial-gradient(60% 50% at 100% 100%, rgba(168, 85, 247, .4), transparent 70%), var(--night);
}
.auth-side .quote { margin: auto 0; max-width: 460px; }
.auth-side h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 16px; }
.auth-side p { color: #c7c9e8; margin: 0 0 26px; font-size: 16px; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; color: #dfe1f7; font-size: 14.5px; }
.auth-side li::before { content: '✓'; color: #34d399; font-weight: 800; margin-right: 10px; }
.auth-side small { color: #8f92c4; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-card .sub { color: var(--ink-2); margin: 0 0 28px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; }
.field select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; outline: none; color: var(--ink); }
.field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }
.field input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 500; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 64px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--primary); cursor: pointer; padding: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-card .btn { width: 100%; padding: 13px; }
.auth-error { min-height: 20px; color: #e11d48; font-size: 13.5px; font-weight: 600; }
.auth-switch { text-align: center; color: var(--ink-2); font-size: 14px; margin-top: 18px; }
.auth-switch a, .link { color: var(--primary); font-weight: 700; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 6px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { background: var(--bg-2); }
.auth-mobile-logo { display: none; margin-bottom: 28px; }
.strength { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .privacy { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 72px; }
  .browser { transform: none; }
  .f1 { left: 8px; bottom: -20px; }
  .f2 { right: 8px; top: -18px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-logo { display: inline-flex; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .features, .privacy-list { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .float { display: none; }
  .section { padding: 64px 0; }
  .hero-cta .btn { width: 100%; }
  .footer nav { margin-left: 0; }
  .row-2 { grid-template-columns: 1fr; }
}

/* ---------- auth: notices & extra views ---------- */
.auth-notice { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; margin: 0 0 18px; background: #eef2ff; color: #3730a3; border: 1px solid #e0e7ff; }
.auth-notice.ok { background: #ecfdf5; color: #065f46; border-color: #d1fae5; margin: 0; }
.auth-notice.warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.auth-notice.soft { background: var(--bg-2); color: var(--ink-2); border-color: var(--line); }
.big-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: #eef2ff; margin-bottom: 18px; }
.fine { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.hint-link { font-size: 12.5px; }
.auth-card section > .btn { width: 100%; padding: 13px; margin-top: 4px; }
