/* Pursely — shared site styles. Palette + rounded type mirror the app (Theme/PurselyTheme.swift). */
:root {
  --brand: #1B8A5A;
  --brand-deep: #0E5C3A;
  --brand-mint: #37BA8E;
  --money: #34D399;
  --teal: #0E9F8E;
  --surface: #F6FBF7;
  --card: #FFFFFF;
  --card-elev: #E7F6EF;
  --hairline: rgba(14, 42, 28, 0.09);
  --ink: #0E1F17;
  --muted: #5B6B62;
  --tax: #E8730C;
  --ni: #0EA5E9;
  --pension: #5B8DEF;
  --student: #8B5CF6;
  --sacrifice: #3DB6B0;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(14, 92, 58, 0.45);
  --shadow-soft: 0 8px 24px -12px rgba(14, 42, 28, 0.18);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }

/* ---- Top nav ---- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; flex-wrap: wrap; }
.brandmark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--brand-deep); }
.brandmark img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-soft); }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 0.95rem; }
.nav-links a { color: var(--ink); opacity: 0.82; }
.nav-on-dark .brandmark { color: #fff; }
.nav-on-dark .nav-links a { color: #eafff5; opacity: 0.92; }
@media (max-width: 480px) { .nav-links { gap: 16px; font-size: 0.9rem; } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(27, 138, 90, 0.7); }
.btn-primary:hover { background: #16774d; text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); text-decoration: none; }
.btn-line { background: transparent; color: var(--brand-deep); border-color: var(--hairline); }
.btn-line:hover { border-color: var(--brand); text-decoration: none; }

/* ---- Hero (deep green) ---- */
.hero { background: linear-gradient(155deg, #0c5236 0%, var(--brand-deep) 38%, #15784f 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; top: -30%; right: -10%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(55,186,142,0.45), transparent 62%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; padding: 18px 0 72px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; margin: 18px 0 16px; }
.hero .lede { font-size: 1.18rem; color: #d6f3e6; margin: 0 0 26px; max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; color: #bfe8d4; font-size: 0.9rem; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-bottom: 48px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .trust { justify-content: center; }
  .phone-stage { margin-top: 26px; }
}

/* ---- Phone mockup ---- */
.phone-stage { display: flex; justify-content: center; }
.phone { width: 270px; aspect-ratio: 9 / 19.3; background: #0a120e; border-radius: 42px; padding: 11px;
  box-shadow: var(--shadow), 0 0 0 2px rgba(255,255,255,0.06) inset; position: relative; }
.phone .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 86px; height: 24px; background: #0a120e; border-radius: 999px; z-index: 3; }
.screen { width: 100%; height: 100%; background: var(--surface); border-radius: 32px; overflow: hidden; position: relative; padding: 38px 14px 14px; }
.screen .scr-title { text-align: center; font-weight: 700; color: var(--ink); font-size: 0.92rem; margin: 0 0 10px; }

.hero-card { background: linear-gradient(160deg, var(--brand-deep), #0a472f); border-radius: 20px; padding: 16px 14px 14px; color: #fff; text-align: center; box-shadow: var(--shadow-soft); }
.hero-card .cap { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #9fe6c6; }
.hero-card .fig { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.hero-card .fig small { font-size: 1rem; color: #b8ecd2; font-weight: 600; }
.pills { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
.pills span { font-size: 0.6rem; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,0.12); color: #d7f6e7; }
.pills span.on { background: var(--money); color: #06351f; font-weight: 700; }

/* Donut card */
.mini-card { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 12px; margin-top: 10px; box-shadow: var(--shadow-soft); }
.donut-row { display: flex; align-items: center; gap: 12px; }
.donut { --tax: 14%; --ni: 6%; --pen: 9%; width: 78px; height: 78px; border-radius: 50%; flex: none; position: relative;
  background: conic-gradient(var(--brand) 0 71%, var(--tax,#E8730C) 71% 85%, var(--ni,#0EA5E9) 85% 91%, var(--pension,#5B8DEF) 91% 100%); }
.donut::after { content: ""; position: absolute; inset: 13px; background: var(--card); border-radius: 50%; }
.donut .dlabel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.donut .dlabel b { font-size: 0.74rem; color: var(--ink); }
.donut .dlabel span { font-size: 0.5rem; color: var(--muted); }
.legend { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.legend div { display: flex; align-items: center; gap: 7px; font-size: 0.62rem; color: var(--ink); }
.legend i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.dot-green { background: var(--brand); } .dot-tax { background: var(--tax); }
.dot-ni { background: var(--ni); } .dot-pen { background: var(--pension); }

/* ---- Sections ---- */
section { padding: 64px 0; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 8px; }
h2.sec { font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 10px; }
.sec-lede { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin: 0 0 36px; }

.features { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.feature .ic { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Privacy band */
.band { background: linear-gradient(160deg, #0c5236, var(--brand-deep)); color: #fff; border-radius: 28px; padding: 44px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; bottom: -40%; left: -8%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(55,186,142,0.4), transparent 62%); }
.band .eyebrow { color: var(--money); }
.band h2.sec { color: #fff; }
.band p { color: #d6f3e6; font-size: 1.08rem; max-width: 58ch; position: relative; z-index: 1; }
.band .points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; position: relative; z-index: 1; }
.band .points div { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-sm); padding: 16px; }
.band .points b { display: block; font-size: 1.02rem; margin-bottom: 3px; }
.band .points span { color: #bfe8d4; font-size: 0.9rem; }
@media (max-width: 640px) { .band { padding: 28px; } .band .points { grid-template-columns: 1fr; } }

.cta-final { text-align: center; }
.cta-final .icon-lg { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; box-shadow: var(--shadow); }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--hairline); padding: 34px 0 56px; color: var(--muted); font-size: 0.92rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.foot-links a { color: var(--muted); margin-right: 18px; }
.disclaimer { font-size: 0.82rem; color: var(--muted); margin-top: 16px; max-width: 70ch; }

/* ---- Legal / support docs ---- */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 4px; }
.doc .meta { color: var(--muted); margin: 0 0 24px; }
.doc h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.doc p, .doc dd { color: #28362e; }
.doc .lead { background: var(--card-elev); border: 1px solid #d6e8df; border-radius: var(--radius-sm); padding: 15px 17px; color: var(--brand-deep); }
.doc .lead.warn { background: #fff7ec; border-color: #f0e2c8; color: #6a5219; }
.doc .email { display: inline-block; margin: 16px 0 6px; font-size: 1.15rem; font-weight: 700; }
.doc dl dt { font-weight: 600; margin: 22px 0 4px; }
.doc dl dd { margin: 0; }
.backlink { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 22px; color: var(--brand); font-weight: 600; }
