/* Hisaab landing page. Palette and type mirror the mobile app (lib/theme). */
:root {
  --mist: #eff2ee;
  --surface: #fff;
  --ink: #14231e;
  --ink2: #4a5a54;
  --faint: #7c8a84;
  --line: #d2dad5;
  --divider: #e6ebe7;
  --peacock: #0e6b5f;
  --peacock-deep: #0a4f46;
  --peacock-soft: #dceee9;
  --marigold: #f2b544;
  --marigold-soft: #fcefd2;
  --marigold-text: #6e4606;
  --brick: #a63a26;
  --green: #0b7a55;
  --ink-line: #2e4039;
  --ink-muted: #a9bbb3;
  --radius: 22px;
  --font-d: "Bricolage Grotesque", system-ui, sans-serif;
  --font-b: "Onest", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-b);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--peacock); }
h1, h2, h3 { font-family: var(--font-d); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 99; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(239, 242, 238, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--divider); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.5rem var(--font-d); letter-spacing: -0.045em; }
.brand svg { width: 34px; height: 34px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav ul a:hover { color: var(--peacock); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--peacock); color: #fff; text-decoration: none; font: 600 1rem var(--font-b); padding: 14px 24px; border-radius: 999px; transition: background .15s, transform .15s; }
.btn:hover { background: var(--peacock-deep); transform: translateY(-1px); }
.btn.sm { padding: 9px 18px; font-size: .92rem; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.line:hover { background: var(--surface); }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--marigold-soft); color: var(--marigold-text); font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--peacock); }
.lead { font-size: 1.2rem; color: var(--ink2); margin: 22px 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: .88rem; color: var(--faint); margin-top: 18px; }

/* Phone mockups */
.phone { width: 290px; aspect-ratio: 9 / 18.6; background: var(--ink); border-radius: 42px; padding: 9px; box-shadow: 0 30px 60px -24px rgba(20, 35, 30, .5); margin-inline: auto; flex: none; }
.screen { background: var(--mist); border-radius: 34px; height: 100%; padding: 18px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; line-height: 1.35; }
.screen .top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink2); }
.card { background: var(--surface); border-radius: 16px; padding: 14px; }
.card.dark { background: var(--ink); color: #fff; }
.muted { color: var(--ink2); }
.card.dark .muted { color: var(--ink-muted); }
.big { font: 700 30px/1 var(--font-d); letter-spacing: -0.03em; margin: 6px 0; }
.bar { display: flex; height: 9px; border-radius: 9px; overflow: hidden; gap: 2px; margin-top: 10px; }
.bar i { display: block; height: 100%; }
.row { display: flex; align-items: center; gap: 10px; }
.row + .row { margin-top: 10px; }
.av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 700 14px var(--font-d); flex: none; }
.grow { flex: 1; min-width: 0; }
.grow b { display: block; font-weight: 600; }
.amt { font: 700 15px var(--font-d); }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--peacock-soft); color: #0a3f38; }
.pill.gold { background: var(--marigold-soft); color: var(--marigold-text); }
.sms { background: var(--mist); border-radius: 12px; padding: 10px; font-size: 11.5px; color: #34443e; }
.chat-u { align-self: flex-end; background: var(--peacock); color: #fff; padding: 9px 13px; border-radius: 16px 16px 4px 16px; max-width: 85%; }
.chat-b { background: var(--surface); padding: 11px 13px; border-radius: 16px 16px 16px 4px; max-width: 92%; }
.hero .phone:nth-child(2) { display: none; }
.hero-visual { position: relative; }
.float { position: absolute; background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: 0 18px 40px -18px rgba(20, 35, 30, .4); font-size: .85rem; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.float.a { left: -10px; bottom: 90px; }
.float.b { right: -6px; top: 60px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }

/* Sections */
section { padding: 84px 0; }
.head { max-width: 640px; margin-bottom: 44px; }
.head p { color: var(--ink2); margin-top: 14px; font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.feat .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--peacock-soft); margin-bottom: 18px; }
.feat .ic svg { width: 24px; height: 24px; stroke: var(--peacock); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat .ic.gold { background: var(--marigold-soft); }
.feat .ic.gold svg { stroke: var(--marigold-text); }
.feat p { color: var(--ink2); margin-top: 8px; font-size: .98rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--marigold); color: var(--ink); font: 700 1.2rem/42px var(--font-d); text-align: center; }
.steps p { color: var(--ink2); margin-top: 6px; font-size: .98rem; }

/* Privacy band */
.band { background: var(--ink); color: #fff; }
.band .head p { color: var(--ink-muted); }
.band .flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; margin-bottom: 40px; }
.flow .node { background: #1b2f28; border: 1px solid var(--ink-line); border-radius: 18px; padding: 20px; }
.flow .node small { color: var(--ink-muted); font-weight: 600; display: block; margin-bottom: 8px; }
.flow .arrow { color: var(--marigold); font-size: 1.6rem; }
.flow .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.flow .chips span { background: var(--marigold-soft); color: var(--marigold-text); font-weight: 600; font-size: .85rem; padding: 4px 11px; border-radius: 999px; }
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; list-style: none; padding: 0; margin: 0 0 32px; }
.promises li { display: flex; gap: 12px; color: #dfeae5; }
.promises svg { width: 22px; height: 22px; flex: none; stroke: var(--marigold); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.band .btn.line { color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink-line); }
.band .btn.line:hover { background: #1b2f28; }

/* Screens gallery */
.shots { display: flex; gap: 28px; overflow-x: auto; padding: 8px 4px 28px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: center; flex: none; }
.shots figcaption { text-align: center; margin-top: 14px; font-weight: 600; color: var(--ink2); font-size: .95rem; }
.shots .phone { width: 260px; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
details { background: var(--surface); border-radius: 18px; padding: 20px 24px; margin-bottom: 10px; }
summary { cursor: pointer; font: 600 1.1rem var(--font-d); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--peacock); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink2); margin-top: 12px; font-size: 1rem; }

/* Final CTA + footer */
.final { text-align: center; background: var(--peacock); color: #fff; border-radius: 32px; padding: 64px 24px; }
.final p { color: var(--peacock-soft); margin: 14px auto 28px; max-width: 32em; }
.final .btn { background: var(--marigold); color: var(--ink); }
.final .btn:hover { background: #f6c566; }
footer { padding: 48px 0 40px; color: var(--ink2); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer ul { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
footer a { color: var(--ink2); }
.legal { margin-top: 18px; font-size: .8rem; color: var(--faint); width: 100%; }

/* Legal / document pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.doc .updated { color: var(--faint); margin: 10px 0 32px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; font-size: .95rem; margin: 14px 0; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.doc th { background: var(--peacock-soft); color: #0a3f38; }
.callout { background: var(--marigold-soft); color: var(--marigold-text); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }
.callout p, .callout li { color: var(--marigold-text); }
.table-wrap { overflow-x: auto; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .grid3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .band .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); text-align: center; }
  .promises { grid-template-columns: 1fr; }
  .nav ul { display: none; }
  .float { display: none; }
  section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .phone { width: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Real app screenshots inside the phone frame */
.phone:has(img) { aspect-ratio: auto; padding: 8px; }
.phone img { width: 100%; height: auto; border-radius: 34px; display: block; }
