/* V-Rasat website — shared styles (home page + inner pages).
   Brand: the app icon's deep green + gold on the app's ivory. */

:root {
  --paper: #f7f4ec;
  --surface: #fffdf8;
  --surface-2: #f1ecdf;
  --ink: #14231f;
  --muted: #56655f;
  --line: #e2dac7;
  --green: #1c5249;
  --green-deep: #123a33;
  --green-soft: #dcebe5;
  --gold: #c9a84c;
  --gold-text: #8a6a1f;
  --gold-soft: #f4e9cc;
  --on-green: #f7f4ec;
  --quote: #1c5249;
  --shadow: 0 1px 2px rgba(20, 35, 31, .06), 0 8px 24px rgba(20, 35, 31, .07);
  --radius: 14px;
  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1916;
    --surface: #14221e;
    --surface-2: #192a25;
    --ink: #ece7da;
    --muted: #a5b2ac;
    --line: #26392f;
    --green: #2f7a6b;
    --green-deep: #0b2420;
    --green-soft: #173a32;
    --gold: #d4b45a;
    --gold-text: #e2c677;
    --gold-soft: #2c2716;
    --on-green: #f7f4ec;
    --quote: #9fd3c4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1916;
  --surface: #14221e;
  --surface-2: #192a25;
  --ink: #ece7da;
  --muted: #a5b2ac;
  --line: #26392f;
  --green: #2f7a6b;
  --green-deep: #0b2420;
  --green-soft: #173a32;
  --gold: #d4b45a;
  --gold-text: #e2c677;
  --gold-soft: #2c2716;
  --on-green: #f7f4ec;
  --quote: #9fd3c4;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }

/* Urdu */
body.lang-ur { font-family: var(--font-urdu); line-height: 2.1; font-size: 16px; }
body.lang-ur h1, body.lang-ur h2, body.lang-ur h3 { font-family: var(--font-urdu); line-height: 1.9; letter-spacing: 0; }
body.lang-ur .num, body.lang-ur .price, body.lang-ur .ltr { font-family: var(--font-body); direction: ltr; unicode-bidi: isolate; }
.ur { font-family: var(--font-urdu); line-height: 2; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; transform: translateY(-300%); background: var(--surface); padding: 8px 12px; z-index: 200; }
.skip:focus { transform: none; }

/* ── Header ── */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.brand .ur { color: var(--gold-text); font-size: .95rem; line-height: 1; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
@media (min-width: 960px) { .nav { display: flex; } }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-toggle button {
  border: 0; background: none; color: var(--muted); font: inherit; font-size: .85rem;
  padding: 4px 12px; border-radius: 999px; cursor: pointer; line-height: 1.6;
}
.lang-toggle button[aria-pressed="true"] { background: var(--green); color: var(--on-green); }
.lang-toggle .ur { font-size: .9rem; line-height: 1.6; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px; padding: 12px 20px; font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.3;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1d1a0f; box-shadow: 0 6px 18px rgba(201, 168, 76, .35); }
.btn-gold:hover { background: #d6b75d; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost-light { border-color: rgba(247, 244, 236, .35); color: var(--on-green); background: transparent; }
.btn-ghost-light:hover { background: rgba(247, 244, 236, .08); }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn-play svg { width: 22px; height: 22px; flex: none; }
.btn-play .small { display: block; font-size: .7rem; font-weight: 500; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.btn-play .big { display: block; font-size: 1.05rem; }
.btn-play span { text-align: start; }
.btn-play .big { font-family: var(--font-body); }
.head-cta { display: none; }
@media (min-width: 600px) { .head-cta { display: inline-flex; } }

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--green-deep);
  color: var(--on-green);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* Eight-point star lattice, the one ornament on the page */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-width='1'%3E%3Cpath d='M36 6 44.5 27.5 66 36 44.5 44.5 36 66 27.5 44.5 6 36 27.5 27.5Z'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%);
}
.hero .wrap { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 72px; padding-bottom: 80px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--gold);
}
body.lang-ur .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: 1.15rem; color: rgba(247, 244, 236, .82); max-width: 34em; }
.hero .ur-line { font-family: var(--font-urdu); color: var(--gold); font-size: 1.25rem; margin: 0 0 18px; line-height: 2.4; }
body.lang-ur .hero .ur-line { display: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: .9rem; color: rgba(247, 244, 236, .7); }
.hero-meta span::before { content: "✓"; color: var(--gold); margin-inline-end: 6px; }

