/* Rhymo landing — shared styles for every page, in Persian (RTL) and English (LTR).
   Colors come from the logo (moss #5D6151, cream #F1EBE4) and the chosen set:
   sand #D8C3A0, olive #5B5E3C and a small amount of yellow #FFD21F.
   Yellow is only for the beat: the metronome weight, a dot, a key line. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Vazirmatn"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF;
}
@font-face {
  font-family: "Vazirmatn"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

/* ----------------------------------------------------------------- tokens */
:root {
  --paper: #f4eee3;
  --paper-2: #ece2d0;
  --sand: #d8c3a0;
  --sand-2: #cdb48a;
  --sand-soft: #e6d7bd;
  --cream: #f1ebe4;
  --olive: #5b5e3c;
  --olive-2: #4b4e30;
  --olive-3: #3a3c25;
  --moss: #5d6151;
  --ink: #23241a;
  --ink-2: #474932;
  --muted: #6f6c55;
  --line: rgb(35 36 26 / .12);
  --line-2: rgb(35 36 26 / .2);
  --yellow: #ffd21f;
  --yellow-soft: #ffe27a;
  --night: #1c1c1c;
  --night-2: #252823;
  --night-3: #21241f;
  --night-line: #3a3e34;
  --app-text: #ebe4da;
  --app-sage: #a7aa8c;
  --app-faint: #6e7264;
  --g1: #5fe0c0; --g2: #ffc15e; --g3: #7fb2ff; --g4: #ff9daf; --g5: #c9a2ff; --g6: #e3dc6b;
  --g7: #2fa98f; --g8: #c98a2b; --g9: #4a79c7; --g10: #c4596f; --g11: #8b62c4; --g12: #a79c2e;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --wrap: 1280px;
  --gutter: clamp(18px, 4vw, 44px);
  --r-sm: 14px; --r: 22px; --r-lg: 32px;
  --shadow: 0 1px 2px rgb(35 36 26 / .05), 0 18px 40px -22px rgb(58 60 37 / .45);
  --shadow-lg: 0 2px 6px rgb(35 36 26 / .06), 0 40px 80px -36px rgb(58 60 37 / .55);
}
html[lang="fa"] {
  --font: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --display: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --accent-font: "Vazirmatn", sans-serif;
  --lh-body: 1.95;
  --lh-display: 1.22;
  --track-display: -.01em;
}
html[lang="en"] {
  --font: "Manrope", "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --display: "Manrope", "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --accent-font: "Instrument Serif", "Vazirmatn", Georgia, serif;
  --lh-body: 1.65;
  --lh-display: .98;
  --track-display: -.045em;
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font: 450 17px/var(--lh-body) var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* A light paper grain over the whole page. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .32 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer, header { position: relative; z-index: 1; }
main, footer { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); text-wrap: balance; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--olive); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fa { font-family: "Vazirmatn", sans-serif; }
.num { font-variant-numeric: tabular-nums; }
.skip {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 700; transition: top .2s;
}
.skip:focus { top: 12px; }

/* The yellow line that runs across the top once, on a beat. */
.beatline {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 120; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--yellow) 25%, var(--sand) 75%, transparent);
  transform: scaleX(0); transform-origin: 0 50%;
  animation: beatline 1.5s var(--ease) .15s forwards;
}
html[dir="rtl"] .beatline { transform-origin: 100% 50%; }
@keyframes beatline { 55% { transform: scaleX(1); opacity: 1; } to { transform: scaleX(1); opacity: 0; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgb(255 255 255 / .55); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer;
  font: 700 15.5px/1 var(--font); letter-spacing: -.005em;
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgb(58 60 37 / .6); }
.btn:active { transform: scale(.98); }
.btn.olive { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.btn.olive:hover { background: var(--olive-2); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn.sand { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .28) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn:hover::after { transition: transform .9s var(--ease); transform: translateX(120%); }
.btn .arrow { width: 16px; height: 16px; transition: transform .45s var(--spring); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
.btn .beat { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgb(255 210 31 / .22); }

.chip {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 7px 15px; border-radius: 999px; background: rgb(255 255 255 / .6);
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); line-height: 1.5;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); flex: none; }
.dot.y { background: var(--yellow); box-shadow: 0 0 0 3px rgb(255 210 31 / .25); }
.dot.s { background: var(--sand-2); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-size: 14px; font-weight: 700; color: var(--olive); letter-spacing: .01em;
}
html[lang="en"] .kicker { text-transform: uppercase; font-size: 12.5px; letter-spacing: .14em; }
.kicker i { width: 26px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.kicker i::after { content: ""; position: absolute; inset-inline-end: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

/* -------------------------------------------------------------------- nav */
.nav {
  position: fixed; z-index: 100; top: 14px; inset-inline: 0; margin-inline: auto;
  width: min(calc(100% - 24px), 1180px);
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 14px;
  border-radius: 999px; background: rgb(244 238 227 / .72); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: box-shadow .4s var(--ease), background-color .4s;
}
html[dir="rtl"] .nav { padding: 8px 14px 8px 8px; }
.nav.scrolled { box-shadow: 0 12px 34px -20px rgb(58 60 37 / .5); background: rgb(244 238 227 / .9); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand .tile-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--moss); display: grid; place-items: center; }
.brand .tile-mark svg { width: 25px; }
.brand b { font-size: 19px; font-weight: 850; letter-spacing: -.02em; }
html[lang="en"] .brand b { font-weight: 800; letter-spacing: -.04em; }
.brand small { font-size: 12px; color: var(--muted); font-weight: 600; margin-inline-start: -2px; }
.links { position: relative; display: flex; gap: 2px; margin-inline: auto; }
.links a {
  position: relative; z-index: 1; padding: 9px 15px; border-radius: 999px; text-decoration: none;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: color .25s; line-height: 1.4;
}
.links a:hover { color: var(--ink); }
.links a.on { color: var(--cream); }
.links .thumb {
  position: absolute; z-index: 0; top: 0; bottom: 0; inset-inline-start: 0; width: 0; border-radius: 999px;
  background: var(--olive); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-grid; place-items: center; min-width: 46px; height: 42px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); text-decoration: none; font-size: 13.5px; font-weight: 800; color: var(--ink-2);
  transition: background-color .25s, color .25s;
}
.lang:hover { background: var(--ink); color: var(--cream); }
.lang .fa { font-weight: 800; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer;
  position: relative;
}
.menu-btn i { position: absolute; inset-inline-start: 13px; width: 16px; height: 2px; border-radius: 2px; background: var(--cream); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn i:first-child { top: 16px; } .menu-btn i:last-child { top: 23px; }
.menu-open .menu-btn i:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { top: 20px; transform: rotate(-45deg); }
.sheet {
  position: fixed; z-index: 99; top: 74px; inset-inline: 12px; padding: 12px; border-radius: 26px;
  background: var(--ink); color: var(--cream); display: grid; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top center;
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.menu-open .sheet { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .45s var(--ease); }
.sheet a {
  display: flex; align-items: baseline; gap: 14px; padding: 13px 14px; border-radius: 16px; text-decoration: none;
  font-size: 22px; font-weight: 750;
}
.sheet a:hover { background: rgb(255 255 255 / .06); }
.sheet a span { font-size: 12px; color: var(--yellow); font-weight: 700; }
@media (max-width: 980px) {
  .links, .nav .btn { display: none; }
  .menu-btn { display: block; }
  .nav-end { margin-inline-start: auto; }
}

/* ------------------------------------------------------------- headings */
h1 {
  font-size: clamp(54px, 8.6vw, 136px); line-height: var(--lh-display); letter-spacing: var(--track-display);
  font-weight: 250;
}
html[lang="fa"] h1 { font-weight: 300; }
h1 em, h2 em { font-style: normal; font-weight: 900; color: var(--em, var(--olive)); }
html[lang="en"] h1 em, html[lang="en"] h2 em {
  font-family: var(--accent-font); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--em, var(--olive));
}
h2 {
  font-size: clamp(40px, 6vw, 92px); line-height: var(--lh-display); letter-spacing: var(--track-display);
  font-weight: 300;
}
html[lang="fa"] h2 { line-height: 1.28; }
.lede { font-size: clamp(17px, 1.35vw, 19.5px); color: var(--ink-2); max-width: 46ch; }
.head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); align-items: end;
  gap: 22px clamp(24px, 5vw, 80px); margin-bottom: clamp(36px, 5vw, 64px);
}
.head .side { display: grid; gap: 20px; justify-items: start; padding-bottom: .5em; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }
section { position: relative; padding-top: clamp(96px, 12vw, 170px); }

/* Words that rise in. Only whole words move: Persian letters must stay joined. */
.w { display: inline-block; }
.js [data-split] .w { opacity: 0; transform: translateY(.45em) rotate(1.5deg); filter: blur(8px); }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(118px, 13vw, 168px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero h1 .mchip {
  display: inline-grid; place-items: center; vertical-align: .06em;
  width: 1.32em; height: .74em; margin: 0 .06em; border-radius: 999px; background: var(--olive);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .15), 0 .12em .3em -.1em rgb(58 60 37 / .6);
  transform: rotate(-6deg);
}
.mchip svg { width: .62em; height: .62em; overflow: visible; }
.mchip .arm { transform-origin: 12px 21px; animation: tick 1.36s ease-in-out infinite alternate; }
@keyframes tick { from { transform: rotate(-26deg); } to { transform: rotate(26deg); } }
.hero-row { display: flex; flex-wrap: wrap; gap: 12px; }
.notes { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* The metronome. */
.metro {
  position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 560px; margin-inline: auto;
}
.metro-disc {
  position: absolute; inset: 6% 4% 2%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--sand-soft), rgb(216 195 160 / .55) 62%, transparent 100%);
}
.metro-rings { position: absolute; inset: 0; }
.metro-rings span {
  position: absolute; inset: 14%; border-radius: 50%; border: 1.5px solid rgb(91 94 60 / .18);
}
.metro-rings span:nth-child(2) { inset: 4%; border-style: dashed; border-color: rgb(91 94 60 / .14); }
.metro svg.body { position: absolute; left: 50%; bottom: 13%; width: 70%; transform: translateX(-50%); overflow: visible; filter: drop-shadow(0 30px 40px rgb(58 60 37 / .35)); }

