/* Zoria Money — Editorial Minimalist */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #f5f5f4;
  --fg: #0a0a0a;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --border: #e7e5e4;
  --border-2: #d6d3d1;
  --muted: #57534e;
  --muted-2: #a8a29e;
  --accent: #1e3a5f;
  --accent-strong: #142840;
  --accent-soft: #dbeafe;
  --positive: #15803d;
  --negative: #b91c1c;
  --font-display: "Newsreader", ui-serif, Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1180px;
  --radius-sm: 4px;
  --radius-md: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }

/* HEADER */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.brand__rule { width: 22px; height: 2px; background: var(--accent); display: block; }
.nav { display: flex; gap: 30px; align-items: center; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.nav__cta { color: var(--fg); border-bottom: 1px solid var(--fg); padding-bottom: 1px; }

/* HERO */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--border); }
.hero__inner { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; }
@media (max-width: 980px) { .hero__inner { grid-template-columns: 1fr; gap: 40px; } }
.hero__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.hero__eyebrow::before { content: "—"; margin-right: 12px; color: var(--accent); }
.hero__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.02em; margin: 0 0 28px; color: var(--fg); }
.hero__title em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero__lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 480px; margin: 0 0 36px; }
.hero__cta-group { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--fg); color: var(--bg); font-weight: 500; font-size: 15px; border: 1px solid var(--fg); transition: opacity .2s; }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 0; color: var(--muted); font-size: 15px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.btn-ghost:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* HERO VIZ — spending breakdown table */
.viz { background: var(--surface); border: 1px solid var(--border); padding: 32px 28px 24px; font-family: var(--font-body); }
.viz__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.viz__head-l { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.viz__head-r { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.viz__total { font-family: var(--font-display); font-size: 56px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin: 4px 0 8px; }
.viz__total small { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.viz__sub { display: flex; gap: 24px; font-size: 13px; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.viz__sub span strong { font-family: var(--font-mono); color: var(--fg); }
.viz__bars { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.viz__bar-row { display: grid; grid-template-columns: 100px 1fr 80px; gap: 18px; align-items: center; font-size: 13px; }
.viz__bar-label { color: var(--muted); }
.viz__bar-track { height: 8px; background: var(--border); position: relative; }
.viz__bar-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--accent); }
.viz__bar-fill--rent { background: var(--accent); }
.viz__bar-fill--food { background: var(--accent-strong); }
.viz__bar-fill--bills { background: var(--negative); opacity: 0.7; }
.viz__bar-fill--transport { background: var(--muted); }
.viz__bar-fill--other { background: var(--muted-2); }
.viz__bar-val { font-family: var(--font-mono); font-size: 12px; color: var(--fg); text-align: right; }
.viz__note { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--border); }

/* SECTION */
.section { padding: 88px 0; border-bottom: 1px solid var(--border); }
.section__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section__title { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 56px; max-width: 740px; }
.section__title em { font-style: italic; color: var(--accent); }
.section__intro { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 0 56px; }

/* CAPS — editorial grid 3-col */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
@media (max-width: 880px) { .caps { grid-template-columns: 1fr; } }
.cap { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); padding: 36px 32px; }
.cap__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); letter-spacing: 0.08em; margin-bottom: 24px; }
.cap__title { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 12px; }
.cap__body { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.cap__tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border); }

/* FLOW — numbered ladder */
.flow { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 820px; }
.flow__step { display: grid; grid-template-columns: 80px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--border); align-items: baseline; }
.flow__step:last-child { border-bottom: 1px solid var(--border); }
.flow__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.flow__heading { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin: 0 0 6px; letter-spacing: -0.01em; }
.flow__body { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.55; }

/* PRICING — two-column newspaper style */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 980px; border-top: 2px solid var(--fg); }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan { padding: 36px 32px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.plan:last-child { border-right: none; background: var(--fg); color: var(--bg); }
.plan__name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.plan:last-child .plan__name { color: rgba(245, 245, 244, 0.6); }
.plan__price { font-family: var(--font-display); font-size: 56px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin: 0 0 24px; }
.plan__price small { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.plan:last-child .plan__price small { color: rgba(245, 245, 244, 0.55); }
.plan__list { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.7; }
.plan__list li { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.plan__list li::before { content: "→ "; color: var(--accent); margin-right: 6px; }
.plan:last-child .plan__list li { border-color: rgba(245, 245, 244, 0.1); color: rgba(245, 245, 244, 0.78); }
.plan:last-child .plan__list li::before { color: var(--accent-soft); }

/* CTA */
.cta { padding: 96px 0; text-align: center; background: var(--fg); color: var(--bg); }
.cta__title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px); font-weight: 500; letter-spacing: -0.015em; max-width: 680px; margin: 0 auto 28px; line-height: 1.05; }
.cta__title em { font-style: italic; color: var(--accent-soft); }
.cta__btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; background: var(--bg); color: var(--fg); font-weight: 500; font-size: 15px; border: 1px solid var(--bg); transition: opacity .2s; }
.cta__btn:hover { opacity: 0.85; }
.cta__sub { font-family: var(--font-mono); font-size: 12px; color: rgba(245, 245, 244, 0.55); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 24px; }

/* FOOTER */
.site-footer { padding: 48px 0 36px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; }
.site-footer__links { display: flex; gap: 24px; }
.site-footer__links a:hover { color: var(--fg); }
.site-footer__meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; }

/* LEGAL pages */
.legal { padding: 72px 0 96px; max-width: 720px; margin: 0 auto; }
.legal h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 500; letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.05; }
.legal__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal h2 { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin: 48px 0 14px; letter-spacing: -0.01em; }
.legal p { color: var(--muted); margin: 0 0 16px; font-size: 16px; line-height: 1.7; }
.legal ul { color: var(--muted); padding-left: 20px; margin: 0 0 18px; line-height: 1.7; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal code { font-family: var(--font-mono); font-size: 14px; background: var(--surface); padding: 2px 6px; border: 1px solid var(--border); border-radius: 2px; }
.legal em { font-style: italic; color: var(--muted-2); }

/* Reveal animation */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .reveal:nth-child(2) { animation-delay: 0.05s; }
  .reveal:nth-child(3) { animation-delay: 0.10s; }
  .reveal:nth-child(4) { animation-delay: 0.15s; }
}
