/* Khajane — website styles.
   Same Bauhaus design system as the app: warm cream background, white cards
   on thick black keylines with a hard offset "shadow" block, the red / blue /
   yellow / black triad, Poppins headings + Archivo body, no gradients. */

:root {
  --bg: #F2EDE4;
  --surface: #FFFFFF;
  --surface-variant: #E8E1D3;
  --ink: #16151A;
  --text-2: #5A554C;
  --muted: #8A8478;
  --divider: #D8D0BE;
  --red: #D6321F;
  --blue: #0B4F9C;
  --yellow: #F4C430;
  --green: #1E8E3E;
  --gold: #E9BF3C;
  --gold-dark: #8A6A14;
  --gold-shine: #F7DC80;
  --line: 2.5px;
  --offset: 8px;
  --radius-full: 999px;
  --max: 1120px;
  --gutter: 20px;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-2); }
.eyebrow {
  font: 700 12px/1 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--surface); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ── Bauhaus card: hard offset block behind a keylined white card ───────── */
.card {
  position: relative;
  background: var(--surface);
  border: var(--line) solid var(--ink);
  box-shadow: var(--offset) var(--offset) 0 var(--ink);
}
.card.pad { padding: 24px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 16px/1 var(--font-head);
  text-decoration: none;
  padding: 15px 22px;
  border: var(--line) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--surface);
  color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn.primary { background: var(--yellow); }
