/* Talking Butler website
   Layout: single page, sticky header, split hero with a live WhatsApp-style demo phone,
   then alternating plain and tinted bands. Logical properties throughout so Urdu (RTL) mirrors cleanly. */

:root {
  --bg: #f3ead9;
  --surface: #fcf7ee;
  --surface-2: #ebdfc8;
  --ink: #2b2118;
  --muted: #6b5a47;
  --line: #ddcfb4;
  --brand: #5a3d24;
  --brand-hover: #452e1a;
  --on-brand: #fcf7ee;
  --brand-soft: #e7d9be;
  --brand-ink: #5a3d24;
  --accent: #b08955;
  --ok: #4a6b3a;
  --chat-bg: #efe4cf;
  --bubble-in: #fffbf3;
  --bubble-out: #e6d6b8;
  --bubble-ink: #2b2118;
  --bubble-out-ink: #2b2118;
  --bubble-out-muted: #6f5c45;
  --bubble-out-card: #fcf7ee;
  --tick: #2f8fd8;
  --phone-frame: #2b2118;
  --band-bg: #ebdfc8;
  --band-ink: #2b2118;
  --band-muted: #6b5a47;
  --shadow: 0 1px 2px rgba(43, 33, 24, .07), 0 12px 32px -12px rgba(43, 33, 24, .22);

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", serif;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);

  --radius: 12px;
  --wrap: 1160px;
  --header-h: 68px;
  color-scheme: light;
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
img, svg { max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 { margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: var(--on-brand);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-head { display: grid; gap: 14px; max-width: 680px; margin-block-end: clamp(36px, 5vw, 56px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.section-head p { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }
.tinted { background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: var(--step--1); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; display: block; flex: none; }
.logo-full { height: 36px; width: auto; display: block; }
@media (max-width: 520px) { .logo-full { height: 32px; } }
.logo-name { font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.logo-name { font-weight: 500; }
.logo-name span { font-weight: 700; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--brand); }
.lang-btn svg { width: 16px; height: 16px; color: var(--brand-ink); }
.lang-btn .lang-ur { font-family: var(--font-ur); line-height: 1; padding-block-start: 4px; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px));
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1rem; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  .header-signin { display: none; }
  .logo-name { font-size: 1rem; }
}
.nav-signin { display: none; }
@media (max-width: 520px) { .nav-signin { display: block; } }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 520px at 85% 10%, var(--brand-soft), transparent 70%), var(--bg); padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: italic; color: var(--brand-ink); }
.hero-sub { font-size: var(--step-1); color: var(--muted); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-block-start: 6px; }
.hero-note { display: flex; align-items: flex-start; gap: 8px; font-size: var(--step--1); color: var(--muted); max-width: 52ch; }
.hero-note svg { width: 16px; height: 16px; flex: none; margin-block-start: 3px; color: var(--ok); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Demo phone ---------- */
.demo { display: grid; justify-items: center; gap: 14px; min-width: 0; position: relative; }
.demo::before {
  content: "";
  position: absolute;
  inset: 8% -10% 4%;
  background: radial-gradient(closest-side, var(--brand-soft), transparent);
  z-index: 0;
}
.demo > * { position: relative; z-index: 1; }
.demo-tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.demo-tab {
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
}
.demo-tab[aria-selected="true"] { background: var(--brand); color: var(--on-brand); }

.phone {
  width: 100%;
  max-width: 340px;
  border-radius: 38px;
  border: 10px solid var(--phone-frame);
  background: var(--chat-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.chat-title { display: grid; line-height: 1.25; min-width: 0; }
.chat-title b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title span { font-size: .78rem; color: var(--ok); }
.chat-tag {
  margin-inline-start: auto;
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  white-space: nowrap;
}
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 18px; min-height: 470px; }
.chat[hidden] { display: none !important; }
.msg {
  max-width: 84%;
  padding: 8px 10px 6px;
  border-radius: 12px;
  background: var(--bubble-in);
  color: var(--bubble-ink);
  font-size: .88rem;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
  align-self: flex-start;
  border-start-start-radius: 4px;
}
.msg.out { align-self: flex-end; background: var(--bubble-out); border-start-start-radius: 12px; border-start-end-radius: 4px; }
.msg .meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: .68rem; color: var(--muted); margin-block-start: 2px; }
[dir="rtl"] .msg .meta { direction: ltr; justify-content: flex-start; }
.msg .meta svg { width: 14px; height: 14px; color: var(--tick); }
.chat-day {
  align-self: center;
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  padding: 3px 10px;
  border-radius: 999px;
}
.menu-list { display: grid; gap: 6px; margin-block: 8px 2px; }
.menu-item { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; background: var(--surface); }
.menu-thumb {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: var(--brand-soft);
}
.menu-item b { font-weight: 600; font-size: .82rem; }
.menu-item .price { margin-inline-start: auto; font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.voice { display: flex; align-items: center; gap: 8px; min-width: 180px; }
.voice-play { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); flex: none; }
.voice-play svg { width: 12px; height: 12px; }
[dir="rtl"] .voice-play svg { transform: scaleX(-1); }
.wave { display: flex; align-items: center; gap: 2px; height: 22px; flex: 1; }
.wave i { display: block; width: 3px; border-radius: 2px; background: var(--muted); opacity: .55; height: 30%; }
.wave i:nth-child(3n) { height: 70%; }
.wave i:nth-child(4n) { height: 100%; }
.wave i:nth-child(5n) { height: 50%; }
.wave i:nth-child(7n) { height: 85%; }
.voice small { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.file { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; background: var(--surface); margin-block-end: 6px; }
.file svg { width: 26px; height: 26px; color: #d9453a; flex: none; }
.file span { display: grid; line-height: 1.3; font-size: .8rem; min-width: 0; }
.file small { color: var(--muted); font-size: .7rem; }
.demo-caption { font-size: .8rem; color: var(--muted); text-align: center; }

.chat.play > * { animation: pop .38s ease backwards; }
.chat.play > *:nth-child(2) { animation-delay: .12s; }
.chat.play > *:nth-child(3) { animation-delay: .24s; }
.chat.play > *:nth-child(4) { animation-delay: .36s; }
.chat.play > *:nth-child(5) { animation-delay: .48s; }
.chat.play > *:nth-child(6) { animation-delay: .6s; }
.chat.play > *:nth-child(7) { animation-delay: .72s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Highlights band ---------- */
.highlights { border-block: 1px solid var(--line); background: var(--surface); }
.highlight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.highlight { display: grid; gap: 6px; padding: 28px 24px; border-inline-start: 1px solid var(--line); min-width: 0; }
.highlight:first-child { border-inline-start: 0; padding-inline-start: 0; }
.highlight svg { width: 24px; height: 24px; color: var(--brand-ink); margin-block-end: 6px; }
.highlight b { font-size: var(--step-1); font-weight: 600; }
.highlight p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlight { padding: 22px 18px; }
  .highlight:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .highlight:nth-child(n+3) { border-block-start: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .highlight-grid { grid-template-columns: minmax(0, 1fr); }
  .highlight { border-inline-start: 0; padding-inline: 0; }
  .highlight:nth-child(n+2) { border-block-start: 1px solid var(--line); }
}

/* ---------- Features ---------- */
.versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.version {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.version-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.version-icon svg { width: 24px; height: 24px; }
.version h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.2; }
.version > p { color: var(--muted); }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-block-start: 4px; }
@media (max-width: 820px) { .versions { grid-template-columns: minmax(0, 1fr); } }

.included { margin-block-start: clamp(40px, 5vw, 64px); }
.included h3 { font-size: var(--step-1); font-weight: 600; margin-block-end: 20px; }
.included-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.inc { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.inc svg { width: 22px; height: 22px; flex: none; color: var(--brand-ink); margin-block-start: 2px; }
.inc b { display: block; font-weight: 600; }
.inc p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .included-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .included-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; position: relative; padding-block-start: 64px; min-width: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-family: var(--font-body);
}
.step::after {
  content: "";
  position: absolute;
  top: 22px;
  inset-inline-start: 56px;
  inset-inline-end: -12px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.step:last-child::after { display: none; }
.step h3 { font-size: var(--step-1); font-weight: 600; }
.step p { color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .step { padding-block-start: 0; padding-inline-start: 64px; min-height: 44px; }
  .step::after { display: none; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-copy { display: grid; gap: 16px; }
.about-copy h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.15; }
.about-copy p { color: var(--muted); font-size: var(--step-1); max-width: 60ch; }
.values { display: grid; gap: 0; border-block-start: 1px solid var(--line); }
.value { display: flex; gap: 14px; padding-block: 20px; border-block-end: 1px solid var(--line); }
.value svg { width: 22px; height: 22px; flex: none; color: var(--brand-ink); margin-block-start: 3px; }
.value b { display: block; font-weight: 600; }
.value p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}
.plan h3 { font-size: var(--step-2); font-family: var(--font-display); font-weight: 500; }
.plan .for { color: var(--muted); margin-block-start: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; padding-block: 14px; border-block: 1px solid var(--line); }
.plan-price b { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; line-height: 1.1; }
.plan-price span { color: var(--muted); font-size: .9rem; }
.pricing-note { margin-block-start: 20px; color: var(--muted); font-size: .95rem; display: flex; gap: 8px; align-items: flex-start; }
.pricing-note svg { width: 18px; height: 18px; flex: none; color: var(--brand-ink); margin-block-start: 3px; }
@media (max-width: 820px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; display: grid; border-block-start: 1px solid var(--line); }
.faq-list details { border-block-end: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step-1);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  border-inline-end: 2px solid var(--brand-ink);
  border-block-end: 2px solid var(--brand-ink);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-list details p { padding-block-end: 22px; color: var(--muted); max-width: 68ch; }

/* ---------- Contact band ---------- */
.contact { background: var(--band-bg); color: var(--band-ink); }
.contact .eyebrow { color: var(--band-muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.contact .contact-card { border: 1px solid var(--line); }
.contact h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.15; color: var(--band-ink); margin-block: 14px; }
.contact-copy p { color: var(--band-muted); font-size: var(--step-1); max-width: 56ch; }
.contact-card {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  min-width: 0;
}
.contact-card label { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.email-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.email-text {
  flex: 1 1 200px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 1.05rem;
  user-select: all;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: start;
}
.contact-alt { font-size: .92rem; color: var(--muted); text-align: center; }
.copy-status { font-size: .85rem; color: var(--ok); min-height: 1.2em; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-block-start: 1px solid var(--line); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 36ch; font-size: .95rem; }
.footer-col h4 { margin: 0 0 12px; font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--brand-ink); text-decoration: underline; }
.footer-bottom {
  margin-block-start: 40px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--line);
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: .85rem;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.legal-inner { max-width: 760px; }
.legal h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); line-height: 1.15; margin-block: 12px 8px; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-block-end: 32px; }
.legal h2 { font-size: var(--step-1); font-weight: 600; margin-block: 32px 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-block-start: 12px; }
.legal ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 6px; margin-block-start: 10px; }
.legal .back { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; }
.legal .back svg { width: 16px; height: 16px; }
[dir="rtl"] .legal .back svg { transform: scaleX(-1); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-4); }
.notfound p { color: var(--muted); margin-block: 12px 24px; }

/* ---------- Urdu (RTL) typography ---------- */
html[lang="ur"] body { font-family: var(--font-ur); line-height: 2.1; font-size: 1.02rem; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] .hero h1,
html[lang="ur"] .section-head h2, html[lang="ur"] .version h3, html[lang="ur"] .plan h3,
html[lang="ur"] .about-copy h2, html[lang="ur"] .contact h2, html[lang="ur"] .legal h1 {
  font-family: var(--font-ur);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.9;
}
html[lang="ur"] .hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); line-height: 1.85; }
html[lang="ur"] .hero h1 em { font-style: normal; }
html[lang="ur"] .section-head h2, html[lang="ur"] .about-copy h2, html[lang="ur"] .contact h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); }
html[lang="ur"] .eyebrow, html[lang="ur"] .footer-col h4 { letter-spacing: 0; text-transform: none; }
html[lang="ur"] .btn { line-height: 1.9; padding-block: 6px; }
html[lang="ur"] .msg { font-size: .84rem; line-height: 1.95; }
html[lang="ur"] .faq-list summary { line-height: 1.9; }
html[lang="ur"] .plan-price b { font-family: var(--font-ur); font-size: 1.4rem; line-height: 1.9; }
html[lang="ur"] .logo-name, html[lang="ur"] .email-text { font-family: var(--font-body); }
.latin { font-family: var(--font-body); }

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

