/* palnacare.com
   Themes: light (default), dark, and "baby" (soft pastels). Without a
   choice the site follows the device (light or dark). Layout uses logical
   properties (inline-start/end) so Urdu flips right-to-left cleanly. */

:root {
  --navy: #34496e;
  --navy-deep: #243552;
  --sand: #e3b778;
  --sand-soft: #f3e3c6;
  --rose: #b9676e;
  --rose-soft: #f6e1e1;
  --cream: #fbf7f0;
  --paper: #ffffff;
  --ink: #232833;
  --muted: #5f6572;
  --line: #eadfcd;
  --link: #34496e;
  --kicker: #b0585f;
  --g1a: #34496e; --g1b: #243552;
  --g2a: #a55a61; --g2b: #7f4047;
  --g3a: #c49a5c; --g3b: #9c7a45;
  --star: #e3b778;
  --shadow: 0 24px 60px -24px rgba(36, 53, 82, 0.35);
  --radius: 22px;
  color-scheme: light;
}

/* Dark: chosen, or the device's setting when nothing is chosen. */
:root[data-theme="dark"] {
  --cream: #121722; --paper: #1b2230; --ink: #eee9e1; --muted: #a6acb8; --line: #2a3345;
  --link: #e3b778; --sand-soft: #3a3326; --rose-soft: #3a2629; --kicker: #e28a91;
  --star: #f3d9a4; --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --cream: #121722; --paper: #1b2230; --ink: #eee9e1; --muted: #a6acb8; --line: #2a3345;
    --link: #e3b778; --sand-soft: #3a3326; --rose-soft: #3a2629; --kicker: #e28a91;
    --star: #f3d9a4; --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* Baby: blush, berry, mint and lavender. */
:root[data-theme="baby"] {
  --navy: #a8527b; --navy-deep: #7e3f63;
  --sand: #8fd3c1; --sand-soft: #e2f5ef;
  --rose: #8260c2; --rose-soft: #efe8fb;
  --cream: #fff5f7; --paper: #ffffff; --ink: #43364f; --muted: #7a6c88; --line: #f2d9e3;
  --link: #a8527b; --kicker: #8260c2;
  --g1a: #d98aab; --g1b: #a8527b;
  --g2a: #a992de; --g2b: #7c5fc0;
  --g3a: #7cc9b4; --g3b: #4f9f8a;
  --star: #f0a8c2;
  --shadow: 0 24px 60px -24px rgba(168, 82, 123, 0.35);
  --radius: 28px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.65 "Nunito", system-ui, sans-serif;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: "Lora", Georgia, serif; line-height: 1.2; font-weight: 600; margin: 0; }
.ur { font-family: "Noto Nastaliq Urdu", serif; line-height: 2.1; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Urdu script: Nastaliq everywhere, taller lines, no letter-spacing. */
html[lang="ur"] body { font-family: "Noto Nastaliq Urdu", "Nunito", serif; line-height: 2.25; font-size: 16px; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 {
  font-family: "Noto Nastaliq Urdu", serif; line-height: 1.9; letter-spacing: 0;
}
html[lang="ur"] .kicker, html[lang="ur"] .foot h4 { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }

/* A translated page stays hidden until its words are in place (at most a
   moment, and never for good if the script fails). */
html.i18n-pending body { opacity: 0; animation: show 0s 1.2s forwards; }
@keyframes show { to { opacity: 1; } }

/* ── Header ─────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .35s;
}
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0,0,0,.35); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 10px; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand b { font-family: "Lora", Georgia, serif; font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.95rem; position: relative; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--rose);
  transform: scaleX(0); transition: transform .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.controls { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav + .controls { margin-inline-start: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0;
  background: var(--navy); color: #fff; font: inherit; font-weight: 800;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .35s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px var(--navy); }

/* Language and theme menus */
.menu { position: relative; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 800; font-size: 0.85rem; line-height: 1; cursor: pointer;
  transition: border-color .2s, background-color .35s;
}
.chip:hover { border-color: var(--sand); }
.chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip.square { width: 40px; padding: 0; justify-content: center; }
.menu ul {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 30; min-width: 190px;
  list-style: none; margin: 0; padding: 6px; border-radius: 16px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transition: opacity .18s, transform .18s, visibility .18s;
}
.menu.open ul { opacity: 1; visibility: visible; transform: none; }
.menu li button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font: inherit; font-size: 0.95rem; line-height: 1.6; text-align: start; cursor: pointer;
}
.menu li button:hover { background: var(--sand-soft); }
.menu li button[aria-checked="true"] { font-weight: 800; }
.menu li button[aria-checked="true"]::after { content: "✓"; margin-inline-start: auto; color: var(--rose); }
.menu li svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); flex-shrink: 0; }

