/* WalletWise public site — shared styles (no framework, no external fonts) */
:root {
  --brand: #4f46e5; --brand-strong: #4338ca; --brand-50: #eef2ff; --ai: #7c3aed; --income: #059669;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: rgb(15 23 42 / .08); --bg: #f5f6fa; --surface: #fff;
  --radius: 16px; --max: 1120px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgb(79 70 229 / .45); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; }
.links { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.links a:not(.btn) { color: var(--ink-2); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none; }
  .links.open { display: flex; }
  .links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .links .btn { margin-top: 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: transform .1s, background .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / .1); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgb(15 23 42 / .12); }
.btn-ghost:hover { background: #f8fafc; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 14px; }

/* Hero */
.hero { padding: 64px 0 40px; background: radial-gradient(900px 380px at 80% -10%, #e0e7ff 0%, transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-50); color: var(--brand-strong); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; margin: 16px 0 16px; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-2); max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Phone mock (pure CSS, illustrative) */
.phone { width: min(340px, 100%); margin: 0 auto; background: #0f172a; border-radius: 42px; padding: 12px; box-shadow: 0 30px 60px -20px rgb(79 70 229 / .45), 0 12px 24px -12px rgb(15 23 42 / .3); }
.screen { background: #f5f6fa; border-radius: 32px; overflow: hidden; padding: 18px 14px 20px; }
.m-hero { background: linear-gradient(135deg, var(--brand), var(--ai)); color: #fff; border-radius: 16px; padding: 16px; }
.m-hero small { opacity: .85; font-size: 12px; }
.m-hero b { display: block; font-size: 26px; letter-spacing: -.02em; margin: 2px 0 10px; }
.m-bar { height: 7px; border-radius: 99px; background: rgb(255 255 255 / .25); overflow: hidden; }
.m-bar i { display: block; height: 100%; width: 62%; background: #fff; border-radius: 99px; }
.m-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px; margin-top: 8px; box-shadow: 0 0 0 1px var(--line); font-size: 13px; }
.m-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; flex: none; }
.m-row div { flex: 1; min-width: 0; }
.m-row strong { display: block; font-size: 13px; }
.m-row span { color: var(--muted); font-size: 11px; }
.m-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.m-voice { margin-top: 10px; background: var(--brand-50); color: var(--brand-strong); border-radius: 12px; padding: 10px 12px; font-size: 12px; }

/* Sections */
section { padding: 64px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 1.05rem; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(15 23 42 / .04); }
.card h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.well { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.well svg { width: 22px; height: 22px; }
.well.ai { background: #f5f3ff; color: var(--ai); }
.well.green { background: #ecfdf5; color: var(--income); }
.steps .num { width: 32px; height: 32px; border-radius: 99px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.band { background: #fff; border-block: 1px solid var(--line); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.plan.pro { box-shadow: 0 0 0 2px var(--brand), 0 20px 40px -24px rgb(79 70 229 / .5); position: relative; }
.badge { position: absolute; top: -12px; left: 28px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.plan h3 { margin: 0; font-size: 1.2rem; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan .sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--income); }
.plan li.off { color: var(--muted); }
.plan li.off svg { color: #cbd5e1; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare thead th { background: #f8fafc; font-size: 14px; }
.table-wrap { overflow-x: auto; max-width: 880px; margin: 32px auto 0; }

/* FAQ */
details { background: #fff; border-radius: 14px; padding: 16px 20px; box-shadow: 0 0 0 1px var(--line); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--brand); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); margin: 10px 0 0; }

/* CTA band + footer */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--ai)); color: #fff; border-radius: 24px; padding: 44px 28px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; margin: 0 0 24px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-strong); }
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--ink-2); }

/* Long-form pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 24px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 36px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .updated { color: var(--muted); font-size: 14px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
.check-list b { color: var(--ink); }

/* Icon sizing (inline SVGs have no intrinsic size) */
svg { flex: none; }
.eyebrow svg { width: 16px; height: 16px; }
.menu-btn svg { width: 24px; height: 24px; }
.btn svg { width: 18px; height: 18px; }
