/* =====================================================================
   YMasjid — product marketing site. Premium emerald + gold, warm cream.
   Self-contained, no build, no external assets.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --brand: #0d7a54; --brand-2: #14a06d; --brand-3: #0a5a3e; --brand-soft: #e7f3ec;
  --gold: #c2933a; --gold-2: #dfb256; --gold-soft: #f7efdb;
  --ink: #10201a; --ink-2: #33463e; --muted: #6a7d74; --faint: #93a49b;
  --paper: #ffffff; --cream: #f8f5ee; --cream-2: #f1ece0; --cream-3: #eae2d2;
  --line: #e7e0d1; --line-2: #f0eadd;
  --ink-rev: #f7f5ee;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 34px;
  --shadow-s: 0 1px 2px rgba(16,32,26,.05), 0 8px 24px -14px rgba(16,32,26,.2);
  --shadow-m: 0 4px 10px rgba(16,32,26,.06), 0 22px 48px -22px rgba(16,32,26,.3);
  --shadow-l: 0 30px 70px -28px rgba(12,60,44,.42);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --maxw: 1180px;
}
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
::selection { background: var(--brand-soft); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--sans); font-weight: 650; font-size: .95rem; padding: .82rem 1.4rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .25s, background .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(160deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 10px 24px -10px rgba(13,122,84,.65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(13,122,84,.7); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-s); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-3); }
.btn-gold { background: linear-gradient(160deg, var(--gold-2), var(--gold)); color: #3a2c08; box-shadow: 0 10px 24px -10px rgba(194,147,58,.6); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.22); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(248,245,238,.8); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 70px; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -.02em; color: var(--ink); }
.logo .mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; box-shadow: 0 6px 14px -6px rgba(13,122,84,.55); }
.logo .mark svg { width: 100%; height: 100%; display: block; }
.logo b { font-weight: 600; } .logo b span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav-links a { font-family: var(--sans); font-size: .93rem; font-weight: 550; color: var(--ink-2); padding: .55rem .8rem; border-radius: 9px; transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(13,122,84,.07); color: var(--brand-3); }
.nav-links a.active { color: var(--brand-3); font-weight: 680; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-cta .link { font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--ink-2); padding: .5rem .6rem; }
.nav-cta .link:hover { color: var(--brand); }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 11px; align-items: center; justify-content: center; cursor: pointer; }
.burger svg { width: 20px; height: 20px; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu { display: block; position: fixed; inset: 70px 0 auto 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 16px 24px 24px; transform: translateY(-120%); transition: transform .3s cubic-bezier(.2,.7,.3,1); z-index: 99; box-shadow: var(--shadow-m); }
  .mobile-menu.open { transform: none; }
  .mobile-menu a { display: block; padding: .8rem .4rem; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
  .mobile-menu .btn { width: 100%; margin-top: 14px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1200px 560px at 78% -12%, var(--gold-soft) 0%, rgba(247,239,219,0) 58%),
    radial-gradient(1000px 620px at 8% 8%, var(--brand-soft) 0%, rgba(231,243,236,0) 60%),
    var(--cream); border-bottom: 1px solid var(--line); }
.hero-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 24px clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-3); background: #fff; border: 1px solid var(--line); padding: .4rem .8rem; border-radius: 999px; box-shadow: var(--shadow-s); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 3px rgba(20,160,109,.18); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); margin: 22px 0 0; }
.hero h1 .g { background: linear-gradient(120deg, var(--brand-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.16rem; color: var(--ink-2); margin: 20px 0 0; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-sub { margin-top: 18px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .88rem; flex-wrap: wrap; }
.hero-sub .chk { display: inline-flex; align-items: center; gap: 6px; }
.hero-sub .chk svg { width: 16px; height: 16px; color: var(--brand); }

/* device mockup in hero */
.device { position: relative; }
.browser { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-l); overflow: hidden; transform: rotate(1deg); }
.browser .bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9cfba; }
.browser .bar .u { margin-left: 10px; font-size: .72rem; color: var(--muted); font-family: ui-monospace, Menlo, monospace; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.browser .shot { display: block; width: 100%; height: auto; }
.hero-phone { position: absolute; right: -6px; bottom: -26px; width: 132px; border-radius: 22px; box-shadow: var(--shadow-l); border: 5px solid #10201a; overflow: hidden; background: #10201a; transform: rotate(-5deg); }
.hero-phone .shot { display: block; width: 100%; }
.float-badge { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-m); padding: 10px 13px; display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 650; }
.float-badge .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.float-badge small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
.fb-1 { top: 4%; left: -22px; }
.fb-2 { bottom: 8%; left: -30px; }

/* ---------- logos / trust ---------- */
.trust { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.trust p { text-align: center; color: var(--muted); font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; align-items: center; }
.trust-row span { font-family: var(--serif); font-size: 1.15rem; color: var(--faint); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section.cream { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.ink { background: linear-gradient(165deg, #0e2a20, #0a1c15); color: var(--ink-rev); }
.sec-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.eyebrow-2 { font-family: var(--sans); font-size: .82rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.section.ink .eyebrow-2 { color: var(--gold-2); }
.sec-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 12px 0 0; }
.sec-head p { color: var(--ink-2); font-size: 1.1rem; margin: 16px 0 0; }
.section.ink .sec-head p { color: rgba(247,245,238,.72); }

/* feature grid */
.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.f-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-s); transition: transform .3s, box-shadow .3s, border-color .3s; }
.f-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: color-mix(in srgb, var(--brand) 34%, transparent); }
.f-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.f-ic svg { width: 24px; height: 24px; }
.f-card h3 { font-size: 1.28rem; }
.f-card p { color: var(--ink-2); font-size: .98rem; margin: 10px 0 0; }
.f-card .more { margin-top: 14px; font-family: var(--sans); font-weight: 680; font-size: .88rem; color: var(--brand-3); display: inline-flex; align-items: center; gap: 6px; }
.f-card .more svg { width: 15px; height: 15px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding-top: 8px; }
.step .n { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.step h3 { font-size: 1.32rem; margin: 12px 0 0; }
.step p { color: var(--ink-2); margin: 10px 0 0; font-size: 1rem; }
.step .line { position: absolute; top: 20px; left: 62px; right: -24px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.step:last-child .line { display: none; }

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.rev .split-media { order: 2; }
.split h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.split p.lead { color: var(--ink-2); font-size: 1.08rem; margin: 16px 0 0; }
.tick-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.tick-list li svg { width: 22px; height: 22px; flex: none; color: var(--brand-2); margin-top: 1px; }
.tick-list li b { color: var(--ink); }
.split-media { position: relative; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-m); overflow: hidden; }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .v { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; }
.section.ink .stat .v .g { color: var(--gold-2); }
.stat .l { color: rgba(247,245,238,.7); font-size: .92rem; margin-top: 6px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-s); }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-l); position: relative; }
.plan.featured::before { content: attr(data-badge); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(160deg, var(--gold-2), var(--gold)); color: #3a2c08; font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 999px; white-space: nowrap; }
.plan .pname { font-family: var(--sans); font-weight: 750; font-size: 1.05rem; color: var(--brand-3); }
.plan .price { font-family: var(--serif); font-size: 3rem; margin: 12px 0 2px; }
.plan .price small { font-family: var(--sans); font-size: .95rem; color: var(--muted); font-weight: 500; }
.plan .pdesc { color: var(--ink-2); font-size: .95rem; min-height: 44px; }
.plan .btn { margin: 20px 0; }
.plan .feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.plan .feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.plan .feats li svg { width: 19px; height: 19px; flex: none; color: var(--brand-2); margin-top: 1px; }
.plan .feats li.off { color: var(--faint); }
.plan .feats li.off svg { color: var(--faint); }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-s); }
.quote .stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }
.quote p { font-size: 1.02rem; color: var(--ink); margin: 12px 0 18px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--sans); }
.quote .who b { display: block; font-family: var(--sans); font-size: .92rem; }
.quote .who span { color: var(--muted); font-size: .82rem; }

