/* Expense Keeper — modern white & blue theme. Self-contained: system fonts,
   inline SVG icons, no JS, no external assets (CSP-safe). */

:root {
  --accent: #2f55ea;
  --accent-2: #5b7cff;
  --accent-dark: #2443c8;
  --accent-050: #f2f6ff;
  --accent-100: #e7eeff;
  --accent-200: #d3dfff;

  --ink: #0b1220;
  --heading: #0f1e3d;
  --body: #45526b;
  --muted: #6b7793;
  --line: #e6ebf4;

  --bg: #ffffff;
  --bg-soft: #f6f9ff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 61, 0.06);
  --shadow: 0 10px 30px rgba(20, 45, 120, 0.10);
  --shadow-lg: 0 30px 70px rgba(20, 45, 120, 0.18);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800;
  color: var(--heading); font-size: 18px; letter-spacing: -0.02em; }
.logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: block; object-fit: cover; box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.link {
  color: var(--body); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 9px;
}
.nav-links a.link:hover { color: var(--accent); background: var(--accent-050); }
.nav .cta-sm {
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 10px; margin-left: 6px;
}
.nav .cta-sm:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 720px) {
  .nav-links a.link { display: none; }
  .nav-links a.link.keep { display: inline-block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15.5px;
  padding: 14px 24px; border-radius: 12px; box-shadow: var(--shadow-sm);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff;
  transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost {
  background: #fff; color: var(--heading); border: 1px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover { background: var(--accent-050); border-color: var(--accent-200);
  color: var(--accent-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(91, 124, 255, 0.16), transparent 60%),
    radial-gradient(50% 50% at 5% 20%, rgba(47, 85, 234, 0.10), transparent 60%),
    linear-gradient(180deg, var(--accent-050), #fff 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  align-items: center; padding: 68px 0 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--accent-200); color: var(--accent-dark);
  font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
h1.hero-title {
  font-size: clamp(34px, 5.4vw, 54px); line-height: 1.06; margin: 0 0 18px;
  color: var(--heading); letter-spacing: -0.03em; font-weight: 800;
}
h1.hero-title .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 18.5px; color: var(--body); margin: 0 0 26px; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); color: var(--body);
  font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.pill svg { width: 15px; height: 15px; color: var(--accent); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 40px; }
  .hero-sub { max-width: none; }
  .phone-wrap { order: -1; }
}

/* ---------- Phone mockup (pure CSS app screenshot) ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px; max-width: 82vw; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #1b2440, #0b1220);
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  border-radius: 30px; overflow: hidden; background: #fff;
  aspect-ratio: 300 / 600;
}
.ph-hero {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 42%, #fff 100%);
  padding: 26px 18px 30px; color: #fff; position: relative;
}
.ph-notch { width: 46px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,.5); margin: 0 auto 18px; }
.ph-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .85; font-weight: 600; }
.ph-amount { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 18px; }
.ph-card {
  background: #fff; border-radius: 16px; padding: 14px; color: var(--heading);
  box-shadow: 0 12px 24px rgba(11,18,32,.18);
}
.ph-row { display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; }
.ph-row + .ph-row { border-top: 1px solid var(--line); }
.ph-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-100);
  display: grid; place-items: center; color: var(--accent); flex: none; }
.ph-ic svg { width: 16px; height: 16px; }
.ph-rl { display: flex; align-items: center; gap: 10px; }
.ph-t { font-size: 12.5px; font-weight: 700; }
.ph-s { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.ph-amt { font-size: 12.5px; font-weight: 800; }
.ph-amt.red { color: #e5484d; }
.ph-body { padding: 12px 16px 18px; }
.ph-h { font-size: 13px; font-weight: 800; color: var(--heading); margin: 4px 0 6px; }

/* ---------- Sections ---------- */
section { padding: 74px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
h2.sec-title { font-size: clamp(26px, 3.6vw, 36px); color: var(--heading);
  letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; line-height: 1.15; }
.sec-sub { font-size: 17px; color: var(--body); margin: 0; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: var(--accent-200); }
.feat-ic {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-100), var(--accent-050));
  display: grid; place-items: center; color: var(--accent);
}
.feat-ic svg { width: 23px; height: 23px; }
.feature h3 { font-size: 18px; color: var(--heading); margin: 0 0 7px; font-weight: 700; }
.feature p { font-size: 14.5px; margin: 0; color: var(--body); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-n { width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 15px;
  display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 17px; color: var(--heading); margin: 0 0 6px; font-weight: 700; }
.step p { font-size: 14.5px; margin: 0; }

/* ---------- Privacy band ---------- */
.band {
  background: linear-gradient(135deg, #101a3a, #16255a 60%, var(--accent-dark));
  color: #eaf0ff; border-radius: 28px; padding: 48px; position: relative; overflow: hidden;
}
.band::after { content: ""; position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,124,255,.4), transparent 70%); }
.band .kicker { color: #9db6ff; }
.band h2 { color: #fff; font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 12px;
  letter-spacing: -0.02em; font-weight: 800; position: relative; }
.band p { color: #c9d6ff; font-size: 16px; margin: 0 0 8px; max-width: 60ch; position: relative; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 820px; margin: 0 auto; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); }
.plan.featured { border: 2px solid var(--accent);
  box-shadow: var(--shadow); position: relative; }
.plan .tag { position: absolute; top: -13px; right: 22px; background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.plan .price { font-size: 40px; font-weight: 800; color: var(--heading);
  letter-spacing: -0.03em; }
.plan .price span { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .price-note { font-size: 13.5px; color: var(--muted); margin: 2px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { position: relative; padding: 8px 0 8px 28px; font-size: 15px; color: var(--body); }
.plan li::before { content: ""; position: absolute; left: 0; top: 13px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232f55ea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px; }
.plan .btn { width: 100%; justify-content: center; }

/* ---------- FAQ (no-JS accordion) ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq details[open] { border-color: var(--accent-200); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 700; color: var(--heading); font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400;
  color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq .ans { padding: 0 22px 20px; font-size: 15px; color: var(--body); }

/* ---------- CTA band ---------- */
.cta-final { text-align: center; }
.cta-final .box {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 28px; padding: 54px 30px; color: #fff; box-shadow: var(--shadow);
}
.cta-final h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 10px;
  color: #fff; font-weight: 800; letter-spacing: -0.02em; }
.cta-final p { color: #e3ebff; font-size: 17px; margin: 0 0 24px; }
.cta-final .btn { background: #fff; color: var(--accent-dark); }
.cta-final .btn:hover { background: #eef3ff; color: var(--accent-dark); }

/* ---------- Footer ---------- */
footer.site { background: #0b1220; color: #aeb9d4; padding: 52px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }
footer .brand { color: #fff; margin-bottom: 12px; }
footer.site p { font-size: 14px; margin: 6px 0; color: #8f9cbd; }
.foot-col h4 { color: #fff; font-size: 13px; text-transform: uppercase;
  letter-spacing: .08em; margin: 0 0 12px; }
.foot-col a { display: block; color: #aeb9d4; font-size: 14.5px; margin: 8px 0; }
.foot-col a:hover { color: #fff; }
.foot-bottom { padding-top: 22px; font-size: 13px; color: #7d89ab; }
.foot-bottom a { color: #aeb9d4; }

/* ---------- Legal / policy pages ---------- */
main.legal { padding: 56px 0 72px; }
main.legal h1 { font-size: clamp(28px, 4vw, 38px); color: var(--heading);
  letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 800; }
main.legal h2 { font-size: 21px; color: var(--heading); margin: 36px 0 10px;
  font-weight: 700; letter-spacing: -0.01em; }
main.legal h3 { font-size: 16.5px; color: var(--heading); margin: 24px 0 8px; font-weight: 700; }
main.legal p, main.legal li { font-size: 15.5px; color: var(--body); }
main.legal ul { padding-left: 20px; }
main.legal li { margin: 6px 0; }
.meta { color: var(--muted); font-size: 14px; }
.callout { background: var(--accent-050); border: 1px solid var(--accent-200);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0; }
.callout p { margin: 0; font-size: 15px; color: var(--heading); }
main.legal table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
main.legal th, main.legal td { text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--line); vertical-align: top; }
main.legal th { color: var(--heading); font-weight: 700; }
code { background: var(--accent-050); border: 1px solid var(--accent-100);
  padding: 1px 6px; border-radius: 6px; font-size: 13.5px; color: var(--accent-dark);
  word-break: break-all; }
