/* PaiPai Hisab website. Light theme only.
   Colours come from the app's light tokens (apps/mobile/src/theme/tokens.ts).
   The site itself is flat and sharp (hairlines, small radii); only the app mockups
   (.screen, .parchi) use the app's own shapes so they match the real screens. */

:root {
  --bg: #ffffff;
  --surface: #f7f3ee;
  --surface-raised: #f0e8de;
  --border: #ece4da;
  --border-strong: #cbbba7;
  --text: #1c2429;
  --text-muted: #525d5b;
  --text-faint: #7a7670;
  --on-brand: #ffffff;
  --brand: #95593a;
  --brand-pressed: #7c4729;
  --brand-soft: #f6eae2;
  --accent: #85592f;
  --hero-accent: #e2bc94;
  --receive: #116e3a;
  --receive-soft: #cfedd9;
  --give: #b3261e;
  --give-soft: #fad6d0;
  --hero-from: #2b3640;
  --hero-to: #3d4f47;
  --orb-from: #a8673f;
  --orb-to: #7c4729;
  --tint-green: #c6ead2;
  --tint-ember: #f8cbc3;
  --tint-rust: #f3e2d7;
  --tile-rust: #f3e2d7;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
  --max: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; }
.brand { justify-self: start; display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { color: var(--text-muted); font-weight: 500; font-size: 15px; transition: color 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-cta { justify-self: end; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 6px; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; transition: opacity 0.15s; }
.nav-cta:hover { text-decoration: none; opacity: 0.85; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 6px; font: 600 16px/1 var(--font); border: 0; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-pressed); }
.btn-ghost { color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-copy { align-self: center; }
.hero h1 { margin: 0; font-size: clamp(44px, 6.4vw, 76px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.hero h1 span { color: var(--brand); }
.hero .lede { margin: 28px 0 36px; font-size: 20px; line-height: 1.55; color: var(--text-muted); max-width: 500px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; gap: 0; margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.facts li { flex: 1; min-width: 0; padding: 16px 16px 0 0; }
.facts li + li { padding-left: 16px; border-left: 1px solid var(--border); }
.facts b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.facts span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before { content: ''; position: absolute; left: -10%; right: -10%; top: 10%; bottom: -20%; background: radial-gradient(50% 50% at 50% 50%, var(--tint-rust), transparent 70%); z-index: -1; }

/* ---------- Phone mockup: the app's Home screen at 1px = 1dp ---------- */
.phone { zoom: 0.84; width: 384px; padding: 12px; background: #1c2429; border-radius: 52px; box-shadow: 0 40px 80px rgba(28, 36, 41, 0.18); }
.screen { position: relative; width: 360px; height: 790px; background: #fff; border-radius: 40px; overflow: hidden; font-size: 15px; line-height: 1.3; }
.sb { display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 10px 22px 0; font-size: 14px; font-weight: 600; line-height: 1; }
.sb .r { display: flex; align-items: center; gap: 6px; }
.sb .bat { display: flex; align-items: center; justify-content: center; height: 14px; min-width: 24px; padding: 0 4px; border-radius: 4px; background: var(--text); color: #fff; font-size: 10px; font-weight: 600; line-height: 1; }
.sc { padding: 44px 20px 0; }
.hi { margin: 0; font-size: 17px; color: var(--text-muted); }
.nm { margin: 2px 0 24px; font-size: 22px; font-weight: 600; letter-spacing: -0.2px; }

.kh { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.kh div { height: 42px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 500; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-muted); }
.kh .on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.kh .icon { width: 17px; height: 17px; }

.st { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sx { height: 144px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; }
.sx.in { background: linear-gradient(140deg, var(--tint-green) 0%, var(--surface) 95%); }
.sx.out { background: linear-gradient(140deg, var(--tint-ember) 0%, var(--surface) 95%); }
.sx .ar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.sx.in .ar { background: rgba(207, 237, 217, 0.6); color: var(--receive); }
.sx.out .ar { background: rgba(250, 214, 208, 0.6); color: var(--give); }
.sx .ar .icon { width: 15px; height: 15px; stroke-width: 2; }
.sx .lb { font-size: 15px; font-weight: 500; }
.sx.in .lb, .sx.in .am { color: var(--receive); }
.sx.out .lb, .sx.out .am { color: var(--give); }
.am { font-size: 23px; font-weight: 600; line-height: 1.25; letter-spacing: -0.2px; }
.am .p { opacity: 0.6; }
.sx .ct { font-size: 12px; color: var(--text-muted); }

.rc { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.rc.exp { background: linear-gradient(90deg, var(--tint-rust) 0%, var(--surface) 75%); }
.rc .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.rc.exp .ic { background: rgba(246, 234, 226, 0.7); }
.rc .ic .icon { width: 19px; height: 19px; }
.rc .tx { flex: 1; min-width: 0; }
.rc .tx b { display: block; font-size: 16px; font-weight: 500; }
.rc .tx span { display: block; font-size: 13px; color: var(--text-muted); }
.rc .v { font-size: 17px; font-weight: 600; text-align: right; }
.rc .v small { display: block; font-size: 12px; font-weight: 400; color: var(--text-muted); margin-top: 4px; }
.rc .chev { color: var(--text-muted); width: 18px; height: 18px; }
.rc .add { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.rc .add .icon { width: 18px; height: 18px; stroke-width: 2; }
.rh { display: flex; justify-content: space-between; margin: 26px 14px 8px; font-size: 15px; color: var(--text-muted); }
.rh span:last-child { color: var(--brand); }
.rh + .rc { margin-top: 0; }

.tb { position: absolute; left: 14px; right: 14px; bottom: 30px; display: flex; gap: 14px; align-items: center; }
.screen::after { content: ''; position: absolute; left: 50%; bottom: 8px; width: 120px; height: 4px; margin-left: -60px; border-radius: 2px; background: var(--text); opacity: 0.55; }
.tb .pill { flex: 1; height: 54px; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 3px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 2px 14px rgba(70, 45, 25, 0.14); }
.tb .t { display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 500; color: var(--text); gap: 1px; }
.tb .t .icon { width: 19px; height: 19px; }
.tb .t.on { color: var(--accent); background: var(--surface); padding: 6px 22px; border-radius: 999px; box-shadow: 0 2px 6px rgba(70, 45, 25, 0.14); }
.tb .t.sm { font-size: 9px; }
.tb .mic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, var(--orb-from), var(--orb-to)); box-shadow: 0 6px 16px rgba(124, 71, 41, 0.35); flex: none; }
.tb .mic .icon { width: 20px; height: 20px; }

/* ---------- Sections ---------- */
section { padding: 112px 0; border-bottom: 1px solid var(--border); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
h2 { margin: 0; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
.sub { margin: 20px 0 0; color: var(--text-muted); font-size: 19px; max-width: 520px; }

.steps { margin: 40px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: 18px 0; border-top: 1px solid var(--border); }
.steps li::before { content: '0' counter(s); font-size: 14px; font-weight: 600; color: var(--accent); padding-top: 3px; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--text-muted); font-size: 16px; }
/* Parchi: matches the app's Parchi card. It sits straight on the page like a paper slip,
   with the live transcript pill overlapping its top corner. */
.parchi-stage { position: relative; display: flex; justify-content: center; padding: 56px 0 24px; }
.parchi {
  width: 100%; max-width: 420px; background: #fff; border-radius: 12px; border: 1px solid var(--border); overflow: hidden;
  transform: rotate(1.5deg);
  box-shadow: 0 1px 2px rgba(70, 45, 25, 0.06), 0 12px 28px rgba(70, 45, 25, 0.1), 0 40px 80px -20px rgba(70, 45, 25, 0.18);
}
.heard {
  position: absolute; z-index: 1; top: 0; left: max(0px, calc(50% - 250px));
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 8px); padding: 10px 20px 10px 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(70, 45, 25, 0.14); transform: rotate(-2deg);
}
.heard-mic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, var(--orb-from), var(--orb-to)); }
.heard-mic .icon { width: 18px; height: 18px; }
.heard > div:last-child { min-width: 0; }
.heard-text { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heard-wave { display: flex; gap: 3px; align-items: center; height: 12px; margin-top: 4px; }
.heard-wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--brand); opacity: 0.7; animation: wave 1s ease-in-out infinite; }
.heard-wave i:nth-child(2n) { animation-delay: 0.15s; }
.heard-wave i:nth-child(3n) { animation-delay: 0.3s; }
@keyframes wave { 50% { transform: scaleY(0.35); } }
@media (prefers-reduced-motion: reduce) { .heard-wave i { animation: none; } }
.pc-top { padding: 22px 28px; background: linear-gradient(100deg, var(--hero-from), var(--hero-to)); color: rgba(255, 255, 255, 0.72); font-size: 18px; font-weight: 500; }
.pc-tear { margin: 10px 20px 0; border-top: 2px dashed var(--border-strong); }
.pc-body { padding: 24px 28px 28px; }
.pc-kind { margin: 0; font-size: 18px; color: var(--text-muted); }
.pc-who { margin: 14px 0 6px; font-size: 22px; font-weight: 600; }
.pc-amt { margin: 0; font-size: 42px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.2; }
.pc-amt .p { color: var(--text-faint); }
.pc-mode { margin: 10px 0 0; font-size: 18px; color: var(--text-muted); }
.pc-q { margin: 32px 0 14px; font-size: 19px; font-weight: 600; }
.pc-ch { display: flex; gap: 12px; flex-wrap: wrap; }
.pc-ch span { padding: 12px 20px; border-radius: 8px; font-size: 17px; font-weight: 500; background: var(--surface); border: 1px solid var(--border-strong); }
.pc-ch .on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.pc-note { margin: 14px 0 0; font-size: 14px; color: var(--text-muted); }
.pc-btn { margin-top: 24px; height: 58px; border-radius: 10px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 19px; font-weight: 600; }
.pc-btn .icon { stroke-width: 2.25; }

/* Features: hairline grid, no boxes */
.features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--border); }
.feature { padding: 32px 32px 36px 0; }
.feature:nth-child(3n + 2), .feature:nth-child(3n + 3) { padding-left: 32px; border-left: 1px solid var(--border); }
.feature:nth-child(n + 4) { border-top: 1px solid var(--border); }
.feature .icon { width: 24px; height: 24px; color: var(--brand); margin-bottom: 20px; stroke-width: 1.5; }
.feature h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 16px; color: var(--text-muted); }

/* Languages: a plain typographic line */
.langs { margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 8px 0; font-size: clamp(22px, 3vw, 32px); font-weight: 500; letter-spacing: -0.01em; }
.langs span::after { content: '·'; margin: 0 18px; color: var(--border-strong); }
.langs span:last-child::after { content: none; }

/* Final band */
.band { background: linear-gradient(110deg, var(--hero-from), var(--hero-to)); color: #fff; border: 0; padding: 96px 0; }
.band .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.band .eyebrow { color: var(--hero-accent); }
.band p { margin: 16px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 18px; }

/* ---------- Doc pages ---------- */
.page { padding: 88px 0 112px; }
.page .wrap { max-width: 780px; }
.page h1 { margin: 0; font-size: clamp(40px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.date { color: var(--text-muted); font-size: 16px; margin: 16px 0 0; }
.doc { margin-top: 56px; border-top: 1px solid var(--border); }
.doc h2 { font-size: 21px; letter-spacing: -0.01em; margin: 44px 0 12px; }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--border-strong); }
.doc .note { margin: 16px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--brand); }
.doc .note ul { list-style: none; padding: 0; }

.contacts { margin-top: 56px; border-top: 1px solid var(--border); }
.contact { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.contact:hover { text-decoration: none; }
.contact:hover strong { color: var(--brand); }
.contact span { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.contact strong { font-size: clamp(22px, 3.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; transition: color 0.15s; }
.contact .icon { color: var(--text-faint); }

/* ---------- Footer ---------- */
.footer { padding: 32px 0 48px; color: var(--text-muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-extra { display: none; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { padding-bottom: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature:nth-child(n) { padding: 28px 24px 32px 0; border-left: 0; border-top: 1px solid var(--border); }
  .feature:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--border); }
  .feature:nth-child(-n + 2) { border-top: 0; }
  section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .nav { gap: 20px; }
  .nav-cta { display: none; }
  .topbar .wrap { grid-template-columns: 1fr auto; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(n) { padding: 28px 0; border-left: 0; border-top: 1px solid var(--border); }
  .feature:first-child { border-top: 0; }
  .phone { zoom: 0.78; }
  .facts b { font-size: 18px; }
  .facts span { font-size: 13px; }
  .facts li { padding-right: 12px; }
  .facts li + li { padding-left: 12px; }
  /* Phone: no tilt; the pill sits centred above the Parchi and overlaps its top edge. */
  .parchi-stage { flex-direction: column; align-items: center; padding: 8px 0 0; }
  .heard { position: relative; top: auto; left: auto; transform: none; margin-bottom: -22px; padding: 8px 16px 8px 8px; gap: 10px; }
  .heard-mic { width: 34px; height: 34px; }
  .heard-text { font-size: 13px; }
  .parchi { transform: none; }
  .pc-top { padding: 30px 22px 18px; font-size: 16px; }
  .pc-body { padding: 20px 22px 22px; }
  .pc-amt { font-size: 36px; }
  .contact { grid-template-columns: 1fr auto; }
  .contact span { grid-column: 1 / -1; }
  .band { padding: 72px 0; }
}

/* ---------- Large screens (QHD, 4K) ----------
   Every size above is in px, so the page is scaled as a whole in steps.
   That keeps the layout and the phone mockup in proportion at any width. */
@media (min-width: 1680px) { body { zoom: 1.12; } }
@media (min-width: 1920px) { body { zoom: 1.25; } }
@media (min-width: 2240px) { body { zoom: 1.45; } }
@media (min-width: 2560px) { body { zoom: 1.65; } }
@media (min-width: 3000px) { body { zoom: 1.95; } }
@media (min-width: 3600px) { body { zoom: 2.4; } }

/* ---------- FAQ ---------- */
.faq-wrap { align-items: start; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 24px; font-weight: 400; line-height: 1; color: var(--text-faint); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq details p { margin: -6px 0 22px; max-width: 620px; color: var(--text-muted); }