/* CTA band */
.cta-band { background: linear-gradient(155deg, var(--brand-2), var(--brand-3)); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-l); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 82% -20%, rgba(223,178,86,.4), transparent 60%); pointer-events: none; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.86); font-size: 1.15rem; margin: 16px auto 0; max-width: 40em; position: relative; }
.cta-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- footer ---------- */
.footer { background: #0c1c15; color: rgba(247,245,238,.72); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer .logo { color: #fff; }
.footer .fabout { color: rgba(247,245,238,.6); font-size: .95rem; margin: 16px 0 0; max-width: 30ch; }
.footer .socials { display: flex; gap: 10px; margin-top: 18px; }
.footer .socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: rgba(247,245,238,.8); transition: background .2s, border-color .2s; }
.footer .socials a:hover { background: rgba(255,255,255,.08); border-color: var(--gold-2); color: #fff; }
.footer .socials svg { width: 18px; height: 18px; }
.fcol h4 { font-family: var(--sans); font-size: .8rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: rgba(247,245,238,.5); margin-bottom: 14px; }
.fcol a { display: block; padding: 6px 0; font-size: .93rem; color: rgba(247,245,238,.75); }
.fcol a:hover { color: var(--gold-2); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: rgba(247,245,238,.55); }

/* ---------- forms (signup / contact) ---------- */
.formwrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-m); padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--sans); font-weight: 650; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field label .opt { color: var(--faint); font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; font-family: var(--sans); font-size: 1rem; padding: .82rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--cream); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(13,122,84,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.subdomain { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--cream); }
.subdomain:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(13,122,84,.12); background: #fff; }
.subdomain input { border: 0; box-shadow: none; background: transparent; border-radius: 0; }
.subdomain input:focus { box-shadow: none; }
.subdomain .suffix { display: flex; align-items: center; padding: 0 1rem; background: var(--cream-2); color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: .9rem; border-left: 1px solid var(--line); white-space: nowrap; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formnote { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 14px; }
.formnote a { color: var(--brand); font-weight: 650; }

/* plan picker (signup) */
.planpick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.planpick label { cursor: pointer; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; display: block; transition: border-color .2s, background .2s; }
.planpick input { position: absolute; opacity: 0; }
.planpick label:hover { border-color: var(--brand-2); }
.planpick input:checked + .pp { border-color: transparent; }
.planpick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.planpick .pp-name { font-weight: 700; font-family: var(--sans); }
.planpick .pp-price { color: var(--muted); font-size: .86rem; margin-top: 2px; }

/* sub-page header */
.page-hero { background: radial-gradient(900px 420px at 82% -20%, var(--gold-soft) 0%, rgba(247,239,219,0) 60%), radial-gradient(800px 460px at 6% 0%, var(--brand-soft) 0%, rgba(231,243,236,0) 62%), var(--cream); border-bottom: 1px solid var(--line); padding: clamp(46px, 7vw, 82px) 0 clamp(38px, 5vw, 58px); text-align: center; }
.page-hero .eyebrow { margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.3rem); margin: 20px 0 0; }
.page-hero p { font-size: 1.16rem; color: var(--ink-2); max-width: 46ch; margin: 18px auto 0; }
.page-hero .page-actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-s); }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-top: 1px solid var(--line-2); }
.cmp thead th { background: var(--cream); font-family: var(--serif); font-weight: 600; font-size: 1.05rem; border-top: 0; }
.cmp thead th:not(:first-child), .cmp td:not(:first-child) { text-align: center; width: 150px; }
.cmp tbody th { font-weight: 600; font-family: var(--sans); font-size: .95rem; color: var(--ink); }
.cmp .yes { color: var(--brand-2); } .cmp .yes svg { width: 20px; height: 20px; }
.cmp .no { color: var(--faint); }
.cmp .feat-note { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: var(--cream); }
.cmp .col-hi { background: var(--brand-soft); }

