/* Munshi website — one stylesheet for the landing page, changelog, blog and
   the legal/support pages. Tokens mirror the app's indigo palette. */
:root {
  --bg: #FAFAFC;
  --card: #FFFFFF;
  --muted: #F2F3F8;
  --border: #E4E6EF;
  --text: #0F1222;
  --text-muted: #5B6075;
  --accent: #4F46E5;
  --accent-dark: #3730A3;
  --accent-soft: rgba(79, 70, 229, 0.09);
  --accent-ring: rgba(79, 70, 229, 0.28);
  --get: #C9524C;
  --give: #2B8A5E;
  --ink: #0E1030;
  --ink-2: #1B1E4B;
  --shadow: 0 1px 2px rgba(15, 18, 34, 0.04), 0 8px 24px -12px rgba(15, 18, 34, 0.10);
  --shadow-lg: 0 30px 60px -24px rgba(49, 46, 129, 0.45);
  --radius: 18px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0C14;
    --card: #151925;
    --muted: #1B2030;
    --border: #272D3D;
    --text: #F2F3F8;
    --text-muted: #9BA1B5;
    --accent: #8B93FF;
    --accent-dark: #B4BAFF;
    --accent-soft: rgba(139, 147, 255, 0.13);
    --accent-ring: rgba(139, 147, 255, 0.35);
    --get: #E27A75;
    --give: #4DB584;
    --shadow: none;
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  --bg: #0A0C14;
  --card: #151925;
  --muted: #1B2030;
  --border: #272D3D;
  --text: #F2F3F8;
  --text-muted: #9BA1B5;
  --accent: #8B93FF;
  --accent-dark: #B4BAFF;
  --accent-soft: rgba(139, 147, 255, 0.13);
  --accent-ring: rgba(139, 147, 255, 0.35);
  --get: #E27A75;
  --give: #4DB584;
  --shadow: none;
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 60;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
@media (max-width: 640px) { .wrap { width: min(1160px, calc(100% - 32px)); } }

/* ───────── header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.bar { position: relative; height: 100%; display: flex; align-items: center; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.menu-check {
  position: absolute; opacity: 0; margin: 0; cursor: pointer;
  width: 44px; height: 44px; top: 12px; right: 0; z-index: 3;
}
@media (min-width: 861px) {
  .menu-check { width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); pointer-events: none; }
}
.menu-btn {
  display: none; margin-left: auto; position: relative;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card);
  place-items: center; align-content: center; gap: 5px; cursor: pointer;
}
.menu-btn span:not(.sr) { display: block; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  text-decoration: none; color: var(--text-muted);
  font-size: 14.5px; font-weight: 500;
  padding: 8px 13px; border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--muted); }
.site-nav a.nav-cta {
  margin-left: 8px; background: var(--text); color: var(--bg); font-weight: 600;
}
.site-nav a.nav-cta:hover { background: var(--accent); color: #fff; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .site-header { height: auto; }
  .bar { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding: 12px 0; }
  .site-nav {
    display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch;
    margin: 8px 0 2px; padding: 8px;
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  }
  .site-nav a { padding: 12px 14px; min-height: 44px; }
  .site-nav a.nav-cta { margin: 4px 0 0; text-align: center; }
  .menu-check:checked ~ .site-nav { display: flex; }
  .menu-check:focus-visible ~ .menu-btn { outline: 2px solid var(--accent); outline-offset: 3px; }
}

/* ───────── type ───────── */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 5px 12px; border-radius: 999px; text-decoration: none;
}
a.badge:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.badge .pulse {
  width: 7px; height: 7px; border-radius: 99px; background: var(--give);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--give) 55%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.eyebrow {
  display: block; margin: 0 0 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
main#main h1, main#main h2, main#main h3 { font-family: var(--font-display); letter-spacing: -0.035em; }
main#main h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.0; font-weight: 700; margin: 18px 0 18px; }
main#main h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; font-weight: 700; margin: 0 0 12px; }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #7C5CFF 55%, #C06CFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-muted); margin: 0 0 28px; max-width: 48ch; }
.section-head { margin: 0 0 40px; max-width: 64ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin: 0; color: var(--text-muted); font-size: 17px; }

/* ───────── buttons ───────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  min-height: 52px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: var(--text); color: var(--bg); border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store.outline { background: var(--card); color: var(--text); border-color: var(--border); }
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(15, 18, 34, 0.4); }
.store svg { width: 22px; height: 22px; flex: none; }
.store small { display: block; font-size: 10px; letter-spacing: 0.07em; opacity: 0.75; line-height: 1.2; }
.store strong { display: block; font-family: var(--font-display); font-size: 16px; line-height: 1.2; }
.store.on-dark { background: #fff; color: var(--ink); }
.store.on-dark.outline { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.24); }
.note { margin: 14px 0 0; font-size: 13.5px; color: var(--text-muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 18px; border-radius: 12px;
  background: #4F46E5; color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: #3730A3; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--muted); }
.link-arrow { color: var(--accent); font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ───────── hero ───────── */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background:
    radial-gradient(600px 380px at 82% 18%, rgba(124, 92, 255, 0.22), transparent 70%),
    radial-gradient(520px 340px at 12% 8%, rgba(79, 70, 229, 0.14), transparent 70%),
    radial-gradient(480px 300px at 60% 90%, rgba(192, 108, 255, 0.12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: center; }
.hero-copy .lead { max-width: 46ch; }
.hero .stores { margin-top: 4px; }
.fan { position: relative; width: min(100%, 540px); aspect-ratio: 1 / 1.08; margin-inline: auto; }
.fan img {
  position: absolute; width: 50%; border-radius: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.fan .p1 { left: 0; top: 11%; transform: rotate(-7deg); z-index: 1; animation: float 7s ease-in-out infinite; }
.fan .p2 { left: 25%; top: 0; z-index: 3; animation: float 7s ease-in-out -2.4s infinite; }
.fan .p3 { right: 0; top: 14%; transform: rotate(7deg); z-index: 2; animation: float 7s ease-in-out -4.6s infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
@media (max-width: 920px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead, .hero-copy .note { margin-inline: auto; }
  .hero .stores { justify-content: center; }
  .fan { width: min(100%, 440px); }
}

/* ───────── trust strip ───────── */
.trust { border-block: 1px solid var(--border); background: var(--card); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { padding: 22px 20px; display: flex; gap: 14px; align-items: flex-start; }
.trust li + li { border-left: 1px solid var(--border); }
.trust .ico { margin-top: 2px; }
.trust strong { display: block; font-family: var(--font-display); font-size: 16px; letter-spacing: -0.02em; }
.trust li > div > span { display: block; font-size: 13.5px; color: var(--text-muted); line-height: 1.45; margin-top: 2px; }
@media (max-width: 900px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .trust ul { grid-template-columns: 1fr; }
  .trust li + li { border-left: 0; border-top: 1px solid var(--border); }
}
.ico {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.ico svg { width: 20px; height: 20px; }

/* ───────── sections ───────── */
main#main > section { padding: 88px 0; scroll-margin-top: 76px; }
@media (max-width: 700px) { main#main > section { padding: 60px 0; } }
main#main > section.band { background: var(--muted); }

/* showcase rows */
.rows { display: flex; flex-direction: column; gap: 96px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row.flip .row-art { order: 2; }
.row-art {
  position: relative; display: grid; place-items: center; padding: 36px 24px;
  border-radius: 28px;
  background:
    radial-gradient(70% 60% at 50% 30%, var(--accent-soft), transparent 75%),
    var(--muted);
  border: 1px solid var(--border);
}
.row-art img {
  width: min(78%, 300px); border-radius: 26px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.row-copy h2 { font-size: clamp(26px, 3vw, 38px); }
.row-copy > p { color: var(--text-muted); font-size: 17px; margin: 0 0 20px; max-width: 46ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 99px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks b { font-weight: 600; }
@media (max-width: 860px) {
  .rows { gap: 64px; }
  .row { grid-template-columns: 1fr; gap: 28px; }
  .row.flip .row-art { order: 0; }
}

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; min-width: 0;
  transition: transform .2s ease, border-color .2s ease;
}
.grid .tile:hover { transform: translateY(-3px); border-color: var(--accent-ring); }
.tile h3 { font-size: 19px; margin: 16px 0 6px; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--text-muted); font-size: 15px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } .grid > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* languages */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pair img { border-radius: 24px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.pair img:last-child { margin-top: 36px; }
.urdu { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", serif; direction: rtl; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .pair { max-width: 460px; margin-inline: auto; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { counter-increment: step; position: relative; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -0.04em;
  line-height: 1; color: var(--accent); opacity: .85;
}
.step h3 { margin-top: 14px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: 14.5px; color: var(--text-muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 99px; margin-right: 8px; }

/* free (dark) */
main#main > section.dark {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(124, 92, 255, 0.35), transparent 70%),
    radial-gradient(600px 320px at 0% 100%, rgba(79, 70, 229, 0.30), transparent 70%),
    var(--ink);
  color: #F2F3F8;
}
.dark .eyebrow { color: #A5ABFF; }
.dark .section-head p { color: #B6BAD8; }
.dark .tile {
  background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); box-shadow: none;
  backdrop-filter: blur(6px);
}
.dark .tile p { color: #B6BAD8; }
.dark .ico { background: rgba(165, 171, 255, 0.16); color: #C7CBFF; }

/* latest: changelog strip + blog teasers */
.rel-wide { padding: clamp(22px, 3.5vw, 36px); }
.rel-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.rel-head h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 12px 0 0; }
.rel-date { font-size: 14px; color: var(--text-muted); margin-left: 6px; }
.rel-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); }
.rel-items li { padding: 22px 22px 4px 0; }
.rel-items li + li { padding-left: 22px; border-left: 1px solid var(--border); }
.rel-items h4 { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; margin: 12px 0 6px; line-height: 1.25; }
.rel-items p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 44px 0 16px; }
.sub-head h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.03em; margin: 0; }
@media (max-width: 960px) {
  .rel-items { grid-template-columns: 1fr 1fr; }
  .rel-items li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .rel-items li:nth-child(n+3) { border-top: 1px solid var(--border); margin-top: 18px; }
}
@media (max-width: 560px) {
  .rel-items { grid-template-columns: 1fr; }
  .rel-items li, .rel-items li + li { padding: 18px 0 0; border-left: 0; }
  .rel-items li + li { border-top: 1px solid var(--border); margin-top: 18px; }
}

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 0 18px;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--accent-ring); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 16px 4px; min-height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--accent); line-height: 1; flex: none;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--text-muted); font-size: 15.5px; }
.faq a { color: var(--accent); }

/* final CTA */
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(192, 108, 255, 0.45), transparent 70%),
    linear-gradient(135deg, #4F46E5 0%, #3730A3 60%, #26217A 100%);
  color: #fff; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
}
.cta-card h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); }
.cta-card p { color: #D9DBFF; font-size: 18px; margin: 0 0 26px; max-width: 44ch; }
.cta-card .fan2 { display: flex; justify-content: center; gap: 14px; }
.cta-card .fan2 img { width: 44%; border-radius: 22px; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.55); }
.cta-card .fan2 img:last-child { margin-top: 36px; }
@media (max-width: 860px) {
  .cta-card { grid-template-columns: 1fr; text-align: center; }
  .cta-card p { margin-inline: auto; }
  .cta-card .stores { justify-content: center; }
  .cta-card .fan2 { max-width: 360px; margin-inline: auto; }
}

