/* Hear It — by ComfTech.
   Flat colour from the logo, big rounded type, motion driven by scroll. No cards, no shadows, no blur. */
:root {
  --c1: #ebbd7f; /* sand */
  --c2: #e77515; /* orange */
  --c3: #e60b09; /* red */
  --c4: #c60a01; /* crimson */
  --c5: #8c101a; /* maroon */
  --cream: #fbf3e8;
  --ink: #22080c;
  --ink-2: rgba(34, 8, 12, 0.7);
  --ink-3: rgba(34, 8, 12, 0.45);
  --line: rgba(34, 8, 12, 0.12);
  --track: #efdfca;
  --display: "Baloo Bhaijaan 2", "Rubik", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dir: 1;
  color-scheme: light;
}
[dir="rtl"] { --dir: -1; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--ink-3); font-size: 15px; }

/* type */
.label { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c3); display: flex; align-items: center; gap: 10px; }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.2vw, 84px); line-height: 0.98; letter-spacing: -0.02em; }
[dir="rtl"] .label { letter-spacing: 0; text-transform: none; font-size: 15px; }
[dir="rtl"] .h2 { line-height: 1.25; letter-spacing: 0; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 76px; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: rgba(251, 243, 232, 0); border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s;
}
.top.solid, body:not([data-page="home"]) .top { background: var(--cream); border-bottom-color: var(--line); }
.brand { justify-self: start; display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.brand img { display: block; height: 40px; width: auto; }
.brand span { font-size: 11px; font-weight: 500; color: var(--ink-3); padding-inline-start: 3px; margin-top: -2px; }
.steps-nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 500; color: var(--ink-3); }
body:is([data-page="home"], [data-page="auth"], [data-page="account"], [data-page="admin"], [data-page="checkout"]) .steps-nav { visibility: hidden; }
.steps-nav li { display: flex; align-items: center; gap: 8px; transition: color 0.3s; }
.steps-nav i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.steps-nav li.done { color: var(--ink-2); }
.steps-nav li.on { color: var(--ink); }
.steps-nav li.on i { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.top-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
#barEnd { display: flex; gap: 10px; }
.pill, .lang {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--ink); background: transparent; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.pill:hover, .lang:hover { background: var(--ink); color: var(--cream); }
.pill.dark { background: var(--ink); color: var(--cream); }
.pill.dark:hover { background: var(--c5); border-color: var(--c5); }
.lang[lang="ar"] { font-family: var(--display); font-size: 16px; }
.lang .lbl-s, .r-side .tl-s { display: none; }

/* ---------- pages ---------- */
.page { display: none; }
.page.active { display: block; }
.page.active:not([data-page="home"]) { animation: pageIn 0.7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(24px); } }

/* ---------- hero (upload first) ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 108px var(--pad) 72px;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr); gap: clamp(28px, 4vw, 72px); align-items: center;
}
.hero-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(54px, 7.2vw, 132px); white-space: nowrap; line-height: 0.92; letter-spacing: -0.035em; }
[dir="rtl"] .hero-title { line-height: 1.16; letter-spacing: 0; font-size: clamp(54px, 7.6vw, 132px); }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .ln > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-title .ln:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title em { font-style: normal; color: var(--c3); }
@keyframes rise { from { transform: translateY(105%); } }
.hero-sub { margin: 30px 0 0; max-width: 34ch; font-size: clamp(18px, 1.4vw, 21px); color: var(--ink-2); animation: fadeUp 0.9s var(--ease) 0.35s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
.opts { margin-top: 44px; padding-top: 22px; border-top: 2px solid var(--ink); display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-end; max-width: 620px; animation: fadeUp 0.9s var(--ease) 0.5s both; }
.opt { display: flex; flex-direction: column; gap: 10px; }
.opt.grow { flex: 1 1 240px; }
.opt-k { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
[dir="rtl"] .opt-k { letter-spacing: 0; text-transform: none; font-size: 14px; }
.seg { display: inline-flex; gap: 6px; }
.seg button { height: 42px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button[lang="ar"] { font-family: var(--display); font-size: 16px; }
.seg button.on { background: var(--ink); color: var(--cream); }
.opt input { height: 44px; width: 100%; border: 0; border-bottom: 2px solid var(--ink); background: transparent; outline: none; font-size: 17px; padding: 0; transition: border-color 0.2s; }
.opt input::placeholder { color: var(--ink-3); }
.opt input:focus { border-bottom-color: var(--c3); }

/* the upload panel */
.drop {
  position: relative; overflow: hidden; height: min(76svh, 660px); border-radius: 44px; padding: 48px 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--c5); color: var(--cream); cursor: pointer; outline: none;
  animation: panelIn 1.2s var(--ease) 0.1s both; transition: background 0.35s;
}
@keyframes panelIn { from { clip-path: inset(100% 0 0 0 round 44px); } to { clip-path: inset(0 0 0 0 round 44px); } }
.drop::after { content: ""; position: absolute; inset: 18px; border-radius: 30px; border: 2px dashed rgba(251, 243, 232, 0.25); pointer-events: none; transition: border-color 0.3s; }
.drop:hover::after, .drop:focus-visible::after { border-color: rgba(251, 243, 232, 0.6); }
.drop.over { background: var(--c4); }
.drop.over::after { border-style: solid; border-color: var(--cream); }
.eq { display: flex; align-items: center; gap: clamp(10px, 1.3vw, 18px); height: 200px; margin-bottom: 30px; }
.eq i { width: clamp(18px, 2vw, 28px); border-radius: 99px; animation: barIn 0.9s var(--ease) both; }
.eq i:nth-child(1) { height: 76px; background: var(--c1); animation-delay: 0.45s; }
.eq i:nth-child(2) { height: 128px; background: var(--c2); animation-delay: 0.52s; }
.eq i:nth-child(3) { height: 190px; background: var(--c3); animation-delay: 0.59s; }
.eq i:nth-child(4) { height: 128px; background: var(--c2); animation-delay: 0.66s; }
.eq i:nth-child(5) { height: 76px; background: var(--c1); animation-delay: 0.73s; }
@keyframes barIn { from { transform: scaleY(0); } }
.drop-title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3vw, 46px); line-height: 1.1; }
.drop-title .t-over, .drop.over .t-idle { display: none; }
.drop.over .t-over { display: inline; }
.drop-sub { margin-top: 8px; font-size: 17px; opacity: 0.72; }
.btn.cream {
  margin-top: 28px; height: 58px; padding: 0 34px; border-radius: 999px; border: 0; display: inline-flex; align-items: center;
  background: var(--cream); color: var(--c5); font-size: 17px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.3s var(--ease);
}
.drop:hover .btn.cream, .btn.cream:hover { background: var(--c1); transform: translateY(-2px); }
.drop-fmt { position: absolute; bottom: 36px; inset-inline: 40px; font-size: 12px; letter-spacing: 0.1em; opacity: 0.5; }
.hint { position: absolute; bottom: 26px; inset-inline-start: var(--pad); display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); animation: fadeUp 0.9s var(--ease) 0.8s both; }
[dir="rtl"] .hint { letter-spacing: 0; text-transform: none; font-size: 14px; }
.hint i { position: relative; width: 64px; height: 2px; background: var(--line); overflow: hidden; }
.hint i::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--ink); animation: slide 1.8s var(--ease) infinite; }
[dir="rtl"] .hint i::after { animation-name: slide-rtl; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes slide-rtl { from { transform: translateX(260%); } to { transform: translateX(-100%); } }

/* ---------- how it works (pinned morph) ---------- */
.story { position: relative; height: 380vh; }
.story-pin { position: sticky; top: 0; height: 100svh; padding: 100px var(--pad) 48px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.story-steps { list-style: none; margin: 44px 0 0; padding: 0; padding-inline-start: 30px; position: relative; display: grid; gap: 26px; --p: 0; }
.story-steps::before, .story-steps::after { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 3px; border-radius: 3px; }
.story-steps::before { bottom: 6px; background: var(--line); }
.story-steps::after { height: calc((100% - 12px) * var(--p)); background: var(--c3); }
.story-steps li { display: grid; grid-template-columns: 46px 1fr; gap: 6px; opacity: 0.25; transform: translateX(calc(-8px * var(--dir))); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.story-steps li.on { opacity: 1; transform: none; }
.story-steps b { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--c3); padding-top: 7px; }
.story-steps h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.15; }
.story-steps p { margin: 0; color: var(--ink-2); max-width: 40ch; }
.story-rail { display: none; }
.morph { position: relative; width: 100%; aspect-ratio: 1.12; max-height: 72svh; border-radius: 40px; background: #f4e3cc; overflow: hidden; }
.morph i { position: absolute; left: 0; top: 0; display: block; will-change: transform, width, height; }

/* ---------- features (pinned horizontal gallery) ---------- */
.gallery { position: relative; height: 420vh; }
.gallery-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 44px; padding: 96px 0 40px; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-inline: var(--pad); }
.gallery-count { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gallery-track { display: flex; gap: 24px; padding-inline: var(--pad); width: max-content; will-change: transform; }
.panel { flex: none; width: min(560px, 78vw); height: min(56svh, 500px); border-radius: 36px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; color: var(--cream); will-change: transform; }
.panel.p1 { background: var(--c5); }
.panel.p2 { background: var(--c4); }
.panel.p3 { background: var(--c3); }
.panel.p4 { background: var(--c2); }
.panel.p5 { background: var(--c1); color: var(--ink); }
.panel.p6 { background: var(--ink); }
.motif { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 8vw, 132px); line-height: 1; }
.motif.sm { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.3; }
.panel h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.1; }
.panel p { margin: 0; opacity: 0.82; max-width: 34ch; }