.metro .pulse { transform-origin: center; transform-box: fill-box; }
.word-card {
  position: absolute; z-index: 3; top: 3%; left: 0;
  padding: 14px 18px 12px; border-radius: 20px; background: var(--night); color: var(--app-text);
  box-shadow: var(--shadow-lg); display: grid; gap: 4px; min-width: 150px;
}
html[lang="en"] .word-card { font-family: "Vazirmatn", sans-serif; }
.word-card small { font-size: 11.5px; color: var(--app-faint); font-weight: 600; }
.word-card .syls { display: flex; gap: 6px; font-size: 34px; font-weight: 900; line-height: 1.35; direction: rtl; }
.word-card .syls span { padding: 0 8px; border-radius: 10px; transition: background-color .2s, color .2s; }
.word-card .syls span.on { background: var(--yellow); color: var(--night); }
.word-card .meta { display: flex; gap: 10px; font-size: 12px; color: var(--app-sage); direction: rtl; }
.bpm {
  position: absolute; z-index: 3; bottom: 0; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 10px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 14px;
}
.bpm b { font-size: 24px; font-weight: 900; color: var(--olive); line-height: 1; }
.bpm .lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--sand); transition: background-color .1s; }
.bpm .lamp.on { background: var(--yellow); box-shadow: 0 0 0 6px rgb(255 210 31 / .25); }
.orbit { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.orbit .rw {
  position: absolute; padding: 6px 15px; border-radius: 999px; font-family: "Vazirmatn", sans-serif;
  font-size: clamp(15px, 1.5vw, 19px); font-weight: 800; background: var(--cream); color: var(--olive-3);
  border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; line-height: 1.6;
  opacity: 0; transform: scale(.4);
}
.orbit .rw.hot { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.no-motion .orbit .rw { opacity: 1; transform: none; }

/* --------------------------------------------------------------- marquee */
.marquee { margin-top: clamp(70px, 9vw, 120px); background: var(--olive); color: var(--cream); padding: 20px 0; overflow: hidden; transform: rotate(-1.4deg); width: 104%; margin-inline-start: -2%; }
.marquee.alt { background: var(--sand); color: var(--olive-3); transform: rotate(1.2deg); margin-top: -8px; }
.mq-track { display: flex; width: max-content; animation: mq 46s linear infinite; }
.marquee.alt .mq-track { animation-direction: reverse; animation-duration: 54s; }
.mq-track span { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font: 800 clamp(24px, 3vw, 40px)/1.4 "Vazirmatn", sans-serif; white-space: nowrap; }
.mq-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex: none; }
.marquee.alt .mq-track i { background: var(--olive); }
.mq-track em { font-style: normal; font-weight: 300; opacity: .75; }
@keyframes mq { to { transform: translateX(-50%); } }
html[dir="rtl"] .mq-track { animation-name: mq-rtl; }
@keyframes mq-rtl { to { transform: translateX(50%); } }

/* ----------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 34px);
  background: rgb(255 255 255 / .5); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow .5s var(--ease);
}
.tile:hover { box-shadow: var(--shadow-lg); }
.tile h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 850; line-height: 1.3; letter-spacing: -.02em; }
html[lang="en"] .tile h3 { font-weight: 750; letter-spacing: -.035em; line-height: 1.1; }
.tile p { color: var(--ink-2); font-size: 16px; max-width: 44ch; }
.tile .t-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile .t-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--olive); color: var(--cream);
}
.tile .t-ico svg { width: 22px; height: 22px; }
.tile .t-no { font: 400 14px/1 var(--accent-font); color: var(--muted); }
html[lang="en"] .tile .t-no { font-style: italic; font-size: 20px; }
.tile.night { background: var(--night); color: var(--app-text); border-color: transparent; }
.tile.night p { color: var(--app-sage); }
.tile.night .t-ico { background: var(--olive); }
.tile.olive { background: var(--olive); color: var(--cream); border-color: transparent; }
.tile.olive p { color: rgb(241 235 228 / .8); }
.tile.olive .t-ico { background: var(--cream); color: var(--olive); }
.tile.sand { background: var(--sand); border-color: transparent; }
.tile.sand .t-ico { background: var(--olive-3); }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; } .span-3 { grid-column: span 3; } .span-8 { grid-column: span 8; }
@media (max-width: 980px) {
  .span-7, .span-5, .span-8 { grid-column: span 12; }
  .span-4, .span-6, .span-3 { grid-column: span 6; }
}
@media (max-width: 620px) { .span-4, .span-6, .span-3 { grid-column: span 12; } }

/* Small parts used inside tiles and screens (they copy the app's look). */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--night-2); gap: 2px; align-self: flex-start; }
.seg button {
  border: 0; cursor: pointer; padding: 8px 18px; border-radius: 999px; background: transparent; color: var(--app-sage);
  font: 700 14px/1.4 "Vazirmatn", sans-serif; transition: background-color .3s var(--ease), color .3s;
}
.seg button[aria-pressed="true"] { background: var(--app-sage); color: var(--night); }
.app-field {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; direction: rtl;
  background: var(--night-3); border: 1px solid var(--night-line); border-radius: 16px; padding: 10px 10px 10px 14px;
  font-family: "Vazirmatn", sans-serif;
}
.app-field b { font-size: 22px; font-weight: 800; color: var(--app-text); padding-inline-start: 6px; }
.app-field span { font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 12px; background: var(--app-sage); color: var(--night); }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; direction: rtl; min-height: 96px; align-content: flex-start; }
.rchip {
  padding: 6px 14px; border-radius: 12px; background: var(--night-2); border: 1px solid var(--night-line);
  font: 700 16px/1.6 "Vazirmatn", sans-serif; color: var(--app-text);
}
.rchip.mark { border-color: rgb(255 210 31 / .5); color: var(--yellow); }
.sylrow { display: flex; gap: 8px; direction: rtl; flex-wrap: wrap; }
.sylrow span {
  padding: 4px 14px; border-radius: 12px; border: 1px dashed var(--night-line); color: var(--app-faint);
  font: 800 18px/1.6 "Vazirmatn", sans-serif;
}
.sylrow span.on { border-style: solid; border-color: var(--app-sage); color: var(--app-text); background: rgb(167 170 140 / .14); }
.mini-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-list li { list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 650; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .12);
}
.tile:not(.night):not(.olive) .tag { background: rgb(255 255 255 / .6); border-color: var(--line); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

/* Syllables tile */
.split { display: flex; align-items: center; gap: 12px; direction: rtl; font-family: "Vazirmatn", sans-serif; margin-top: auto; }
.split .whole { font-size: clamp(44px, 5vw, 64px); font-weight: 900; line-height: 1.2; color: var(--olive-3); }
.split .parts { display: flex; gap: 8px; }
.split .parts span {
  font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; line-height: 1.3; padding: 2px 14px; border-radius: 16px;
  background: var(--paper); color: var(--olive); box-shadow: var(--shadow);
}
.split .parts span:nth-child(2) { background: var(--olive); color: var(--cream); }
.split .eq { font-size: 26px; color: var(--muted); }
.ava { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--ink-2); direction: rtl; font-family: "Vazirmatn", sans-serif; }
.ava b { color: var(--olive); }

/* Word bank tile */
.folders { display: grid; gap: 8px; margin-top: auto; direction: rtl; font-family: "Vazirmatn", sans-serif; }
.folder {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px;
  background: rgb(241 235 228 / .1); border: 1px solid rgb(241 235 228 / .14);
}
.folder svg { width: 20px; height: 20px; flex: none; color: var(--yellow); }
.folder b { font-weight: 750; font-size: 15.5px; }
.folder span { margin-inline-start: auto; font-size: 13px; opacity: .7; }

/* Notepad tile (small) */
.mini-note {
  margin-top: auto; padding: 16px 18px; border-radius: 20px; background: var(--night); color: var(--app-text);
  font: 600 17px/2.1 "Vazirmatn", sans-serif; direction: rtl; text-align: right;
}
.mini-note .sep { color: var(--app-sage); padding: 0 6px; }
.pill { padding: 1px 8px; border-radius: 8px; font-weight: 800; white-space: nowrap; }
.pill.g1 { color: var(--g1); background: rgb(95 224 192 / .18); }
.pill.g2 { color: var(--g2); background: rgb(255 193 94 / .18); }
.pill.g3 { color: var(--g3); background: rgb(127 178 255 / .18); }

