/* 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; }
.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; }

/* ---------- Links and buttons that clearly look clickable ---------- */
main a:not(.btn) {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(21, 102, 131, .45);
  border-radius: 4px;
}
main a:not(.btn):hover { color: #0A3644; text-decoration-color: var(--accent); background: #FFF4D6; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center;
  position: relative;
  padding: 11px 26px 9px 46px; /* room on the left for the arrow (left is "forward" in Urdu) */
  box-shadow: 0 3px 0 var(--brand-dark), 0 6px 14px rgba(14, 74, 96, .18);
  font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn::after {
  content: '←';
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  font: 700 20px/1 var(--latin);
  transition: transform .12s ease;
}
.btn:hover { background: var(--brand-dark); box-shadow: 0 5px 0 #08303F, 0 10px 18px rgba(14, 74, 96, .25); transform: translateY(-2px); }
.btn:hover::after { transform: translate(-4px, -50%); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--brand-dark); }
.btn.ghost { box-shadow: 0 3px 0 var(--brand), 0 6px 14px rgba(14, 74, 96, .12); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn.ghost:active { box-shadow: 0 1px 0 var(--brand); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Header menu and footer links */
.menu nav a { border-radius: 10px; padding: 4px 10px; transition: background-color .12s ease; }
.menu nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.menu nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--accent); }
.menu summary:hover, .lang:hover { background: var(--brand-soft); border-color: var(--brand); }
.brand:hover span:first-child { color: var(--brand); }
.foot nav a { padding: 2px 0; }
.foot nav a::before { content: '‹ '; color: var(--accent); font-family: var(--latin); }
.foot nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
details.q summary:hover { color: var(--brand); }
.w:hover { filter: brightness(.97); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

/* ---------- Graphics and separators ---------- */
/* A truck-art inspired colour band: Pakistan green, saffron, teal, rose, gold. Pure CSS, no image. */
.band {
  height: 8px; border: 0; margin: 0;
  background: repeating-linear-gradient(-45deg, #01411C 0 14px, #F2A900 14px 28px, #156683 28px 42px, #C2185B 42px 56px, #FFFFFF 56px 62px);
}
.top { border-bottom: 0; }
.top::after { content: ''; display: block; height: 5px; background: repeating-linear-gradient(-45deg, #01411C 0 10px, #F2A900 10px 20px, #156683 20px 30px, #C2185B 30px 40px); }
/* A small ornament between sections: a line, a diamond, a line. */
.orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 18px; max-width: 280px; }
.orn::before, .orn::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.orn span { width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 0 4px #FFF4D6; }
/* Section heading with a drawing beside it. */
.head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.head img { width: 64px; height: 64px; flex: none; background: var(--surface); border-radius: 16px; padding: 6px; border: 2px solid var(--line); }
.head h2, .head h1 { margin: 0; }
/* Card drawings sit in a soft tile. */
.card .ic { width: 64px; height: 64px; background: var(--brand-soft); border-radius: 14px; padding: 6px; margin-bottom: 8px; }
.plan .ic { width: 56px; height: 56px; }
.steps li img { width: 72px; height: 72px; display: block; margin-bottom: 4px; }
/* Pakistani everyday things in a row. */
.strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.strip figure { margin: 0; text-align: center; font-size: 15px; line-height: 1.8; }
.strip img { width: 70px; height: 70px; background: var(--surface); border-radius: 50%; padding: 10px; border: 2px solid var(--accent); }
/* Hero: a soft colour wash behind the text, no image download. */
.hero { background: radial-gradient(ellipse at 85% 0%, #DDEFF4 0, transparent 55%), radial-gradient(ellipse at 0% 100%, #FFF1CC 0, transparent 45%); }
.page-head { background: radial-gradient(ellipse at 90% 0%, #DDEFF4 0, transparent 60%); }
.page-head .head img { width: 84px; height: 84px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after, .menu nav a { transition: none; }
  .btn:hover, .btn:active { transform: none; }
  .btn:hover::after { transform: translateY(-50%); }
}