/* ---------- scroll-speed marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--cream); padding: 30px 0; }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; will-change: transform; }
.marquee-track span { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4vw, 58px); white-space: nowrap; line-height: 1.2; }
.marquee-track i { font-style: normal; font-size: 22px; }
.marquee-track i:nth-of-type(5n + 1) { color: var(--c1); }
.marquee-track i:nth-of-type(5n + 2) { color: var(--c2); }
.marquee-track i:nth-of-type(5n + 3) { color: var(--c3); }
.marquee-track i:nth-of-type(5n + 4) { color: var(--c4); }
.marquee-track i:nth-of-type(5n) { color: var(--c1); }

/* ---------- who it's for (scroll-lit list) ---------- */
.uses { padding: 150px var(--pad) 130px; }
.uses-list { list-style: none; margin: 18px 0 0; padding: 0; }
.uses-list li { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7vw, 116px); line-height: 1.06; opacity: 0.14; transition: color 0.4s; }
[dir="rtl"] .uses-list li { line-height: 1.3; }
.uses-list li.on:nth-child(1) { color: var(--c5); }
.uses-list li.on:nth-child(2) { color: var(--c4); }
.uses-list li.on:nth-child(3) { color: var(--c3); }
.uses-list li.on:nth-child(4) { color: var(--c2); }
.uses-list li.on:nth-child(5) { color: var(--c5); }
.uses-list li.on:nth-child(6) { color: var(--c3); }
.uses-text { margin: 44px 0 0; font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-2); max-width: 40ch; }

/* ---------- call to action ---------- */
.cta { background: var(--c5); color: var(--cream); padding: 170px var(--pad); text-align: center; border-radius: 56px 56px 0 0; overflow: hidden; }
.cta-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 160px); line-height: 0.95; letter-spacing: -0.03em; will-change: transform; }
[dir="rtl"] .cta-title { line-height: 1.2; letter-spacing: 0; }
.cta p { margin: 24px auto 0; font-size: clamp(18px, 1.5vw, 22px); opacity: 0.8; max-width: 38ch; }