/* value / team / contact cards reuse .f-card; small tweaks */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { text-align: center; }
.team-card .av { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 1.7rem; }
.team-card b { display: block; font-family: var(--serif); font-size: 1.15rem; }
.team-card span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .mini-grid, .team-grid { grid-template-columns: 1fr 1fr; } .cmp { display: block; overflow-x: auto; } }

/* misc */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.center { text-align: center; }
.mt-cta { margin-top: 40px; }
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 0; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .pm { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .3s, background .2s; }
.faq-q .pm svg { width: 15px; height: 15px; }
.faq-item.open .faq-q .pm { background: var(--brand); color: #fff; border-color: var(--brand); transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--ink-2); }
.faq-a p { margin: 0 0 22px; }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .device { max-width: 460px; }
  .f-grid, .steps, .quotes, .stats { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-media { order: 0; }
  .step .line { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .f-grid, .steps, .quotes, .stats, .frow, .planpick { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Phase 3 — wizard / calculators / demo ===== */
.wizard { max-width: 720px; margin: 0 auto; }
.wsteps { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.wsteps .wdot { display: flex; align-items: center; gap: 8px; flex: 1; }
.wsteps .wdot .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: #fff; border: 1.5px solid var(--line); color: var(--muted); flex: none; }
.wsteps .wdot .lbl { font-size: .82rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.wsteps .wdot .ln { flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.wsteps .wdot.on .n { background: var(--brand); color: #fff; border-color: var(--brand); }
.wsteps .wdot.on .lbl { color: var(--ink); }
.wsteps .wdot.done .n { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.wsteps .wdot.done .ln, .wsteps .wdot.on .ln { background: var(--brand-2); }
.wbar-track { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.wbar-track > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: 999px; transition: width .35s cubic-bezier(.2,.7,.3,1); }
.wstep h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.wstep .wsub { color: var(--muted); margin: 6px 0 24px; }
.wfoot { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 620px) { .pick-grid { grid-template-columns: 1fr 1fr; } }
.pick { border: 2px solid var(--line); border-radius: var(--r); padding: 12px; cursor: pointer; transition: border-color .2s, transform .15s; background: #fff; text-align: left; }
.pick:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.pick.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pick .swatch { height: 66px; border-radius: 10px; margin-bottom: 9px; }
.pick .pk-name { font-weight: 700; font-size: .9rem; }
.pick .pk-fam { color: var(--muted); font-size: .78rem; }
.color-dot { width: 44px; height: 44px; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.color-dot.sel { box-shadow: 0 0 0 3px var(--brand); }
.wdone { text-align: center; padding: 20px 0; }
.wdone .tick { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.wdone .tick svg { width: 38px; height: 38px; }

/* zakat calculator */
.zc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .zc-grid { grid-template-columns: 1fr; } }
.zc-result { background: linear-gradient(165deg, #0e2a20, #0a1c15); color: #fff; border-radius: var(--r-lg); padding: 28px; position: sticky; top: 92px; }
.zc-result .zr-label { color: rgba(247,245,238,.7); font-size: .85rem; }
.zc-result .zr-big { font-family: var(--serif); font-size: 3rem; margin: 4px 0 2px; }
.zc-result .zr-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .92rem; }
.zc-result .zr-row .v { font-weight: 700; }
.z-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: .86rem; font-weight: 600; }
.z-note.below { background: rgba(255,255,255,.08); color: rgba(247,245,238,.85); }
.z-note.above { background: rgba(223,178,86,.18); color: #f0dca0; }
.field .money-in { position: relative; }
.field .money-in::before { content: "£"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.field .money-in input { padding-left: 26px; }

/* pricing toggles */
.pricing-toggles { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 34px; }
.seg2 { display: inline-flex; background: var(--cream-2); border-radius: 999px; padding: 4px; }
.seg2 button { border: 0; background: transparent; font-family: var(--sans); font-weight: 650; font-size: .88rem; padding: 8px 16px; border-radius: 999px; color: var(--ink-2); cursor: pointer; }
.seg2 button.on { background: #fff; color: var(--brand-3); box-shadow: var(--shadow-s); }
.save-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--brand-3); background: var(--brand-soft); border-radius: 999px; padding: 6px 12px; }

/* demo stage */
.demo-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .demo-wrap { grid-template-columns: 1fr; } }
.demo-rail .dr-label { font-size: .74rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.demo-rail .dr-tpl { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; text-align: left; font-weight: 620; font-size: .86rem; }
.demo-rail .dr-tpl:hover { border-color: var(--brand-2); }
.demo-rail .dr-tpl.sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.demo-rail .dr-tpl .sw { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.demo-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.demo-pages button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: .78rem; font-weight: 620; cursor: pointer; color: var(--ink-2); }
.demo-pages button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo-frame { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-l); background: #fff; }
.demo-frame .bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.demo-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9cfba; }
.demo-frame .bar .u { margin-left: 8px; font-size: .72rem; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.demo-frame iframe { width: 100%; height: 560px; border: 0; display: block; background: #fff; }

/* ===== language switcher ===== */
.lang-wrap { position: relative; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 7px 12px; font-size: .82rem; font-weight: 650; cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.lang-toggle:hover { border-color: var(--brand); color: var(--brand-3); transform: translateY(-1px); }
.lang-toggle svg { width: 16px; height: 16px; }
.lang-toggle .code { font-variant: small-caps; letter-spacing: .04em; }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 168px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(16,32,26,.35); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 120; }
.lang-wrap.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-radius: 9px; padding: 8px 11px; font: inherit; color: var(--ink-2); cursor: pointer; text-align: start; }
.lang-menu button:hover { background: var(--cream); color: var(--ink); }
.lang-menu button .native { font-weight: 700; color: var(--ink); }
.lang-menu button .en { font-size: .76rem; color: var(--muted); margin-inline-start: auto; }
.lang-menu button.active { color: var(--brand-3); }
.lang-menu button.active .native { color: var(--brand-3); }
.lang-menu button.active .en { color: var(--brand); }

/* ===== RTL (Arabic) ===== */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .eyebrow, [dir="rtl"] .eyebrow-2, [dir="rtl"] .stat .v, [dir="rtl"] .price, [dir="rtl"] .pname { letter-spacing: normal; }
[dir="rtl"] .hero-actions svg, [dir="rtl"] .btn svg, [dir="rtl"] .tick-list svg { transform: scaleX(-1); }
[dir="rtl"] .step .line { left: auto; right: 100%; }
[dir="rtl"] .lang-menu { inset-inline-end: auto; inset-inline-start: 0; }