.burger { display: none; }
@media (max-width: 900px) {
  .nav {
    position: absolute; top: 68px; inset-inline: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 16px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a:last-child { border-bottom: 0; }
  .top.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav + .controls { margin-inline-start: auto; }
  .burger { display: inline-flex; }
  .top .btn.get { display: none; }
}
@media (max-width: 380px) { .brand b { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 64px; position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; top: -220px; inset-inline-end: -12%; width: 760px; height: 760px;
  background: radial-gradient(closest-side, var(--sand-soft), transparent); z-index: -1;
}
:root[data-theme="baby"] .hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .6;
  background-image: radial-gradient(var(--line) 2px, transparent 2.5px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky svg { position: absolute; fill: var(--star); }
.sky .moon { top: 28px; inset-inline-end: 5%; width: 60px; height: 60px; opacity: .55; animation: drift 14s ease-in-out infinite; }
.sky .star { width: 14px; height: 14px; opacity: 0; animation: twinkle 4.5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 10px; } }

.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--rose-soft); color: var(--kicker); font-weight: 800; font-size: 0.85rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 18px 0 14px; letter-spacing: -0.01em; }
html[lang="ur"] .hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.hero h1 em { font-style: normal; color: var(--rose); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .ur-line { font-size: 1.35rem; color: var(--navy); margin: 6px 0 22px; }
:root[data-theme="dark"] .hero .ur-line { color: var(--sand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .hero .ur-line { color: var(--sand); } }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 12px;
  background: var(--ink); color: var(--cream); text-decoration: none; line-height: 1.15;
  transition: transform .2s ease, box-shadow .2s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(0,0,0,.6); }
.store svg { width: 22px; height: 22px; flex-shrink: 0; }
.store small { display: block; font-size: 0.72rem; opacity: 0.8; }
.store span { font-weight: 800; font-family: "Nunito", sans-serif; }
.fine { color: var(--muted); font-size: 0.8rem; margin-top: 22px; max-width: 36em; }
.phones { position: relative; height: 620px; }
.phones .phone { position: absolute; }
.phones .back { inset-inline-end: 0; top: 40px; transform: rotate(5deg) scale(0.9); animation: float 8s ease-in-out -3s infinite; }
.phones .front { inset-inline-start: 6%; top: 0; transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 560px; max-width: 420px; margin: 0 auto; width: 100%; }
}