/* ----------------------------------------------------------------- flow */
.flow-pin { position: relative; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(30px, 6vw, 100px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.steps::before { content: ""; position: absolute; top: 18px; bottom: 18px; inset-inline-start: 23px; width: 2px; background: var(--line); }
.steps .fill { position: absolute; top: 18px; inset-inline-start: 23px; width: 2px; height: 0; background: var(--olive); }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 16px 0; opacity: .42; transition: opacity .5s var(--ease); }
.step.on { opacity: 1; }
.step .n {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--line-2); font-weight: 900; font-size: 17px; transition: all .45s var(--ease);
}
.step.on .n { background: var(--olive); border-color: var(--olive); color: var(--cream); box-shadow: 0 0 0 6px rgb(255 210 31 / .35); }
.step h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 850; line-height: 1.35; }
html[lang="en"] .step h3 { font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.step p { color: var(--ink-2); margin-top: 6px; max-width: 46ch; }

/* The phone that shows each step. */
.phone {
  position: relative; width: min(100%, 360px); aspect-ratio: 9 / 18.6; margin-inline: auto;
  border-radius: 48px; padding: 12px; background: #11120d; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #34362a;
}
.phone .notch { position: absolute; z-index: 4; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; }
.screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--night);
  color: var(--app-text); font-family: "Vazirmatn", sans-serif; direction: rtl; text-align: right;
}
.scr { position: absolute; inset: 0; padding: 64px 20px 20px; display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.scr.on { opacity: 1; transform: none; }
.scr .s-title { font-size: 13px; color: var(--app-faint); font-weight: 700; display: flex; justify-content: space-between; }
.scr h4 { font-size: 30px; font-weight: 900; line-height: 1.35; }
.scr .s-sub { font-size: 13px; color: var(--app-sage); line-height: 1.8; }
.scr .s-btn { margin-top: auto; height: 52px; border-radius: 16px; background: var(--app-sage); color: var(--night); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.scr .s-row { display: flex; gap: 8px; flex-wrap: wrap; }
.scr .sheet-card { margin-top: auto; padding: 16px; border-radius: 22px; background: var(--night-2); display: grid; gap: 8px; }
.scr .sheet-card .opt { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 14px; background: var(--night-3); font-weight: 700; font-size: 14.5px; }
.scr .sheet-card .opt.sel { outline: 1.5px solid var(--app-sage); }
.scr .sheet-card .opt i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--app-faint); }
.scr .sheet-card .opt.sel i { border-color: var(--app-sage); background: radial-gradient(circle, var(--app-sage) 45%, transparent 50%); }
.scr .note-text { font-size: 15.5px; line-height: 2.2; font-weight: 600; }
.scr .dock { margin-top: auto; padding: 12px; border-radius: 18px; background: var(--night-2); display: grid; gap: 8px; }
.scr .dock small { font-size: 12px; color: var(--app-faint); font-weight: 700; }
.toast { align-self: center; padding: 8px 14px; border-radius: 12px; background: var(--olive); color: var(--cream); font-size: 12.5px; font-weight: 700; }
@media (max-width: 900px) {
  .flow-grid { grid-template-columns: 1fr; }
  .flow-phone { order: -1; }
  .phone { width: min(78vw, 320px); }
}

/* -------------------------------------------------------------- notepad */
.np-sec { margin-top: clamp(96px, 12vw, 170px); padding: clamp(80px, 10vw, 140px) 0; background: var(--night); color: var(--app-text); border-radius: clamp(28px, 4vw, 56px); }
.np-sec + section { padding-top: clamp(80px, 10vw, 140px); }
.np-sec { --em: var(--sand); }
.np-sec .lede { color: var(--app-sage); }
.np-sec .kicker { color: var(--app-sage); }
.np-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 18px; }
@media (max-width: 980px) { .np-grid { grid-template-columns: 1fr; } }
.editor { border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--night-line); overflow: hidden; display: flex; flex-direction: column; min-height: 440px; }
.ed-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--night-line); direction: rtl; font-family: "Vazirmatn", sans-serif; flex-wrap: wrap; }
.ed-bar .gchip { padding: 4px 12px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.ed-bar .gchip.g1 { color: var(--g1); background: rgb(95 224 192 / .16); }
.ed-bar .gchip.g2 { color: var(--g2); background: rgb(255 193 94 / .16); }
.ed-bar .gchip.new { color: var(--app-sage); border: 1px dashed var(--night-line); }
.ed-bar .count { margin-inline-start: auto; font-size: 12.5px; color: var(--app-faint); font-weight: 700; }
html[dir="ltr"] .ed-bar .count { margin-inline-start: 0; margin-right: auto; }
.ed-body {
  flex: 1; padding: 26px clamp(18px, 3vw, 34px); font: 600 clamp(19px, 2vw, 25px)/2.15 "Vazirmatn", sans-serif;
  direction: rtl; text-align: right; color: var(--app-text); white-space: pre-wrap;
}
.ed-body .mk { color: var(--app-sage); }
.ed-body .slash { color: var(--yellow); font-weight: 800; padding: 0 4px; }
.ed-body .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--yellow); vertical-align: -.18em; margin: 0 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ed-body .pill { transition: background-color .4s, color .4s; }
.ed-dock { border-top: 1px solid var(--night-line); padding: 14px 18px; display: grid; gap: 10px; direction: rtl; font-family: "Vazirmatn", sans-serif; transition: opacity .4s, transform .5s var(--ease); }
.ed-dock.hide { opacity: 0; transform: translateY(10px); }
.ed-dock small { font-size: 12.5px; font-weight: 700; color: var(--app-faint); }
.np-side { display: grid; gap: 18px; align-content: start; }
.card-d { border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--night-line); padding: 24px; display: grid; gap: 14px; }
.card-d h3 { font-size: 21px; font-weight: 850; line-height: 1.4; }
html[lang="en"] .card-d h3 { font-weight: 750; letter-spacing: -.02em; }
.card-d p { color: var(--app-sage); font-size: 15.5px; }
.keys { display: grid; gap: 10px; }
.key { display: flex; align-items: center; gap: 12px; font-size: 15px; }
kbd {
  display: inline-grid; place-items: center; min-width: 40px; height: 38px; padding: 0 10px; border-radius: 10px;
  background: var(--night-3); border: 1px solid var(--night-line); box-shadow: 0 3px 0 #111;
  font: 800 18px/1 "Vazirmatn", sans-serif; color: var(--yellow); direction: rtl;
}
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.palette i { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font: 800 12px/1 "Vazirmatn", sans-serif; color: var(--night); }

/* --------------------------------------------------------------- promise */
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .promise { grid-template-columns: 1fr; } }
.pcard { border-radius: var(--r-lg); padding: 30px; background: rgb(255 255 255 / .5); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.pcard .big { font: 900 clamp(46px, 5vw, 68px)/1 var(--display); color: var(--olive); }
html[lang="en"] .pcard .big { font: italic 400 clamp(56px, 6vw, 84px)/.9 var(--accent-font); }
.pcard h3 { font-size: 22px; font-weight: 850; line-height: 1.4; }
html[lang="en"] .pcard h3 { font-weight: 750; letter-spacing: -.02em; }
.pcard p { color: var(--ink-2); font-size: 16px; }

/* ------------------------------------------------------------------- get */
.get { margin-top: clamp(96px, 12vw, 170px); }
.get-box {
  position: relative; overflow: hidden; border-radius: clamp(28px, 4vw, 56px); background: var(--olive); color: var(--cream);
  padding: clamp(40px, 7vw, 100px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end;
}
.get-box { --em: var(--sand); }
.get-box .lede { color: rgb(241 235 228 / .8); margin-top: 20px; }
.get-box .bigmark { position: absolute; inset-inline-end: -4%; top: -14%; width: 52%; opacity: .1; pointer-events: none; }
.stores { display: grid; gap: 12px; position: relative; }
.store {
  display: flex; align-items: center; gap: 14px; min-width: 230px; padding: 12px 18px; border-radius: 18px;
  background: var(--cream); color: var(--olive-3); text-decoration: none; transition: transform .35s var(--ease);
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 650; opacity: .7; line-height: 1.3; }
.store b { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }
.store .soon { margin-inline-start: auto; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
@media (max-width: 860px) { .get-box { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
footer { margin-top: clamp(80px, 10vw, 140px); padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-grid h4 { font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 12px; }
html[lang="en"] .foot-grid h4 { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { text-decoration: none; font-weight: 600; color: var(--ink-2); transition: color .2s; }
.foot-grid a:hover { color: var(--olive); }
.foot-brand p { color: var(--muted); font-size: 15px; max-width: 34ch; margin-top: 14px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; } }
.wordmark { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); padding: clamp(30px, 5vw, 60px) 0 10px; color: var(--olive); }
.wordmark .lg { width: clamp(90px, 16vw, 230px); flex: none; }
.wordmark .lg path { fill: var(--olive); }
.wordmark b { font: 900 clamp(80px, 19vw, 280px)/1 var(--display); letter-spacing: -.04em; }
html[lang="en"] .wordmark b { font-weight: 800; letter-spacing: -.07em; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 14px; padding-top: 18px; }
.foot-bottom a { text-decoration: none; }

/* ------------------------------------------------------------ doc pages */
.doc-hero { padding-top: clamp(120px, 13vw, 170px); }
.doc-hero .box {
  position: relative; overflow: hidden; border-radius: clamp(28px, 4vw, 48px); background: var(--olive); color: var(--cream);
  padding: clamp(36px, 6vw, 80px);
}
.doc-hero.sand .box { background: var(--sand); color: var(--ink); }
.doc-hero h1 { font-size: clamp(44px, 7vw, 104px); }
.doc-hero .box { --em: var(--sand); }
.doc-hero.sand .box { --em: var(--olive); }
.doc-hero .lede { color: rgb(241 235 228 / .82); margin-top: 22px; max-width: 54ch; }
.doc-hero.sand .lede { color: var(--ink-2); }
.doc-hero .kicker { color: var(--yellow); }
.doc-hero.sand .kicker { color: var(--olive); }
.doc-hero .meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-hero .meta .chip { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .18); color: var(--cream); }
.doc-hero.sand .meta .chip { background: rgb(255 255 255 / .5); border-color: var(--line); color: var(--ink-2); }
.doc-hero .bigmark { position: absolute; inset-inline-end: -3%; bottom: -18%; width: 40%; opacity: .1; pointer-events: none; }
.doc-hero.sand .bigmark path { fill: var(--olive); }

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); padding-top: clamp(50px, 7vw, 90px); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static !important; } }
.toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 2px; }
.toc b { font-size: 13px; color: var(--muted); font-weight: 800; margin-bottom: 8px; }
.toc a { text-decoration: none; padding: 7px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); border-inline-start: 2px solid var(--line); transition: all .25s; line-height: 1.5; }
.toc a:hover { color: var(--ink); background: rgb(255 255 255 / .5); }
.toc a.on { color: var(--olive); border-color: var(--olive); background: rgb(255 255 255 / .55); font-weight: 750; }
.prose { max-width: 72ch; }
.prose section { padding-top: 0; margin-bottom: clamp(44px, 5vw, 64px); scroll-margin-top: 100px; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 850; line-height: 1.35; margin-bottom: 16px; letter-spacing: -.015em; }
html[lang="en"] .prose h2 { font-weight: 750; letter-spacing: -.035em; line-height: 1.1; }
.prose h2 .sn { display: inline-block; min-width: 1.6em; color: var(--sand-2); font-weight: 900; }
.prose h3 { font-size: 20px; font-weight: 800; margin: 26px 0 8px; line-height: 1.45; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
html[lang="fa"] .prose ol { list-style: persian; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 12px 0; display: grid; gap: 8px; }
.prose li::marker { color: var(--olive); }
.prose a { color: var(--olive); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose strong { color: var(--ink); }
.callout {
  margin: 18px 0; padding: 18px 20px; border-radius: 20px; background: rgb(255 255 255 / .55); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--yellow); display: grid; gap: 6px;
}
.callout b { color: var(--ink); }
.callout.olive { background: var(--olive); color: var(--cream); border-color: var(--olive); border-inline-start-color: var(--yellow); }
.callout.olive p, .callout.olive b, .callout.olive li { color: var(--cream); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 15.5px; }
.table th, .table td { padding: 12px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table th { background: rgb(255 255 255 / .55); font-weight: 800; font-size: 13.5px; color: var(--muted); }
.table td:first-child { font-weight: 750; color: var(--ink); white-space: nowrap; }

/* How-to page */
.howto { display: grid; gap: clamp(20px, 3vw, 30px); }
.gcard { border-radius: var(--r-lg); background: rgb(255 255 255 / .5); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(20px, 4vw, 50px); scroll-margin-top: 100px; }
@media (max-width: 860px) { .gcard { grid-template-columns: 1fr; } }
.gcard h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 850; line-height: 1.3; }
html[lang="en"] .gcard h2 { font-weight: 750; letter-spacing: -.04em; line-height: 1.05; }
.gcard .intro { color: var(--ink-2); margin-top: 10px; }
.gsteps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.gsteps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.gsteps li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--olive); color: var(--cream); font-weight: 900; font-size: 15px; line-height: 1;
}
html[lang="fa"] .gsteps li::before { content: counter(s, persian); }
.gsteps b { color: var(--ink); }
.gcard .ill { border-radius: 26px; background: var(--night); color: var(--app-text); padding: 20px; display: flex; flex-direction: column; gap: 12px; align-self: start; font-family: "Vazirmatn", sans-serif; direction: rtl; text-align: right; }
.gcard .ill .s-title { font-size: 12.5px; color: var(--app-faint); font-weight: 700; }
.gcard .ill h4 { font-size: 24px; font-weight: 900; line-height: 1.4; }
.tip { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--sand-soft); color: var(--ink-2); font-size: 15.5px; }
.tip i { width: 10px; height: 10px; margin-top: .65em; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgb(255 210 31 / .3); flex: none; }
.ktable { display: grid; gap: 10px; margin-top: 18px; }
.ktable div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgb(255 255 255 / .55); border: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
.ktable kbd { background: var(--night); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: rgb(255 255 255 / .5); border: 1px solid var(--line); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 800; font-size: 17.5px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--olive); transition: transform .35s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--ink-2); }