/* ---------- footer ---------- */
.foot { background: var(--cream); }
.stripe { display: flex; height: 12px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--c1); }
.stripe i:nth-child(2) { background: var(--c2); }
.stripe i:nth-child(3) { background: var(--c3); }
.stripe i:nth-child(4) { background: var(--c4); }
.stripe i:nth-child(5) { background: var(--c5); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 44px var(--pad) 30px; }
.foot-brand img { display: block; height: 34px; width: auto; }
.foot-brand p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links button { border: 0; background: none; padding: 0; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s; }
.foot-links button:hover { color: var(--ink); border-bottom-color: var(--c3); }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px var(--pad) 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.by { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); }
.by b { color: var(--ink); font-weight: 600; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.by:hover b { border-bottom-color: var(--c3); }
.by img { display: block; }

/* ---------- process pages ---------- */
.stage { max-width: 1320px; margin: 0 auto; padding: 128px var(--pad) 96px; }
.stage.center { text-align: center; }
.stage.center .label { justify-content: center; }
.up-top { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.big-num { font-family: var(--display); font-weight: 800; font-size: clamp(80px, 10vw, 160px); line-height: 1; color: var(--c5); }
.big-num small { font-size: 0.34em; color: var(--ink-3); margin-inline-start: 4px; }
.wave-progress { height: 110px; display: flex; align-items: center; gap: 3px; margin: 26px 0 40px; overflow: hidden; }
.wave-progress i { flex: 1; min-width: 2px; height: var(--h); border-radius: 4px; background: var(--track); transition: background 0.35s; }
.wave-progress i.on { background: var(--bc); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); animation: rowIn 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rowIn { from { opacity: 0; transform: translateX(calc(32px * var(--dir))); } }
.rows .n { font-family: var(--display); font-weight: 700; color: var(--c3); }
.rows .nm { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .sz { font-size: 14px; color: var(--ink-3); }
.rows .tr { grid-column: 2 / -1; height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; margin-top: -4px; }
.rows .tr span { display: block; height: 100%; background: var(--c3); border-radius: 4px; transition: width 0.3s; }
.rows .ok { color: var(--c5); display: inline-flex; }
.rows .bad { color: var(--c3); font-size: 14px; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--c3); animation: ping 1.4s ease-out infinite; }
@keyframes ping { from { box-shadow: 0 0 0 0 rgba(230, 11, 9, 0.5); } to { box-shadow: 0 0 0 10px rgba(230, 11, 9, 0); } }
.wave { position: relative; height: 130px; display: flex; align-items: center; gap: 3px; margin: 30px 0 34px; overflow: hidden; }
.wave i { flex: 1; min-width: 2px; height: var(--h); border-radius: 4px; background: var(--bc); animation: level var(--t) ease-in-out var(--dl) infinite alternate; }
@keyframes level { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
.playhead { position: absolute; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: var(--ink); inset-inline-start: 0; animation: sweep 6s linear infinite; z-index: 1; }
@keyframes sweep { to { inset-inline-start: 100%; } }
.tx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.feed { border-top: 2px solid var(--ink); }
.feed-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c3); }
[dir="rtl"] .feed-head { letter-spacing: 0; text-transform: none; font-size: 14px; }
.feed-head span:last-child { color: var(--ink-3); letter-spacing: 0; text-transform: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-body { height: 380px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 8px 0; mask-image: linear-gradient(180deg, transparent, #000 30%); }
.line { animation: fadeUp 0.5s var(--ease) both; }
.line .who { font-size: 12px; font-weight: 600; color: var(--c2); }
.line p { margin: 2px 0 0; font-size: 19px; line-height: 1.75; unicode-bidi: plaintext; }
.line.typing p::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--c3); margin-inline-start: 2px; vertical-align: -3px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.feed-empty { color: var(--ink-3); }
.counters > div { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--line); }
.counters > div:first-child { border-top: 2px solid var(--ink); }
.count { font-family: var(--display); font-weight: 800; font-size: 50px; line-height: 1.05; color: var(--c5); }
.count small { font-size: 22px; color: var(--ink-3); }
.mini { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.mini li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; font-size: 14px; align-items: center; }
.mini .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.mini .st { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.mini .st.ok { color: var(--c5); }
.mini .st.bad { color: var(--c3); }
.mini button { border: 0; background: none; color: var(--c4); cursor: pointer; font-size: 13px; padding: 0; text-decoration: underline; }
.err { color: var(--c3); }

.distill { position: relative; height: 360px; margin: 10px auto 0; max-width: 920px; overflow: hidden; mask-image: radial-gradient(closest-side, #000 70%, transparent); }
.distill-core { position: absolute; left: 50%; top: 50%; width: 136px; height: 136px; margin: -68px 0 0 -68px; border-radius: 50%; background: var(--cream); border: 2px solid var(--c5); display: grid; place-items: center; z-index: 2; }
.distill-core img { width: 64px; height: auto; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(0.9); } }
.distill-core::before, .distill-core::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--c2); animation: ripple 2.6s ease-out infinite; }
.distill-core::after { border-color: var(--c3); animation-delay: 1.3s; }
@keyframes ripple { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.6); opacity: 0; } }
.word { position: absolute; left: 50%; top: 50%; white-space: nowrap; font-size: 17px; color: var(--ink-2); pointer-events: none; will-change: transform, opacity; }
.word.big { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--ink); }
.word.hi { color: var(--c3); }
.checklist { list-style: none; display: flex; justify-content: center; gap: 30px; margin: 8px 0 34px; padding: 0; flex-wrap: wrap; color: var(--ink-3); }
.checklist li { display: inline-flex; align-items: center; gap: 10px; }
.checklist li.done, .checklist li.now { color: var(--ink); }
.ck { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.checklist li.done .ck { background: var(--c5); border-color: var(--c5); color: var(--cream); }
.ck svg { width: 12px; height: 12px; stroke-width: 3; }
.spin { display: inline-block; flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sum-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; text-align: start; }
.icard { border-top: 3px solid var(--c2); padding-top: 14px; animation: fadeUp 0.6s var(--ease) both; }
.icard .nm { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard .tt { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.25; margin: 4px 0 6px; }
.icard .sn { font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- results ---------- */
.detail { max-width: 1320px; margin: 0 auto; padding: 116px var(--pad) 96px; }
.empty { text-align: center; padding: 120px 20px; }
.empty h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 80px); line-height: 1.05; margin: 0 0 12px; }
.empty em { font-style: normal; color: var(--c3); }
.empty p { color: var(--ink-2); margin: 0 0 28px; }
.empty .btn-main { display: inline-flex; align-items: center; height: 56px; padding: 0 32px; border-radius: 999px; background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 600; }
.r-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.r-nav { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 440px; }
.r-tools { display: flex; gap: 10px; }
.nav-btn { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 2px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background 0.2s, color 0.2s; }
.nav-btn:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.nav-btn:disabled { opacity: 0.22; cursor: default; }
[dir="rtl"] .nav-btn svg { transform: scaleX(-1); }
.r-pick { position: relative; flex: 0 1 460px; min-width: 0; }

/* dropdowns: our own pill button + menu (never the browser's) */
.pick {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 100%; height: 46px;
  padding-inline: 20px 14px; border: 2px solid var(--ink); border-radius: 999px; background: transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.pick:hover, .pick.open { background: var(--ink); color: var(--cream); }
.pick:focus-visible { outline: 3px solid var(--c1); outline-offset: 2px; }
.pick-val { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; }
.pick-val .pk-name { overflow: hidden; text-overflow: ellipsis; }
.pick-val .pk-sub { display: none; }
.pick-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.pick.open .pick-chev { transform: rotate(180deg); }
.pick-file { width: 100%; }
.pick-sm { height: 38px; gap: 6px; padding-inline: 14px 9px; font-size: 14px; }
.pick-menu {
  position: fixed; z-index: 90; margin: 0; padding: 6px; list-style: none; max-width: min(520px, calc(100vw - 24px));
  overflow-y: auto; overscroll-behavior: contain; border: 2px solid var(--ink); border-radius: 22px; background: var(--cream); color: var(--ink);
  visibility: hidden; opacity: 0; transform: translateY(-8px); transform-origin: top;
  transition: opacity 0.16s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.pick-menu.up { transform: translateY(8px); transform-origin: bottom; }
.pick-menu.show { visibility: visible; opacity: 1; transform: none; transition: opacity 0.16s, transform 0.35s var(--ease); }
.pick-menu li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 14px; border-radius: 15px; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; outline: none; }
.pick-menu li + li { margin-top: 2px; }
.pick-menu li:hover, .pick-menu li:focus-visible, .pick-menu li:focus { background: #f4e3cc; }
.pick-menu li[aria-selected="true"] { background: var(--ink); color: var(--cream); font-weight: 600; }
.pick-menu .pk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pick-menu .pk-sub { font-size: 13px; font-weight: 500; opacity: 0.6; font-variant-numeric: tabular-nums; }
.pick-menu .pk-sub.bad { color: var(--c4); opacity: 1; }
.pick-menu li[aria-selected="true"] .pk-sub.bad { color: var(--c1); }
.pick-menu li svg.i { flex: none; color: var(--c1); stroke-width: 3; }
.r-count { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.r-title { padding: 34px 0 24px; }
.r-title h1 { margin: 8px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.4vw, 68px); line-height: 1.05; }
.r-title h1[dir="rtl"] { line-height: 1.3; }
.d-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.d-meta span:first-child { color: var(--ink); font-weight: 600; }

/* custom audio player: real waveform in the logo colours */
.player { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 28px 14px 18px; border-radius: 34px; background: #f4e3cc; }
[dir="rtl"] .player { padding: 18px 18px 14px 28px; }
.player audio { display: none; }
.pl-play { width: 74px; height: 74px; border-radius: 50%; border: 0; background: var(--c5); color: var(--cream); display: grid; place-items: center; cursor: pointer; transition: transform 0.35s var(--ease), background 0.2s; }
.pl-play:hover { background: var(--c4); transform: scale(1.06); }
.pl-play:active { transform: scale(0.96); }
.pl-play svg { width: 28px; height: 28px; fill: currentColor; }
.pl-play .ic-pause, .playing .pl-play .ic-play { display: none; }
.playing .pl-play .ic-pause { display: block; }
.pl-wave { position: relative; height: 64px; display: flex; align-items: center; gap: 3px; cursor: pointer; touch-action: none; outline: none; }
.pl-wave i { flex: 1; min-width: 2px; height: var(--h); border-radius: 3px; background: #e2c8a4; transition: background 0.12s, height 0.6s var(--ease); pointer-events: none; }
.pl-wave i.on { background: var(--bc); }
.pl-wave:hover i:not(.on) { background: #d9bb92; }
.pl-head { position: absolute; top: -6px; bottom: -6px; width: 3px; border-radius: 3px; background: var(--ink); left: 0; transform: translateX(-50%); pointer-events: none; transition: opacity 0.2s; }
.pl-wave:focus-visible { outline: 3px solid var(--c1); outline-offset: 6px; border-radius: 8px; }
.pl-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.pl-time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 48px; }
.pl-time:last-child { text-align: right; }
.pl-ctrl { display: flex; gap: 6px; }
.pl-btn { height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(34, 8, 12, 0.07); font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; transition: background 0.2s, color 0.2s; }
.pl-btn:hover { background: var(--ink); color: var(--cream); }
.pl-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* sidebar + panel */
.r-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; margin-top: 34px; align-items: start; }
.r-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 28px; background: #f4e3cc; }
.r-ind { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 22px; background: var(--ink); z-index: 0; transition: transform 0.55s var(--ease), width 0.55s var(--ease), height 0.55s var(--ease); }
.r-side button { position: relative; z-index: 1; display: grid; grid-template-columns: 34px 1fr; column-gap: 6px; text-align: start; padding: 15px 16px; border: 0; background: none; border-radius: 22px; cursor: pointer; color: var(--ink); transition: color 0.35s, background 0.2s; }
.r-side button b { grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--c3); padding-top: 4px; transition: color 0.35s; }
.r-side .tl { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.25; }
.r-side small { font-size: 12.5px; color: var(--ink-3); transition: color 0.35s; }
.r-side small.busy::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 6px; border-radius: 50%; background: var(--c3); animation: blink 1s steps(1) infinite; vertical-align: 1px; }
.r-side button[aria-selected="true"] { color: var(--cream); }
.r-side button[aria-selected="true"] b { color: var(--c1); }
.r-side button[aria-selected="true"] small { color: rgba(251, 243, 232, 0.66); }
.r-side button:not([aria-selected="true"]):hover { background: rgba(34, 8, 12, 0.05); }
.r-panel { min-width: 0; }
.p-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 26px; border-bottom: 2px solid var(--ink); }
.p-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.p-head .tools { display: flex; gap: 8px; flex-wrap: wrap; }
.p-body { max-width: 880px; }
.p-body.enter > * { animation: itemIn 0.6s var(--ease) both; animation-delay: calc(var(--k, 0) * 55ms); }
@keyframes itemIn { from { opacity: 0; transform: translateY(16px); } }
.tx-part.now p, .turn.now p { background: #f6dcb6; box-shadow: 0 0 0 6px #f6dcb6; border-radius: 4px; transition: background 0.3s; }

/* detailed summary */
.d-empty { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 44px; border-radius: 34px; background: var(--c5); color: var(--cream); }
.mini-eq { display: flex; align-items: center; gap: 9px; height: 132px; }
.mini-eq i { width: 18px; border-radius: 99px; animation: breathe 2.4s ease-in-out infinite; }
.mini-eq i:nth-child(1) { height: 46px; background: var(--c1); }
.mini-eq i:nth-child(2) { height: 84px; background: var(--c2); animation-delay: -0.4s; }
.mini-eq i:nth-child(3) { height: 132px; background: var(--c3); animation-delay: -0.8s; }
.mini-eq i:nth-child(4) { height: 84px; background: var(--c2); animation-delay: -1.2s; }
.mini-eq i:nth-child(5) { height: 46px; background: var(--c1); animation-delay: -1.6s; }
.d-empty h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; }
[dir="rtl"] .d-empty h3 { line-height: 1.35; }
.d-empty p { margin: 0 0 24px; opacity: 0.8; max-width: 48ch; }
.d-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.d-row .btn.cream { margin-top: 0; }
.seg.inv button { border-color: rgba(251, 243, 232, 0.5); color: var(--cream); }
.seg.inv button.on { background: var(--cream); color: var(--c5); border-color: var(--cream); }
.d-loading { padding: 40px 44px; border-radius: 34px; background: #f4e3cc; }
.d-loading .mini-eq { height: 70px; gap: 7px; }
.d-loading .mini-eq i { width: 12px; animation: level 0.55s ease-in-out infinite alternate; }
.d-loading .mini-eq i:nth-child(1) { height: 26px; }
.d-loading .mini-eq i:nth-child(2) { height: 46px; }
.d-loading .mini-eq i:nth-child(3) { height: 70px; }
.d-loading .mini-eq i:nth-child(4) { height: 46px; }
.d-loading .mini-eq i:nth-child(5) { height: 26px; }
.d-msg { margin: 18px 0 4px; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.2; animation: fadeUp 0.5s var(--ease) both; }
.d-loading .muted { display: block; margin-bottom: 26px; }
.d-doc .overview p { font-size: 20px; line-height: 1.75; color: var(--ink); margin: 0 0 14px; }
.d-doc .part { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.d-doc .part h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: 27px; line-height: 1.25; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.d-doc .part p { margin: 0 0 12px; font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.d-doc .part ul { margin: 6px 0 0; padding-inline-start: 22px; color: var(--ink-2); }
.d-doc .part li + li { margin-top: 6px; }
.d-doc .sec { margin-top: 34px; }
.d-doc .closing { margin-top: 36px; padding: 26px 30px; border-radius: 26px; background: #f4e3cc; }
.d-doc .closing h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c3); }
[dir="rtl"] .d-doc .closing h3, .d-doc .closing h3:lang(ar) { letter-spacing: 0; text-transform: none; font-size: 15px; }
.d-doc .closing p { margin: 0; font-size: 18px; line-height: 1.75; }
.btn.is-busy { pointer-events: none; opacity: 0.65; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { background: var(--ink); color: var(--cream); }
.btn.danger:hover { background: var(--c3); border-color: var(--c3); }
.btn .i { width: 14px; height: 14px; }
.btn [lang="ar"] { font-family: var(--display); font-size: 15px; }
.tx-part + .tx-part { margin-top: 18px; }
.tx-part p { margin: 6px 0 0; font-size: 18px; line-height: 1.9; white-space: pre-wrap; unicode-bidi: plaintext; }
.ts { font-size: 12px; font-weight: 600; border: 0; border-radius: 6px; padding: 2px 8px; background: var(--c1); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: background 0.2s, color 0.2s; }
.ts:hover { background: var(--c5); color: var(--cream); }
.turn { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 6px 0; }
.turn .who { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-top: 6px; }
.spk { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.turn p { margin: 0; font-size: 18px; line-height: 1.85; unicode-bidi: plaintext; }
.sum-top { font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.sum-lead { font-size: 19px; line-height: 1.75; margin: 0 0 6px; }
.sec { margin-top: 26px; }
.sec h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.sec h3:lang(ar), [lang="ar"] .sec h3 { letter-spacing: 0; text-transform: none; font-size: 15px; }
.sec h3::before { content: ""; width: 6px; height: 16px; border-radius: 3px; background: var(--c, var(--c5)); }
.sec.pos { --c: var(--c1); }
.sec.neg { --c: var(--c3); }
.sec.sug { --c: var(--c2); }
.sec ul { margin: 0; padding-inline-start: 22px; color: var(--ink-2); }
.sec li + li { margin-top: 6px; }
/* A quote keeps the section's alignment even when it's in the other language. */
.quote { margin: 0 0 18px; padding-inline-start: 16px; border-inline-start: 3px solid var(--c1); }
.quote .q-o { display: block; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.45; }
.quote small { display: block; font-family: var(--body); font-weight: 400; font-size: 15px; color: var(--ink-3); margin-top: 2px; }
.quote .ts { margin-top: 6px; }
.wait { text-align: center; color: var(--ink-3); padding: 48px 10px; }
.wait .spin { width: 24px; height: 24px; color: var(--c3); margin-bottom: 12px; }
.wait b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.writing { padding: 6px 0 10px; }
.w-label { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink-2); margin-bottom: 24px; }
.w-bars { display: inline-flex; align-items: center; gap: 3px; height: 24px; }
.w-bars i { width: 5px; border-radius: 3px; animation: level 0.6s ease-in-out infinite alternate; }
.w-bars i:nth-child(1) { height: 10px; background: var(--c1); }
.w-bars i:nth-child(2) { height: 17px; background: var(--c2); animation-delay: -0.2s; }
.w-bars i:nth-child(3) { height: 24px; background: var(--c3); animation-delay: -0.4s; }
.w-bars i:nth-child(4) { height: 17px; background: var(--c4); animation-delay: -0.1s; }
.w-bars i:nth-child(5) { height: 10px; background: var(--c5); animation-delay: -0.3s; }
.sk { display: block; height: 12px; margin: 0 0 13px; border-radius: 6px; background: linear-gradient(90deg, var(--track) 0%, #faf0e2 40%, var(--track) 80%); background-size: 250% 100%; animation: shimmer 1.6s ease-in-out infinite; }
.sk-gap { display: block; height: 14px; }
[dir="rtl"] .sk { animation-direction: reverse; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.notice { display: flex; gap: 12px; padding: 16px 20px; border-radius: 16px; background: #f6e2c4; font-size: 15px; margin-bottom: 24px; }

/* toasts */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: 15px; animation: fadeUp 0.3s var(--ease); max-width: min(560px, calc(100vw - 32px)); }
.toast.err { background: var(--c4); }

/* docked player: slides up from the bottom once the big one is out of view */
.pl-dock {
  position: fixed; z-index: 45; bottom: 18px; left: 16px; right: 16px; max-width: 880px; margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(0, 0.8fr) minmax(0, 2fr) auto; align-items: center; gap: 18px;
  padding: 8px; padding-inline-end: 24px; border-radius: 999px; background: var(--ink); color: var(--cream);
  transform: translateY(calc(100% + 30px)); transition: transform 0.55s var(--ease);
}
.pl-dock.show { transform: none; }
body:not([data-page="results"]) .pl-dock { display: none; }
.pl-dock .pl-play { width: 48px; height: 48px; background: var(--c3); }
.pl-dock .pl-play:hover { background: var(--c4); }
.pl-dock .pl-play svg { width: 19px; height: 19px; }
.pd-title { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-track { position: relative; height: 6px; border-radius: 6px; background: rgba(251, 243, 232, 0.16); cursor: pointer; touch-action: none; }
.pd-track::before { content: ""; position: absolute; inset: -12px 0; }
.pd-track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--c1); pointer-events: none; }
.pl-dock .pl-time { min-width: 0; white-space: nowrap; color: rgba(251, 243, 232, 0.72); }
body.docked[data-page="results"] .toasts { bottom: 96px; }

/* ---------- plans (landing + account) ---------- */
.quota { margin: 20px 0 0; max-width: 620px; font-size: 15px; color: var(--ink-2); animation: fadeUp 0.9s var(--ease) 0.6s both; }
.quota:empty { display: none; }
.quota b { color: var(--ink); }
.quota a { color: var(--c3); font-weight: 600; text-underline-offset: 3px; }

.pricing { padding: 150px var(--pad) 160px; }
.pricing-head { max-width: 820px; }
.pricing-sub { margin: 26px 0 0; max-width: 54ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); }
/* Equal-height cards; the featured one rises above the row. */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-top: 76px; padding-top: 36px; }
.plans.in-acct { margin-top: 0; }
.plan {
  --in: 1; --line: rgba(34, 8, 12, 0.14); --tick: var(--c3);
  display: flex; flex-direction: column; border-radius: 38px; padding: 34px 32px 32px; background: #f4e3cc; color: var(--ink);
  transform: translateY(calc((1 - var(--in)) * 150px)); opacity: calc(0.12 + var(--in) * 0.88);
}
.plan.featured { --line: rgba(251, 243, 232, 0.2); --tick: var(--c1); margin-top: -36px; background: var(--c5); color: var(--cream); padding-top: 46px; }
.plan-pro { --line: rgba(251, 243, 232, 0.16); --tick: var(--c1); background: var(--ink); color: var(--cream); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; }
.plan-mark { display: inline-flex; align-items: center; gap: 5px; height: 46px; }
.plan-mark i { width: 9px; height: calc(var(--h) * 100%); border-radius: 99px; background: currentColor; opacity: 0.16; transition: opacity 0.4s; }
.plan-mark i.on { opacity: 1; }
.plan-mark i.on:nth-child(1), .plan-mark i.on:nth-child(5) { background: var(--c1); }
.plan-mark i.on:nth-child(2), .plan-mark i.on:nth-child(4) { background: var(--c2); }
.plan-mark i.on:nth-child(3) { background: var(--c3); }
.featured .plan-mark i.on:nth-child(3) { background: var(--cream); }
.plan-tag { height: 30px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--cream); color: var(--c5); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
[dir="rtl"] .plan-tag { letter-spacing: 0; text-transform: none; font-size: 13px; }
.plan-name { margin: 26px 0 4px; font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1.1; }
.plan-for { margin: 0; font-size: 15px; opacity: 0.72; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 24px; }
.plan-price b { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 6vw, 88px); line-height: 0.9; letter-spacing: -0.03em; }
.plan-price span { font-size: 15px; opacity: 0.7; }
.plan-feats { list-style: none; margin: 0 0 30px; padding: 0; border-top: 2px solid var(--line); }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.plan-feats svg.i { margin-top: 3px; color: var(--tick); stroke-width: 3; }
.plan-cta {
  margin-top: auto; width: 100%; height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 2px solid currentColor; background: transparent; color: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ease);
}
.plan-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: translateY(-2px); }
.featured .plan-cta { border-color: var(--cream); background: var(--cream); color: var(--c5); }
.featured .plan-cta:hover { background: var(--c1); border-color: var(--c1); color: var(--ink); }
.plan-pro .plan-cta:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.plan-cta.is-static, .plan-cta.is-static:hover { cursor: default; transform: none; background: transparent; color: inherit; border-color: currentColor; border-style: dashed; opacity: 0.8; }

/* ---------- account pill in the header ---------- */
#acct { display: contents; }
.acct-pill { padding-inline: 5px 16px; }
.acct-pill .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c3); color: var(--cream); font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1; }
.acct-pill.on { background: var(--ink); color: var(--cream); }

