/* savvypockets.app — tokens from DESIGN.md */
@font-face { font-family: "Nunito"; src: url("/fonts/nunito.woff") format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("/fonts/cairo.woff") format("woff"); font-weight: 400 900; font-display: swap; }

:root {
  --ground: #F3F7FC; --card: #FFFFFF; --ink: #1D2433; --mute: #5B6475; --line: #E3E7EF;
  --blue: #1E7FC2; --blue-dark: #145E93; --sky: #DCEEFB; --sky-mid: #BCDDF3;
  --orange: #F28A2E; --orange-hover: #E07A1F; --orange-soft: #FFE9D3; --amber-text: #B45D12; --coral: #B3432A; --sun: #FFC94A;
  --r-chip: 10px; --r-btn: 14px; --r-panel: 20px; --r-phone: 36px;
  --shadow-1: 0 1px 2px rgba(29,36,51,.06);
  --shadow-phone: 0 30px 60px -20px rgba(20,94,147,.35);
  --wrap: 1120px; --section: 96px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (max-width: 720px) { :root { --section: 64px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 500 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
[lang="ar"], [lang="ur"] { font-family: "Cairo", var(--font); letter-spacing: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 900; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 800; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 1.55; font-weight: 600; color: var(--mute); max-width: 58ch; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 12px; }
.cap { font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--mute); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 18px; } }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); z-index: 20; font-weight: 800; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); font-weight: 800; font-size: 17px; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-quiet { color: var(--blue-dark); background: var(--sky); }
.btn-quiet:hover { background: var(--sky-mid); }
.btn-light { background: #fff; color: var(--blue-dark); margin-top: 28px; }
.btn-light:hover { background: var(--sky); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(243,247,252,.94); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 20px; }
.brand img { border-radius: 10px; }
.top nav { margin-inline-start: auto; }
.top nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; border-radius: var(--r-chip); }
.top nav a:hover { background: var(--sky); }
@media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-inline-start: auto; } }