/* -------------------------------------------------------------- reveals */
.js [data-rv] { opacity: 0; transform: translateY(34px); }
.no-motion [data-rv], .no-motion [data-split] .w { opacity: 1 !important; transform: none !important; filter: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mq-track { animation: none !important; }
}
@media print {
  .nav, .sheet, .beatline, footer .wordmark, .marquee { display: none !important; }
  body::before { display: none; }
}

/* Phones: keep the rhyme words around the metronome inside the screen. */
@media (max-width: 620px) {
  .orbit .rw { font-size: 14px; padding: 4px 11px; }
  .orbit .rw[style*="left:-"] { left: 0 !important; }
  .orbit .rw[style*="right:-"] { right: 0 !important; }
  .word-card { min-width: 0; padding: 10px 12px; }
  .word-card .syls { font-size: 26px; }
  .bpm { padding: 8px 10px; font-size: 12px; }
  .bpm b { font-size: 19px; }
}

/* ======================================================= v2 additions */
@font-face {
  font-family: "Nastaliq"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/noto-nastaliq-urdu-arabic-wght-normal.woff2") format("woff2-variations");
}

/* Scroll progress: a thin yellow line at the very top. */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 130; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%; background: var(--yellow); }
html[dir="rtl"] .progress { transform-origin: 100% 50%; }

/* Count-in intro: the logo rises, then four beats, then the page opens. */
.intro-ov { display: none; }
html.intro .intro-ov {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; background: var(--moss); color: var(--cream);
}
html.intro body { overflow: hidden; }
.intro-in { display: grid; justify-items: center; gap: 34px; }
.intro-logo { width: min(34vw, 220px); }
.intro-beats { display: flex; gap: 18px; direction: ltr; }
html[dir="rtl"] .intro-beats { direction: rtl; }
.intro-beats i {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 18px/1 var(--font); font-style: normal;
  border: 1.5px solid rgb(241 235 228 / .3); color: rgb(241 235 228 / .55); transition: background-color .12s, border-color .12s, color .12s, scale .12s;
}
.intro-beats i.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); scale: 1.12; }