/* ---------- sign in / create account ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; min-height: 100svh; padding: 100px var(--pad) 48px; }
.auth-side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 44px; padding: 56px 52px; background: var(--c5); color: var(--cream);
  animation: panelIn 1.1s var(--ease) both;
}
.auth-side .auth-eq { position: absolute; top: 56px; inset-inline-start: 52px; height: 150px; margin: 0; }
.auth-side .auth-eq i:nth-child(1), .auth-side .auth-eq i:nth-child(5) { height: 58px; }
.auth-side .auth-eq i:nth-child(2), .auth-side .auth-eq i:nth-child(4) { height: 100px; }
.auth-side .auth-eq i:nth-child(3) { height: 150px; }
.auth-big { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 4.8vw, 84px); line-height: 1; letter-spacing: -0.02em; }
[dir="rtl"] .auth-big { line-height: 1.25; letter-spacing: 0; }
.auth-big em { font-style: normal; color: var(--c1); }
.auth-perk { margin: 20px 0 0; font-size: 18px; opacity: 0.8; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px clamp(0px, 4vw, 64px); }
.auth-form { width: 100%; max-width: 440px; animation: fadeUp 0.7s var(--ease) both; }
.auth-form h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4vw, 60px); line-height: 1.05; }
.auth-sub { margin: 12px 0 32px; color: var(--ink-2); }
.auth-note { margin: -12px 0 26px; padding: 12px 18px; border-radius: 18px; background: #f4e3cc; font-size: 15px; }
.auth-switch { margin: 24px 0 0; font-size: 15px; color: var(--ink-2); }
.auth-switch a { color: var(--c3); font-weight: 600; text-underline-offset: 3px; }

.field { display: block; margin-bottom: 22px; }
.field-k { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
[dir="rtl"] .field-k { letter-spacing: 0; text-transform: none; font-size: 14px; }
.field-in { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--ink); transition: border-color 0.2s; }
.field-in:focus-within { border-bottom-color: var(--c3); }
.field input { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: transparent; outline: none; font-size: 19px; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.peek { border: 0; background: none; padding: 0 2px; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.peek:hover { color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.field small { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.form-err { min-height: 22px; margin: -6px 0 12px; font-size: 15px; font-weight: 500; color: var(--c4); }
.acct-form .form-err:empty { min-height: 0; margin: 0; }
.btn-big { width: 100%; height: 60px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 17px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-big:hover { background: var(--c5); }
.btn-big.is-busy, .acct-form .is-busy { pointer-events: none; opacity: 0.6; }

/* Continue with Google (Google's own "G" mark, unaltered) */
.g-btn {
  width: 100%; height: 58px; display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: #1f1f1f;
  font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.3s var(--ease);
}
.g-btn:hover { background: #f4e3cc; transform: translateY(-1px); }
.g-btn svg { width: 20px; height: 20px; flex: none; }
.g-btn.is-busy { pointer-events: none; opacity: 0.6; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; font-size: 13px; color: var(--ink-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }
.chip.light { background: #f4e3cc; }

/* free try: results live only in this tab */
.guest-note { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 26px 0 0; padding: 18px 22px; border-radius: 26px; background: var(--c1); }
.guest-note b { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.3; }
.guest-note span { font-size: 15px; color: var(--ink-2); }

/* ---------- account ---------- */
.acct, .admin { max-width: 1180px; margin: 0 auto; padding: 128px var(--pad) 96px; }
.acct-head h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 96px); line-height: 1; letter-spacing: -0.02em; }
[dir="rtl"] .acct-head h1 { line-height: 1.25; letter-spacing: 0; }
.acct-meta { margin: 14px 0 0; color: var(--ink-2); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn.dark { background: var(--ink); color: var(--cream); }
.btn.dark:hover { background: var(--c5); border-color: var(--c5); }
.usage { margin-top: 48px; padding: 36px 40px 32px; border-radius: 40px; background: var(--ink); color: var(--cream); animation: fadeUp 0.7s var(--ease) both; }
.usage-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: rgba(251, 243, 232, 0.72); }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--c1); color: var(--ink); font-size: 13px; font-weight: 600; }
.usage-main { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 26px 0 20px; }
.usage-main b { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 92px); line-height: 0.95; letter-spacing: -0.02em; }
[dir="rtl"] .usage-main b { letter-spacing: 0; line-height: 1.2; }
.usage-main span { font-size: 18px; color: rgba(251, 243, 232, 0.7); }
.usage-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: 15px; color: rgba(251, 243, 232, 0.8); }
.usage-foot b { color: var(--cream); }
/* Ask AI: a single line with the moving AI gradient */
.usage-ai { margin-top: 6px; }
.usage-ai-k { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: rgba(251, 243, 232, 0.8); }
.usage-ai-k b { color: var(--cream); }
.u-line { position: relative; display: block; height: 12px; overflow: hidden; border-radius: 12px; background: rgba(251, 243, 232, 0.13); }
.u-line i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: linear-gradient(90deg, #e77515, #e60b09, #d6246e, #8b5cf6, #3b82f6); background-size: 300% 100%; animation: aiFlow 5s linear infinite; transition: width 0.6s var(--ease); }
.u-line.full i { background: var(--c3); animation: none; }
.usage-req { margin: 22px 0 0; padding: 14px 18px; border-radius: 18px; background: rgba(251, 243, 232, 0.09); font-size: 15px; }
.usage-req button { border: 0; background: none; padding: 0; margin-inline-start: 8px; color: var(--c1); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.acct-sec { margin-top: 76px; }
.acct-h { margin: 0 0 24px; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; }
.acct-forms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.acct-form { display: flex; flex-direction: column; padding: 28px 28px 26px; border-radius: 30px; background: #f4e3cc; }
.acct-form h3 { margin: 0 0 18px; font-family: var(--display); font-weight: 800; font-size: 21px; }
.acct-form .field { margin-bottom: 16px; }
.acct-form .field input { font-size: 17px; height: 44px; }
.acct-form .btn { align-self: flex-start; margin-top: auto; }
.acct-form p { margin: 0 0 18px; color: var(--ink-2); }
.acct-form.wide { max-width: 620px; background: transparent; border: 2px solid rgba(198, 10, 1, 0.3); }
.danger .btn.danger { border-color: var(--c4); color: var(--c4); }
.danger .btn.danger:hover { background: var(--c4); color: var(--cream); }

/* ---------- admin ---------- */
.req-box { margin: 40px 0 0; padding: 24px 28px 14px; border-radius: 30px; background: var(--c1); }
.req-box .acct-h { margin-bottom: 10px; font-size: 22px; }
.req { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1.5px solid rgba(34, 8, 12, 0.14); }
.req-act { display: flex; gap: 8px; }
.admin-search { display: block; margin: 40px 0 18px; }
.admin-search input { width: 100%; max-width: 440px; height: 48px; padding: 0; border: 0; border-bottom: 2px solid var(--ink); background: transparent; outline: none; font-size: 17px; }
.admin-search input:focus { border-bottom-color: var(--c3); }
.u-wrap { overflow-x: auto; padding: 6px 18px; border-radius: 28px; background: #f4e3cc; }
.u-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 15px; }
.u-table th { padding: 16px 12px 10px; text-align: start; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
[dir="rtl"] .u-table th { letter-spacing: 0; text-transform: none; font-size: 13px; }
.u-table td { padding: 14px 12px; border-top: 1.5px solid rgba(34, 8, 12, 0.1); vertical-align: top; }
.tag { padding: 2px 8px; border-radius: 6px; background: var(--c1); font-size: 11px; font-weight: 600; vertical-align: 2px; }
.muted-s { font-size: 13px; color: var(--ink-3); }

/* ---------- Ask AI ---------- */
/* "AI": our orange and red drifting into the violet and blue people read as AI, always moving */
.ai {
  --ai: linear-gradient(90deg, #e77515, #e60b09, #d6246e, #8b5cf6, #3b82f6, #8b5cf6, #d6246e, #e60b09, #e77515);
  background: var(--ai); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; font-weight: 800; animation: aiFlow 5s linear infinite;
}
@keyframes aiFlow { to { background-position: 300% 0; } }
.r-side button[aria-selected="true"] .ai { filter: brightness(1.25) saturate(1.1); }
.ai-eq i { background: linear-gradient(180deg, #e77515, #e60b09, #d6246e, #8b5cf6, #3b82f6, #e77515) !important; background-size: 100% 400% !important; animation: breathe 2.4s ease-in-out infinite, aiFlowV 4s linear infinite; }
@keyframes aiFlowV { to { background-position: 0 400%; } }

/* one page scroll; the question box stays pinned at the bottom of the screen on a solid strip,
   and messages fade out just above it instead of passing behind it */
/* a chat window sized to the screen (--ask-h, set from JS): it scrolls on its own above the box */
.ask { display: flex; flex-direction: column; gap: 12px; height: var(--ask-h, clamp(420px, calc(100svh - 240px), 820px)); }
.ask-scroll { position: relative; flex: 1; min-height: 0; display: flex; }
.ask-thread {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px;
  margin: 0 -8px; padding: 14px 8px 30px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 28px), transparent 100%);
}
.ask-thread > * { flex: none; }
.ask-down {
  position: absolute; bottom: 10px; left: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px;
  border: 2px solid var(--cream); border-radius: 50%; background: var(--ink); color: var(--cream); cursor: pointer;
  opacity: 0; transform: translate(-50%, 10px) scale(0.9); pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease), background 0.2s;
}
.ask-down.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ask-down:hover { background: var(--c5); }
.ask-down svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* the question box floats at the bottom of the screen (the same gap sizeAsk leaves, so it doesn't jump
   when the page is lined up); above the floating player when that is showing */
.ask-dock { flex: none; position: sticky; bottom: 14px; z-index: 5; display: grid; gap: 8px; }
body.docked .ask-dock { bottom: 92px; }
.ask-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center; padding: 34px 38px; border-radius: 34px; background: #f4e3cc; }
.ask-intro .mini-eq { height: 104px; }
.ask-intro .mini-eq i { width: 15px; }
.ask-intro h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.ask-intro p { margin: 0 0 20px; color: var(--ink-2); max-width: 52ch; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-q { padding: 9px 16px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.chip-q:hover { background: var(--ink); color: var(--cream); }
.msg { max-width: 88%; animation: fadeUp 0.45s var(--ease) both; }
.msg.me { align-self: flex-end; padding: 12px 18px; border-radius: 22px; border-end-end-radius: 6px; background: var(--ink); color: var(--cream); }
.msg.me p { margin: 0; white-space: pre-wrap; }
.msg.bot { align-self: stretch; max-width: 100%; }
.a-label { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.a-label .ai { font-size: 14px; letter-spacing: 0.06em; }
.a-none { padding: 2px 10px; border-radius: 999px; background: rgba(34, 8, 12, 0.08); color: var(--ink-2); font-weight: 600; font-size: 12px; }
.a-text p { margin: 0 0 10px; font-size: 17px; line-height: 1.75; }
.a-text ul { margin: 0 0 10px; padding-inline-start: 22px; font-size: 17px; line-height: 1.7; }
.msg.none .a-text p { color: var(--ink-2); }
.a-think { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
/* citation numbers: small and quiet, a click opens the source */
.nw { white-space: nowrap; }
.cites { display: inline-flex; gap: 2px; margin-inline-start: 3px; vertical-align: 0.42em; }
.cite {
  display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border: 0; border-radius: 5px;
  background: rgba(235, 189, 127, 0.55); color: var(--ink-2); font: 600 10.5px/1 var(--body); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cite:hover, .cite.on { background: var(--ink); color: var(--cream); }
.cite-pop {
  position: fixed; z-index: 90; padding: 16px 18px 14px; border: 2px solid var(--ink); border-radius: 20px; background: var(--cream); color: var(--ink);
  visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 0.16s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.cite-pop.up { transform: translateY(6px); }
.cite-pop.show { visibility: visible; opacity: 1; transform: none; transition: opacity 0.16s, transform 0.35s var(--ease); }
.cp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
[dir="rtl"] .cp-head { letter-spacing: 0; text-transform: none; font-size: 13px; }
.cp-n { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px; background: var(--ink); color: var(--cream); font-size: 11px; letter-spacing: 0; }
.cite-pop blockquote { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.55; }
.cp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.proof-play { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.proof-play:hover { background: var(--c5); }
.proof-play svg { width: 13px; height: 13px; fill: currentColor; }
.ask-err { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; color: var(--c4); font-size: 15px; }
.ask-form {
  flex: none; display: flex; align-items: flex-end; gap: 10px;
  padding: 8px; padding-inline-start: 22px; border: 2px solid var(--ink); border-radius: 30px; background: var(--cream);
}
.ask-form:focus-within { border-color: var(--c3); }
.ask-form textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 160px; padding: 10px 0; border: 0; background: transparent; outline: none; resize: none; font-size: 17px; line-height: 1.5; }
.ask-send { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); color: var(--cream); cursor: pointer; transition: background 0.2s, transform 0.3s var(--ease); }
.ask-send:hover { background: var(--c5); transform: scale(1.05); }
.ask-send.is-busy { pointer-events: none; opacity: 0.5; }
.ask-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .ask-send svg { transform: scaleX(-1); }
/* the Ask AI budget: a thin line under the box */
.ask-foot { display: flex; align-items: center; gap: 12px; margin: 0 8px; padding: 3px 12px; border-radius: 999px; background: var(--cream); font-size: 12px; color: var(--ink-3); }
.ai-meter { position: relative; flex: 1 0 40px; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(34, 8, 12, 0.1); }
.ai-meter i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: linear-gradient(90deg, #e77515, #e60b09, #d6246e, #8b5cf6, #3b82f6); background-size: 300% 100%; animation: aiFlow 5s linear infinite; transition: width 0.6s var(--ease); }
.ai-meter.full i { background: var(--c4); animation: none; }
.ai-meter-k { flex: 0 1 auto; min-width: 0; line-height: 1.35; } /* wraps on narrow phones instead of widening the page */


/* ---------- confirm dialog (ours, not the browser's) ---------- */
.dlg { width: min(460px, calc(100vw - 32px)); max-width: none; padding: 0; border: 2px solid var(--ink); border-radius: 30px; background: var(--cream); color: var(--ink); }
.dlg::backdrop { background: rgba(34, 8, 12, 0.45); }
.dlg[open] { animation: dlgIn 0.35s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.dlg-in { padding: 30px 30px 26px; }
.dlg h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.2; }
.dlg p { margin: 0 0 26px; color: var(--ink-2); line-height: 1.65; }
.dlg-act { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.dlg-act .btn-big { width: auto; height: 50px; padding: 0 24px; font-size: 15px; }
.btn-big.ghost { border: 2px solid var(--ink); background: transparent; color: var(--ink); }
.btn-big.ghost:hover { background: var(--ink); color: var(--cream); }
.btn-big.danger { background: var(--c4); }
.btn-big.danger:hover { background: var(--c5); }

/* ---------- checkout: our order summary beside Paddle's card form ---------- */
.checkout { max-width: 1180px; margin: 0 auto; padding: 120px var(--pad) 96px; }
.pay { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.pay-plan {
  --line: rgba(251, 243, 232, 0.2); --tick: var(--c1);
  position: sticky; top: 100px; padding: 30px 36px 34px; border-radius: 40px; background: var(--c5); color: var(--cream);
  animation: fadeUp 0.7s var(--ease) both;
}
.pay-plan.plan-pro { background: var(--ink); }
.pay-back { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-size: 14px; font-weight: 600; text-decoration: none; opacity: 0.75; transition: opacity 0.2s; }
.pay-back:hover { opacity: 1; }
[dir="rtl"] .pay-back svg { transform: scaleX(-1); }
.pay-plan .label { margin: 34px 0 16px; color: var(--c1); }
.pay-plan .plan-mark { height: 52px; }
.pay-name { margin: 16px 0 4px; font-family: var(--display); font-weight: 800; font-size: clamp(52px, 5vw, 80px); line-height: 1; }
.pay-for { margin: 0 0 26px; opacity: 0.75; }
.pay-plan .plan-feats { margin: 0; }
.pay-main { animation: fadeUp 0.7s var(--ease) 0.08s both; }
.pay-main .acct-h { margin-bottom: 16px; font-size: clamp(24px, 2.2vw, 32px); }
.pay-sum { margin-bottom: 40px; padding: 22px 26px 20px; border-radius: 30px; background: #f4e3cc; }
.pay-rows { margin: 0; }
.pay-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--ink-2); }
.pay-rows dt, .pay-rows dd { margin: 0; }
.pay-rows dd { font-variant-numeric: tabular-nums; color: var(--ink); }
.pay-pending { color: var(--ink-3); font-size: 14px; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 2px solid var(--ink); }
.pay-total span { font-weight: 600; }
.pay-total b { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.pay-then { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.pay-box { position: relative; min-height: 470px; padding: 20px; border: 2px solid var(--ink); border-radius: 30px; background: #fff; }
.pay-wait { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 14px; border-radius: inherit; background: #fff; color: var(--ink-2); font-size: 15px; transition: opacity 0.35s, visibility 0s linear 0.35s; }
.pay-wait.gone { opacity: 0; visibility: hidden; }
.pay-failed { display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; }
.pay-failed p { margin: 0; max-width: 34ch; color: var(--ink-2); }
.pay-failed .btn-big { width: auto; padding: 0 34px; }
.pay-alert { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px; border-radius: 18px; background: #fbe1da; color: var(--c4); font-size: 15px; font-weight: 500; }
.pay-secure { display: flex; align-items: flex-start; gap: 10px; margin: 16px 4px 0; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.pay-secure svg.i { margin-top: 2px; }
.pay-done { max-width: 760px; margin: 30px auto 0; text-align: center; animation: fadeUp 0.7s var(--ease) both; }
.pay-done .mini-eq { justify-content: center; margin-bottom: 30px; }
.pay-done .label { justify-content: center; }
.pay-done h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 96px); line-height: 1; letter-spacing: -0.02em; }
[dir="rtl"] .pay-done h1 { line-height: 1.25; letter-spacing: 0; }
.pay-done-msg { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 28px; margin: 22px 0 34px; font-size: 18px; color: var(--ink-2); }
.pay-done-actions { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.pay-done-actions .btn-big { width: auto; display: inline-flex; align-items: center; padding: 0 34px; text-decoration: none; }
.pay-done-actions .btn { height: 52px; padding: 0 24px; font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .steps-nav { gap: 12px; }
  .steps-nav span { display: none; }
  .steps-nav li.on span { display: inline; }
}
@media (max-width: 900px) {
  .top { grid-template-columns: auto 1fr; }
  .steps-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 104px; min-height: 0; gap: 34px; }
  .drop { height: 480px; }
  .hint { display: none; }
  .story { height: 320vh; }
  .story-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 22px; padding-top: 92px; }
  .morph { order: -1; aspect-ratio: auto; height: 36svh; max-height: none; }
  .story-steps { margin-top: 22px; }
  .story-steps li:not(.on) { display: none; }
  .gallery { height: auto; }
  .gallery-pin { position: static; height: auto; overflow: visible; padding: 80px 0 40px; }
  .gallery-track { flex-direction: column; width: auto; transform: none !important; }
  .panel { width: 100%; height: auto; min-height: 320px; transform: none !important; }
  .gallery-count { display: none; }
  .tx-grid { grid-template-columns: 1fr; }
  .cta { border-radius: 36px 36px 0 0; padding-block: 120px; }
  .r-body { grid-template-columns: 1fr; gap: 26px; }
  .r-side { position: sticky; top: 76px; z-index: 6; flex-direction: row; overflow-x: auto; scrollbar-width: none; } /* tabs stay in reach */
  .r-side button { flex: 1 0 auto; grid-template-columns: auto; padding: 12px 16px; }
  .r-side button b, .r-side small { display: none; }
  .r-side .tl { font-size: 16px; white-space: nowrap; }
  .player { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 14px 18px 12px 14px; }
  .pl-play { width: 58px; height: 58px; }
  .d-empty { grid-template-columns: 1fr; padding: 32px 26px; gap: 22px; }
  .d-empty .mini-eq { height: 90px; }
  .pl-dock { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; }
  .pd-title { display: none; }
  .pricing { padding-block: 110px 120px; }
  .plans { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; padding-top: 0; }
  .plan, .plan.featured { margin-top: 0; padding: 30px 26px 26px; }
  .auth { grid-template-columns: 1fr; min-height: 0; padding-top: 92px; gap: 8px; }
  .auth-side { min-height: 0; padding: 28px 28px 30px; border-radius: 34px; justify-content: flex-start; }
  .auth-side .auth-eq { position: static; height: 70px; margin: 0 0 22px; }
  .auth-side .auth-eq i { width: 12px; }
  .auth-side .auth-eq i:nth-child(1), .auth-side .auth-eq i:nth-child(5) { height: 28px; }
  .auth-side .auth-eq i:nth-child(2), .auth-side .auth-eq i:nth-child(4) { height: 48px; }
  .auth-side .auth-eq i:nth-child(3) { height: 70px; }
  .auth-big { font-size: 38px; }
  .auth-perk { font-size: 16px; margin-top: 10px; }
  .auth-main { padding: 28px 0 0; }
  .acct, .admin { padding-top: 104px; }
  .usage { padding: 28px 24px 24px; border-radius: 32px; }
  .acct-forms { grid-template-columns: 1fr; }
  .ask-intro { grid-template-columns: 1fr; gap: 18px; padding: 26px 24px; }
  .ask-intro .mini-eq { height: 64px; }
  .msg { max-width: 94%; }
  .dlg-in { padding: 26px 22px 22px; }
  .dlg-act .btn-big { flex: 1; padding: 0 12px; white-space: nowrap; }
  .checkout { padding-top: 100px; }
  .pay { grid-template-columns: 1fr; gap: 22px; }
  .pay-plan { position: static; padding: 24px 26px 28px; border-radius: 32px; }
  .pay-plan .label { margin-top: 22px; }
  .pay-box { padding: 12px; border-radius: 24px; }
  .pay-total b { font-size: 34px; }
}
@media (max-width: 560px) {
  .hero-title, [dir="rtl"] .hero-title { font-size: clamp(40px, 13.4vw, 64px); }
  .top { gap: 10px; }
  .brand span { display: none; }
  .brand img { height: 34px; }
  .top-end, #barEnd { gap: 6px; }
  .pill, .lang { height: 40px; padding: 0 12px; gap: 6px; }
  .lang .lbl-l { display: none; }
  .lang .lbl-s { display: inline; }
  .r-side { padding: 4px; gap: 2px; }
  .r-side button { flex: 1 1 auto; padding: 10px 6px; justify-content: center; text-align: center; }
  .r-side .tl { font-size: 14.5px; }
  .r-side .tl-l { display: none; }
  .r-side .tl-s { display: inline; }
  .player { gap: 12px; padding: 12px 14px 10px 12px; border-radius: 28px; }
  .pl-play { width: 50px; height: 50px; }
  .pl-play svg { width: 22px; height: 22px; }
  .pl-wave { height: 52px; }
  .pl-row { gap: 6px; }
  .pl-ctrl { gap: 4px; }
  .pl-btn { height: 30px; padding: 0 8px; gap: 3px; font-size: 12px; }
  .pl-btn svg { width: 13px; height: 13px; }
  .pl-time { min-width: 0; overflow: hidden; font-size: 12px; }
  #barEnd .lbl, .acct-pill .lbl { display: none; }
  .acct-pill { padding-inline: 4px; }
  .drop { height: 440px; padding: 36px 24px; border-radius: 32px; }
  .eq { height: 150px; }
  .eq i:nth-child(3) { height: 150px; }
  .eq i:nth-child(2), .eq i:nth-child(4) { height: 100px; }
  .eq i:nth-child(1), .eq i:nth-child(5) { height: 60px; }
  .drop-fmt { bottom: 28px; }
}
@media (max-width: 360px) {
  .brand img { height: 31px; }
  .pill, .lang { padding: 0 11px; }
  .lang svg { display: none; } /* "EN" / "ع" alone is clear enough on the smallest phones */
  .r-side .tl { font-size: 13px; }
  .r-side button { padding-inline: 4px; }
  .pl-play { width: 44px; height: 44px; }
  .player { gap: 10px; padding-inline: 10px 12px; }
  .pl-btn { padding: 0 5px; }
  .pl-ctrl { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .story, .gallery { height: auto; }
  .story-pin, .gallery-pin { position: static; height: auto; }
  .story-steps li { opacity: 1; transform: none; }
  .gallery-track { flex-wrap: wrap; width: auto; }
  .uses-list li { opacity: 1; }
}
