/* Fya website, 2026-11 redesign.
   One typeface, the app's Signature colours, generous space and plain hierarchy.
   The chat phone styles (.phone) are appended by scripts/build_website.js from
   shared/chat-showcase/phone.js, so the site and the marketing posts stay identical. */

@font-face { font-family: Manrope; src: url("assets/fonts/Manrope-Variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; src: url("assets/fonts/NotoSansArabic-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Nastaliq Urdu"; src: url("assets/fonts/NotoNastaliqUrdu.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --canvas: #f7f5f0;
  --paper: #fffdfa;
  --raised: #f0f1ec;
  --ink: #14201f;
  /* Darker than the app's #60706d so small text passes WCAG AA on canvas and paper. */
  --muted: #53635f;
  --brand: #0e6b63;
  --brand-ink: #084e49;
  --translation: #6250c4;
  --line: rgba(20, 32, 31, .12);
  --wrap: 1200px;
  --gutter: 24px;
  --sans: Manrope, "Noto Sans Arabic", "Nirmala UI", "Noto Sans", Ebrima, system-ui, sans-serif;
  --display: clamp(2.6rem, 1.4rem + 4.8vw, 5.5rem);
  --h2: clamp(1.75rem, 1.25rem + 1.8vw, 2.75rem);
  --h3: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -.01em; line-height: 1.3; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: #cfe4df; }

/* Scripts other than Latin and Cyrillic: no negative tracking, taller lines. */
:is(:lang(ar), :lang(ur), :lang(pa-Arab), :lang(hi), :lang(bn), :lang(ml), :lang(ta), :lang(ne), :lang(pa), :lang(am), :lang(ti)) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
:lang(ar-Latn) :is(h1, h2, h3) { letter-spacing: -.02em; line-height: 1.1; }
html:is(:lang(ar), :lang(ur), :lang(pa-Arab)):not(:lang(ar-Latn)) body { font-family: "Noto Sans Arabic", var(--sans); line-height: 1.8; }
html:is(:lang(ur), :lang(pa-Arab)) :is(p, li, dd, summary, .faq-answer) { font-family: "Noto Nastaliq Urdu", "Noto Sans Arabic", var(--sans); line-height: 2.1; }
html:is(:lang(hi), :lang(bn), :lang(ml), :lang(ta), :lang(ne), :lang(pa), :lang(am), :lang(ti)) body { line-height: 1.75; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
@media (max-width: 480px) { :root { --gutter: 16px; } }

.skip-link { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 30; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Links and buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background-color .15s; }
.button:hover { background: var(--brand-ink); }
.button--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button--quiet:hover { background: var(--raised); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .25em; }
.text-link:hover { color: var(--brand-ink); }
main p a:not([class]) { color: var(--brand); font-weight: 600; text-underline-offset: .2em; }

.play-badge { display: inline-flex; flex: none; border-radius: 10px; }
.play-badge img { display: block; width: auto; height: 56px; }
.play-badge--footer { margin-block-start: 1.25rem; }
.play-badge--footer img { height: 46px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 245, 240, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; font-family: Manrope, sans-serif; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand-domain { display: none; }
.primary-nav { display: flex; align-items: center; gap: .25rem; flex: 1; font-size: .95rem; }
.primary-nav > a, .nav-explore > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; }
.primary-nav > a:hover, .nav-explore > summary:hover { background: var(--raised); }
.primary-nav > a[aria-current="page"], .nav-explore.is-current > summary { color: var(--brand); }
.nav-explore { position: relative; }
.nav-explore > summary { list-style: none; gap: .4rem; }
.nav-explore > summary::-webkit-details-marker { display: none; }
.nav-explore > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: translateY(-2px) rotate(45deg); }
.nav-explore[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-explore-panel { position: absolute; inset-inline-start: 0; top: calc(100% + 8px); width: 300px; padding: .5rem; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -12px rgba(20, 32, 31, .22); display: grid; }
.nav-explore-panel p { display: none; }
.nav-explore-panel a { padding: .65rem .8rem; border-radius: 10px; text-decoration: none; font-weight: 600; }
.nav-explore-panel a:hover, .nav-explore-panel a[aria-current="page"] { background: var(--raised); }
.nav-explore-panel .nav-explore-all { margin-top: .25rem; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--brand); }
.header-tools { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.menu-toggle:hover { background: var(--raised); }

.language-picker { position: relative; }
.language-picker > summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: .92rem; cursor: pointer; }
.language-picker > summary::-webkit-details-marker { display: none; }
.language-picker > summary:hover { background: var(--raised); }
.language-flag { width: 22px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); object-fit: cover; }
.language-picker nav { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(560px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow: auto; padding: .5rem; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -12px rgba(20, 32, 31, .22); display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.language-picker nav a { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .75rem; border-radius: 10px; text-decoration: none; font-size: .95rem; }
.language-picker nav a:hover { background: var(--raised); }
.language-picker nav a[aria-current="true"] { background: var(--raised); font-weight: 700; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-inner { gap: .75rem; }
  .primary-nav { position: absolute; inset-inline: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1rem; background: var(--canvas); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(20, 32, 31, .25); }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a, .nav-explore > summary { border-radius: 10px; min-height: 48px; }
  .nav-explore-panel { position: static; width: auto; box-shadow: none; background: transparent; padding: 0 0 0 .75rem; }
  .language-current { display: none; }
  .language-picker nav { grid-template-columns: 1fr; position: fixed; inset-inline: 16px; top: 72px; width: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 3rem + 4vw, 7.5rem); }
.section--paper, .section-paper { background: var(--paper); }
.section-heading { max-width: 720px; display: grid; gap: 1rem; margin-block-end: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-heading p, .lede { color: var(--muted); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 3vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.hero h1 { font-size: var(--display); letter-spacing: -.035em; line-height: 1.02; }
.hero h1 em { display: block; font-style: normal; color: var(--brand); }
.hero .lede { margin-block-start: 1.5rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-block-start: 2.25rem; }
:is(:lang(ar), :lang(ur), :lang(pa-Arab), :lang(hi), :lang(bn), :lang(ml), :lang(ta), :lang(ne), :lang(pa), :lang(am), :lang(ti)) .hero h1 { letter-spacing: 0; line-height: 1.3; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.4rem); }
:lang(ar-Latn) .hero h1 { letter-spacing: -.035em; line-height: 1.02; font-size: var(--display); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Two phones side by side, tilted like the posts. The phone is 390x844; zoom scales it. */
.showcase { display: grid; justify-items: center; gap: 1.25rem; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.device { zoom: .66; flex: none; border-radius: 52px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 9px var(--paper), 0 0 0 10.5px rgba(20, 32, 31, .12), 0 50px 90px -30px rgba(15, 43, 42, .45), 0 14px 30px rgba(15, 43, 42, .1); }
.hero-phones .device--dee { transform: rotate(-3deg); }
.hero-phones .device--friend { transform: rotate(3deg); margin-top: 56px; margin-inline-start: 34px; }
.bridge { position: absolute; left: 50%; top: 46%; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; display: grid; place-items: center; background: var(--translation); box-shadow: 0 0 0 6px var(--canvas), 0 10px 24px rgba(98, 80, 196, .35); z-index: 1; }
.showcase-caption { max-width: 46ch; color: var(--muted); font-size: .85rem; text-align: center; line-height: 1.5; }
@media (max-width: 900px) { .device { zoom: .56; } }
@media (max-width: 520px) { .device { zoom: .42; } .hero-phones .device--friend { margin-top: 40px; margin-inline-start: 14px; } .bridge { width: 44px; height: 44px; margin-left: -22px; } .bridge svg { width: 24px; height: 24px; } }
@media (prefers-reduced-motion: no-preference) { .device { transition: transform .4s cubic-bezier(.2, .8, .2, 1); } }

.friend-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; max-width: 520px; }
.friend-switch[hidden] { display: none; }
.friend-switch button { display: inline-grid; place-items: center; width: 44px; height: 36px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.friend-switch button:hover { background: var(--raised); }
.friend-switch button[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--brand); }
.friend-switch img { width: 24px; height: 17px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }

/* ---------- Home: one translated message, up close ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 1rem + 5vw, 6rem); }
.split > div { display: grid; gap: 1.25rem; align-content: start; }
.split p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.closeup { display: grid; place-items: center; padding: clamp(2rem, 1rem + 4vw, 4rem) 1rem; border-radius: 28px; background: var(--raised); overflow: hidden; }
.closeup .phone { width: auto; height: auto; background: transparent; display: block; zoom: 1.5; }
.closeup .phone .bubble { max-width: 300px; }
@media (max-width: 520px) { .closeup .phone { zoom: 1.15; } }

.statement { max-width: 860px; display: grid; gap: 1.25rem; }
.statement h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); }
.statement p { color: var(--muted); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 52ch; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.faq-grid > div:first-child { display: grid; gap: 1rem; align-content: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 64px; padding-block: 1rem; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-answer { display: grid; gap: .75rem; padding-block-end: 1.5rem; color: var(--muted); max-width: 68ch; }

/* ---------- Page intro and reading pages ---------- */
.page-intro { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); display: grid; gap: 1.25rem; justify-items: start; }
.page-intro > * { max-width: 900px; }
.page-intro h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.5rem); letter-spacing: -.03em; line-height: 1.05; }
.page-intro > p { color: var(--muted); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 50ch; line-height: 1.5; }
.page-intro .policy-date, .policy-date { font-size: .95rem; color: var(--muted); }
.page-body { padding-block-end: clamp(4rem, 3rem + 4vw, 7rem); }
.reading-width, .prose { max-width: 68ch; }
.prose-section { padding-block: 2rem; border-top: 1px solid var(--line); display: grid; gap: .9rem; }
.prose-section h2 { font-size: 1.4rem; letter-spacing: -.01em; }
.prose-section p, .prose-section li { color: #2b3735; }
.prose-section ul { padding-inline-start: 1.2rem; display: grid; gap: .4rem; }
.with-toc { display: grid; grid-template-columns: 240px minmax(0, 68ch); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: .1rem; font-size: .9rem; max-height: calc(100vh - 120px); overflow: auto; }
.toc p { font-weight: 800; margin-block-end: .5rem; }
.toc a { padding: .35rem .6rem; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { background: var(--raised); color: var(--ink); }
@media (max-width: 1023px) { .with-toc { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- Feature pages ---------- */
.product-hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.product-hero-grid > div { display: grid; gap: 1.5rem; justify-items: start; }
.product-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.5rem); letter-spacing: -.03em; line-height: 1.05; }
.product-hero .lede { max-width: 40ch; }
.product-hero .device { transform: rotate(2deg); margin: 20px; }
@media (max-width: 900px) { .product-hero-grid { grid-template-columns: 1fr; } .product-hero .device { justify-self: center; } }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 1rem + 4vw, 5rem); }
.feature-list > div { padding-block: 1.75rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; align-content: start; }
.feature-list dt { font-weight: 800; font-size: 1.2rem; line-height: 1.3; }
.feature-list dd { color: var(--muted); }
@media (max-width: 720px) { .feature-list { grid-template-columns: 1fr; } }
.note { margin-block-start: clamp(2.5rem, 2rem + 2vw, 4rem); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: 24px; background: var(--raised); display: grid; gap: .75rem; max-width: 820px; }
.note h2 { font-size: 1.35rem; }
.note p { color: #2b3735; }
.link-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; font-weight: 600; }
.link-row a:hover { background: var(--raised); }
.feature-index { display: grid; border-top: 1px solid var(--line); }
.feature-index a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 3rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.feature-index a:hover strong { color: var(--brand); }
.feature-index strong { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; }
.feature-index span { color: var(--muted); }
@media (max-width: 720px) { .feature-index a { grid-template-columns: 1fr; gap: .5rem; } }

/* ---------- About, support, FAQ page ---------- */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 clamp(2rem, 1rem + 3vw, 4rem); }
.columns > * { padding-block: 1.75rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; align-content: start; }
.columns p { color: var(--muted); }
.columns h2 { font-size: 1.35rem; letter-spacing: -.01em; line-height: 1.3; }
.about-story-copy { display: grid; gap: 1rem; }
.about-story-copy p { color: #2b3735; font-size: 1.1rem; }
.stack { display: grid; gap: clamp(3rem, 2rem + 3vw, 5rem); }
.stack > section { display: grid; gap: 1.5rem; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.support-topics { display: grid; gap: 0; }
.support-topics h2 { margin-block-end: 1.5rem; }
.support-topics article { padding-block: 1.75rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.support-topics p { color: var(--muted); }
.support-contact { position: sticky; top: 96px; padding: 2rem; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 1rem; justify-items: start; }
.support-contact h3 { margin-block-start: .5rem; font-size: 1.05rem; }
.support-contact p { color: var(--muted); font-size: .95rem; }
.guidance-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
@media (max-width: 900px) { .support-layout { grid-template-columns: 1fr; } .support-contact { position: static; } }

/* ---------- Languages ---------- */
.language-section-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-end: 2rem; }
.language-section-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; font-weight: 600; }
.language-catalog { padding-block: 2.5rem; border-top: 1px solid var(--line); display: grid; gap: 1.5rem; }
.catalog-heading { display: grid; gap: .6rem; max-width: 68ch; }
.catalog-heading h2 { display: flex; align-items: baseline; gap: .75rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.catalog-heading p { color: var(--muted); }
.catalog-count { font-size: 1rem; font-weight: 700; color: var(--brand); }
.language-grid, .app-language-list, .reading-forms { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 1.5rem; }
.language-grid a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.language-grid a:hover, .language-grid a[aria-current="page"] { color: var(--brand); }
.language-dot, .language-card-arrow { display: none; }
.app-language-list li, .reading-forms li { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
.language-script-notes { display: grid; gap: .75rem; max-width: 68ch; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--canvas); padding-block: clamp(3rem, 2rem + 3vw, 5rem) 2rem; font-size: .95rem; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
.footer-identity { display: grid; justify-items: start; align-content: start; }
.footer-brand { font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; text-decoration: none; font-family: Manrope, sans-serif; }
.footer-tagline { display: block; margin-block-start: .5rem; max-width: 28ch; color: var(--muted); font-weight: 500; font-size: .95rem; letter-spacing: 0; font-family: var(--sans); }
.footer-contact { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); font-weight: 700; }
.footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-group { display: grid; align-content: start; gap: .1rem; }
.footer-group h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-block-end: .75rem; }
:is(:lang(ar), :lang(ur), :lang(pa-Arab)):not(:lang(ar-Latn)) .footer-group h2 { letter-spacing: 0; font-size: .9rem; }
.footer-group a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer-group a:hover, .footer-group a[aria-current="page"] { color: var(--brand); }
.footer-bottom { margin-block-start: 3rem; padding-block-start: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer-columns { grid-template-columns: 1fr 1fr; } }
.friend-switch .script-mark { display: inline-grid; place-items: center; width: 24px; height: 17px; border-radius: 3px; background: var(--ink); color: #fff; font: 800 10px/1 Manrope, sans-serif; letter-spacing: -.02em; }

/* Chat phones: shared/chat-showcase/phone.js */
.phone { --canvas: #F7F5F0; --paper: #FFFDFA; --raised: #F0F1EC; --ink: #14201F; --muted: #60706D; --brand: #0E6B63; --translation: #6250C4; --out: #DDEDE8; --in: #FFFDFA; --line: rgba(20, 32, 31, .08);
  position: relative; width: 390px; height: 844px; overflow: hidden; display: flex; flex-direction: column; text-align: start;
  background: var(--canvas); color: var(--ink); font-family: Manrope, "Noto Sans Arabic", "Nirmala UI", "Ebrima", system-ui, sans-serif; font-size: 15.5px; letter-spacing: normal; -webkit-font-smoothing: antialiased; }
.phone *, .phone *::before, .phone *::after { box-sizing: border-box; margin: 0; padding: 0; }
.phone--nastaliq .bubble, .phone--nastaliq .phone-field span, .phone--nastaliq .phone-presence, .phone--nastaliq .day { font-family: "Noto Nastaliq Urdu", Manrope, sans-serif; }
.phone--nastaliq .bubble { line-height: 1.95; }
.phone--bubble { width: auto; height: auto; overflow: visible; display: block; background: transparent; }
.phone-status { height: 47px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 30px 8px 34px; font-weight: 700; font-size: 16px; background: var(--paper); }
.phone-icons { display: flex; gap: 6px; align-items: center; }
.phone-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px 6px; background: var(--paper); border-bottom: 1px solid var(--line); }
.phone-bar svg { flex: none; display: block; }
.phone[dir="rtl"] .phone-back { transform: scaleX(-1); }
.phone-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden; }
.phone-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.phone-who b { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 700; letter-spacing: -.1px; font-family: Manrope, sans-serif; }
.phone-presence { font-size: 12.5px; color: var(--brand); font-weight: 600; }
.phone-flag svg, .phone-flag img { display: block; width: 21px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 .5px rgba(0,0,0,.18); }
.phone-actions { display: flex; gap: 18px; padding-inline-end: 6px; }
.phone-thread { flex: 1; padding: 10px 12px 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; overflow: hidden; }
.phone .day { align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--raised); padding: 4px 12px; border-radius: 999px; margin: 2px 0 8px; }
.phone .row { display: flex; }
.phone .row.mine { justify-content: flex-end; }
.phone .row.gap { margin-top: 7px; }
.phone .bubble { max-width: 78%; padding: 8px 13px 6px; border-radius: 22px; font-size: var(--text, 15.5px); line-height: 1.34; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.phone .theirs .bubble { background: var(--in); border: 1px solid var(--line); border-end-start-radius: 5px; }
.phone .mine .bubble { background: var(--out); border-end-end-radius: 5px; }
.phone .meta { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 3px; font-size: 11px; color: var(--muted); font-family: Manrope, "Noto Sans Arabic", "Nirmala UI", "Ebrima", sans-serif; line-height: 1.3; }
.phone .badge { display: inline-flex; align-items: center; gap: 2px; color: rgba(98, 80, 196, .8); font-size: 10px; margin-inline-end: auto; padding-inline-end: 8px; min-width: 0; }
.phone .badge bdi { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .badge svg { flex: none; }
.phone .time { white-space: nowrap; flex: none; }
.phone-composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 30px; background: var(--paper); border-top: 1px solid var(--line); }
.phone-field { flex: 1; height: 44px; border-radius: 22px; background: var(--raised); display: flex; align-items: center; padding: 0 16px; color: var(--muted); gap: 10px; overflow: hidden; }
.phone-field span { flex: 1; white-space: nowrap; }
.phone-mic { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.phone-home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: var(--ink); }