/* ───────── page heads (changelog, blog) ───────── */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 40px; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 150%; z-index: -1;
  background:
    radial-gradient(520px 300px at 80% 20%, rgba(124, 92, 255, 0.18), transparent 70%),
    radial-gradient(480px 280px at 8% 0%, rgba(79, 70, 229, 0.12), transparent 70%);
}
.page-hero h1 { font-size: clamp(36px, 5.4vw, 60px); }
.page-hero .lead { margin-bottom: 0; }

/* changelog timeline */
.cl { display: grid; grid-template-columns: 200px 1fr; gap: 56px; padding-bottom: 96px; }
.cl-index { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.cl-index h2 { font-family: var(--font-display); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; font-weight: 600; }
.cl-index ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.cl-index a {
  display: block; text-decoration: none; color: var(--text-muted); font-size: 14.5px; font-weight: 500;
  padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent;
}
.cl-index a:hover { color: var(--text); }
.cl-index a.on { color: var(--accent); border-left-color: var(--accent); }
.cl-list { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.release {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow); padding: clamp(22px, 3.5vw, 36px); scroll-margin-top: 92px;
}
.release header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 4px; }
.release h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.035em; margin: 0; }
.release time { color: var(--text-muted); font-size: 14.5px; }
.release .tagline { margin: 6px 0 22px; color: var(--text-muted); font-size: 16.5px; }
.chip {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 99px; vertical-align: middle;
  background: var(--accent-soft); color: var(--accent);
}
.chip.latest { background: color-mix(in srgb, var(--give) 16%, transparent); color: var(--give); }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.changes li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; padding-top: 18px; border-top: 1px solid var(--border); }
.changes li:first-child { border-top: 0; padding-top: 0; }
.changes h3 { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; margin: 0 0 4px; }
.changes p { margin: 0; color: var(--text-muted); font-size: 15.5px; }
.tag { justify-self: start; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 8px; margin-top: 2px; }
.tag.new { background: var(--accent-soft); color: var(--accent); }
.tag.better { background: color-mix(in srgb, var(--give) 14%, transparent); color: var(--give); }
.tag.fix { background: color-mix(in srgb, var(--get) 14%, transparent); color: var(--get); }
.tag.safe { background: color-mix(in srgb, #D69E2E 18%, transparent); color: #A06B00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.safe { color: #F0C45A; } }
:root[data-theme="dark"] .tag.safe { color: #F0C45A; }
@media (max-width: 900px) {
  .cl { grid-template-columns: 1fr; gap: 24px; }
  .cl-index { display: none; }
}
@media (max-width: 520px) {
  .changes li { grid-template-columns: 1fr; gap: 6px; }
}
.upnext { border-style: dashed; box-shadow: none; background: transparent; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--accent-ring); }
.post-cover {
  aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #5B52F0, #3730A3);
}
.post-cover.c2 { background: linear-gradient(135deg, #7C5CFF, #4F46E5); }
.post-cover.c3 { background: linear-gradient(135deg, #2B8A5E, #1E5F8F); }
.post-cover.c4 { background: linear-gradient(135deg, #C06CFF, #4F46E5); }
.post-cover svg { width: 56px; height: 56px; color: rgba(255, 255, 255, 0.92); }
.post-cover::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.2px); background-size: 22px 22px;
}
.post-cover svg { position: relative; z-index: 1; }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.post-body h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.025em; line-height: 1.2; margin: 0; }
.post-body p { margin: 0; color: var(--text-muted); font-size: 15px; }
.post-card.featured { grid-column: 1 / -1; flex-direction: row; }
.post-card.featured .post-cover { aspect-ratio: auto; flex: 0 0 44%; min-height: 280px; }
.post-card.featured .post-body { padding: clamp(24px, 3.5vw, 40px); justify-content: center; gap: 12px; }
.post-card.featured h3 { font-size: clamp(24px, 3vw, 34px); }
.post-card.featured p { font-size: 16.5px; }
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card.featured { flex-direction: column; }
  .post-card.featured .post-cover { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
}
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.count { margin: 0 0 16px; font-size: 14px; color: var(--text-muted); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; }
.pg-nums { display: flex; gap: 6px; }
.pg {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
a.pg:hover { border-color: var(--accent-ring); background: var(--accent-soft); }
.pg.num { padding: 0; }
.pg[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pg.off { opacity: .45; }
@media (max-width: 520px) { .pg { padding: 0 12px; } }
.subscribe {
  margin-top: 56px; border: 1px solid var(--border); border-radius: 22px; padding: clamp(24px, 4vw, 40px);
  background: var(--card); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.subscribe h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 4px; }
.subscribe p { margin: 0; color: var(--text-muted); }

/* article */
.takeaways {
  margin: 0 0 36px; padding: 22px 24px; border-radius: 18px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
}
.takeaways h2 { font-family: var(--font-display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.takeaways ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.takeaways li { font-size: 16.5px; line-height: 1.5; }
.article-faq { margin-top: 48px; }
.article-faq h2 { font-family: var(--font-display); font-size: 27px; letter-spacing: -0.03em; margin: 0 0 16px; }
.credit {
  margin-top: 40px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--muted);
  display: flex; gap: 16px; align-items: flex-start;
}
.credit p { margin: 0; font-size: 15.5px; color: var(--text-muted); }
.credit strong { color: var(--text); }
.credit a, .byline a, .made-by a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.made-by { margin-top: 10px !important; font-size: 14px; }
.article { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 24px; }
.crumb { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.crumb a { text-decoration: none; color: var(--accent); font-weight: 500; }
.crumb span { color: var(--text-muted); }
.article h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.05; margin: 12px 0 16px; }
.article .dek { font-size: 20px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.5; }
.article .byline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; color: var(--text-muted); padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { font-family: var(--font-display); font-size: 27px; letter-spacing: -0.03em; line-height: 1.15; margin: 44px 0 12px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.25em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose blockquote {
  margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 14px 14px 0; font-size: 18px;
}
.prose blockquote p { margin: 0; }
.prose figure { margin: 32px 0; }
.prose figure img { width: min(100%, 320px); margin-inline: auto; border-radius: 22px; box-shadow: var(--shadow-lg); }
.prose figcaption { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 12px; }
.callout {
  margin: 40px 0 8px; padding: 26px; border-radius: 20px; border: 1px solid var(--border); background: var(--card);
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
}
.callout h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0 0 4px; font-size: 20px; }
.callout p { margin: 0; color: var(--text-muted); font-size: 15.5px; }
.more { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 96px; }
.more h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.03em; margin: 0 0 16px; }
@media (max-width: 640px) { .more { width: calc(100% - 32px); } }

/* ───────── footer ───────── */
.site-footer { border-top: 1px solid var(--border); background: var(--card); color: var(--text-muted); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 36px; }
.foot-brand p { margin: 12px 0 0; max-width: 32ch; }
.foot h4 { margin: 0 0 12px; font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.foot nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.legal { border-top: 1px solid var(--border); padding: 20px 0 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; }
@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr 1fr; padding-top: 40px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ───────── inner pages (support, privacy, terms) ───────── */
.page { padding: 40px 0 88px; }
.page-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  padding: clamp(22px, 4vw, 40px);
}
.page h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 12px; }
.dek { color: var(--text-muted); font-size: 17px; margin: 0 0 20px; max-width: 62ch; }
.contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 16px; padding: 16px 18px; margin-bottom: 18px;
}
.contact p { margin: 0; color: var(--text-muted); font-size: 15px; }
.page .faq details { background: var(--bg); }

/* ───────── motion ───────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .fan img, .badge .pulse { animation: none; }
  .store:hover, .btn:hover, .grid .tile:hover, .post-card:hover { transform: none; }
}
