/* Kamzi Talk Urdu website. One small stylesheet, no framework. Right to left, Urdu first.
   Colours match the app (brand.json in the app repo). */
@font-face {
  font-family: 'Kamzi Nastaliq';
  src: local('Noto Nastaliq Urdu'), local('NotoNastaliqUrdu'), url('/talk/fonts/noto-nastaliq-urdu.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
:root {
  --brand: #156683;
  --brand-dark: #0E4A60;
  --brand-soft: #E1F0F5;
  --bg: #F2F6F7;
  --surface: #FFFFFF;
  --ink: #17262C;
  --muted: #4E5F66;
  --line: #D6E0E3;
  --accent: #F2A900;
  --sos: #C62828;
  --radius: 14px;
  --urdu: 'Kamzi Nastaliq', 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', 'Noto Naskh Arabic', serif;
  --latin: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--urdu);
  font-size: 18px;
  line-height: 2.1;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.9; margin: 0 0 .4em; font-weight: 400; }
h1 { font-size: clamp(30px, 7vw, 46px); }
h2 { font-size: clamp(25px, 5vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0 0 .9em; }
/* English beside the Urdu: a smaller line in the Latin font, left to right. */
.en {
  display: block;
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
  font-family: var(--latin);
  font-size: .62em;
  line-height: 1.5;
  color: var(--muted);
  margin-top: .15em;
}
p .en, li .en { font-size: .82em; }
h1 .en, h2 .en { font-size: .5em; font-weight: 600; }
.en-i { font-family: var(--latin); font-size: .8em; color: var(--muted); unicode-bidi: isolate; }
.urdu-only .en, .urdu-only .en-i { display: none; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; right: -999px; }
.skip:focus { right: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 20px; line-height: 1.6; margin-inline-end: auto; }
.brand img { width: 40px; height: 40px; }
.brand .en { font-size: 12px; text-align: right; }
.menu summary { list-style: none; cursor: pointer; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; line-height: 1.6; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .en { display: inline; font-size: 12px; margin-inline-start: 6px; }
.menu nav { display: flex; flex-direction: column; padding: 8px 0 12px; }
.menu nav a { text-decoration: none; padding: 6px 4px; color: var(--ink); line-height: 1.7; }
.menu nav a[aria-current] { color: var(--brand); font-weight: 700; }
.menu nav .en { display: inline; margin-inline-start: 8px; font-size: 12px; }
.lang { font: 13px var(--latin); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--muted); cursor: pointer; }
@media (max-width: 799px) {
  .menu[open] { order: 3; width: 100%; }
}
@media (min-width: 800px) {
  .menu summary { display: none; }
  .menu nav { flex-direction: row; gap: 18px; padding: 0; }
  .menu nav .en { display: block; text-align: center; margin: 0; }
  .menu nav a { text-align: center; }
}

/* Sections */
section { padding: 44px 0; }
section.alt { background: var(--surface); }
.eyebrow { color: var(--brand); font-size: 18px; margin-bottom: .2em; }
.lead { font-size: 21px; max-width: 46em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.btn { display: inline-block; text-decoration: none; padding: 8px 22px; border-radius: 999px; background: var(--brand); color: #fff; line-height: 1.9; font-size: 19px; }
.btn .en { color: #DCEFF5; display: block; text-align: center; font-size: 12px; margin: 0 0 4px; }
.btn.ghost { background: var(--surface); color: var(--brand-dark); border: 2px solid var(--brand); }
.btn.ghost .en { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 4px; }
.ticks li::before { content: '✓'; color: var(--brand); font-family: var(--latin); font-weight: 700; margin-inline-end: 8px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
section.alt .card { background: var(--bg); }
.card img { width: 84px; height: 84px; display: block; margin-bottom: 4px; }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1.1fr 1fr; } }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); font: 700 22px var(--latin); color: #fff; background: var(--brand); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 6px; }
.people { display: flex; gap: 6px; flex-wrap: wrap; }
.people img { width: 76px; height: 76px; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); padding: 4px; }
.quote { font-size: 22px; border-inline-start: 4px solid var(--accent); padding-inline-start: 16px; margin: 0 0 12px; }

/* Demo board */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; max-width: 520px; width: 100%; }
.bar { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 4px 4px 10px; margin-bottom: 10px; min-height: 66px; }
.said { flex: 1; font-size: 24px; line-height: 1.9; min-width: 0; overflow-wrap: anywhere; }
.said:empty::before { content: attr(data-empty); color: var(--muted); font-size: 16px; }
.bar button { font: 14px var(--latin); border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink); }
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
@media (max-width: 420px) { .board { grid-template-columns: repeat(4, 1fr); } }
.w { border-radius: 10px; border: 2px solid; padding: 3px 2px 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; font: 17px/1.7 var(--urdu); color: var(--ink); min-height: 74px; }
.w img { width: 100%; max-width: 54px; aspect-ratio: 1; }
.w:active { transform: scale(.96); }
/* Card colours by word type, as in the app (Modified Fitzgerald Key). Each type also has its own
   border style, so the types stay apart for colour-blind readers. */
.w.P { background: #FFFCED; border-color: #9E7600; border-style: dashed; }
.w.A { background: #F3FCF7; border-color: #2E7D32; }
.w.D { background: #F4F9FD; border-color: #1565C0; border-style: dotted; }
.w.S { background: #FEF5F8; border-color: #C2185B; border-style: dashed; }
.w.Q { background: #FAF6FE; border-color: #8E24AA; border-style: dotted; }
.w.I { background: #FEF6F6; border-color: #C62828; border-style: dotted; }
.w.L { background: #FDFCFD; border-color: #808182; border-style: dotted; }
.note { font-size: 15px; color: var(--muted); }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.plan.main { border: 2px solid var(--brand); }
.plan .tag { color: var(--brand); font-size: 17px; }
.plan .price { font: 700 30px/1.3 var(--latin); direction: ltr; text-align: right; margin: 6px 0; }
.plan .price.soon { font: 22px/1.9 var(--urdu); color: var(--brand-dark); }
.plan .price.soon .en { text-align: right; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.placeholder { display: inline-block; background: #FFF4D6; border: 1px dashed var(--accent); border-radius: 8px; padding: 0 8px; font-size: 14px; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
th, td { border-bottom: 1px solid var(--line); padding: 8px; text-align: right; vertical-align: top; }
th { font-weight: 400; }
.table-wrap { overflow-x: auto; }

/* Questions */
details.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px; margin-bottom: 10px; }
details.q summary { cursor: pointer; font-size: 20px; line-height: 1.9; padding: 6px 0; }
details.q[open] summary { color: var(--brand-dark); }

/* Footer */
.foot { background: var(--ink); color: #E6EEF0; padding: 32px 0 24px; margin-top: 20px; }
.foot a { color: #fff; text-decoration: none; }
.foot .en, .foot .en-i { color: #A9BBC1; }
.foot-in { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot nav { display: flex; flex-direction: column; gap: 2px; }
.foot .small { grid-column: 1 / -1; font-size: 15px; margin: 0; }
.brand-line { font-size: 22px; }
.foot .copy { font-family: var(--latin); text-align: left; }