/* Hero */
.hero { padding-block: 56px 72px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-copy h1 { margin-bottom: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hint { margin-top: 16px; font-size: 15px; color: var(--mute); font-weight: 600; }
.hero-visual { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-block: 32px 56px; }
}

/* Phone mockup (drawn from the app's layouts) */
.phone { width: 320px; max-width: 100%; background: var(--ink); padding: 10px; border-radius: var(--r-phone); box-shadow: var(--shadow-phone); }
.phone-sm { width: 290px; }
.screen { position: relative; color: var(--ink); background: var(--ground); border-radius: 28px; padding: 18px 14px 22px; min-height: 560px; font-size: 14px; line-height: 1.4; overflow: hidden; }
.phone-sm .screen { min-height: 470px; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.app-greet { font-weight: 700; color: var(--mute); font-size: 13px; }
.app-month { font-weight: 900; font-size: 22px; }
.app-tally { width: 48px; }
.bb { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.bb-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bb-label { font-size: 13px; font-weight: 700; color: var(--mute); }
.bb-amt { font-size: 20px; font-weight: 900; }
.bb-amt small { font-size: 12px; font-weight: 700; color: var(--mute); }
.bar { position: relative; height: 8px; border-radius: 4px; background: var(--sky); margin: 9px 0 7px; }
.bar span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 4px; background: var(--blue); }
.bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 1px; }
.bb-foot { font-size: 12px; font-weight: 600; color: var(--mute); }
.app-card { background: var(--card); border-radius: 18px; padding: 12px 14px; margin-top: 12px; box-shadow: var(--shadow-1); }
.app-h { font-weight: 900; font-size: 15px; margin-bottom: 8px; }
.note-mini { display: flex; gap: 10px; align-items: center; background: var(--orange-soft); border-radius: 12px; padding: 8px 10px; font-weight: 700; font-size: 13px; }
.note-mini + .note-mini { margin-top: 8px; }
.note-mini img { width: 28px; flex: none; }
.row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-weight: 700; }
.row + .row { border-top: 1px solid var(--line); }
.grow { flex: 1; min-width: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-g { background: var(--blue); } .dot-p { background: var(--orange); }
.fab { position: absolute; inset-inline-end: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 16px; background: var(--orange); color: #fff; font-size: 30px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* Promise strip */
.strip { background: var(--card); border-block: 1px solid var(--line); }
.strip-in { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; }
.strip li { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 16px; line-height: 1.3; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.strip svg { width: 28px; height: 28px; color: var(--blue); flex: none; }
@media (max-width: 900px) { .strip-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .strip-in { grid-template-columns: 1fr; } }

/* Sections */
.section { padding-block: var(--section); }
.intro { max-width: 760px; margin-bottom: 48px; }
.intro h2 { margin-bottom: 16px; }

/* Goals */
.goals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; counter-reset: g; }
.goals li { position: relative; padding: 28px 0 28px 64px; border-top: 2px solid var(--ink); }
[dir="rtl"] .goals li { padding: 28px 64px 28px 0; }
.goals .num { position: absolute; inset-inline-start: 0; top: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: var(--blue-dark); display: grid; place-items: center; font-weight: 900; font-size: 20px; }
.goals h3 { margin-bottom: 8px; font-size: 22px; }
.goals p { color: var(--mute); max-width: 46ch; }
@media (max-width: 760px) { .goals { grid-template-columns: 1fr; } }

/* Splits */
.split-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-in.reverse > :first-child { order: 2; }
.split-copy h2 { margin-bottom: 20px; }
.split-copy > p:not(.eyebrow) { margin-bottom: 8px; max-width: 56ch; }
@media (max-width: 900px) {
  .split-in { grid-template-columns: 1fr; gap: 44px; }
  .split-in.reverse > :first-child { order: 0; }
}
.ticks { list-style: none; margin: 8px 0 0; padding: 0; }
.ticks li { position: relative; padding-inline-start: 32px; margin-top: 16px; color: var(--mute); max-width: 56ch; }
.ticks li b { color: var(--ink); font-weight: 800; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23145E93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Notes */
.notes { display: flex; flex-direction: column; gap: 14px; }
.note { display: flex; gap: 14px; align-items: center; background: var(--orange-soft); border-radius: var(--r-panel); padding: 16px 18px; font-weight: 700; font-size: 17px; line-height: 1.45; }
.note:nth-child(2) { margin-inline-start: 36px; }
.note img { width: 56px; flex: none; }
@media (max-width: 480px) { .note:nth-child(2) { margin-inline-start: 0; } }

/* Household band */
.band { background: var(--blue-dark); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band .lead { color: #E3F0FA; }
.eyebrow-light { color: var(--sun); }
.ticks-light li { color: #E3F0FA; }
.ticks-light li b { color: #fff; }
.ticks-light li::before { background-color: #fff; }
.share-visual { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: end; }
.share-visual .cap { grid-column: 1 / -1; }
.cap-light { color: #E3F0FA; }
.list-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; font-size: 18px; }
.list-head b { flex: 1; font-weight: 900; }
.list-head .back { font-size: 24px; line-height: 1; color: var(--mute); }
.list-head .share { font-size: 13px; font-weight: 800; color: var(--blue-dark); background: var(--sky); border-radius: 10px; padding: 4px 10px; }
.list-add { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; color: var(--mute); font-weight: 600; margin-bottom: 8px; }
.li { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px 12px; margin-top: 6px; font-weight: 800; color: var(--ink); }
.li small { display: block; font-size: 12px; font-weight: 600; color: var(--mute); }
.li.done .grow { color: var(--mute); }
.cb { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--sky-mid); flex: none; display: grid; place-items: center; font-size: 13px; color: #fff; }
.cb.on { background: var(--blue); border-color: var(--blue); }
.list-done { position: absolute; inset-inline: 14px; bottom: 16px; background: var(--orange); color: var(--ink); text-align: center; font-weight: 900; border-radius: 14px; padding: 12px; }
.chat { background: #E9F6EC; color: var(--ink); border-radius: var(--r-panel); padding: 14px; max-width: 280px; margin-bottom: 40px; }
.chat-name { font-weight: 900; font-size: 14px; color: #1F6E43; margin-bottom: 8px; }
.bubble { background: #D3F2D6; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.45; font-weight: 600; }
[dir="rtl"] .bubble { border-radius: 14px 14px 4px 14px; }
.bubble .lnk { color: var(--blue-dark); text-decoration: underline; word-break: break-all; }
@media (max-width: 640px) {
  .share-visual { grid-template-columns: 1fr; justify-items: center; }
  .chat { margin-bottom: 0; max-width: 320px; width: 100%; }
}

/* Privacy places */
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.place { padding: 28px 24px 8px 0; }
[dir="rtl"] .place { padding: 28px 0 8px 24px; }
.place + .place { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.place svg { width: 32px; height: 32px; color: var(--blue); margin-bottom: 14px; }
.place h3 { font-size: 19px; }
.place .when { font-size: 14px; font-weight: 800; color: var(--blue-dark); margin: 2px 0 10px; }
.place p:not(.when) { color: var(--mute); font-size: 16px; }
.place-none h3 { font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.place-none a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; margin-top: 6px; }
@media (max-width: 900px) {
  .places { grid-template-columns: 1fr 1fr; }
  .place:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .place:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .places { grid-template-columns: 1fr; }
  .place, .place + .place { padding-inline: 0; border-inline-start: 0; }
  .place + .place { border-top: 1px solid var(--line); }
}

/* Made for everyone */
.alt { background: var(--card); }
.langs { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.langs li { background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 6px 12px; font-weight: 700; font-size: 16px; }
.langs li[lang="ar"], .langs li[lang="ur"] { font-family: "Cairo", var(--font); }
.extras { background: var(--ground); border-radius: var(--r-panel); padding: 28px; }
.extras h3 { margin-bottom: 8px; }
.extras dl { margin: 0; }
.extras dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.extras dl > div:first-child { border-top: 0; }
.extras dt { font-weight: 800; }
.extras dd { margin: 2px 0 0; color: var(--mute); font-size: 16px; }

/* Get the app */
.get { background: var(--sky); }
.get-in { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.get-tally { width: 240px; }
.get h2 { margin-bottom: 12px; }
.get p { max-width: 56ch; }
.stores { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 20px 8px 16px; background: var(--card); border: 1px solid var(--sky-mid); border-radius: var(--r-btn); color: var(--ink); }
.store svg { width: 28px; height: 28px; color: var(--blue-dark); flex: none; }
.store span { display: flex; flex-direction: column; font-weight: 900; font-size: 18px; line-height: 1.15; }
.store small { font-size: 12px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
a.store { text-decoration: none; background: var(--ink); color: #fff; border-color: var(--ink); }
a.store svg { color: #fff; } a.store small { color: #C9D3E0; }
.early { margin-top: 24px; font-weight: 700; }
@media (max-width: 720px) {
  .get-in { grid-template-columns: 1fr; gap: 24px; }
  .get-tally { width: 160px; }
}

/* FAQ */
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; padding: 14px 0; font-weight: 800; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--blue-dark); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--mute); max-width: 62ch; }
@media (max-width: 900px) { .faq-in { grid-template-columns: 1fr; gap: 24px; } }

/* Footer */
.foot { background: var(--card); border-top: 1px solid var(--line); padding-block: 32px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.brand-foot { font-size: 17px; }
.brand-foot .ar { font-family: "Cairo", var(--font); font-weight: 700; color: var(--mute); font-size: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