/* Hero metronome controls. */
.bpm { gap: 8px; padding: 8px 10px 8px 12px; }
.bpm .tb {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .6);
  font: 800 17px/1 var(--font); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: background-color .2s, transform .2s var(--spring);
}
.bpm .tb:hover { background: var(--olive); color: var(--cream); }
.bpm .tb:active { transform: scale(.9); }
.bpm b { min-width: 2.2ch; text-align: center; }
.bpm .bpm-l { font-size: 12.5px; color: var(--muted); font-weight: 650; max-width: 7ch; line-height: 1.3; }
.bpm .snd svg { width: 18px; height: 18px; }
.bpm .snd .w1, .bpm .snd .w2 { display: none; }
.bpm .snd[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.bpm .snd[aria-pressed="true"] .w1, .bpm .snd[aria-pressed="true"] .w2 { display: inline; }
.bpm .snd[aria-pressed="true"] .x { display: none; }
.metro-rings span.beat-ring { inset: 30%; border: 2px solid rgb(255 210 31 / .55); opacity: 0; }
@media (max-width: 620px) { .bpm .bpm-l { display: none; } }

/* The band of numbers. */
.numbers { margin-top: clamp(60px, 8vw, 110px); }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.nm { padding: clamp(24px, 3vw, 40px) clamp(14px, 2vw, 28px); display: grid; gap: 8px; border-inline-start: 1px solid var(--line); }
.nm:first-child { border-inline-start: 0; }
.nm b { font: 900 clamp(54px, 6.5vw, 104px)/1 var(--display); color: var(--olive); letter-spacing: -.03em; }
html[lang="en"] .nm b { font: italic 400 clamp(64px, 7.5vw, 120px)/.9 var(--accent-font); }
.nm span { color: var(--ink-2); font-weight: 600; font-size: 15.5px; max-width: 22ch; line-height: 1.6; }
@media (max-width: 760px) { .nums { grid-template-columns: 1fr 1fr; } .nm:nth-child(3) { border-inline-start: 0; } .nm:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Try it. */
.try { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; }
@media (max-width: 900px) { .try { grid-template-columns: 1fr; } }
.try-pick {
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); background: var(--sand); display: flex; flex-direction: column; gap: 18px;
}
.try-lbl { font-weight: 800; font-size: 14px; color: var(--olive-3); }
.try-words { display: flex; flex-wrap: wrap; gap: 8px; direction: rtl; justify-content: flex-start; }
html[dir="ltr"] .try-words { justify-content: flex-end; }
.tw {
  border: 1.5px solid rgb(58 60 37 / .25); background: rgb(255 255 255 / .45); color: var(--olive-3); cursor: pointer;
  font: 800 19px/1.5 "Vazirmatn", sans-serif; padding: 6px 18px; border-radius: 999px; transition: all .25s var(--ease);
}
.tw:hover { background: rgb(255 255 255 / .8); transform: translateY(-2px); }
.tw.on { background: var(--olive-3); border-color: var(--olive-3); color: var(--cream); }
.try-word {
  border-radius: 24px; background: var(--paper); padding: 22px 24px; display: grid; gap: 12px; direction: rtl; text-align: right;
  box-shadow: var(--shadow); font-family: "Vazirmatn", sans-serif;
}
.tw-big { font-size: clamp(54px, 6vw, 84px); font-weight: 900; line-height: 1.25; color: var(--olive-3); }
.try-word .sylrow span { border-color: var(--line-2); color: var(--muted); }
.try-word .sylrow span.on { border-color: var(--olive); color: var(--olive-3); background: rgb(91 94 60 / .1); }
.tw-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); font-weight: 600; }
.tw-meta b { color: var(--olive-3); }
.try-seg { background: var(--olive-3); }
.try-seg button { color: rgb(241 235 228 / .7); }
.try-seg button[aria-pressed="true"] { background: var(--cream); color: var(--olive-3); }
.try-mode-note { font-size: 14.5px; color: var(--olive-3); font-weight: 600; }
.try-out {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--night); color: var(--app-text);
  padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 20px; min-height: 440px;
}
.to-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.to-title { font: 850 clamp(22px, 2.2vw, 30px)/1.4 var(--display); }
html[lang="en"] .to-title { font-weight: 750; letter-spacing: -.02em; }
.to-count { font-size: 13.5px; color: var(--app-faint); font-weight: 700; }
.to-chips { display: flex; flex-wrap: wrap; gap: 10px; direction: rtl; align-content: flex-start; flex: 1; }
.to-chips .rchip { cursor: pointer; font-size: 19px; padding: 9px 18px; border-radius: 14px; transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--spring); }
.to-chips .rchip:hover { border-color: var(--app-sage); transform: translateY(-2px); }
.to-chips .rchip.saved { background: rgb(167 170 140 / .16); border-color: var(--app-sage); color: var(--app-sage); }
.to-chips .rchip.saved::after { content: " ✓"; font-size: .8em; }
.to-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--night-line); padding-top: 16px; }
.bank { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--night-line); font-weight: 700; font-size: 14.5px; }
.bank svg { width: 20px; height: 20px; color: var(--yellow); }
.bank b { min-width: 1.6ch; text-align: center; color: var(--yellow); font-size: 18px; }
.bank.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.12); } }
.to-hint { font-size: 13.5px; color: var(--app-faint); font-weight: 600; }
.to-toast {
  position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 10px 16px; border-radius: 14px; background: var(--olive); color: var(--cream); font: 700 14px/1.5 var(--font);
  transition: opacity .3s, transform .4s var(--ease);
}
.to-toast.on { opacity: 1; transform: translate(-50%, 0); }
.flyer { position: fixed; z-index: 150; pointer-events: none; margin: 0; }
.try-foot { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* The poem. */
.poem {
  position: relative; overflow: hidden; border-radius: clamp(28px, 4vw, 56px); background: var(--sand);
  padding: clamp(34px, 6vw, 90px); display: grid; gap: clamp(26px, 4vw, 48px);
}
.poem::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(to bottom, transparent 0 46px, rgb(58 60 37 / .08) 46px 47px);
}
.poem-head { position: relative; }
.bayt { position: relative; margin: 0; display: grid; gap: clamp(4px, 1vw, 14px); font-family: "Nastaliq", "Vazirmatn", serif; color: var(--olive-3); }
.misra { font-size: clamp(30px, 4.6vw, 70px); line-height: 2.05; font-weight: 500; text-align: right; }
.misra:nth-child(2) { text-align: left; padding-inline-end: 0; }
.bayt .q, .bayt .r { position: relative; padding: 0 .12em; border-radius: .25em; transition: background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease); }
.bayt.lit .q { color: #1f6e5d; box-shadow: inset 0 -.1em 0 #2fa98f; }
.bayt.lit .r { color: var(--olive-3); box-shadow: inset 0 -.1em 0 var(--yellow); }
.no-motion .bayt .q { color: #1f6e5d; box-shadow: inset 0 -.1em 0 #2fa98f; }
.no-motion .bayt .r { box-shadow: inset 0 -.1em 0 var(--yellow); }
.bayt figcaption { font: 700 15px/1 var(--font); color: var(--olive); margin-top: 8px; text-align: left; }
html[dir="ltr"] .bayt figcaption { text-align: left; }
.poem .trans { position: relative; color: var(--olive-3); font-size: 18px; max-width: 70ch; margin-top: -12px; }
.poem .trans i { font-family: var(--accent-font); font-size: 22px; }
.legend { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .legend { grid-template-columns: 1fr; } .misra:nth-child(2) { text-align: right; } }
.lg-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: rgb(255 255 255 / .45); }
.lg-item b { font-weight: 850; font-size: 17px; }
.lg-item p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.sw { width: 14px; height: 14px; border-radius: 5px; flex: none; margin-top: .45em; }
.sw.q { background: #2fa98f; } .sw.r { background: var(--yellow); } .sw.n { background: var(--olive); }

/* Phone status bar, like a real screen. */
.screen::before {
  content: "9:41"; position: absolute; z-index: 3; top: 20px; left: 30px; font: 700 13px/1 "Manrope", sans-serif; color: var(--app-text); direction: ltr;
}
.screen::after {
  content: ""; position: absolute; z-index: 3; top: 21px; right: 28px; width: 42px; height: 11px; border-radius: 3px;
  background: linear-gradient(90deg, var(--app-text) 0 62%, transparent 62%); outline: 1px solid rgb(235 228 218 / .5); outline-offset: 1.5px; opacity: .85;
}

/* A soft light that follows the pointer on the dark notepad part. */
.np-sec { position: relative; overflow: hidden; }
.np-sec::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgb(216 195 160 / .09), transparent 60%);
}
.np-sec:hover::before { opacity: 1; }
.np-sec > .wrap { position: relative; }
@media (max-width: 620px) {
  .poem { padding: 30px 20px; }
  .misra { font-size: 5.6vw; white-space: nowrap; line-height: 2.3; }
}


/* ======================================================= v3: own type, 3D metronome */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-full-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/fraunces-latin-full-italic.woff2") format("woff2-variations");
}
html[lang="fa"] { --display: "Vazirmatn", sans-serif; --accent-font: "Nastaliq", "Vazirmatn", serif; --lh-display: 1.34; --track-display: -.025em; }
html[lang="en"] { --display: "Fraunces", Georgia, serif; --accent-font: "Fraunces", Georgia, serif; --lh-display: 1.02; --track-display: -.035em; }