/* Example distribution card */
.split-card {
  background: var(--surface); color: var(--ink);
  border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  border: 1px solid rgba(201, 168, 76, .35);
}
.split-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.split-card header b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
body.lang-ur .split-card header b { font-family: var(--font-urdu); }
.split-card .tag { font-size: .75rem; color: var(--gold-text); background: var(--gold-soft); padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.split-card .estate { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 2px; margin-bottom: 16px; }
.bar i { display: block; height: 100%; }
.heirs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.heirs li { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.heirs .dot { width: 10px; height: 10px; border-radius: 3px; }
.heirs .frac { font-family: var(--font-display); color: var(--gold-text); font-size: 1rem; min-width: 3.2em; text-align: end; }
.heirs .amt { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 7.5em; text-align: end; font-family: var(--font-body); }
.split-card footer { margin-top: 14px; font-size: .8rem; color: var(--muted); }

/* ── Sections ── */
section { padding: 72px 0; }
@media (min-width: 960px) { section { padding: 96px 0; } }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-text); }
body.lang-ur .kicker { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.alt { background: var(--surface-2); }

/* Trust strip */
.trust { padding: 22px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.trust .label { color: var(--muted); font-size: .9rem; margin-inline-end: 6px; }
.chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .88rem; font-weight: 600; }
:root[data-theme="dark"] .chip { color: #9fd3c4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip { color: #9fd3c4; } }

/* Feature grid */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.feature.lead { background: var(--green); color: var(--on-green); border-color: transparent; }
.feature.lead p { color: rgba(247, 244, 236, .82); }
.feature.lead .ficon { background: rgba(247, 244, 236, .12); color: var(--gold); }
@media (min-width: 1000px) { .feature.lead { grid-row: span 2; justify-content: flex-end; } .feature.lead h3 { font-size: 1.9rem; } }
.ficon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-text); }
.ficon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.35rem; }
.feature p { color: var(--muted); font-size: .98rem; }
.badge-new { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1d1a0f; background: var(--gold); padding: 2px 8px; border-radius: 6px; }
body.lang-ur .badge-new { letter-spacing: 0; text-transform: none; font-size: .8rem; }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 22px; border-top: 3px solid var(--gold); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.step .n { font-family: var(--font-display); color: var(--gold-text); font-size: 1.6rem; line-height: 1; }
.step h3 { font-size: 1.25rem; margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: .96rem; }

/* Maslak */
.maslak { display: grid; gap: 16px; }
@media (min-width: 860px) { .maslak { grid-template-columns: 1.4fr 1fr; } }
.maslak .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.maslak h3 { font-size: 1.35rem; margin-bottom: 6px; }
.maslak p { color: var(--muted); font-size: .97rem; }
.maslak .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.callout { margin-top: 24px; padding: 20px 22px; border-inline-start: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.callout b { display: block; margin-bottom: 4px; }
.callout p { color: var(--ink); font-size: .97rem; }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.popular { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -12px; inset-inline-start: 22px; background: var(--gold); color: #1d1a0f; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.5rem; }
.price { font-family: var(--font-body); font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); font-size: .95rem; margin-top: -8px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .97rem; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5-6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }

/* Use cases */
.cases { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.case h3 { font-size: 1.2rem; margin-bottom: 8px; }
.case p { color: var(--muted); font-size: .95rem; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* Founder note + review */
.note-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .note-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.founder { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.founder blockquote { margin: 18px 0; padding: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.5; color: var(--quote); }
body.lang-ur .founder blockquote { font-family: var(--font-urdu); line-height: 2.2; }
.founder cite { display: block; font-style: normal; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.founder p { color: var(--muted); }
.founder p + p { margin-top: 12px; }
.founder .sign { margin-top: 18px; font-weight: 600; color: var(--ink); }
.review-box { background: var(--green); color: var(--on-green); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review-box h2 { font-size: 1.8rem; }
.review-box p { color: rgba(247, 244, 236, .85); }
.stars { display: flex; gap: 4px; color: var(--gold); }
.stars svg { width: 26px; height: 26px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Final CTA */
.cta-band { background: var(--green-deep); color: var(--on-green); text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 760px; margin: 0 auto 14px; }
.cta-band p { color: rgba(247, 244, 236, .8); max-width: 600px; margin: 0 auto 26px; }
.cta-band .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .93rem; color: var(--muted); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-foot h4 { margin: 0 0 10px; color: var(--ink); font-size: .95rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.disclaimer { margin-top: 12px; font-size: .85rem; }
.copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Home notice from the dashboard (shown on every homepage visit) */
.notice-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 20, 17, .62);
  display: grid; place-items: center; padding: 16px;
  animation: notice-fade .25s ease;
}
.notice-modal {
  width: 100%; max-width: 620px; max-height: min(86vh, 760px);
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink);
  border-radius: 18px; border: 1px solid rgba(201, 168, 76, .45);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.notice-modal header {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 22px 14px; background: var(--green-deep); color: var(--on-green);
}
.notice-modal header .kicker { color: var(--gold); display: block; margin-bottom: 4px; }
.notice-modal h2 { font-size: 1.45rem; margin: 0; flex: 1; }
body.lang-ur .notice-modal h2 { font-size: 1.3rem; }
.notice-close {
  flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(247, 244, 236, .3);
  background: transparent; color: var(--on-green); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.notice-close:hover { background: rgba(247, 244, 236, .1); }
.notice-body { padding: 18px 22px; overflow-y: auto; white-space: pre-line; color: var(--ink); font-size: 1rem; }
body.lang-ur .notice-body { line-height: 2.2; }
.notice-modal footer { padding: 14px 22px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
@keyframes notice-fade { from { opacity: 0; } to { opacity: 1; } }
body.notice-open { overflow: hidden; }
