/* SchoolFee Pro — marketing site
   Palette matches the real dashboard (navy #14335a, green #227a3c). */
:root {
  --navy: #14335a;
  --navy-dark: #0d2440;
  --navy-soft: #e8eef6;
  --green: #227a3c;
  --green-dark: #1a5f2e;
  --green-soft: #e6f4ea;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;

  --paid: #2e9d52;
  --partial: #f0b429;
  --unpaid: #e5484d;
  --overdue: #8e1b1f;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px rgba(13, 36, 64, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html.lenis { scroll-behavior: auto; } /* Lenis does the smoothing; native smooth would fight it */
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; }

/* ---------- Urdu / RTL ---------- */
html[lang="ur"] body { font-family: var(--font-ur), var(--font); line-height: 2.1; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { line-height: 1.9; }
html[lang="ur"] .eyebrow { letter-spacing: 0; text-transform: none; }
/* mockups always stay in English/LTR */
[dir="ltr"] { font-family: var(--font); line-height: 1.5; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 780px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: 10px; font-weight: 600; text-decoration: none;
  padding: 11px 20px; border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap; font-size: 15px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { color: var(--navy); border-color: #c9d4e3; background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:focus-visible, .lang-toggle:focus-visible, summary:focus-visible, .billing-toggle button:focus-visible {
  outline: 3px solid #8fb3e0; outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; display: block; }
.brand-name { font-family: var(--font); font-size: 18px; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.brand-name b { color: var(--green); font-weight: 800; }
.brand.light .brand-mark { background: #fff; border-radius: 10px; padding: 4px; }
.brand.light .brand-name { color: #fff; }
.brand.light .brand-name b { color: #7fd69a; }

.main-nav { display: none; gap: 28px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-actions { margin-inline-start: 20px; }
}
@media (max-width: 420px) {
  .header-actions .btn { display: none; }
}

.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--bg-alt); padding: 3px; cursor: pointer; font: inherit;
}
.lang-toggle span {
  padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted);
  font-family: var(--font); line-height: 1.6;
}
.lang-toggle span[data-lang="ur"] { font-family: var(--font-ur); font-size: 12px; line-height: 1.9; }
html[lang="en"] .lang-toggle span[data-lang="en"],
html[lang="ur"] .lang-toggle span[data-lang="ur"] { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, #dce8f7 0%, transparent 60%),
    radial-gradient(700px 400px at -10% 110%, #e3f3e8 0%, transparent 60%),
    var(--bg);
  padding: 56px 0 72px;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) {
  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: 1fr 1.08fr; gap: 56px; }
}
.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.hero h1 {
  font-size: clamp(32px, 5.4vw, 54px); font-weight: 800; letter-spacing: -.025em; color: var(--navy);
}
html[lang="ur"] .hero h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 700; letter-spacing: 0; }
.lead { font-size: clamp(16px, 1.8vw, 19px); color: #475467; margin: 20px 0 30px; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { font-size: 14px; color: #475467; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "✓"; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 800; font-family: var(--font);
}

/* ---------- Mockup window ---------- */
.hero-visual { min-width: 0; }
.window {
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid #d8dfe9; overflow: hidden; font-size: 12px;
}
@media (min-width: 980px) { .window { transform: perspective(1600px) rotateY(-5deg); } }
html[dir="rtl"] .window { transform: none; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef1f6; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; }
.window-bar i:nth-child(1) { background: #f87171; } .window-bar i:nth-child(2) { background: #fbbf24; } .window-bar i:nth-child(3) { background: #4ade80; }
.window-bar span { margin-left: 10px; color: var(--muted); font-size: 11px; font-weight: 500; }
.app { display: grid; grid-template-columns: 128px 1fr; min-height: 340px; }
.app-side { background: var(--navy); color: #c7d4e6; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.app-logo { color: #fff; font-weight: 700; font-size: 11.5px; margin: 0 6px 12px; line-height: 1.3; }
.app-side span { padding: 7px 8px; border-radius: 7px; font-size: 11.5px; }
.app-side span.on { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.app-main { padding: 16px; min-width: 0; background: #f8fafc; }
.app-title { font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; }
.stat small { display: block; color: var(--muted); font-size: 10px; }
.stat b { font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.green { color: var(--green) !important; }
.status-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 14px 0 8px; gap: 2px; }
.seg.paid { background: var(--paid); } .seg.partial { background: var(--partial); }
.seg.unpaid { background: var(--unpaid); } .seg.overdue { background: var(--overdue); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #475467; font-size: 10.5px; }
.legend.col { flex-direction: column; gap: 6px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.legend i.paid, .track-row i.paid { background: var(--paid); }
.legend i.partial, .track-row i.partial { background: var(--partial); }
.legend i.unpaid, .track-row i.unpaid { background: var(--unpaid); }
.legend i.overdue, .track-row i.overdue { background: var(--overdue); }
.mini-table { width: 100%; border-collapse: collapse; margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.mini-table th { text-align: left; font-size: 10px; color: var(--muted); font-weight: 600; background: #f2f4f7; padding: 7px 10px; }
.mini-table td { padding: 7px 10px; border-top: 1px solid #f0f2f5; font-size: 11px; white-space: nowrap; }
.pill { font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pill.paid { background: #dcf3e3; color: #1c6b36; }
.pill.partial { background: #fdf1d3; color: #8a5a00; }
.pill.unpaid { background: #fde2e2; color: #b42318; }
.pill.overdue { background: #f4d4d5; color: var(--overdue); }
.pill.muted { background: #eaecf0; color: #475467; }
@media (max-width: 520px) {
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .mini-table th:nth-child(2), .mini-table td:nth-child(2) { display: none; }
}
.demo-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.demo-note::before { content: "ⓘ "; }
.center { text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-title {
  text-align: center; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800;
  letter-spacing: -.02em; color: var(--navy); max-width: 22em; margin: 0 auto;
}
html[lang="ur"] .section-title { font-weight: 700; letter-spacing: 0; font-size: clamp(22px, 3vw, 32px); }
.section-sub { text-align: center; color: var(--muted); font-size: 17px; max-width: 38em; margin: 14px auto 48px; }

/* Problem */
.problem { background: var(--bg-alt); }
.pain-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pain-icon { font-size: 26px; display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: #fdecec; margin-bottom: 14px; }
.pain h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.pain p { margin: 0; color: var(--muted); font-size: 15px; }

/* Features */
.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 22px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: box-shadow .2s, transform .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { font-size: 18px; margin: 18px 0 8px; color: var(--navy); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #fff4d6; color: #8a5a00; font-family: var(--font); }
html[lang="ur"] .badge { font-family: var(--font-ur); font-weight: 600; line-height: 2; }

.shot {
  background: linear-gradient(180deg, #f4f7fb, #eef2f8); border: 1px solid #e3e8f0; border-radius: 10px;
  padding: 14px; height: 188px; font-size: 11.5px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
}
.shot-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.shot-stats div { background: #fff; border-radius: 8px; padding: 7px 9px; border: 1px solid var(--line); }
.shot-stats small { display: block; font-size: 10px; color: var(--muted); }
.shot-stats b { font-size: 15px; }
.donut-row { display: flex; align-items: center; gap: 22px; padding: 6px 4px 0; }
.donut {
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--paid) 0 77.5%, var(--partial) 0 85%, var(--unpaid) 0 95.8%, var(--overdue) 0 100%);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%); mask: radial-gradient(circle, transparent 52%, #000 53%);
}
.search { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: #98a2b3; }
.list-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
}
.list-row span:first-child { font-weight: 600; flex: 1; }
.list-row span:nth-child(2) { color: var(--muted); }
.list-row.sum { background: var(--navy); color: #fff; border-color: var(--navy); }
.voucher { background: #fff; border: 1.5px dashed #b8c4d6; border-radius: 8px; padding: 9px 12px; }
.v-head { font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 5px; margin-bottom: 4px; font-size: 12px; }
.v-head small { display: block; font-weight: 500; color: var(--muted); font-size: 10px; }
.v-line { display: flex; justify-content: space-between; font-size: 11px; padding: 1px 0; }
.v-line span:first-child { color: var(--muted); }
.v-line.total { font-weight: 700; border-top: 1px solid var(--line); margin-top: 3px; padding-top: 4px; }
.v-line.total span:first-child { color: var(--ink); }
.print-btn { align-self: flex-end; background: var(--green); color: #fff; font-weight: 600; border-radius: 7px; padding: 5px 11px; font-size: 11px; }
.months, .track-row { display: grid; grid-template-columns: 1fr repeat(4, 34px); gap: 6px; align-items: center; }
.months { padding: 0 10px; }
.months span { grid-column: auto; text-align: center; color: var(--muted); font-weight: 600; font-size: 10px; }
.months span:first-child { grid-column: 2; }
.track-row { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.track-row span { font-weight: 600; }
.track-row i { height: 14px; border-radius: 4px; }
.users { display: grid; gap: 10px; }
.user { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.user b { display: block; font-size: 13px; }
.user small { color: var(--muted); font-size: 11px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.avatar.alt { background: var(--green); }

/* How it works */
.how { background: var(--navy); color: #fff; }
.how .section-title { color: #fff; }
.how .section-sub { color: #b5c4d9; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); counter-reset: none; }
.step { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 28px 24px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--green); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 18px; font-family: var(--font);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; color: #c4d1e3; }

/* Pricing */
.billing-toggle { display: flex; justify-content: center; gap: 4px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: max-content; margin: -16px auto 40px; }
.billing-toggle button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.billing-toggle button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.save { font-size: 11px; color: var(--green); font-weight: 700; margin-inline-start: 4px; }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); align-items: stretch; max-width: 1040px; margin: 0 auto; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--green); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
html[lang="ur"] .plan-tag { top: -18px; font-weight: 600; }
.plan h3 { font-size: 20px; color: var(--navy); }
.plan-desc { color: var(--muted); font-size: 14px; margin: 6px 0 18px; min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .cur { font-size: 16px; font-weight: 600; color: var(--muted); }
.price .amount { font-size: 38px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-family: var(--font); line-height: 1.2; }
html[lang="ur"] .price .amount:only-child { font-family: var(--font-ur); font-size: 30px; line-height: 1.9; }
.price .per { color: var(--muted); font-size: 15px; }
.price-sub { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.plan-features { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan-features li { display: flex; gap: 10px; font-size: 15px; }
.plan-features li::before { content: "✓"; color: var(--green); font-weight: 800; font-family: var(--font); }
.pricing-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }

/* FAQ */
.faq { background: var(--bg-alt); }
.faq-list { display: grid; gap: 12px; margin-top: 40px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16.5px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--green); font-weight: 400; transition: transform .2s; font-family: var(--font); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: #475467; }

/* Quote */
.quote-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.quote-copy h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
html[lang="ur"] .quote-copy h2 { font-weight: 700; letter-spacing: 0; }
.quote-copy > p { color: #475467; font-size: 17px; margin: 14px 0 28px; }
.contact-card { background: var(--navy-soft); border-radius: var(--radius); padding: 22px 24px; }
.contact-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 12px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-list .c-label { color: var(--muted); font-size: 14px; min-width: 70px; }
.contact-list a { font-weight: 600; color: var(--navy); text-decoration: none; word-break: break-all; }
.contact-list a:hover { text-decoration: underline; }
.contact-list .pending { color: var(--muted); font-style: italic; }
.form-wrap { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); min-height: 360px; overflow: hidden; }
.form-wrap iframe { display: block; width: 100%; border: 0; }
.form-loading {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #fff; color: var(--muted); font-size: 15px;
}
.form-loading p { margin: 0; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--green-soft); border-top-color: var(--green);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.noscript-note { margin: 0; padding: 32px 24px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Lenis (smooth scrolling) — its required rules, inlined so no external stylesheet can block the page */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b5c4d9; padding: 48px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-inner p { margin: 12px 0 0; }
.footer-contacts .c-label { color: #8ea3bf; }
.footer-contacts a { color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px; font-size: 13px; color: #8ea3bf; }

/* ================= Animations ================= */

/* Entrance: script.js adds .reveal (+ a --d delay) and .reveal-ready on <html>,
   so without JS everything is simply visible. */
.reveal { --rx: 0px; --ry: 28px; --rs: 1; }
.reveal-zoom { --ry: 18px; --rs: .96; }
.reveal-start { --rx: -40px; --ry: 0px; }
.reveal-end { --rx: 40px; --ry: 0px; }
html[dir="rtl"] .reveal-start { --rx: 40px; }
html[dir="rtl"] .reveal-end { --rx: -40px; }
.quote { overflow-x: clip; } /* sideways slide-ins mustn't cause horizontal scroll on phones */
.reveal-ready .reveal {
  opacity: 0;
  transform: translate3d(var(--rx), var(--ry), 0) scale(var(--rs));
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* Hero mockup: status bar grows in, table rows fade in */
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes spinIn { from { transform: rotate(-120deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .status-bar .seg { transform-origin: left; animation: growX 1.1s cubic-bezier(.2, .7, .2, 1) .8s both; }
  .status-bar .seg:nth-child(2) { animation-delay: .95s; }
  .status-bar .seg:nth-child(3) { animation-delay: 1.1s; }
  .status-bar .seg:nth-child(4) { animation-delay: 1.25s; }
  .mini-table tbody tr { animation: rowIn .5s ease both; }
  .mini-table tbody tr:nth-child(1) { animation-delay: 1.1s; }
  .mini-table tbody tr:nth-child(2) { animation-delay: 1.2s; }
  .mini-table tbody tr:nth-child(3) { animation-delay: 1.3s; }
  .mini-table tbody tr:nth-child(4) { animation-delay: 1.4s; }
  .feature .donut { animation: spinIn 1s cubic-bezier(.2, .7, .2, 1) both; animation-play-state: paused; }
  .feature:not(.reveal) .donut, .feature.in .donut { animation-play-state: running; }
  .faq details[open] p { animation: faqIn .3s ease; }
}

/* ---------- Hover effects ---------- */
.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(16, 24, 40, .08); }

.main-nav a { position: relative; transition: color .2s; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
html[dir="rtl"] .main-nav a::after { transform-origin: right; }
.main-nav a:hover::after { transform: scaleX(1); }

.lang-toggle { transition: border-color .2s; }
.lang-toggle:hover { border-color: #b8c4d6; }

.btn { transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(34, 122, 60, .32); }
.btn-ghost:hover, .btn-outline:hover { box-shadow: 0 6px 18px rgba(20, 51, 90, .14); }
.btn:active { transform: translateY(0) scale(.97); }

.window { transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s; }
@media (min-width: 980px) {
  html[dir="ltr"] .hero-visual:hover .window { transform: perspective(1600px) rotateY(0) translateY(-6px); }
}
.hero-visual:hover .window { box-shadow: 0 32px 70px rgba(13, 36, 64, .28); }
.mini-table tbody tr { transition: background .15s; }
.mini-table tbody tr:hover td { background: #f5f8fc; }

.pain { transition: transform .25s, box-shadow .25s, border-color .25s; }
.pain:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #f3c4c4; }
.pain-icon { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.pain:hover .pain-icon { transform: rotate(-8deg) scale(1.12); }

.feature { transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #b7dcc2; }
.shot { transition: transform .4s cubic-bezier(.2, .7, .2, 1), border-color .25s; }
.feature:hover .shot { transform: scale(1.025); border-color: #cfe3d6; }
.list-row, .track-row { transition: transform .2s, border-color .2s; }
.feature:hover .list-row:hover, .feature:hover .track-row:hover { transform: translateX(3px); border-color: #b7dcc2; }
.print-btn { transition: transform .2s; }
.feature:hover .print-btn { transform: translateY(-2px); }

.step { transition: transform .25s, background .25s, border-color .25s; }
.step:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .1); border-color: rgba(127, 214, 154, .45); }
.step-num { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.step:hover .step-num { transform: rotate(-8deg) scale(1.1); }

.plan { transition: transform .25s, box-shadow .25s, border-color .25s; }
.plan:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(16, 24, 40, .12); }
.plan:not(.featured):hover { border-color: #c9d4e3; }

.faq details { transition: border-color .2s, box-shadow .2s; }
.faq details:hover { border-color: #b7dcc2; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--navy); }

.contact-card { transition: transform .25s, box-shadow .25s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Custom cursor (only when script.js enables it) ---------- */
html.has-custom-cursor, html.has-custom-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; opacity: 0;
  mix-blend-mode: difference; /* white inverts: dark on white sections, light on navy ones */
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; z-index: 10001; transition: opacity .2s; }
.cursor-ring {
  width: 32px; height: 32px; border: 1.5px solid #fff; z-index: 10000;
  transition: opacity .2s, width .3s cubic-bezier(.25, 1, .5, 1), height .3s cubic-bezier(.25, 1, .5, 1),
              background-color .3s, border-color .3s;
}
.cursor-ring.is-pointer { width: 48px; height: 48px; background: #fff; border-color: transparent; }
.cursor-ring.is-down { width: 24px; height: 24px; }
.cursor-ring.is-pointer.is-down { width: 40px; height: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