/* A phone frame around a screenshot. */
.phone {
  width: 280px; padding: 10px; border-radius: 44px; background: #11151d;
  box-shadow: var(--shadow), inset 0 0 0 2px #2c3240;
}
.phone img { border-radius: 34px; width: 100%; background: #fbf7f0; transition: opacity .25s ease; }
.phone img.swapping { opacity: 0; }
@media (max-width: 480px) { .phone { width: 230px; border-radius: 38px; } .phone img { border-radius: 29px; } }

/* Numbers strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 56px; }
.stat { text-align: center; padding: 18px 10px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.stat b { display: block; font-family: "Lora", Georgia, serif; font-size: 2.2rem; color: var(--navy); line-height: 1.3; }
:root[data-theme="dark"] .stat b { color: var(--sand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .stat b { color: var(--sand); } }
.stat span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding: 80px 0; }
.kicker { color: var(--kicker); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0; }
.title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 10px 0 14px; max-width: 20em; }
.sub { color: var(--muted); max-width: 40em; font-size: 1.08rem; }
.center { text-align: center; }
.center .title, .center .sub { margin-inline: auto; }
.band { background: var(--paper); border-block: 1px solid var(--line); transition: background-color .35s; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 40px; }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sand); }
.card h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sand-soft); color: var(--navy); transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.card:hover .icon { transform: rotate(-8deg) scale(1.08); }
:root[data-theme="dark"] .icon { color: var(--sand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .icon { color: var(--sand); } }
.icon.rose { background: var(--rose-soft); color: var(--rose); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Screenshot gallery */
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.arrows { display: flex; gap: 8px; }
.arrows button {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  cursor: pointer; display: grid; place-items: center; transition: transform .2s, border-color .2s;
}
.arrows button:hover { transform: scale(1.06); border-color: var(--sand); }
.arrows svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .arrows svg { transform: scaleX(-1); }
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 36px 20px 24px; margin: 0 -20px; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: center; flex: 0 0 auto; width: 300px; margin: 0; }
.shot .frame {
  border-radius: 30px; padding: 26px 20px 0; overflow: hidden; height: 540px;
  background: linear-gradient(160deg, var(--g1a) 0%, var(--g1b) 100%);
  transition: transform .3s ease;
}
.shot:hover .frame { transform: translateY(-6px); }
.shot:nth-child(3n+2) .frame { background: linear-gradient(160deg, var(--g2a) 0%, var(--g2b) 100%); }
.shot:nth-child(3n+3) .frame { background: linear-gradient(160deg, var(--g3a) 0%, var(--g3b) 100%); }
.shot h3 { color: #fff; font-size: 1.3rem; text-align: center; margin-bottom: 20px; min-height: 2.4em; }
html[lang="ur"] .shot h3 { font-size: 1.15rem; }
.shot .phone { width: 100%; border-radius: 36px 36px 0 0; padding: 8px 8px 0; box-shadow: none; }
.shot .phone img { border-radius: 28px 28px 0 0; }
.shot p { color: var(--muted); font-size: 0.95rem; margin: 14px 4px 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; counter-reset: step; text-align: start; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: "Lora", Georgia, serif; font-size: 1.1rem; font-weight: 600;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.flip > :first-child { order: 2; }
.split .phone { margin: 0 auto; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { position: relative; padding-inline-start: 32px; margin: 10px 0; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23b9676e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
html[lang="ur"] .ticks li::before { top: 12px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
}

/* Family */
.family { display: flex; justify-content: center; margin: 36px 0 0; flex-wrap: wrap; }
.person { text-align: center; width: 120px; }
.avatar {
  width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Lora", Georgia, serif; font-size: 1.5rem; font-weight: 600; color: #fff;
  border: 4px solid var(--paper); box-shadow: 0 8px 20px -10px rgba(0,0,0,.4);
  animation: bob 5s ease-in-out infinite;
}
.person:nth-child(2) .avatar { animation-delay: -1.2s; }
.person:nth-child(3) .avatar { animation-delay: -2.4s; }
.person:nth-child(4) .avatar { animation-delay: -3.6s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.person small { color: var(--muted); }
.links { display: flex; justify-content: center; color: var(--sand); margin-top: -4px; }
.links svg { width: 420px; max-width: 90%; height: 30px; }
.links path { stroke: currentColor; stroke-width: 2; fill: none; stroke-dasharray: 6 8; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -280; } }

/* Privacy */
.promise {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center;
  background: linear-gradient(150deg, var(--navy), var(--navy-deep)); color: #fff; border-radius: 30px; padding: 48px;
}
.promise .title { color: #fff; }
.promise .kicker { color: var(--sand); }
.promise p { color: #dde2ec; }
.promise a { color: var(--sand); }
.promise ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.promise li { background: rgba(255,255,255,.08); border-radius: 16px; padding: 14px 18px; transition: background-color .2s, transform .2s; }
.promise li:hover { background: rgba(255,255,255,.14); transform: translateX(4px); }
html[dir="rtl"] .promise li:hover { transform: translateX(-4px); }
.promise li b { display: block; color: #fff; }
.promise li span { color: #d2d8e4; font-size: 0.95rem; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; padding: 32px 22px; } }

/* FAQ */
.faq { max-width: 780px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding-block: 16px; padding-inline: 0 36px; font-weight: 800; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; inset-inline-end: 4px; top: 12px; font-size: 1.5rem; line-height: 1.6; color: var(--rose); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.faq details[open] p { animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } }

/* Final call to action */
.cta {
  text-align: center; border-radius: 30px; padding: 64px 24px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--sand-soft), var(--rose-soft));
}
.cta img { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 18px; box-shadow: var(--shadow); animation: rock 4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes rock { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
.cta .stores { justify-content: center; margin-top: 26px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 80px; font-size: 0.95rem; }
.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 8px 0; }
.foot li a { text-decoration: none; color: var(--ink); font-weight: 700; }
.foot li a:hover { color: var(--rose); }
.foot .about p { color: var(--muted); max-width: 22em; }
.foot .legal { margin-top: 40px; color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* ── Scroll reveal ──────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .sky .star { opacity: .6; }
}

/* ── Policy pages ───────────────────────────────────────────────────── */
.doc { max-width: 740px; margin: 0 auto; padding: 40px 20px 24px; }
.notice { display: none; background: var(--sand-soft); border-radius: 14px; padding: 10px 16px; margin-bottom: 20px; }
html[data-lang="ur"] .notice.ur-only, html[data-lang="roman"] .notice.roman-only { display: block; }
/* Policy text stays English and left-to-right in every language. */
.doc-body { direction: ltr; text-align: left; font-family: "Nunito", system-ui, sans-serif; line-height: 1.65; font-size: 17px; }
.doc-body h1, .doc-body h2 { font-family: "Lora", Georgia, serif; line-height: 1.2; }
.doc-body h1 { font-size: 2.2rem; margin: 8px 0 6px; }
.doc-body h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.doc-body .updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li { margin: 6px 0; }
.doc-body .summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 24px 8px; margin: 28px 0; }
.doc-body .summary h2 { margin-top: 20px; }

/* 404 */
.lost { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.lost img { width: 120px; margin: 0 auto 20px; border-radius: 28px; animation: rock 4s ease-in-out infinite; transform-origin: 50% 90%; }

/* Grid children may shrink below their content width (no sideways scroll). */
.hero .wrap > *, .split > *, .grid > *, .promise > * { min-width: 0; }
