/* bakkar.in. One stylesheet, no framework, no JavaScript (the CSP allows none).
   Phone first: the base rules are for a 360px screen and min-width queries add
   room. Every tap target is at least 44px; buttons are 44, 48 or 56px tall. */
@font-face {
  font-family: 'Jakarta';
  src: url('/assets/jakarta.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --coral: #ff5a6e;
  --coral-deep: #e8384f;
  --coral-ink: #c42a40;
  --coral-tint: #fff0f1;
  --grad: linear-gradient(135deg, #ff8a7a 0%, #ff5a6e 50%, #e8384f 100%);
  --violet: #6d4aff;
  --violet-tint: #f1edff;
  --ink: #17171c;
  --body: #3a3a42;
  --muted: #64646d;
  --line: #ececf1;
  --bg: #ffffff;
  --soft: #fff8f6;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(23, 23, 28, 0.04), 0 6px 18px rgba(23, 23, 28, 0.06);
  --shadow-lg: 0 24px 60px rgba(232, 56, 79, 0.18), 0 8px 20px rgba(23, 23, 28, 0.08);
  --r: 18px;
  --gutter: 16px;
  --tap: 44px;
  --head: 60px;
  --font: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --head: 68px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f6;
    --body: #cfcfd6;
    --muted: #a0a0aa;
    --line: #2a2a33;
    --bg: #111116;
    --soft: #17171e;
    --card: #1c1c24;
    --coral-tint: #2c1a1f;
    --violet-tint: #221d3a;
    --coral-ink: #ff8a98;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
svg.ic { display: block; flex: none; width: 20px; height: 20px; }
a { color: var(--coral-ink); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.8vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 750; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 0.92rem; }
.lead { font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.25rem); color: var(--body); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 30; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }

/* ---- Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 10px; height: var(--head); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); min-width: var(--tap); text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.main-nav { display: none; }
.header-cta { margin-left: auto; }
.menu > summary {
  list-style: none; display: grid; place-items: center; width: var(--tap); height: var(--tap);
  margin-right: -8px; border-radius: 12px; color: var(--ink); cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .ic { width: 24px; height: 24px; }
.menu > summary:hover, .menu[open] > summary { background: var(--coral-tint); color: var(--coral-ink); }
.menu-close, .menu[open] .menu-open { display: none; }
.menu[open] .menu-close { display: block; }
/* The dimmed page under the open menu is part of <summary>, so a tap on it closes the menu. */
.menu[open] > summary::before { content: ''; position: fixed; inset: var(--head) 0 0; background: rgba(10, 10, 14, 0.45); cursor: default; }
.menu-panel {
  position: absolute; z-index: 2; left: 0; right: 0; top: 100%;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px;
  padding: 6px var(--gutter) 18px; background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(10, 10, 14, 0.16); max-height: calc(100dvh - var(--head)); overflow-y: auto;
}
.menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 52px; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel a[aria-current='page'] { color: var(--coral-ink); }
.menu-panel .btn { grid-column: 1 / -1; margin-top: 16px; }
@media (max-width: 359px) {
  .brand span { display: none; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; gap: 4px; margin-left: auto; }
  .main-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: 999px; color: var(--body); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
  .main-nav a:hover, .main-nav a[aria-current='page'] { background: var(--coral-tint); color: var(--coral-ink); }
  .header-cta { margin-left: 8px; }
  .menu { display: none; }
  .brand img { width: 36px; height: 36px; border-radius: 10px; }
}

/* ---- Buttons and links ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--grad); color: #fff; font: inherit; font-size: 1rem; font-weight: 750; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 20px rgba(232, 56, 79, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(232, 56, 79, 0.34); }
.btn:active { transform: scale(0.97); }
.btn-small { min-height: var(--tap); padding: 0 18px; font-size: 0.92rem; box-shadow: none; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--coral); }
.btn-light { background: #fff; color: var(--coral-deep); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
a.text-link { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); font-weight: 750; text-decoration: none; }
a.text-link .ic { width: 18px; height: 18px; transition: transform 0.15s ease; }
a.text-link:hover .ic { transform: translateX(3px); }
.text-link { font-weight: 750; }
span.text-link { color: var(--coral-ink); }
.link-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin-top: 12px; }

/* ---- Sections -------------------------------------------------------------- */
.band, .split { padding: 44px 0; }
.band-soft { background: var(--soft); }
.section-title { text-align: center; margin-bottom: 0.35em; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 24px; }
.eyebrow { color: var(--coral-ink); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; margin-bottom: 10px; }
.eyebrow.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero { padding: 20px 0 4px; }
.page-hero h1, .prose h1 { font-size: clamp(1.75rem, 1.1rem + 3vw, 2.9rem); }
.page-hero .lead { max-width: 720px; }
.page-pad { padding-top: 20px; padding-bottom: 44px; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 899px) {
  .split-media-last > .device, .split-media-last > .adda-card { order: 2; }
}
@media (min-width: 900px) {
  .band, .split { padding: 80px 0; }
  .page-hero { padding: 48px 0 16px; }
  .page-pad { padding-top: 40px; padding-bottom: 64px; }
  .section-sub { margin-bottom: 36px; }
  .split-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}

/* ---- Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: 24px 0 40px; }
.hero::before {
  content: ''; position: absolute; top: -200px; right: -220px; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(255, 90, 110, 0.18), transparent); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 22px; }
.hero-cta { display: grid; gap: 10px; margin-bottom: 20px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.9rem; font-weight: 650; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ic { width: 18px; height: 18px; color: var(--coral); }
.hero-art { position: relative; display: flex; justify-content: center; padding: 14px 0 30px; }
.float {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(23, 23, 28, 0.14);
  font-size: 0.8rem; font-weight: 750; white-space: nowrap;
}
/* Phones: two badges on the phone's empty edges (over the status bar, and over
   the tab bar), never on the card or its buttons. Wide screens: three, beside it. */
.f1 { bottom: 6px; left: 0; right: 0; width: max-content; margin-inline: auto; }
.f2 { top: 0; right: 0; }
.f3 { display: none; }
@media (min-width: 480px) {
  .hero-cta { display: flex; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; }
  .hero .lead { margin-bottom: 28px; }
  .float { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
  .f1 { bottom: 25%; left: 0; right: auto; margin: 0; }
  .hero-art { padding: 8px 0; }
  .f2 { top: 10%; right: 0; }
  .f3 { display: inline-flex; bottom: 25%; right: 0; }
}

/* ---- App screens (drawn in HTML) -------------------------------------------
   Inside a device everything is in em, and the screen's font size follows the
   device's width (container units), so a screen scales as one piece. The app
   is light, so the screens stay light in dark mode too. */
.device {
  container-type: inline-size;
  width: 100%; max-width: 250px; margin-inline: auto; aspect-ratio: 9 / 19.5;
  padding: 6px; border-radius: 36px; background: #121217;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2e2e37;
}
@media (prefers-color-scheme: dark) { .device { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.55); } }
.device-hero { max-width: 226px; }
@media (min-width: 900px) { .device-hero { max-width: 286px; } }
.screen {
  position: relative; height: 100%; overflow: hidden; display: flex; flex-direction: column;
  border-radius: 30px; background: #f5f5f8; color: #17171c; text-align: left;
  font-size: 12px; font-size: 5.3cqw; line-height: 1.35;
}
.screen.with-tabs { padding-bottom: 4.6em; }
.screen .ic { width: 1.2em; height: 1.2em; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 0.75em 1.5em 0.35em; font-size: 0.78em; font-weight: 650; color: #3a3a42; }
.sb-ic { display: flex; gap: 0.35em; }
.sb svg { width: 1.15em; height: 1.15em; display: block; }
.app-head { padding: 0.55em 1.25em 0.6em; }
.app-head b { display: block; font-size: 2em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.app-head span { display: block; margin-top: 0.15em; color: #6b6b76; font-size: 0.92em; }
.app-label { padding: 0.7em 1.4em 0.45em; font-size: 0.7em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a94; }
.seg { display: inline-flex; align-self: flex-start; gap: 0.2em; margin: 0 1.25em 0.75em; padding: 0.25em; border-radius: 99em; background: #e9e9ee; }
.seg span { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.35em 0.85em; border-radius: 99em; font-size: 0.88em; font-weight: 700; color: #6b6b76; }
.seg .on { background: #fff; color: #17171c; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.seg .ic { width: 1em; height: 1em; }
.seg .on .ic { color: #ff5a6e; }
/* Discover */
.dcard {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 1em; padding: 1em; border-radius: 1.6em; text-align: center;
  background: linear-gradient(160deg, #e4dcff 0%, #ffe3dc 100%); box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.1);
}
.dcard-img { width: 62%; aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 0.3em #fff, 0 0.5em 1.2em rgba(0, 0, 0, 0.12); }
.dcard-info { margin-top: 0.9em; }
.dcard-info b { display: block; font-size: 1.7em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.dchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35em; margin-top: 0.55em; }
.dchips span { padding: 0.28em 0.7em; border-radius: 99em; background: rgba(255, 255, 255, 0.75); font-size: 0.78em; font-weight: 700; }
.dchips span:first-child { background: #ff5a6e; color: #fff; }
.dacts { display: flex; justify-content: center; align-items: center; gap: 1.6em; padding: 0.85em 0 0.6em; }
.dacts span { display: grid; place-items: center; border-radius: 50%; }
.d-skip { width: 3.4em; height: 3.4em; background: #fff; color: #17171c; box-shadow: 0 0.3em 0.8em rgba(0, 0, 0, 0.1); }
.d-hi { width: 4em; height: 4em; background: var(--grad); color: #fff; box-shadow: 0 0.4em 1em rgba(232, 56, 79, 0.35); }
.dacts .ic { width: 1.45em; height: 1.45em; }
/* Tab bar */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0.55em 0.2em 0.95em; background: #fff; border-top: 1px solid #ececf1; }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 0.2em; font-size: 0.66em; font-weight: 700; color: #9a9aa4; }
.tabbar .ic { width: 2em; height: 2em; }
.tabbar .on { color: #ff5a6e; }
/* Chat */
.ctop { display: flex; align-items: center; gap: 0.6em; padding: 0.45em 1em 0.65em; background: #fff; border-bottom: 1px solid #ececf1; }
.ctop .ic { width: 1.4em; height: 1.4em; }
.ctop .av { width: 2.3em; height: 2.3em; border-radius: 50%; }
.ctop b { font-size: 1.05em; }
.cbody { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.45em; padding: 0.8em 0.9em 4.6em; background: #f2f2f6; }
.cday { align-self: center; margin-bottom: 0.2em; padding: 0.2em 0.8em; border-radius: 99em; background: #fff; font-size: 0.74em; font-weight: 700; color: #6b6b76; }
.msg { max-width: 82%; padding: 0.55em 0.8em; border-radius: 1.1em; font-size: 0.9em; line-height: 1.35; }
.msg.them { align-self: flex-start; background: #fff; border-bottom-left-radius: 0.35em; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 0.35em; }
.msg.voice { display: flex; align-items: center; gap: 0.2em; }
.msg.voice .ic { width: 1.25em; height: 1.25em; margin-right: 0.35em; color: #ff5a6e; }
.msg.voice i { display: block; width: 0.22em; height: 0.7em; border-radius: 9em; background: #c9c9d3; }
.msg.voice i:nth-of-type(2n) { height: 1.2em; }
.msg.voice i:nth-of-type(3n) { height: 0.95em; background: #ff8a98; }
.msg.voice em { margin-left: 0.45em; font-style: normal; font-size: 0.82em; color: #6b6b76; }
.creact { align-self: flex-start; margin: -0.75em 0 0 0.6em; padding: 0.1em 0.45em; border-radius: 99em; background: #fff; font-size: 0.8em; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.cin { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 0.5em; padding: 0.6em 0.8em 1em; background: #fff; }
.cin-field { flex: 1; padding: 0.55em 0.9em; border-radius: 99em; background: #f0f0f4; color: #9a9aa4; font-size: 0.88em; }
.cin-ic { color: #ff5a6e; }
.cin-ic .ic { width: 1.4em; height: 1.4em; }
.cin-mic { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--grad); color: #fff; }
/* Addas tab */
.arow { display: flex; align-items: center; gap: 0.7em; margin: 0 0.9em 0.5em; padding: 0.65em 0.7em; border-radius: 1em; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.a-ic { flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 0.7em; background: #ffe3d6; font-size: 1.15em; }
.a-2 { background: #dfe8ff; }
.a-3 { background: #ece4ff; }
.a-4 { background: #dff5e7; }
.arow > div { flex: 1; min-width: 0; }
.arow b { display: block; font-size: 0.95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow > div span { display: block; color: #6b6b76; font-size: 0.78em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ajoin { flex: none; padding: 0.4em 0.9em; border-radius: 99em; background: var(--grad); color: #fff; font-size: 0.78em; font-weight: 800; }
/* Buzz */
.btabs { display: flex; gap: 0.5em; padding: 0 1.25em 0.65em; }
.btabs span { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.35em 0.8em; border-radius: 99em; border: 1px solid #e3e3ea; background: #fff; font-size: 0.84em; font-weight: 700; color: #6b6b76; }
.btabs .on { border-color: #ff5a6e; background: #fff0f1; color: #e8384f; }
.btabs .ic { width: 1em; height: 1em; }
.bpost { margin: 0 0.9em 0.6em; padding: 0.8em 0.9em; border-radius: 1.1em; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.barea { display: inline-flex; align-items: center; gap: 0.25em; padding: 0.25em 0.6em; border-radius: 99em; background: #fff0f1; color: #c42a40; font-size: 0.7em; font-weight: 800; }
.barea .ic { width: 1.05em; height: 1.05em; }
.bpost p, .tpost p { margin: 0.45em 0 0.55em; color: #17171c; font-size: 0.93em; font-weight: 700; line-height: 1.35; }
.bfoot { display: flex; justify-content: space-between; align-items: center; }
.bvote { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.2em 0.45em; border-radius: 99em; background: #f2f2f6; font-size: 0.84em; }
.bvote .ic { width: 1.2em; height: 1.2em; color: #9a9aa4; }
.bvote .ic:first-child { color: #ff5a6e; }
.breply { display: inline-flex; align-items: center; gap: 0.3em; color: #6b6b76; font-size: 0.82em; font-weight: 700; }
.breply .ic { width: 1.1em; height: 1.1em; }
/* Buzz thread */
.tpost { padding: 0.8em 1.25em; background: #fff; border-bottom: 0.45em solid #ececf1; }
.rrow { display: flex; gap: 0.6em; padding: 0.5em 1.25em; }
.ralias { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #fff3e6; font-size: 1.05em; }
.rrow b { font-size: 0.84em; color: #c42a40; }
.rrow p { margin: 0.1em 0 0; color: #17171c; font-size: 0.86em; line-height: 1.35; }
.rname.c-orange { color: #d46a0a; }
.rname.c-green { color: #1f9d55; }
.rname.c-blue { color: #2f6fe0; }
.rname.c-pink { color: #d63a73; }
.rname.c-purple { color: #7c4ddb; }
.rname.c-red { color: #d8343a; }
.rname.c-yellow { color: #b58800; }
.rname.c-teal { color: #14918a; }

/* Strip of screens: swipe on phones, all four side by side on wide screens. */
.screens {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(66%, 240px); gap: 16px;
  margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent);
}
.screens::-webkit-scrollbar { display: none; }
.screen-item { margin: 0; scroll-snap-align: start; }
.screen-item .device { max-width: none; }
.screen-item figcaption { margin-top: 14px; text-align: center; }
.screen-item figcaption b { display: block; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.screen-item figcaption span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.swipe-hint { white-space: nowrap; }
@media (min-width: 900px) {
  .screens { grid-auto-columns: minmax(0, 1fr); gap: 28px; margin: 0; padding: 8px 0 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .swipe-hint { display: none; }
}

/* ---- Cards, lists and tiles ------------------------------------------------- */
.cards { display: grid; gap: 14px; }
.cards-2, .cards-3, .cards-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards-2, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cards { gap: 18px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card p { margin-bottom: 0.4em; }
.card-dashed { border-style: dashed; box-shadow: none; background: transparent; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease, border-color 0.15s ease; }
.card-link:hover { transform: translateY(-3px); border-color: var(--coral); }
.card-link:active { transform: scale(0.98); }
.card-h { font-size: 1.12rem; }
.card-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--coral-tint); color: var(--coral); margin-bottom: 12px; }
.card-ic .ic { width: 22px; height: 22px; }
@media (min-width: 900px) { .card { padding: 24px; } }

.feature-list { display: grid; gap: 12px; }
.feature {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; column-gap: 14px; row-gap: 8px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature .card-ic { margin: 0; grid-column: 1; grid-row: 1; }
.feature > div { display: contents; }
.feature h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.08rem; }
.feature p { grid-column: 1 / 3; grid-row: 2; margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.feature .chev { grid-column: 3; grid-row: 1 / 3; color: var(--muted); }
.feature:hover { border-color: var(--coral); transform: translateY(-2px); }
.feature:active { transform: scale(0.98); }
@media (min-width: 900px) { .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .feature { padding: 20px; } }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.tile .card-ic { width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; }
.tile .card-ic .ic { width: 20px; height: 20px; }
.tile h3 { min-height: 2.3em; margin-bottom: 4px; font-size: 0.98rem; display: flex; align-items: flex-end; }
.tile p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } .tile { padding: 22px; } .tile h3 { min-height: 0; } .tile p { font-size: 0.93rem; } }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 32px; margin: 10px 0; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.18em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--coral-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23ff5a6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 104px; padding: 18px 8px 14px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.stat strong { font-size: 1.6rem; font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 0.8rem; font-weight: 650; line-height: 1.3; }
@media (min-width: 900px) { .stats { gap: 16px; } .stat { min-height: 140px; justify-content: center; padding: 14px 8px; } .stat strong { font-size: 2.2rem; } .stat span { font-size: 0.92rem; } }

.chip-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip-links a, .city-links a, .city-jump a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: 0.92rem;
  text-decoration: none; white-space: nowrap; transition: border-color 0.15s ease, color 0.15s ease;
}
.chip-links a:hover, .city-links a:hover, .city-jump a:hover { border-color: var(--coral); color: var(--coral-ink); }
.chip-links a:active, .city-links a:active, .city-jump a:active { transform: scale(0.97); }

/* Cities: two rows that swipe on phones, a wrapped cloud on wide screens. */
.city-links {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); justify-content: start; gap: 10px;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent);
}
.city-links::-webkit-scrollbar { display: none; }
.city-links a { scroll-snap-align: start; justify-content: center; }
@media (min-width: 900px) {
  .city-links { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* ---- Demos outside phones (Addas, Buzz, AI dost pages) ----------------------- */
.bubble { max-width: 85%; padding: 9px 13px; border-radius: 18px; font-size: 0.9rem; line-height: 1.4; }
.bubble.them { background: #fff; color: #17171c; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); align-self: flex-start; }
.bubble.me { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; margin-left: auto; }
.reaction { align-self: flex-end; font-size: 0.75rem; background: #fff; border-radius: 999px; padding: 2px 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); margin-top: -6px; }
.adda-card { width: 100%; max-width: 420px; margin-inline: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.adda-card .bubble.them { background: var(--soft); color: var(--ink); box-shadow: none; max-width: 100%; }
.adda-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.adda-head strong { display: block; color: var(--ink); line-height: 1.3; }
.adda-head div span { color: var(--muted); font-size: 0.85rem; }
.adda-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--coral-tint); font-size: 1.5rem; line-height: 1; }
.adda-msg { display: flex; gap: 8px; align-items: flex-start; }
.adda-msg .av { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.adda-msg > div { min-width: 0; }
.adda-msg b { display: block; font-size: 0.75rem; color: var(--coral-ink); margin: 0 0 2px 4px; }
.adda-msg .reaction { display: inline-block; margin: 4px 0 0 4px; color: #17171c; }
@media (min-width: 900px) { .adda-card { padding: 20px; } }
.cast { display: grid; gap: 10px; }
.cast-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.cast-item strong { display: block; color: var(--ink); }
.cast-item strong a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
.cast-item span { color: var(--muted); font-size: 0.92rem; }
.buzz-demo { display: grid; gap: 12px; }
.buzz-post { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.buzz-post p { color: var(--ink); font-weight: 650; margin: 10px 0; }
.area { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 700; color: var(--coral-ink); background: var(--coral-tint); padding: 4px 10px; border-radius: 999px; }
.area .ic { width: 12px; height: 12px; }
.buzz-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; font-weight: 700; }

/* ---- FAQ ------------------------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 10px 0; padding: 0 16px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 12px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 750; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--coral-tint); color: var(--coral-ink); font-size: 1.25rem; font-weight: 700; line-height: 1; transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding-bottom: 16px; }
@media (min-width: 900px) { .faq details { padding: 0 22px; } }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 0.25s ease, content-visibility 0.25s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ---- Cities page ----------------------------------------------------------- */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }
.city-card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.city-card strong { display: block; color: var(--ink); font-size: 1.1rem; }
.city-card span { color: var(--muted); font-size: 0.85rem; }
.city-card:hover { border-color: var(--coral); }
.city-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.city-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.city { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--head) + 16px); }
.city h2 { font-size: 1.2rem; margin: 0 0 8px; }
.city p { margin: 6px 0; }

/* ---- Long-form text -------------------------------------------------------- */
.prose h2 { margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin: 6px 0; }
.prose ol, .prose ul:not(.ticks) { padding-left: 22px; }
/* A link that is a whole list item (related guides, sources, other dosts) or the
   lone "All guides" line gets a full 44px tap height; links inside sentences don't. */
:where(main li > a:only-child, main li > strong:first-child > a:only-child, .more p > a:only-child) {
  display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap);
}
.legal { padding-top: 20px; padding-bottom: 48px; max-width: 760px; }
.legal h2 { font-size: 1.25rem; }
.more { margin-top: 40px; padding: 20px; background: var(--soft); border-radius: var(--r); }
.more h2 { font-size: 1.15rem; margin-top: 0; }
ul.cols { columns: 2; column-gap: 24px; }
ul.cols li { break-inside: avoid; }
@media (min-width: 760px) { ul.cols { columns: 3; } }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; }
.prose caption { text-align: left; font-weight: 700; color: var(--muted); padding-bottom: 8px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose thead th { color: var(--ink); background: var(--soft); }
.prose tbody th { font-weight: 700; color: var(--ink); }
.link-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 0 24px; }
.link-list li { margin: 0; }
.link-list a { display: flex; align-items: center; min-height: var(--tap); padding: 6px 0; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); line-height: 1.35; }
.link-list a:hover { color: var(--coral-ink); }
.examples { background: var(--soft); border-radius: var(--r); padding: 16px 18px; margin: 18px 0; }
.examples ul { list-style: none; padding: 0; margin: 10px 0 0; }
.examples li { margin: 12px 0; }
.examples q { display: block; font-style: italic; color: var(--ink); overflow-wrap: anywhere; }
.examples .held, .examples .sent { display: inline-block; margin-top: 4px; font-size: 0.82rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.examples .held { background: var(--coral-tint); color: var(--coral-ink); }
.examples .sent { background: var(--violet-tint); color: var(--ink); }
.note { background: var(--violet-tint); border-radius: 16px; padding: 14px 16px; font-size: 0.95rem; }
.doha { border-top: 1px solid var(--line); padding-top: 6px; }
.doha h2 { font-size: 1.15rem; }
.deva { font-size: 1.15rem; line-height: 1.7; color: var(--ink); }
.sources { font-size: 0.92rem; overflow-wrap: anywhere; }
.prose code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
/* On phones a wide table becomes one card per row; labels come from data-label. */
@media (max-width: 600px) {
  .prose table.stack, .stack caption, .stack tbody, .stack tr, .stack th, .stack td { display: block; }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack tr { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
  .stack th, .stack td { border: 0; padding: 3px 0; }
  .stack td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
}

/* ---- Breadcrumbs: one line, the current page trimmed to fit ----------------- */
.crumbs { display: flex; align-items: center; gap: 6px; padding-top: 4px; font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs > * { display: inline-flex; align-items: center; flex: none; min-height: var(--tap); }
.crumbs > span:last-child { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: var(--tap); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs > a { min-width: var(--tap); }
.crumbs a:hover { color: var(--coral-ink); }
.crumbs > * + *::before { content: '›'; margin-right: 6px; color: var(--muted); opacity: 0.6; }

/* ---- Get the app ----------------------------------------------------------- */
.get { padding: 8px 0 48px; }
.get-card { padding: 32px 20px; border-radius: 28px; background: var(--grad); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.get-card img { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.get-card h2 { color: #fff; }
.get-card p { max-width: 520px; margin: 0 auto 20px; opacity: 0.95; }
@media (min-width: 900px) { .get { padding: 24px 0 80px; } .get-card { padding: 48px 28px; border-radius: 32px; } .get-card img { width: 72px; height: 72px; border-radius: 18px; } }

/* ---- Install bar (phones) -------------------------------------------------- */
.install-bar { display: none; }
@media (max-width: 899px) {
  body.has-bar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .install-bar {
    position: fixed; z-index: 15; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px;
    border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 12px 32px rgba(10, 10, 14, 0.2);
  }
  .install-bar img { width: 40px; height: 40px; border-radius: 10px; }
  .install-bar div { flex: 1; min-width: 0; line-height: 1.25; }
  .install-bar strong { display: block; color: var(--ink); font-size: 0.95rem; }
  .install-bar span { display: block; color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .install-bar .btn { padding: 0 22px; }
}
@supports (animation-timeline: scroll()) {
  @media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
    .install-bar { animation: bar-in linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
  }
}
@keyframes bar-in { from { transform: translateY(calc(100% + 24px)); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Invite ---------------------------------------------------------------- */
.invite { padding: 48px 0; }
.invite-card { max-width: 480px; text-align: center; }
.invite-card img { margin: 0 auto 18px; border-radius: 20px; }
.invite-card .btn { width: 100%; max-width: 320px; }
.invite-card b { background: var(--coral-tint); color: var(--coral-ink); padding: 2px 8px; border-radius: 6px; letter-spacing: 1px; }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 24px; background: var(--soft); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-grid .brand { margin-bottom: 4px; }
.footer-grid a:not(.brand) { display: flex; align-items: center; min-height: var(--tap); color: var(--body); text-decoration: none; font-size: 0.95rem; line-height: 1.3; }
.footer-grid a:not(.brand):hover { color: var(--coral-ink); }
.foot-h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 4px; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.foot-bottom a { display: inline-flex; align-items: center; min-height: var(--tap); }
@media (min-width: 900px) {
  .site-footer { padding: 48px 0 28px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-grid a:not(.brand) { min-height: 36px; }
}

/* ---- Motion: lift into place while scrolling (CSS scroll timelines) --------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .feature, .tile, .stat, .faq details, .adda-card, .screens, .get-card, .card-link {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes rise { from { opacity: 0.4; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: bob 5s ease-in-out infinite alternate; }
  .f2 { animation-delay: -1.7s; }
  .f3 { animation-delay: -3.4s; }
}
@keyframes bob { to { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
