/*
 * Budg's website (getbudg.pages.dev), from the approved design in
 * docs/site-design/*.dc.html: its tokens, spacing and type. Mobile-first;
 * Nunito from Google Fonts with the system sans-serif behind it.
 */
:root {
  --page: #FEFBF9;
  --surface: #FFFFFF;
  --ink: #2E2A33;
  --muted: #6F6779;
  --card-ink: #4F4857;
  --border: #F0E8EC;
  --accent: #E8879C;
  --accent-strong: #C9607C;
  --link: #A8445F;
  --link-hover: #7A2E44;
  --soft: #FDEFF2;
  --soft-ink: #7A5566;
  --callout-ink: #5E3F4E;
  --dark-muted: #D9D3DE;
  --dark-accent: #F4B6C4;
  --shadow-card: 0 4px 16px rgba(200, 140, 160, 0.10);
  --shadow-plan: 0 10px 30px rgba(200, 140, 160, 0.18);
  --shadow-phone: 0 30px 60px rgba(122, 85, 102, 0.18), 0 8px 20px rgba(122, 85, 102, 0.10);
  --wide: 1160px;
  --narrow: 760px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header ------------------------------------------------------------------ */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
/* H8a: the mark carries its own dark square (the favicon's drawing). */
.brand-mark { display: flex; width: 36px; height: 36px; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 700; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a.pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
}
.back { font-weight: 700; font-size: 15px; }

/* Hero -------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 80px;
}
.hero-copy { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.chip {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 800;
}
.chip.dark { background: var(--ink); color: var(--page); font-size: 13px; letter-spacing: 0.04em; }
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }
/*
 * Google's "Get it on Google Play" badge, as supplied (never recoloured or
 * filtered): 60 px tall, its own width, and clear space of a quarter of its
 * height (15 px) all round. The padding is that clear space; the matching
 * negative margin keeps the badge on the text column, and the row gap (16)
 * and the space above (24 + 8) are already wider than 15.
 */
.badge-link { display: inline-block; padding: 15px; margin: -15px; line-height: 0; }
.badge-link img { display: block; height: 60px; width: auto; }
.get-note { font-size: 15px; color: var(--muted); font-weight: 600; }

/* Phone mockup (sample figures, a picture) */
.phone-col { flex: 1 1 320px; display: flex; justify-content: center; }
.phone {
  width: 310px;
  max-width: 100%;
  border-radius: 46px;
  background: var(--ink);
  padding: 12px;
  box-shadow: var(--shadow-phone);
}
.screen {
  border-radius: 36px;
  background: var(--page);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.greet { font-size: 17px; font-weight: 800; }
.month { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.total { display: flex; align-items: baseline; gap: 4px; }
.total-mark { font-size: 18px; color: var(--muted); }
.total-num { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; }
.of { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
/* The design's "On track" chip: the soft pink and its ink. */
.status {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--soft-ink);
  font-weight: 800;
  font-size: 12px;
}
.bar { height: 8px; border-radius: 99px; background: var(--border); }
.bar span { display: block; width: 52%; height: 8px; border-radius: 99px; background: var(--accent-strong); }
.left { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.tip { border-radius: 18px; background: var(--soft); padding: 12px 14px; font-size: 12px; line-height: 1.45; color: var(--soft-ink); }
.budgets-title { font-size: 15px; font-weight: 800; padding-top: 4px; }
.budgets { display: flex; gap: 10px; }
.budget {
  flex: 1;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring.full { border-color: var(--accent-strong); }
.ring.part { border-top-color: var(--accent-strong); }
.ring span { width: 24px; height: 24px; border-radius: 50%; }
.dot-mint { background: #7FD8B8; }
.dot-sky { background: #8CC8EC; }
.dot-lilac { background: #A9B4EC; }
.budget-amount { font-size: 13px; font-weight: 800; }
.budget-name { font-size: 11px; color: var(--muted); }

/* Features ---------------------------------------------------------------- */
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
h2.big {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.sub { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { border-radius: 24px; background: var(--page); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h3 { margin: 0; font-size: 20px; font-weight: 800; }
.feature p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Pro --------------------------------------------------------------------- */
.pro { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.pro-copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.checks { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; margin: 0; padding-left: 0; list-style: none; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 17px; font-weight: 700; }
.plans-col { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.plans { display: flex; flex-direction: column; gap: 14px; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  border-radius: 24px;
  padding: 24px;
  min-height: 44px;
  background: var(--surface);
  border: 2px solid var(--border);
}
.plan[aria-pressed="true"] { border-color: var(--accent-strong); box-shadow: var(--shadow-plan); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-name { font-size: 18px; font-weight: 900; }
.save { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 900; }
.plan-price { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.plan-price small { font-size: 16px; font-weight: 700; color: var(--muted); }
.plan-note { font-size: 15px; color: var(--muted); font-weight: 600; }
.fine { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Privacy summary (dark band) */
.dark-band { background: var(--ink); color: var(--page); }
.dark-band .section { gap: 40px; }
.dark-band h2.big { max-width: 680px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.pillar { display: flex; flex-direction: column; gap: 10px; }
.pillar h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--dark-accent); }
.pillar p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--dark-muted); }
.dark-link { align-self: flex-start; color: var(--dark-accent); font-weight: 800; font-size: 16px; }
.dark-link:hover { color: var(--page); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 28px; }
.faq h2 { margin: 0; font-size: clamp(28px, 3.5vw, 40px); font-weight: 900; letter-spacing: -0.025em; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.faq-item h3 { margin: 0; font-size: 18px; font-weight: 800; }
.faq-item p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Legal pages -------------------------------------------------------------- */
.doc {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 32px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 17px;
  line-height: 1.7;
}
.doc-head { display: flex; flex-direction: column; gap: 10px; }
.doc h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.updated { margin: 0; color: var(--muted); font-size: 15px; }
.doc p { margin: 0; }
.doc section { display: flex; flex-direction: column; gap: 10px; }
.doc h2 { margin: 0; font-size: 24px; font-weight: 900; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.callout { border-radius: 24px; background: var(--soft); padding: 24px 28px; color: var(--callout-ink); }
.callout h2 { font-size: 20px; }
.callout ul { font-weight: 700; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.steps li { display: flex; gap: 16px; align-items: flex-start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--soft-ink);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li span { padding-top: 4px; }
.button-dark {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  min-height: 44px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--page);
  text-decoration: none;
  font-weight: 800;
}
.button-dark:hover { color: var(--page); }
.note { border-radius: 20px; background: var(--surface); border: 1px solid var(--border); padding: 22px 24px; color: var(--card-ink); }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 15px;
}
.footer-who { display: flex; flex-direction: column; gap: 6px; }
.footer-name { font-weight: 900; font-size: 18px; }
.footer-copy { color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; font-weight: 700; }
.trademark { margin: 0; padding-bottom: 32px; color: var(--muted); font-size: 13px; }