.btn.dark { background: var(--ink); color: var(--surface); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: var(--line) solid var(--ink);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font: 800 22px/1 var(--font-head);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img {
  width: 38px; height: 38px;
  border: 2px solid var(--ink);
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  font: 600 15px/1 var(--font-head);
  text-decoration: none;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { padding: 10px 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 64px 0 88px; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; }
.hero .tagline {
  margin-top: 14px;
  font: 700 clamp(15px, 2vw, 19px)/1.4 var(--font-body);
}
.hero .lede {
  margin-top: 18px; max-width: 34ch;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-2);
}
.hero .ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chip {
  font: 700 13px/1 var(--font-head);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 14px;
  border: var(--line) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.chip.red { background: var(--red); color: #fff; }
.chip.blue { background: var(--blue); color: #fff; }
.chip.yellow { background: var(--yellow); }

/* Decorative Bauhaus shapes (as on the app's login screen). */
.shape { position: absolute; z-index: 0; pointer-events: none; }
.shape.circle {
  width: 240px; height: 240px; border-radius: 50%;
  background: var(--yellow); top: -80px; right: -70px;
}
.shape.square {
  width: 70px; height: 70px; background: var(--blue);
  border: var(--line) solid var(--ink);
  bottom: 40px; left: 46%;
}
.shape.triangle {
  width: 0; height: 0;
  border-left: 44px solid transparent; border-right: 44px solid transparent;
  border-bottom: 76px solid var(--red);
  top: 80px; left: -20px; transform: rotate(-12deg);
}
.hero .wrap > * { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  /* Keep decoration clear of the text on narrow screens. */
  .shape.square, .shape.triangle { display: none; }
  .shape.circle { width: 160px; height: 160px; top: -70px; right: -60px; }
}

/* ── Phone mock: the app's Home screen, in HTML/CSS ────────────────────── */
.phone {
  justify-self: center;
  width: min(320px, 86vw);
  background: var(--ink);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 14px 14px 0 rgba(22, 21, 26, 0.18);
}
.screen {
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
  padding: 26px 14px 22px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 12px;
}
.s-head { display: flex; align-items: center; gap: 10px; }
.s-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font: 700 14px/1 var(--font-head);
}
.s-head small { display: block; color: var(--text-2); font-size: 10px; }
.s-head strong { font: 800 17px/1.1 var(--font-head); letter-spacing: 0.02em; }
.s-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px;
}
.s-checkin { display: flex; align-items: center; gap: 10px; }
.s-checkin b { font: 700 12px/1.2 var(--font-head); display: block; }
.s-checkin span { color: var(--text-2); font-size: 10px; }
.s-label {
  font: 700 8.5px/1 var(--font-head);
  letter-spacing: 0.12em; color: var(--text-2); text-transform: uppercase;
}
.s-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }
.s-flow div {
  border: 2px solid var(--ink); padding: 7px; color: #fff;
  font: 800 15px/1.2 var(--font-head);
}
.s-flow div small { display: block; font: 700 7.5px/1 var(--font-head); letter-spacing: .1em; opacity: .9; margin-bottom: 4px; }
.s-flow .sp { background: var(--red); }
.s-flow .in { background: var(--blue); }
.s-net {
  margin-top: 7px; background: var(--ink); color: #fff;
  display: flex; justify-content: space-between;
  padding: 8px; font: 700 12px/1 var(--font-head);
}
.s-net span { opacity: .75; font-weight: 500; }
.s-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.s-row + .s-row { border-top: 1px solid var(--divider); }
.s-ico {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 2px solid var(--ink);
}
.s-row b { font: 600 11.5px/1.2 var(--font-head); display: block; }
.s-row span { color: var(--text-2); font-size: 9.5px; }
.s-row .amt { margin-left: auto; font: 700 12px/1 var(--font-head); }
.s-row .amt.plus { color: var(--blue); }
.s-budget { text-align: center; }
.s-budget p { font-size: 10.5px; margin-top: 4px; }
.s-budget .g { color: var(--green); font: 800 13px/1 var(--font-head); }

/* ── Gold coin (same as the app's GoldCoin widget) ─────────────────────── */
.coin {
  --s: 40px;
  width: var(--s); height: var(--s); flex: none;
  position: relative;
  border-radius: 50%;
  background: var(--gold);
  border: max(1.5px, calc(var(--s) * 0.07)) solid var(--ink);
  display: grid; place-items: center;
}
.coin::before {
  content: ""; position: absolute;
  width: 26%; height: 14%; left: 16%; top: 12%;
  background: var(--gold-shine); border-radius: 999px;
}
.coin::after {
  content: "K"; position: relative;
  width: 66%; height: 66%;
  display: grid; place-items: center;
  border-radius: 50%;
  border: max(1px, calc(var(--s) * 0.05)) solid var(--gold-dark);
  color: var(--gold-dark);
  font: 900 calc(var(--s) * 0.38)/1 var(--font-head);
}
.coin.sm { --s: 26px; }
.coin.lg { --s: 120px; }

/* ── Sections ──────────────────────────────────────────────────────────── */
section { padding: 88px 0; }
section.alt {
  background: var(--surface);
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 18px; }

.grid { display: grid; gap: 28px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

.feature h3 { font-size: 20px; margin-top: 18px; }
.feature p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.icon-box {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: var(--line) solid var(--ink);
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box.red { background: var(--red); color: #fff; }
.icon-box.blue { background: var(--blue); color: #fff; }
.icon-box.yellow { background: var(--yellow); }
.icon-box.ink { background: var(--ink); color: #fff; }
.icon-box.green { background: var(--green); color: #fff; }
.tag-premium {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px; vertical-align: middle;
  font: 700 11px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 8px; background: var(--yellow); border: 2px solid var(--ink);
}

/* Coins */
.coins { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.coins-visual { display: grid; place-items: center; gap: 18px; }
.coins-visual .stack { display: flex; align-items: flex-end; gap: 10px; }
.earn-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.earn-list li {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: var(--line) solid var(--ink);
  padding: 14px 16px;
}
.earn-list li b { font-family: var(--font-head); }
.earn-list .pts {
  margin-left: auto; white-space: nowrap;
  font: 800 15px/1 var(--font-head); color: var(--gold-dark);
}
.redeem {
  margin-top: 22px; padding: 16px 18px;
  background: var(--ink); color: #fff;
  font: 600 16px/1.4 var(--font-head);
}
.redeem strong { color: var(--gold); }
@media (max-width: 900px) { .coins { grid-template-columns: 1fr; } }

/* Premium */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 760px; }
.plan h3 { font-size: 22px; }
.plan .price { font: 800 40px/1 var(--font-head); margin-top: 14px; }
.plan .price small { font: 500 16px/1 var(--font-body); color: var(--text-2); }
.plan.best { background: #FFF7DB; }
.plan .badge {
  position: absolute; top: -14px; right: 16px;
  font: 700 12px/1 var(--font-head); letter-spacing: .08em;
  padding: 7px 10px; background: var(--red); color: #fff; border: 2px solid var(--ink);
}
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: "✓"; flex: none;
  width: 24px; height: 24px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font: 700 13px/1 var(--font-head);
}
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { background: var(--blue); color: #fff; border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
.privacy-band .section-head p { color: rgba(255,255,255,.85); }
.privacy-band .eyebrow { color: rgba(255,255,255,.75); }
.privacy-band .card { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 14px; max-width: 820px; }
.faq details {
  background: var(--surface); border: var(--line) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 20px; padding-right: 52px; position: relative;
  font: 700 17px/1.35 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 800 24px/1 var(--font-head);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 20px; color: var(--text-2); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .card { padding: 48px 24px; background: var(--yellow); }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
.cta-band p { margin: 14px auto 28px; max-width: 46ch; font-size: 18px; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 48px 0 32px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer .brand img { border-color: #fff; }
.site-footer p { color: rgba(255,255,255,.7); margin-top: 12px; max-width: 36ch; font-size: 15px; }
.site-footer nav { display: grid; gap: 10px; }
.site-footer nav a { text-decoration: none; font: 600 15px/1.2 var(--font-head); }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .bars { display: grid; grid-template-columns: repeat(4, 1fr); height: 8px; margin-top: 36px; }
.site-footer .bars span:nth-child(1) { background: var(--red); }
.site-footer .bars span:nth-child(2) { background: var(--blue); }
.site-footer .bars span:nth-child(3) { background: var(--yellow); }
.site-footer .bars span:nth-child(4) { background: #fff; }
.site-footer small { display: block; margin-top: 18px; color: rgba(255,255,255,.55); font-size: 13px; }

/* ── Document pages (privacy, coins, delete account) ───────────────────── */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.doc .updated { color: var(--text-2); margin-top: 10px; font-size: 15px; }
.doc .card { margin-top: 26px; padding: 22px 24px; }
.doc .card h2 { font-size: 21px; margin-bottom: 10px; }
.doc .card p, .doc .card li { color: var(--text-2); }
.doc .card ul, .doc .card ol { margin: 8px 0 0; padding-left: 22px; }
.doc .card li + li { margin-top: 6px; }
.doc .card strong { color: var(--ink); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--ink); color: #fff; border-radius: 50%;
  font: 700 13px/1 var(--font-head);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
