/*
 * PakSchools landing page — shared styles for / (English) and /ur/ (Urdu).
 * ALL colours are CSS variables here (design lock). Night mode follows the device.
 */
:root {
  --green: #0F5132;
  --green-dark: #0B3D26;
  --gold: #C9A227;          /* decoration only */
  --gold-btn: #E0B84A;      /* gold button / gold on dark */
  --gold-text: #8A6A0E;     /* the ONLY gold for text on light backgrounds */
  --on-gold: #0B2A1C;
  --white: #FFFFFF;
  --bg: #F6F5EF;
  --card: #FFFFFF;
  --border: #E4E2D6;
  --text: #102219;
  --heading: #0B2A1C;
  --muted: #44564B;
  --link: #0F5132;
  --header-bg: rgba(255, 255, 255, 0.88);
  --divider: #D6D3C4;
  --att: #1F9D5C;
  --fees: #E8833A;
  --stu: #6A5AE0;
  --cls: #1E88B6;
  --exam: #0F5132;
  --info: #8A6A0E;
  --staff: #9A4C7E;
  --tools: #4F6359;
  --danger-text: #B4232A;
  --leave: #7A5C08;
  --leave-bg: #FBF3DC;
  --tile-icon: #FFFFFF;
  --band: #0B3D26;          /* dark green pricing band */
  --band-text: #FFFFFF;
  --band-muted: #CFE0D5;
  --band-card: rgba(255, 255, 255, 0.06);
  --band-border: rgba(255, 255, 255, 0.16);
  --shadow: rgba(11, 42, 28, 0.22);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08130F;
    --card: #12261D;
    --border: #1F3A2E;
    --text: #EAF2EC;
    --heading: #EAF2EC;
    --muted: #9DB3A6;
    --link: #8FD9B0;
    --gold-text: #E0B84A;
    --header-bg: rgba(12, 28, 22, 0.92);
    --divider: #1F3A2E;
    --att: #3DD68C;
    --fees: #F59E5B;
    --stu: #A497FF;
    --cls: #5CC4EC;
    --exam: #8FD9B0;
    --info: #E0B84A;
    --staff: #E89AC8;
    --tools: #B7C7BD;
    --tile-icon: #08130F;
    --band: #0C1C16;
    --shadow: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

/* The preview card is a picture of the app in DAY mode, so it always uses day colours. */
.screen {
  --card: #FFFFFF;
  --border: #E4E2D6;
  --text: #102219;
  --heading: #0B2A1C;
  --muted: #44564B;
  --soft: #F6F5EF;
  --line: #EFEDE4;
  --att-soft: #E6F5EC;
  --att-text: #146C43;
  --fees-soft: #FDEEE3;
  --fees-text: #A04A12;
  --stu-soft: #F1EEFD;
  --stu-text: #4C3FB0;
  --danger-soft: #FCEBEC;
  --danger-text: #B4232A;
  --leave: #7A5C08;
  --leave-bg: #FBF3DC;
  --leave-border: #E6CF8E;
  --absent-bg: #FCEBE6;
  --absent-border: #E4A796;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3 { color: var(--heading); margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.ltr { direction: ltr; unicode-bidi: isolate; font-family: Inter, system-ui, sans-serif; }
.num { font-family: Poppins, Inter, sans-serif; font-weight: 700; direction: ltr; unicode-bidi: isolate; }

:focus-visible { outline: 3px solid var(--gold-btn); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 10; background: var(--card); padding: 10px 16px; min-height: 44px; transform: translateY(-300%); }
.skip:focus { transform: none; }

/* ---------- Header ---------- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.brand-mark { width: 48px; height: 48px; border-radius: 14px; background: var(--green-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark span { width: 40px; height: 40px; border-radius: 10px; background: var(--white); display: flex; align-items: center; justify-content: center; }
.brand-mark img { width: 32px; height: 29px; object-fit: contain; }
.brand-name { font-family: Poppins, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -0.01em; direction: ltr; unicode-bidi: isolate; }
.brand-name .pak { color: var(--heading); }
.brand-name .schools { color: var(--gold-text); }
.nav { display: flex; flex-wrap: wrap; gap: 0 24px; flex: 1 1 auto; justify-content: center; font-weight: 500; }
.nav a, .header-actions a { text-decoration: none; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .header-actions a:hover { color: var(--link); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .sep { width: 1px; height: 22px; background: var(--divider); }
.header-actions .login-link { font-weight: 700; color: var(--link); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 26px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-green { background: var(--green-dark); color: var(--white); }
.btn-green:hover { background: var(--green); color: var(--white); }
.btn-gold { background: var(--gold-btn); color: var(--on-gold); }
.btn-gold:hover { filter: brightness(1.05); color: var(--on-gold); }
@media (prefers-color-scheme: dark) {
  .btn-green { background: var(--card); border: 1px solid var(--att); color: var(--text); }
  .btn-green:hover { background: var(--green); color: var(--white); }
}

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px 6px 6px; font-size: 14px; font-weight: 500; }
.pill b { background: var(--green-dark); color: var(--gold-btn); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; border-radius: 999px; padding: 5px 10px; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-text); text-transform: uppercase; }
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--gold); flex-shrink: 0; }
.hero h1 { font-family: Poppins, sans-serif; font-weight: 800; font-size: clamp(36px, 6.4vw, 64px); line-height: 1.06; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--link); }
.gold-line { width: 120px; height: 6px; border-radius: 6px; background: var(--gold); margin-top: -4px; }
.hero .tagline { font-family: Poppins, sans-serif; font-weight: 600; font-size: clamp(20px, 3vw, 26px); color: var(--heading); }
.hero .lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero .small { font-size: 15px; color: var(--muted); }

/* ---------- Preview card ---------- */
.preview { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.preview-logo { position: relative; z-index: 2; width: 92px; height: 92px; border-radius: 24px; background: var(--white); box-shadow: 0 12px 30px var(--shadow); display: flex; align-items: center; justify-content: center; margin-bottom: -46px; }
.preview-logo img { width: 68px; height: 62px; object-fit: contain; }
.preview-box { width: 100%; max-width: 560px; background: var(--green-dark); border-radius: 26px; padding: 62px 18px 18px; box-shadow: 0 30px 60px var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; gap: 8px; }
.tabs button {
  flex: 1 1 0; min-height: 48px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.35); padding: 4px 6px; line-height: 1.25;
}
.tabs button[aria-selected="true"] { background: var(--white); color: var(--green-dark); border: 2px solid var(--gold-btn); }
.tabs button small { display: block; font-size: 11px; font-weight: 600; opacity: 0.9; }
.tabs button:focus-visible { outline-color: var(--gold-btn); }
.no-js .tabs { display: none; }
.screen { background: var(--card); color: var(--text); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 360px; }
.no-js .screen + .screen { margin-top: 0; }
.js .screen[hidden] { display: none; }
.nojs-label { display: none; font-size: 13px; font-weight: 700; color: var(--white); }
.no-js .nojs-label { display: block; }
.screen-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.screen-head strong { font-family: Poppins, sans-serif; font-size: 20px; color: var(--heading); }
.sample { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; background: var(--soft); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
.stats { display: flex; gap: 10px; }
.stat { flex: 1 1 0; min-width: 0; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 12px; font-weight: 600; }
.stat .num { font-size: 24px; color: var(--heading); }
.stat.stu { background: var(--stu-soft); } .stat.stu span { color: var(--stu-text); }
.stat.att { background: var(--att-soft); } .stat.att span { color: var(--att-text); }
.stat.fees { background: var(--fees-soft); } .stat.fees span { color: var(--fees-text); }
.screen .label { font-size: 13px; font-weight: 700; }
.activity { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.activity:last-child { border-bottom: 0; }
.activity .ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.activity .ico.att { background: var(--att-soft); color: var(--att-text); }
.activity .ico.fees { background: var(--fees-soft); color: var(--fees-text); }
.activity .ico.danger { background: var(--danger-soft); color: var(--danger-text); }
.activity b { display: block; font-weight: 600; font-size: 15px; }
.activity small { display: block; font-size: 13px; color: var(--muted); }
.mark { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; font-weight: 600; }
.mark em { font-style: normal; font-weight: 700; font-size: 13px; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.mark .p { background: var(--att-soft); color: var(--att-text); }
.mark.absent { border-color: var(--absent-border); background: var(--absent-bg); }
.mark .a { background: var(--danger-text); color: var(--white); }
.mark.leave { border-color: var(--leave-border); background: var(--leave-bg); }
.mark .l { background: var(--leave); color: var(--white); }
.save-sample { text-align: center; background: var(--green-dark); color: var(--white); font-weight: 700; border-radius: 12px; padding: 12px; }
.row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.row:last-of-type { border-bottom: 0; }
.soon-note { font-size: 14px; color: var(--leave); background: var(--leave-bg); border-radius: 10px; padding: 10px 12px; font-weight: 600; }

/* ---------- Sections ---------- */
.band-white { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-text); text-transform: uppercase; }
.section h2 { font-family: Poppins, sans-serif; font-weight: 800; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.feature {
  --c: var(--att);
  border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px;
  background: color-mix(in srgb, var(--c) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--card));
}
.feature.att { --c: var(--att); } .feature.fees { --c: var(--fees); } .feature.stu { --c: var(--stu); }
.feature.cls { --c: var(--cls); } .feature.exam { --c: var(--exam); } .feature.info { --c: var(--info); }
.feature.staff { --c: var(--staff); } .feature.tools { --c: var(--tools); }
.feature .tile { width: 52px; height: 52px; border-radius: 14px; background: var(--c); color: var(--tile-icon); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-family: Poppins, sans-serif; font-weight: 700; font-size: 21px; }
.feature ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.feature li + li { margin-top: 4px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: Poppins, sans-serif; font-weight: 800; font-size: 40px; line-height: 1.1; color: var(--gold-text); }
.step h3 { font-size: 19px; font-weight: 700; }
.step p { font-size: 15px; color: var(--muted); }

.pricing { background: var(--band); color: var(--band-text); }
.pricing h2 { color: var(--band-text); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan { background: var(--band-card); border: 1px solid var(--band-border); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 6px; color: var(--band-muted); }
.plan .price { font-family: Poppins, sans-serif; font-weight: 800; font-size: 40px; line-height: 1.2; color: var(--band-text); direction: ltr; unicode-bidi: isolate; }
.plan.featured { background: var(--gold-btn); border-color: var(--gold-btn); color: var(--on-gold); font-weight: 600; }
.plan.featured .price { color: var(--on-gold); }
.plan .who { font-weight: 600; }
.pricing .note { font-size: 17px; color: var(--band-muted); }
.plan .name { font-family: Poppins, sans-serif; font-weight: 700; font-size: 20px; color: var(--band-text); }
.plan.featured .name { color: var(--on-gold); }
.price-notes { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--band-muted); }
.price-notes b { color: var(--band-text); }
.price-notes a { color: var(--gold-btn); font-weight: 700; }

/* ---------- Why PakSchools ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.why li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; font-weight: 600; }
.why li span.t { display: flex; flex-direction: column; }
.why li small { color: var(--muted); font-weight: 400; font-size: 15px; }
.why .tick { width: 32px; height: 32px; border-radius: 10px; background: var(--att); color: var(--tile-icon); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 17px; color: var(--heading); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: Poppins, sans-serif; font-size: 24px; color: var(--gold-text); flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 18px; color: var(--muted); font-size: 16px; }

.cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.cta div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cta h2 { font-family: Poppins, sans-serif; font-weight: 800; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; }
.cta p { font-size: 17px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: var(--muted); align-items: center; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 32px; padding-bottom: 56px; gap: 40px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .header-actions { margin-inline-start: auto; }
  .brand-name { font-size: 22px; }
  .btn { width: 100%; }
  .preview-box { padding: 58px 10px 10px; }
  .screen { padding: 14px; }
  .stats { flex-wrap: wrap; }
  .stat { flex-basis: 40%; }
  .tabs button { font-size: 14px; }
}

/* ---------- Urdu page ---------- */
.ur body, body.ur { font-family: "Noto Nastaliq Urdu", serif; line-height: 2.1; }
.ur .hero h1 { font-family: "Noto Nastaliq Urdu", serif; font-weight: 700; font-size: clamp(30px, 5vw, 52px); line-height: 2; letter-spacing: 0; }
.ur .section h2, .ur .cta h2 { font-family: "Noto Nastaliq Urdu", serif; font-weight: 700; line-height: 2; }
.ur .feature h3, .ur .step h3, .ur .hero .tagline, .ur .screen-head strong { font-family: "Noto Nastaliq Urdu", serif; line-height: 2.1; }
.ur .hero .tagline { font-weight: 700; }
.ur .hero .lead, .ur .feature ul, .ur .step p, .ur .cta p, .ur .pricing .note, .ur .price-notes, .ur .faq details p, .ur .why li { line-height: 2.2; }
.ur .faq summary { line-height: 2; padding: 6px 0; }
.ur .plan .name { font-family: "Noto Nastaliq Urdu", serif; line-height: 2; }
.ur .kicker, .ur .eyebrow { letter-spacing: 0; font-size: 15px; font-weight: 600; text-transform: none; }
.ur .pill { padding: 4px 6px 4px 16px; font-size: 15px; }
.ur .pill b { letter-spacing: 0; font-size: 13px; padding: 0 12px; line-height: 2; }
.ur .btn { font-size: 18px; line-height: 2; padding-top: 4px; padding-bottom: 4px; }
.ur .tabs button { font-size: 16px; line-height: 1.9; }
.ur .tabs button small { font-size: 12px; }
.ur .screen { line-height: 2; gap: 8px; }
.ur .activity, .ur .row { padding: 2px 0; }
.ur .mark { padding: 2px 12px; }
.ur .mark em, .ur .sample { letter-spacing: 0; }
.ur .stat { padding: 6px 12px; }
.ur .step .n { font-family: Poppins, sans-serif; }
.ur .gold-line { margin-top: 0; }