/* Headings: strong and warm, not thin. */
h1, h2 { font-weight: 800; }
html[lang="fa"] h1, html[lang="fa"] h2 { font-weight: 850; }
html[lang="en"] h1, html[lang="en"] h2 { font-weight: 600; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0; }
h1 { font-size: clamp(50px, 7.4vw, 120px); }
h2 { font-size: clamp(38px, 5.2vw, 80px); }
html[lang="fa"] h2 { line-height: 1.38; }
/* Accent words: Nastaliq in Persian, soft italic serif in English. */
html[lang="fa"] h1 em, html[lang="fa"] h2 em {
  font-family: "Nastaliq", "Vazirmatn", serif; font-weight: 600; font-size: .96em; letter-spacing: 0;
  display: inline-block; line-height: 1; transform: translateY(.1em); margin-inline-start: .14em;
}
html[lang="en"] h1 em, html[lang="en"] h2 em {
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
html[lang="en"] .tile h3, html[lang="en"] .step h3, html[lang="en"] .card-d h3, html[lang="en"] .pcard h3,
html[lang="en"] .prose h2, html[lang="en"] .gcard h2, html[lang="en"] .to-title {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.02em; font-variation-settings: "opsz" 72, "SOFT" 100;
}
html[lang="en"] .nm b, html[lang="en"] .pcard .big { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
html[lang="en"] .wordmark b { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.05em; font-variation-settings: "opsz" 144, "SOFT" 100; }
html[lang="fa"] .wordmark b { font-family: "Nastaliq", "Vazirmatn", serif; font-weight: 600; letter-spacing: 0; line-height: 1.6; font-size: clamp(70px, 14vw, 210px); }
html[lang="fa"] .pcard .big { font-family: "Nastaliq", "Vazirmatn", serif; font-weight: 600; line-height: 1.5; }
html[lang="en"] .kicker { text-transform: none; letter-spacing: 0; font-size: 14.5px; }
.tile .t-no { font-family: var(--font); font-style: normal; }
html[lang="en"] .tile .t-no { font: italic 400 22px/1 "Fraunces", Georgia, serif; }
html[lang="en"] .poem .trans i { font-family: "Fraunces", Georgia, serif; font-size: 21px; }
html[lang="en"] .brand b { font-family: "Fraunces", Georgia, serif; font-weight: 650; letter-spacing: -.02em; font-variation-settings: "opsz" 48, "SOFT" 100; }
html[lang="en"] .sheet a { font-family: "Fraunces", Georgia, serif; font-weight: 600; }

/* The metronome scene: an arch (the shape of the logo's "h") behind a 3D metronome. */
.hero-grid { perspective: 1600px; }
.metro { transform-style: preserve-3d; aspect-ratio: 1 / 1.12; }
.metro .arch {
  position: absolute; left: 12%; right: 12%; top: 3%; bottom: 11%; border-radius: 999px 999px 26px 26px;
  background:
    radial-gradient(120% 70% at 30% 18%, rgb(255 255 255 / .45), transparent 60%),
    linear-gradient(180deg, #e7d8bc 0%, #d8c3a0 62%, #c9ae82 100%);
  box-shadow: inset 0 0 0 1.5px rgb(91 94 60 / .14), inset 0 -60px 80px -40px rgb(91 94 60 / .35), 0 40px 80px -50px rgb(58 60 37 / .6);
  transform: translateZ(-60px);
}
.metro .arch::before {
  content: ""; position: absolute; inset: 18px 18px 0; border-radius: 999px 999px 0 0;
  border: 1.5px dashed rgb(91 94 60 / .22); border-bottom: 0;
}
.metro .arch::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 17%; border-radius: 0 0 26px 26px;
  background: linear-gradient(180deg, #c3a87a, #b39565);
}
.metro svg.body { bottom: 8%; width: 66%; filter: none; transform: translateX(-50%) translateZ(10px); }
.metro-rings { transform: translateZ(-20px); }
.metro-rings span.beat-ring { inset: 26% 30% 40%; border-radius: 50%; }
.metro .orbit { transform: translateZ(70px); }
.metro .word-card { transform: translateZ(110px); top: 4%; left: 2%; }
.metro .bpm { transform: translateX(-50%) translateZ(90px); bottom: -2%; }
.orbit .rw { box-shadow: 0 10px 24px -12px rgb(58 60 37 / .55); }
.metro .bpm { white-space: normal; }
.bpm .bpm-l { white-space: nowrap; max-width: none; }
html[lang="fa"] h1 { line-height: 1.5; }
html[lang="fa"] h1 em { font-size: .88em; }

/* ======================================================= v4: Rhymo's own layout */

/* Nav: a plain full-width bar. The section on screen gets a yellow beat dot. */
.nav {
  top: 0; width: 100%; margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid transparent;
  padding: 14px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[dir="rtl"] .nav { padding: 14px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.nav.scrolled { background: rgb(244 238 227 / .88); border-bottom-color: var(--line); box-shadow: none; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.links { gap: 6px; }
.links .thumb { display: none; }
.links a { padding: 8px 12px 12px; border-radius: 0; color: var(--ink-2); }
.links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 3px rgb(255 210 31 / .25); transform: translateX(-50%) scale(0); transition: transform .35s var(--spring);
}
.links a.on { color: var(--ink); }
.links a.on::after, .links a:hover::after { transform: translateX(-50%) scale(1); }
.lang { border-radius: 12px; }
.menu-btn { border-radius: 12px; }
.sheet { top: 68px; border-radius: 22px; }

/* Buttons: like the app's buttons (rounded rectangles that press like keys). */
.btn { border-radius: 16px; min-height: 54px; border-width: 1.5px; }
.btn::after { display: none; }
.btn.olive { box-shadow: inset 0 -3px 0 rgb(0 0 0 / .2); }
.btn.olive:hover { box-shadow: inset 0 -3px 0 rgb(0 0 0 / .2), 0 14px 26px -16px rgb(58 60 37 / .7); }
.btn:not(.olive):not(.ink):not(.sand) { background: transparent; border-color: var(--olive); color: var(--olive-3); }
.btn:not(.olive):not(.ink):not(.sand):hover { background: rgb(91 94 60 / .08); }
.btn.sand { box-shadow: inset 0 -3px 0 rgb(0 0 0 / .12); }
.nav .btn { min-height: 42px; border-radius: 12px; }
.chip { border-radius: 12px; }

/* Section heads: kicker with poetry beat marks, heading, text below it,
   and a big section number on the other side. */
main { counter-reset: sec; }
.head { display: block; position: relative; counter-increment: sec; padding-inline-end: clamp(70px, 14vw, 220px); }
.head > div:first-child { max-width: 920px; }
.head .side { padding: 0; margin-top: 22px; }
.head .side .lede { max-width: 58ch; }
.head::after {
  content: counter(sec, persian); position: absolute; inset-inline-end: 0; top: -.2em; pointer-events: none;
  font: 600 clamp(90px, 13vw, 200px)/1.4 "Nastaliq", "Vazirmatn", serif; color: var(--sand); opacity: .75;
}
html[lang="en"] .head::after { content: counter(sec, decimal-leading-zero); font: italic 400 clamp(80px, 11vw, 170px)/1 "Fraunces", Georgia, serif; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; top: 0; }
.np-sec .head::after { color: var(--olive); opacity: .55; }
.kicker i { display: none; }
.kicker::before { content: "–  ∪  –"; white-space: pre; letter-spacing: .08em; color: var(--sand-2); font: 900 15px/1 "Manrope", sans-serif; }
.np-sec .kicker::before, .get-box .kicker::before, .doc-hero .kicker::before { color: var(--yellow); }

/* Hero: a small tag with a ticking pendulum. */
.hero-tag { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; color: var(--olive); }
.hero-tag .tick { position: relative; width: 2.5px; height: 22px; border-radius: 2px; background: var(--olive); transform-origin: 50% 100%; animation: tick 1.36s ease-in-out infinite alternate; }
.hero-tag .tick::before { content: ""; position: absolute; left: 50%; top: 5px; width: 9px; height: 6px; border-radius: 2px; background: var(--yellow); transform: translateX(-50%); }

/* Hero title, scanned like a line of verse: a beat mark under every syllable.
   Only the color changes on a beat, so Persian letters stay joined. */
.scan { font-size: clamp(60px, 8.4vw, 138px); letter-spacing: -.02em; margin: 6px 0 10px; }
html[lang="fa"] .scan { font-weight: 900; line-height: 1.55; }
html[lang="en"] .scan { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.22; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0; }
.scan .ln { display: block; }
.scan .ln + .ln { color: var(--olive); }
html[lang="en"] .scan .ln + .ln { font-style: italic; font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.sy { position: relative; transition: color .18s; }
.sy::after {
  content: attr(data-m); position: absolute; left: 50%; bottom: -.08em; transform: translateX(-50%);
  font: 900 .19em/1 "Manrope", sans-serif; font-style: normal; color: var(--sand-2); padding: .14em .4em; border-radius: .4em;
  transition: background-color .18s, color .18s;
}
html[lang="en"] .sy::after { bottom: -.2em; }
.sy[data-m=""]::after { display: none; }
.sy[data-m=""] { color: var(--yellow); }
.scan .ln:first-child .sy.on { color: var(--olive); }
.scan .ln + .ln .sy.on { color: var(--ink); }
.sy.on::after { background: var(--yellow); color: var(--ink); }
.scan-key { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.scan-key b { color: var(--olive); font: 900 15px/1 "Manrope", sans-serif; margin-inline-end: 4px; }
.scan-key .sk-beat::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-inline-end: 8px; vertical-align: .1em; }

/* The three facts under the buttons, written as a line with slashes, like the notepad. */
.verse-line { font-size: 15px; font-weight: 600; color: var(--ink-2); line-height: 2; }
.verse-line i { font-style: normal; font-weight: 900; color: #d9a900; padding: 0 .35em; }
.hero-copy { gap: 24px; }
.scan .ln { display: table; position: relative; padding-bottom: .12em; }
html[dir="rtl"] .scan .ln { margin-inline-start: 0; }
.scan .ln::before {
  content: ""; position: absolute; inset-inline: 0; bottom: .03em; height: 1.5px;
  background: repeating-linear-gradient(90deg, rgb(91 94 60 / .28) 0 5px, transparent 5px 11px);
}
.sy::after { font-size: .22em; color: var(--olive); background: var(--paper); bottom: -.06em; }
html[lang="en"] .sy::after { bottom: -.1em; }
.scan .ln { display: block; width: fit-content; }

/* ======================================================= v5: two vibes (poetry / rap) */

@font-face { font-family: "Lalezar"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/lalezar-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Lalezar"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/lalezar-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/anton-latin-400-normal.woff2") format("woff2"); }

/* The switch in the nav and the big one in the hero. */
.vibe { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; border: 1px solid var(--line-2); }
.vibe button {
  border: 0; cursor: pointer; background: transparent; color: var(--ink-2); padding: 7px 12px; border-radius: 9px;
  font: 750 13.5px/1.3 var(--font); transition: background-color .3s, color .3s;
}
.vibe button[aria-pressed="true"] { background: var(--olive); color: var(--cream); }
.vibe-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 520px); }
.vibe-big button {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; cursor: pointer; text-align: start;
  border: 1.5px solid var(--line-2); background: transparent; color: var(--ink); font-family: var(--font);
  transition: border-color .3s, background-color .3s, transform .3s var(--spring);
}
.vibe-big button:hover { transform: translateY(-2px); }
.vibe-big .vb-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--sand-soft); color: var(--olive-3); }
.vibe-big .vb-ico svg { width: 22px; height: 22px; }
.vibe-big b { display: block; font-size: 17px; font-weight: 850; line-height: 1.3; }
.vibe-big small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.4; }
.vibe-big button[aria-pressed="true"] { border-color: var(--olive); background: rgb(255 255 255 / .5); }
.vibe-big button[aria-pressed="true"] .vb-ico { background: var(--olive); color: var(--cream); }
@media (max-width: 560px) { .vibe button { padding: 6px 9px; font-size: 12.5px; } .nav .brand b { font-size: 16px; } }

/* A full-screen band that passes once when the vibe changes. */
.vibe-wipe { position: fixed; inset: 0; z-index: 250; pointer-events: none; transform: scaleY(0); transform-origin: 50% 100%; background: var(--sand); }
.vibe-wipe.to-rap { background: var(--yellow); }
html.vibe-anim body, html.vibe-anim .tile, html.vibe-anim .pcard, html.vibe-anim .nav { transition: background-color .45s, color .45s, border-color .45s; }

/* ---- the rap theme ---- */
html .rap-zone {
  background: var(--paper); color: var(--ink);
  --paper: #141511; --paper-2: #1c1d17; --sand-soft: #2a2b21;
  --ink: #f1ebe4; --ink-2: #d2c9b8; --muted: #9c987f; --line: rgb(241 235 228 / .1); --line-2: rgb(241 235 228 / .22);
  --olive: #a8ad74; --em: var(--yellow);
  color-scheme: dark;
}
html .rap-zone body::before { mix-blend-mode: overlay; opacity: .35; }
html .rap-zone ::selection { background: var(--yellow); color: #141511; }
/* Rap headings: Lalezar for Persian, Anton for English. Accent words sit on a yellow sticker. */
html .rap-zone h1, html .rap-zone h2 { font-family: "Lalezar", "Vazirmatn", sans-serif; font-weight: 400; letter-spacing: 0; font-synthesis: none; }
html[lang="en"] .rap-zone h1, html[lang="en"] .rap-zone h2 { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; letter-spacing: .005em; line-height: 1.02; font-variation-settings: normal; }
html[lang="fa"] .rap-zone h2 { line-height: 1.45; }
html .rap-zone h1 em, html .rap-zone h2 em {
  font-family: inherit; font-style: normal; font-weight: 400; font-size: 1em; font-variation-settings: normal;
  display: inline-block; line-height: 1.15; padding: 0 .16em; margin-inline-start: .1em; border-radius: .08em;
  background: var(--yellow); color: #141511; transform: rotate(-2deg); box-shadow: .06em .06em 0 #000;
}
html .rap-zone .tile h3, html .rap-zone .step h3, html .rap-zone .card-d h3, html .rap-zone .pcard h3,
html .rap-zone .prose h2, html .rap-zone .gcard h2, html .rap-zone .to-title {
  font-family: "Lalezar", "Vazirmatn", sans-serif; font-weight: 400; letter-spacing: 0; font-variation-settings: normal;
}
html[lang="en"] .rap-zone .tile h3, html[lang="en"] .rap-zone .step h3, html[lang="en"] .rap-zone .card-d h3,
html[lang="en"] .rap-zone .pcard h3, html[lang="en"] .rap-zone .prose h2, html[lang="en"] .rap-zone .gcard h2,
html[lang="en"] .rap-zone .to-title { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
html .rap-zone .nm b, html .rap-zone .pcard .big { font-family: "Lalezar", "Anton", sans-serif; font-style: normal; font-weight: 400; color: var(--yellow); font-variation-settings: normal; }
html .rap-zone .wordmark b { font-family: "Lalezar", sans-serif; font-weight: 400; line-height: 1.2; letter-spacing: 0; color: var(--ink); }
html[lang="en"] .rap-zone .wordmark b { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; }
html .rap-zone .head::after { font-family: "Lalezar", "Anton", sans-serif; font-style: normal; color: rgb(255 210 31 / .14); opacity: 1; }
html .rap-zone .kicker::before { content: "▮ ▮ ▯ ▮"; color: var(--yellow); letter-spacing: .1em; font-size: 12px; }
html .rap-zone .brand b { color: var(--ink); }

/* Hero title in rap: the second line is yellow, and the marks are on a yellow guide. */
html .rap-zone .scan { font-family: "Lalezar", "Vazirmatn", sans-serif; font-weight: 400; line-height: 1.45; }
html[lang="en"] .rap-zone .scan { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; line-height: 1.12; }
html[lang="en"] .rap-zone .scan .ln + .ln { font-style: normal; font-weight: 400; }
html .rap-zone .scan .ln + .ln { color: var(--yellow); }
html .rap-zone .scan .ln:first-child .sy.on { color: var(--yellow); }
html .rap-zone .scan .ln + .ln .sy.on { color: var(--ink); }
html .rap-zone .scan .ln::before { background: repeating-linear-gradient(90deg, rgb(255 210 31 / .45) 0 5px, transparent 5px 11px); }
html .rap-zone .sy::after { color: var(--yellow); }
html .rap-zone .sy.on::after { color: #141511; }
html .rap-zone .hero-tag { color: var(--yellow); }
html .rap-zone .hero-tag .tick { background: var(--ink); }

/* Surfaces in rap. */
html .rap-zone .nav.scrolled { background: rgb(20 21 17 / .9); }
html .rap-zone .tile, html .rap-zone .pcard, html .rap-zone .gcard, html .rap-zone .faq details,
html .rap-zone .lg-item, html .rap-zone .callout, html .rap-zone .ktable div, html .rap-zone .chip { background: rgb(255 255 255 / .045); }
html .rap-zone .tile.night { background: #0b0c09; border-color: var(--line); }
html .rap-zone .tile.olive { background: #2c2e1c; }
html .rap-zone .tile.sand { background: var(--sand); color: #23241a; }
html .rap-zone .tile.sand p, html .rap-zone .tile.sand .ava { color: #474932; }
html .rap-zone .tile.sand .split .whole { color: #3a3c25; }
html .rap-zone .tile .t-ico, html .rap-zone .tile.night .t-ico { background: var(--yellow); color: #141511; }
html .rap-zone .btn.olive { background: var(--yellow); border-color: var(--yellow); color: #141511; }
html .rap-zone .btn.olive .beat { background: #141511; box-shadow: none; }
html .rap-zone .btn:not(.olive):not(.ink):not(.sand) { border-color: var(--line-2); color: var(--ink); }
html .rap-zone .vibe button[aria-pressed="true"] { background: var(--yellow); color: #141511; }
html .rap-zone .vibe-big button[aria-pressed="true"] { border-color: var(--yellow); background: rgb(255 210 31 / .08); }
html .rap-zone .vibe-big button[aria-pressed="true"] .vb-ico { background: var(--yellow); color: #141511; }
html .rap-zone .vibe-big .vb-ico { color: var(--ink); }
html .rap-zone .menu-btn { background: var(--yellow); }
html .rap-zone .menu-btn i { background: #141511; }
html .rap-zone .sheet { background: #0b0c09; color: var(--ink); border: 1px solid var(--line); }
html .rap-zone .lang:hover { background: var(--yellow); color: #141511; }
html .rap-zone .step .n { background: var(--paper); }
html .rap-zone .step.on .n { background: var(--yellow); border-color: var(--yellow); color: #141511; }
html .rap-zone .steps .fill { background: var(--yellow); }
html .rap-zone .np-sec { background: #0b0c09; border: 1px solid var(--line); }
html .rap-zone .get-box { background: #23251a; border: 1px solid var(--line); }
html .rap-zone .doc-hero .box { background: #23251a; border: 1px solid var(--line); }
html .rap-zone .doc-hero.sand .box { background: var(--sand); }
html .rap-zone .doc-hero.sand .box, html .rap-zone .doc-hero.sand .lede { color: #23241a; }
html .rap-zone .doc-hero.sand .box { --em: #3a3c25; }
html .rap-zone .callout.olive { background: #2c2e1c; }
html .rap-zone .gsteps li::before { background: var(--yellow); color: #141511; }
html .rap-zone .table th { background: rgb(255 255 255 / .06); }
html .rap-zone .toc a.on, html .rap-zone .toc a:hover { background: rgb(255 255 255 / .06); }
html .rap-zone .toc a.on { color: var(--yellow); border-color: var(--yellow); }
html .rap-zone .tip { background: #2a2b21; }
html .rap-zone .marquee { background: var(--yellow); color: #141511; }
html .rap-zone .marquee .mq-track i { background: #141511; }
html .rap-zone .marquee.alt { background: #26281b; color: var(--ink); }
html .rap-zone .marquee.alt .mq-track i { background: var(--yellow); }
html .rap-zone .mq-track span { font-family: "Lalezar", "Vazirmatn", sans-serif; font-weight: 400; }
html[lang="en"] .rap-zone .marquee.alt .mq-track span { font-family: "Anton", "Lalezar", sans-serif; text-transform: uppercase; }
html .rap-zone .try-pick { background: #26281b; color: var(--ink); }
html .rap-zone .try-lbl, html .rap-zone .try-mode-note { color: var(--ink-2); }
html .rap-zone .tw { background: transparent; border-color: var(--line-2); color: var(--ink); }
html .rap-zone .tw.on { background: var(--yellow); border-color: var(--yellow); color: #141511; }
html .rap-zone .try-word { background: #141511; box-shadow: none; border: 1px solid var(--line); }
html .rap-zone .tw-big { color: var(--ink); font-family: "Lalezar", "Vazirmatn", sans-serif; font-weight: 400; }
html .rap-zone .tw-meta b { color: var(--yellow); }
html .rap-zone .try-word .sylrow span.on { border-color: var(--yellow); color: var(--ink); background: rgb(255 210 31 / .1); }
html .rap-zone .try-seg { background: #141511; }
html .rap-zone .try-seg button[aria-pressed="true"] { background: var(--yellow); color: #141511; }

/* Metronome scene in rap: a dark concrete arch with a yellow rim, and four drum pads. */
html .rap-zone .metro .arch {
  background: radial-gradient(120% 70% at 30% 18%, rgb(255 255 255 / .07), transparent 60%), linear-gradient(180deg, #2a2b21, #1b1c15);
  box-shadow: inset 0 0 0 2px rgb(255 210 31 / .35), inset 0 -60px 80px -40px #000, 0 40px 80px -50px #000;
}
html .rap-zone .metro .arch::before { border-color: rgb(255 210 31 / .3); }
html .rap-zone .metro .arch::after { background: linear-gradient(180deg, #121310, #0b0c09); }
html .rap-zone .orbit .rw { background: #23241b; color: var(--ink); border-color: var(--line-2); }
html .rap-zone .orbit .rw.hot { background: var(--yellow); color: #141511; border-color: var(--yellow); }
html .rap-zone .bpm .tb { background: rgb(255 255 255 / .08); color: var(--ink); }
html .rap-zone .bpm .tb:hover { background: var(--yellow); color: #141511; }
html .rap-zone .bpm b { color: var(--yellow); }
.pads { position: absolute; z-index: 4; top: 4%; right: 0; display: grid; grid-template-columns: repeat(2, 48px); gap: 6px; transform: translateZ(100px); }
.pads i {
  height: 48px; border-radius: 10px; display: grid; place-items: end start; padding: 6px 7px; font: 800 10px/1 var(--font); font-style: normal;
  background: #23241b; color: var(--muted); border: 1px solid var(--line-2); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .4);
  transition: background-color .08s, color .08s, transform .08s;
}
.pads i.on { background: var(--yellow); color: #141511; transform: translateY(1px); box-shadow: 0 0 22px rgb(255 210 31 / .5); }

/* The verse block in rap. */
.poem.rapv { background: #1d1e16; border: 1px solid var(--line); color: var(--ink); }
.poem.rapv::before { background: repeating-linear-gradient(135deg, transparent 0 18px, rgb(255 255 255 / .018) 18px 19px); opacity: 1; }
.poem.rapv .kicker { color: var(--yellow); }
.bars { position: relative; margin: 0; display: grid; gap: 6px; font-family: "Lalezar", "Vazirmatn", sans-serif; }
.bar { font-size: clamp(24px, 3.4vw, 50px); line-height: 1.75; text-align: right; }
.bar:nth-child(even) { padding-inline-start: clamp(20px, 6vw, 90px); }
.bars .g1, .bars .g2, .bars .r { padding: 0 .1em; border-radius: .15em; transition: color .5s, box-shadow .5s, background-color .5s; }
.bars.lit .g1, .no-motion .bars .g1 { color: var(--g1); background: rgb(95 224 192 / .14); }
.bars.lit .g2, .no-motion .bars .g2 { color: var(--g2); background: rgb(255 193 94 / .14); }
.bars.lit .r, .no-motion .bars .r { box-shadow: inset 0 -.1em 0 var(--yellow); }
.bars figcaption { font: 700 14px/1.4 var(--font); color: var(--muted); margin-top: 6px; text-align: left; }
.poem.rapv .trans { color: var(--ink-2); }
.poem.rapv .lg-item { background: rgb(255 255 255 / .05); }
.poem.rapv .lg-item p { color: var(--ink-2); }
.sw.g1 { background: var(--g1); } .sw.g2 { background: var(--g2); }
@media (max-width: 620px) { .bar:nth-child(even) { padding-inline-start: 0; } .pads { grid-template-columns: repeat(4, 34px); top: auto; bottom: 13%; right: 50%; transform: translateX(50%) translateZ(100px); } .pads i { height: 34px; font-size: 8px; padding: 4px; } }


/* ======================================================= v6: one page, two phases */
.rap-zone { position: relative; z-index: 1; padding-bottom: 1px; }
footer.rap-zone { margin-top: 0; padding-top: clamp(80px, 10vw, 140px); }
.rap-zone > .marquee:first-child { margin-top: 0; }
.rap-zone > section:first-of-type { padding-top: clamp(80px, 10vw, 130px); }
.rap-zone .np-sec { margin-top: clamp(96px, 12vw, 170px); }

/* Nav over the rap part. */
.nav.dark { background: rgb(20 21 17 / .9); border-bottom-color: rgb(241 235 228 / .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.dark .brand b, .nav.dark .links a, .nav.dark .links a.on { color: #f1ebe4; }
.nav.dark .links a { opacity: .78; } .nav.dark .links a.on, .nav.dark .links a:hover { opacity: 1; }
.nav.dark .lang { color: #f1ebe4; border-color: rgb(241 235 228 / .25); }
.nav.dark .btn.olive { background: var(--yellow); border-color: var(--yellow); color: #141511; }
.nav.dark .btn.olive .beat { background: #141511; box-shadow: none; }
.nav.dark .menu-btn { background: var(--yellow); } .nav.dark .menu-btn i { background: #141511; }
.nav, .nav .links a, .nav .brand b, .nav .lang { transition: background-color .45s, color .45s, border-color .45s, opacity .3s; }

/* The scene where the page turns from poetry to rap. */
.shift { position: relative; padding: 0; margin-top: clamp(80px, 10vw, 140px); }
.shift-pin { position: relative; min-height: 100vh; display: grid; align-items: center; overflow: hidden; }
.shift-bg { position: absolute; inset: 0; background: #141511; }
.shift-in { position: relative; color: #f1ebe4; display: grid; gap: clamp(18px, 2.4vw, 30px); padding-block: 110px 60px; }
.shift .kicker { color: var(--yellow); }
.shift-words { display: grid; gap: 4px; }
.shift-words h2 { font-size: clamp(54px, 8.4vw, 140px); line-height: 1.25; }
.sw-poem { font-family: "Vazirmatn", sans-serif; font-weight: 850; }
html[lang="en"] .sw-poem { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-variation-settings: "opsz" 144, "SOFT" 100; }
.sw-poem em { font-family: "Nastaliq", "Vazirmatn", serif !important; font-weight: 600; color: var(--sand) !important; display: inline-block; line-height: 1; transform: translateY(.1em); }
html[lang="en"] .sw-poem em { font-family: "Fraunces", Georgia, serif !important; font-style: italic; font-weight: 400; transform: none; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.sw-rap { font-family: "Lalezar", "Vazirmatn", sans-serif; font-weight: 400; font-synthesis: none; }
html[lang="en"] .sw-rap { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; line-height: 1.05; }
.sw-rap em {
  font-family: inherit !important; font-style: normal; font-weight: 400; display: inline-block; line-height: 1.15; padding: 0 .16em;
  background: var(--yellow); color: #141511 !important; transform: rotate(-2deg); border-radius: .08em; box-shadow: .06em .06em 0 #000;
}
.shift-lede { color: inherit; opacity: .82; max-width: 56ch; }
.shift-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.shift-meter { display: flex; align-items: baseline; gap: 12px; }
.shift-meter b { font: 400 clamp(56px, 7vw, 104px)/1 "Lalezar", "Anton", sans-serif; color: var(--yellow); min-width: 2.2ch; }
.shift-meter span { font-size: 15px; font-weight: 700; opacity: .75; }
.shift-play[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: #141511; }
.shift-play .beat { background: #141511; box-shadow: none; }
.seq { display: grid; gap: 8px; direction: ltr; max-width: 980px; }
.seq-row { display: grid; grid-template-columns: 56px repeat(16, minmax(0, 1fr)); gap: 5px; align-items: center; }
.seq-l { font: 800 12px/1 var(--font); opacity: .7; text-align: start; }
html[dir="rtl"] .seq-l { direction: rtl; }
.seq i {
  aspect-ratio: 1 / 1; border-radius: 6px; background: rgb(241 235 228 / .08); border: 1px solid rgb(241 235 228 / .12);
  transition: background-color .08s, transform .08s, box-shadow .08s;
}
.seq i:nth-child(4n+2) { margin-inline-start: 0; }

.seq i.on { background: var(--sand); border-color: var(--sand); }
.seq-row[data-row="k"] i.on { background: var(--yellow); border-color: var(--yellow); }
.seq i.hit { transform: scale(1.12); box-shadow: 0 0 18px rgb(255 210 31 / .65); background: #fff; }
.seq i.ph { outline: 2px solid rgb(255 210 31 / .55); outline-offset: 1px; }
@media (max-width: 620px) { .seq-row { grid-template-columns: 34px repeat(16, minmax(0, 1fr)); gap: 3px; } .seq i { border-radius: 4px; } }
.seq i { background: color-mix(in srgb, currentColor 9%, transparent); border-color: color-mix(in srgb, currentColor 16%, transparent); }
.no-motion .shift-play { display: none; }
.shift-in { padding-block: 96px 40px; gap: clamp(14px, 2vw, 24px); }
.shift-words h2 { font-size: clamp(46px, 6.6vw, 112px); line-height: 1.2; }
.js .shift-words { grid-template-areas: "w"; }
.js .shift-words h2 { grid-area: w; align-self: center; }
.shift-meter b { font-size: clamp(48px, 5.6vw, 84px); }
.seq { width: min(100%, 860px); }
@media (max-height: 760px) { .shift-words h2 { font-size: clamp(40px, 5.4vw, 88px); } .seq-row { gap: 4px; } .seq { width: min(100%, 700px); } }

.seq i[data-c="4"], .seq i[data-c="8"], .seq i[data-c="12"] { box-shadow: -4px 0 0 -2px rgb(255 210 31 / .35); }

/* ===================================================================== v7
   iOS is out: App Store button in the hero, QR code and facts in the get box.
   The hero is a little shorter so the button shows on the first screen. */
.hero { padding-top: clamp(100px, 9.5vw, 138px); }
.scan { font-size: clamp(58px, 7.6vw, 124px); }
.hero-copy { gap: 22px; }

.btn.appbtn { gap: 12px; padding-inline: 20px 24px; }
.btn.appbtn svg { width: 24px; height: 24px; flex: none; margin-top: -3px; }
.btn.appbtn span { display: grid; text-align: start; line-height: 1.15; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.btn.appbtn small { font-size: 11px; font-weight: 650; opacity: .78; letter-spacing: 0; }
html[lang="en"] .btn.appbtn span { font-family: "Manrope", sans-serif; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-top: -6px; }
.hero-meta span + span::before { content: "–"; padding: 0 .7em; color: #d9a900; font-weight: 900; }
.hero-meta span:first-child { color: var(--olive-3); }

.get-box { align-items: center; }
.g-new { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; font-weight: 750; color: var(--yellow); }
.g-new .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgb(255 210 31 / .55); animation: gnew 1.36s ease-out infinite; }
@keyframes gnew { 0% { box-shadow: 0 0 0 0 rgb(255 210 31 / .55); } 100% { box-shadow: 0 0 0 10px rgb(255 210 31 / 0); } }
.get-side { position: relative; display: flex; align-items: stretch; gap: 16px; }
.qr {
  display: grid; justify-items: center; align-content: center; gap: 10px; width: 168px; padding: 16px 16px 12px;
  border-radius: 22px; background: var(--cream); color: #1d1f16; text-decoration: none;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / .12); transition: transform .35s var(--ease);
}
.qr:hover { transform: translateY(-2px) rotate(-1deg); }
.qr svg { width: 100%; height: auto; display: block; }
.qr small { font-size: 11.5px; font-weight: 700; color: var(--olive-3); text-align: center; line-height: 1.4; }
.store { box-shadow: inset 0 -3px 0 rgb(0 0 0 / .12); }
.store.live { position: relative; }
.store.live::after {
  content: ""; margin-inline-start: auto; width: 10px; height: 10px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 4px rgb(255 210 31 / .3);
}
.store[aria-disabled="true"] { opacity: .62; cursor: default; }
.store[aria-disabled="true"]:hover { transform: none; }
.g-facts { font-size: 13px; font-weight: 700; color: rgb(241 235 228 / .62); text-align: center; margin-top: 2px; }
@media (max-width: 860px) { .qr { display: none; } .get-side, .stores { width: 100%; } .store { min-width: 0; } }
@media (hover: none) { .qr { display: none; } }
.get-box h2 { font-size: clamp(36px, 4.3vw, 66px); }
.sheet a.sheet-app { justify-content: center; gap: 10px; margin-top: 8px; background: var(--yellow); color: #141511; border-radius: 14px; font-family: "Vazirmatn", "Manrope", sans-serif; font-weight: 800; }
.sheet a.sheet-app svg { width: 20px; height: 20px; margin-top: -3px; }
.sheet a.sheet-app:hover { background: var(--yellow); filter: brightness(1.05); }
@media (max-width: 560px) {
  .hero-row { width: 100%; }
  .hero-row .btn { flex: 1 1 100%; justify-content: center; }
}