/* ---------- Email chooser (Request access / Get a quote) ---------- */
.mail-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(10, 24, 15, .55);
}
.mail-box {
  width: 100%;
  max-width: 440px;
  max-height: 100%;
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: pop .22s ease;
}
.mail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mail-top h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.2; }
html[lang="ur"] .mail-top h2 { font-family: var(--font-ur); font-weight: 600; line-height: 1.9; }
.mail-box > p { color: var(--muted); font-size: .95rem; }
.mail-close {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.mail-close svg { width: 18px; height: 18px; }
.mail-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mail-opt {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
  text-decoration: none; font-weight: 600;
}
.mail-opt:hover { border-color: var(--brand); color: var(--brand-ink); }
.mail-opt .dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; font-size: 13px; font-weight: 700; font-family: var(--font-body); }
.dot-gmail { background: #d93025; }
.dot-outlook { background: #0f6cbd; }
.dot-yahoo { background: #6001d2; }
.dot-app { background: var(--brand); }
.dot-app svg { width: 16px; height: 16px; }
.mail-hint { font-size: .85rem; color: var(--muted); }
@media (max-width: 380px) { .mail-options { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Monochrome chat details ---------- */
.msg.out { color: var(--bubble-out-ink); }
.msg.out .meta { color: var(--bubble-out-muted); }
.msg.out .menu-item { background: var(--bubble-out-card); }
.msg.out .menu-item .price { color: var(--bubble-out-muted); }
.msg.out .menu-thumb { background: var(--surface-2); }
.msg.out .voice-play { background: var(--bubble-out-ink); color: var(--bubble-out); }
.msg.out .wave i, .msg.out .voice small { background-color: var(--bubble-out-muted); color: var(--bubble-out-muted); }
.msg.out .voice small { background: none; }
.photo {
  display: grid; place-items: center;
  width: 200px; max-width: 100%; aspect-ratio: 4 / 3;
  margin-block-end: 6px; border-radius: 8px;
  background: linear-gradient(135deg, var(--surface-2), var(--line));
  color: var(--muted);
}
.photo svg { width: 34px; height: 34px; }
.demo-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 460px; padding: 6px; border-radius: 16px; }
.demo-tab { padding: 8px 10px; border-radius: 10px; font-size: .84rem; line-height: 1.25; min-height: 44px; }
.demo-tab:not([aria-selected="true"]):hover { background: var(--surface-2); color: var(--ink); }
@media (max-width: 420px) { .demo-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[lang="ur"] .demo-tab { line-height: 1.9; padding-block: 4px; }
.demo-also { font-size: .9rem; color: var(--ink); text-align: center; max-width: 40ch; font-weight: 500; }
.checks svg { color: var(--ink); }

/* ---------- Contact form ---------- */
.contact-grid { align-items: start; }
.contact-copy { display: grid; gap: 14px; align-content: start; }
.contact-copy h2 { margin-block: 0; }
.email-card { margin-block-start: 12px; gap: 12px; }
.email-card .contact-alt { text-align: start; }
.lead-form { gap: 18px; }
.lead-form h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.2; }
html[lang="ur"] .lead-form h3 { font-family: var(--font-ur); font-weight: 600; line-height: 1.9; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label b { color: #9a3b26; font-weight: 600; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 34px; }
[dir="rtl"] .field select { background-position: 13px 20px, 18px 20px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); background: var(--surface); }
.field [aria-invalid="true"] { border-color: #9a3b26; background: #fbefe9; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead-form { position: relative; }
.lf-status { font-size: .92rem; min-height: 1.3em; font-weight: 500; }
.lf-status.ok { color: var(--ok); }
.lf-status.err { color: #9a3b26; }
.lf-note { font-size: .82rem; color: var(--muted); text-align: center; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 560px) { .field-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 4-plan pricing ---------- */
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plans-4 .plan { grid-template-rows: none; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.plan-badge { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: var(--on-brand); white-space: nowrap; }
.plan-pop { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plans-4 .plan-price { border: 0; padding: 0; }
.plans-4 .plan-price b { font-family: var(--font-body); font-weight: 700; font-size: 2.1rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-desc { color: var(--muted); font-size: .92rem; min-height: 2.9em; }
.plan-limits { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.plan-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-block-end: 6px; }
.plan-limits dl { margin: 0; display: grid; gap: 4px; }
.plan-limits dl div { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
.plan-limits dt { color: var(--muted); }
.plan-limits dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-feats { display: grid; gap: 8px; font-size: .9rem; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; }
.plan-feats svg { width: 16px; height: 16px; flex: none; margin-block-start: 3px; }
.plan-feats li.on svg { color: var(--ink); }
.plan-feats li.off { color: var(--muted); opacity: .55; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[lang="ur"] .plan-label { letter-spacing: 0; text-transform: none; }
html[lang="ur"] .plans-4 .plan-price b { font-family: var(--font-body); font-size: 2.1rem; line-height: 1.2; }
html[lang="ur"] .plan-limits dl div, html[lang="ur"] .plan-feats { line-height: 1.9; }
@media (max-width: 1060px) { .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Two-step contact chooser ---------- */
.mail-lead { color: var(--muted); font-size: .95rem; margin-block-end: 14px; }
[data-step] { display: grid; }
[data-step][hidden] { display: none !important; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; text-align: start; cursor: pointer;
}
.choice:hover { border-color: var(--brand); background: var(--surface); }
.choice-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); flex: none; }
.choice-icon svg { width: 20px; height: 20px; }
.choice-text { display: grid; gap: 2px; min-width: 0; }
.choice-text b { font-weight: 600; font-size: 1.02rem; }
.choice-text small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
html[lang="ur"] .choice-text small { line-height: 1.9; }
.mail-back { justify-self: start; margin-block-start: 10px; padding: 6px 2px; border: 0; background: none; color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; }
.mail-back:hover { text-decoration: underline; }

/* ---------- Region switch + setup fee ---------- */
.pricing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-block-end: clamp(36px, 5vw, 56px); }
.pricing-head .section-head { margin-block-end: 0; }
.region-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.region-switch button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.region-switch button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.region-switch button:not([aria-pressed="true"]):hover { background: var(--surface-2); color: var(--ink); }
html[lang="ur"] .region-switch button { line-height: 1.9; padding-block: 4px; }
.plan-setup { font-size: .88rem; color: var(--muted); margin-block-start: -6px; }
.plan-setup b { color: var(--ink); font-weight: 600; }
