/* Nawa Books landing page */

/* ---------- Tokens ---------- */
:root {
  --bg: #faf6ee;
  --bg-2: #f3ecdf;
  --surface: #ffffff;
  --surface-2: #f6f1e7;
  --ink: #10231f;
  --ink-2: #3d5a53;
  --muted: #6b827c;
  --line: rgba(16, 35, 31, .10);
  --line-2: rgba(16, 35, 31, .16);
  --brand: #0b3d36;
  --brand-2: #12564c;
  --mint: #17907a;
  --mint-soft: rgba(23, 144, 122, .12);
  --accent: #f0a93a;
  --accent-soft: rgba(240, 169, 58, .16);
  --on-accent: #2a1a00;
  --glass: rgba(255, 255, 255, .72);
  --shadow-sm: 0 1px 2px rgba(16, 35, 31, .06), 0 2px 8px rgba(16, 35, 31, .05);
  --shadow-md: 0 10px 30px -10px rgba(16, 35, 31, .22);
  --shadow-lg: 0 40px 80px -30px rgba(11, 61, 54, .45);
  --blob-a: #8ee0cb;
  --blob-b: #f6c77b;
  --blob-c: #b5d8ff;
  --phone: #0c1311;

  --font-body: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --radius: 24px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

:root:lang(ar) {
  --font-display: 'El Messiri', 'Readex Pro', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07110f; --bg-2: #0b1916; --surface: #0e1f1b; --surface-2: #132925; --ink: #eaf3f0; --ink-2: #b4cbc4; --muted: #84a098;
    --line: rgba(234, 243, 240, .09); --line-2: rgba(234, 243, 240, .16); --mint: #5fd3b7; --mint-soft: rgba(95, 211, 183, .12);
    --accent-soft: rgba(240, 169, 58, .14); --glass: rgba(14, 31, 27, .72);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
    --blob-a: #0f6b5a; --blob-b: #7a4f12; --blob-c: #163a5c; --phone: #050807;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #07110f; --bg-2: #0b1916; --surface: #0e1f1b; --surface-2: #132925; --ink: #eaf3f0; --ink-2: #b4cbc4; --muted: #84a098;
  --line: rgba(234, 243, 240, .09); --line-2: rgba(234, 243, 240, .16); --mint: #5fd3b7; --mint-soft: rgba(95, 211, 183, .12);
  --accent-soft: rgba(240, 169, 58, .14); --glass: rgba(14, 31, 27, .72);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
  --blob-a: #0f6b5a; --blob-b: #7a4f12; --blob-c: #163a5c; --phone: #050807;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .4s, color .4s;
}
:lang(ar) body { line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.sec-lead, .hero__lead, .step p, .card p { text-wrap: pretty; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -.01em; font-size: 1.08rem; line-height: 1.35; }
:lang(ar) h3 { font-family: var(--font-body); }
p { margin: 0; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 600; border: 0; transition: transform .3s var(--ease-spring), box-shadow .3s, background-color .3s; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -8px rgba(240, 169, 58, .7); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(240, 169, 58, .8); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); transition: transform .3s var(--ease-spring), border-color .3s, background-color .3s; }
.icon-btn:hover { transform: rotate(-8deg) scale(1.06); border-color: var(--mint); }
.lang-btn__label { font-weight: 700; font-size: 1rem; line-height: 1; }
:lang(ar) .lang-btn__label { font-family: var(--font-body); font-size: .82rem; letter-spacing: .02em; }
.theme-ico--sun { display: none; }
[data-theme="dark"] .theme-ico--moon { display: none; }
[data-theme="dark"] .theme-ico--sun { display: block; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.is-scrolled { background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 16px; max-width: 1200px; margin-inline: auto; padding: 14px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand__name { font-size: 1.08rem; letter-spacing: -.01em; white-space: nowrap; }
.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--ink); background: var(--mint-soft); }
.nav__tools { display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__tools { margin-inline-start: auto; }
}
@media (max-width: 420px) {
  .nav__cta { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(24px, 5vw, 64px) 0 clamp(48px, 8vw, 110px); overflow: clip; }
.hero__bg { position: absolute; inset: -80px 0 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob--a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; background: var(--blob-a); top: 2%; inset-inline-end: -6%; animation: drift-a 22s ease-in-out infinite alternate; }
.blob--b { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; background: var(--blob-b); top: 42%; inset-inline-end: 28%; animation: drift-b 26s ease-in-out infinite alternate; opacity: .4; }
.blob--c { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; background: var(--blob-c); top: -10%; inset-inline-start: -10%; animation: drift-c 30s ease-in-out infinite alternate; opacity: .35; }
.grain { position: absolute; inset: 0; opacity: .06; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
@keyframes drift-a { to { transform: translate3d(-8%, 10%, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(14%, -12%, 0) scale(.9); } }
@keyframes drift-c { to { transform: translate3d(12%, 8%, 0) scale(1.15); } }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .88rem; font-weight: 500; color: var(--ink-2); }
:lang(ar) .eyebrow { padding: 7px 10px 7px 14px; }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--mint); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hero__title { margin-top: 22px; font-size: clamp(2.7rem, 6.4vw, 5.4rem); font-weight: 600; line-height: 1.02; }
:lang(ar) .hero__title { font-size: clamp(2.5rem, 6vw, 4.9rem); line-height: 1.3; font-weight: 700; }
.hero__title .w { display: inline-block; white-space: pre; }
.hero__title .w--accent { color: var(--mint); font-style: italic; }
:lang(ar) .hero__title .w--accent { font-style: normal; }
.hero__lead { margin-top: 22px; max-width: 34rem; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 186px; padding: 10px 20px 10px 16px; border-radius: 16px; background: #0f1a18; color: #fff; border: 1px solid rgba(255, 255, 255, .12); transition: transform .35s var(--ease-spring), box-shadow .3s; }
:lang(ar) .store { padding: 10px 16px 10px 20px; }
[data-theme="dark"] .store { background: #fff; color: #0f1a18; border-color: transparent; }
.store span { display: grid; line-height: 1.15; text-align: start; }
.store small { font-size: .72rem; opacity: .75; }
.store b { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; font-family: var(--font-body); }
.store__ico { width: 26px; height: 26px; fill: none; stroke: currentColor; }
a.store:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.store--soon { opacity: .62; cursor: default; }
.store--light, [data-theme="dark"] .store--light { background: #fff; color: #0f1a18; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .93rem; }
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticks .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--mint-soft); color: var(--mint); stroke-width: 3; }

/* Stage: phone, fanned covers and floating chips */
.hero__stage { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1200px; }
.stage { position: relative; width: min(300px, 66vw); aspect-ratio: 600 / 1298; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out); }
.phone { position: relative; padding: 9px; border-radius: 46px; background: var(--phone); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .12), inset 0 0 0 5px rgba(255, 255, 255, .03); }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(130deg, rgba(255, 255, 255, .16), transparent 32%); }
.phone__screen { width: 100%; border-radius: 37px; background: #0c1513; }
.phone--hero { position: relative; z-index: 2; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px); } }
.stage__cover { position: absolute; width: 58%; border-radius: 14px; box-shadow: var(--shadow-md); z-index: 1; }
.stage__cover--1 { top: 9%; inset-inline-start: -46%; transform: rotate(-13deg) translateZ(-40px); animation: float-1 9s ease-in-out infinite; }
.stage__cover--2 { top: 46%; inset-inline-end: -48%; transform: rotate(11deg) translateZ(-60px); animation: float-2 10s ease-in-out infinite; }
.stage__cover--3 { top: -6%; inset-inline-end: -30%; width: 44%; transform: rotate(8deg) translateZ(-90px); animation: float-3 12s ease-in-out infinite; opacity: .9; }
@keyframes float-1 { 50% { transform: rotate(-9deg) translate(0, -18px) translateZ(-40px); } }
@keyframes float-2 { 50% { transform: rotate(14deg) translate(0, 16px) translateZ(-60px); } }
@keyframes float-3 { 50% { transform: rotate(4deg) translate(0, 12px) translateZ(-90px); } }
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-md); font-size: .86rem; font-weight: 600; white-space: nowrap; color: var(--ink); }
.chip .ico { width: 18px; height: 18px; }
.chip--wave { bottom: 14%; inset-inline-start: -34%; animation: chip 6s ease-in-out infinite; }
.chip--streak { top: 18%; inset-inline-end: -26%; animation: chip 7s ease-in-out infinite .8s; }
.chip--streak .ico { color: #e8732c; }
.chip--ideas { top: 56%; inset-inline-end: -36%; animation: chip 8s ease-in-out infinite 1.6s; }
.chip--ideas .ico { color: var(--accent); }
@keyframes chip { 50% { transform: translateY(-10px); } }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--mint); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; } .eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: grid; justify-items: center; }
  .hero__lead { margin-inline: auto; }
  .store-row, .hero__ticks { justify-content: center; }
  .hero__stage { min-height: 0; padding: 40px 0 10px; }
  .stage { width: min(250px, 58vw); }
  .chip { font-size: .78rem; padding: 8px 12px; }
  .chip--wave { inset-inline-start: -30%; }
  .chip--streak { inset-inline-end: -22%; }
  .chip--ideas { inset-inline-end: -26%; }
}
@media (max-width: 520px) {
  .stage__cover--1 { inset-inline-start: -34%; }
  .stage__cover--2 { inset-inline-end: -34%; }
  .stage__cover--3 { display: none; }
  .chip--wave { inset-inline-start: -16%; bottom: 8%; }
  .chip--streak { inset-inline-end: -14%; top: 12%; }
  .chip--ideas { display: none; }
}

/* ---------- Shelf (real covers) ---------- */
.shelf { padding: clamp(16px, 3vw, 40px) 0 clamp(8px, 2vw, 24px); }
.shelf__title { text-align: center; font-size: clamp(1.15rem, 2vw, 1.5rem); font-family: var(--font-body); font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-bottom: 28px; }
.marquee { direction: ltr; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; padding: 14px 0 22px; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { width: clamp(108px, 12vw, 158px); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-md); transition: transform .45s var(--ease-spring); }
.marquee img:nth-child(odd) { transform: translateY(10px); }
.marquee img:hover { transform: translateY(-8px) rotate(-2deg) scale(1.04); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */
.sec-head { max-width: 46rem; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.kicker { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: #b06d07; font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
[data-theme="dark"] .kicker { color: var(--accent); }
:lang(ar) .kicker { letter-spacing: 0; font-size: .9rem; }
.sec-head h2, .bilingual h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.sec-lead { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; }

/* ---------- Tour ---------- */
.tour { padding: clamp(56px, 8vw, 110px) 0; background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.tour__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 6vw, 96px); }
.tour__sticky { position: sticky; top: 90px; align-self: start; display: grid; justify-items: center; gap: 22px; height: calc(100vh - 120px); align-content: center; }
.phone--tour { width: min(320px, 100%); max-height: calc(100vh - 190px); aspect-ratio: 600 / 1298; }
.phone--tour .phone__screen { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); filter: blur(6px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), filter .6s; }
.phone--tour .phone__screen.is-on { opacity: 1; transform: none; filter: none; }
.tour__dots { display: flex; gap: 8px; }
.tour__dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .4s var(--ease-out), background-color .4s; }
.tour__dots i.is-on { width: 26px; background: var(--mint); }
.tour__steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px 0; opacity: .32; transition: opacity .5s; }
.step.is-on { opacity: 1; }
.step__num { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--mint); display: inline-flex; align-items: center; gap: 12px; }
.step__num::after { content: ""; width: 48px; height: 2px; background: currentColor; border-radius: 2px; transform-origin: left; transform: scaleX(.3); transition: transform .6s var(--ease-out); }
:lang(ar) .step__num::after { transform-origin: right; }
.step.is-on .step__num::after { transform: scaleX(1); }
.step h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
:lang(ar) .step h3 { font-family: var(--font-display); letter-spacing: 0; line-height: 1.4; }
.step p { max-width: 30rem; color: var(--ink-2); font-size: 1.08rem; }
.step__shot { display: none; }
@media (max-width: 900px) {
  .tour__grid { grid-template-columns: 1fr; }
  .tour__sticky { display: none; }
  .step { min-height: 0; opacity: 1; padding: 28px 0; text-align: center; align-items: center; }
  .step + .step { border-top: 1px solid var(--line); }
  .step__shot { display: block; width: min(260px, 72vw); margin-top: 12px; border-radius: 30px; border: 8px solid var(--phone); box-shadow: var(--shadow-lg); }
}

/* ---------- Features ---------- */
.features { padding: clamp(56px, 8vw, 110px) 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -24px auto 36px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 500; font-size: .92rem; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-spring); }
.filter:hover { transform: translateY(-2px); border-color: var(--mint); }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-spring), box-shadow .3s, border-color .3s; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--mint-soft), transparent 45%); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card p { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; background: var(--mint-soft); color: var(--mint); transition: transform .5s var(--ease-spring); }
.card:hover .card__icon { transform: rotate(-10deg) scale(1.08); }
.card__icon .ico { width: 22px; height: 22px; }
.card--wide { grid-column: span 2; }
.card.is-hidden { display: none; }
.card.is-pop { animation: pop .55s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.card--hero-listen { background: linear-gradient(140deg, var(--brand), #0f5247); color: #eaf6f2; border-color: transparent; }
.card--hero-listen p { color: rgba(234, 246, 242, .78); }
.card--hero-listen .card__icon { background: rgba(255, 255, 255, .1); color: var(--accent); }
.wave { display: flex; align-items: center; gap: 4px; height: 56px; margin-top: auto; padding-top: 12px; }
.wave i { flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(var(--accent), #f6c77b); transform-origin: center; animation: eq 1.4s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-duration: 1.1s; } .wave i:nth-child(4n) { animation-duration: 1.7s; } .wave i:nth-child(5n) { animation-delay: -.5s; }
.wave i:nth-child(odd) { animation-delay: -.8s; } .wave i:nth-child(7n) { animation-delay: -.2s; }
.card--ask { background: linear-gradient(160deg, var(--surface), var(--surface-2)); }
.bubbles { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: .88rem; line-height: 1.45; }
.bubble--q { justify-self: end; background: var(--mint); color: #062520; border-end-end-radius: 6px; }
[data-theme="dark"] .bubble--q { color: #062520; }
.bubble--a { justify-self: start; background: var(--bg-2); border: 1px solid var(--line); border-end-start-radius: 6px; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
.card--goal { flex-direction: column; padding-inline-end: 160px; min-height: 190px; }
.ring { position: absolute; inset-inline-end: 24px; top: 50%; width: 120px; height: 120px; margin-top: -60px; display: grid; place-items: center; align-content: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__bg { stroke: var(--line-2); }
.ring__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.6s var(--ease-out) .2s; }
.card--goal.is-in .ring__fg { stroke-dashoffset: 40; }
.ring b { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.ring small { font-size: .8rem; color: var(--muted); }

@media (max-width: 1020px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .card--wide { grid-column: auto; }
  .card { padding: 20px; }
  .card--goal { padding-inline-end: 130px; }
  .ring { width: 96px; height: 96px; margin-top: -48px; inset-inline-end: 18px; }
  .ring b { font-size: 1.6rem; }
}

/* ---------- Bilingual ---------- */
.bilingual { padding: clamp(56px, 8vw, 110px) 0; overflow: clip; }
.bilingual__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.bullets { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.bullets li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.bullets .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--accent); color: var(--on-accent); stroke-width: 3; }
.duo { position: relative; height: clamp(440px, 48vw, 600px); }
.phone--duo { position: absolute; width: min(260px, 44%); top: 50%; }
.phone--duo { transition: opacity .9s var(--ease-out), transform 1.2s var(--ease-out); }
.phone--left { inset-inline-start: 8%; transform: translateY(-54%) rotate(-7deg); z-index: 1; }
.phone--right { inset-inline-end: 8%; transform: translateY(-44%) rotate(6deg); z-index: 2; transition-delay: .12s; }
.js .duo:not(.is-in) .phone--duo { opacity: 0; }
.js .duo:not(.is-in) .phone--left { transform: translateY(-40%) translateX(-40px) rotate(-16deg); }
.js .duo:not(.is-in) .phone--right { transform: translateY(-30%) translateX(40px) rotate(14deg); }
.js .duo.reveal { transform: none; opacity: 1; }
.duo__tag { position: absolute; z-index: 3; padding: 8px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.duo__tag--ar { top: 6%; inset-inline-start: 2%; font-family: 'Readex Pro', sans-serif; }
.duo__tag--en { bottom: 6%; inset-inline-end: 2%; }
@media (max-width: 900px) {
  .bilingual__grid { grid-template-columns: 1fr; text-align: center; }
  .bullets { justify-items: center; }
  .duo { height: clamp(400px, 110vw, 560px); }
  .phone--duo { width: min(230px, 46%); }
  .phone--left { inset-inline-start: 4%; }
  .phone--right { inset-inline-end: 4%; }
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(56px, 8vw, 110px) 0; }
.faq__wrap { max-width: 860px; }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.qa[open] { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 1.04rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mint-soft) no-repeat center / 14px; background-image: linear-gradient(var(--mint), var(--mint)), linear-gradient(var(--mint), var(--mint)); background-size: 12px 2px, 2px 12px; transition: transform .4s var(--ease-spring), background-color .3s; }
.qa[open] summary::after { transform: rotate(135deg); }
.qa p { padding: 0 22px 22px; color: var(--ink-2); animation: qa-in .45s var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(56px, 8vw, 110px); }
.cta__card { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 32px; padding: clamp(32px, 5vw, 64px); border-radius: 36px; background: radial-gradient(circle at 85% 10%, rgba(240, 169, 58, .28), transparent 40%), radial-gradient(circle at 10% 100%, rgba(95, 211, 183, .25), transparent 45%), linear-gradient(140deg, #0b3d36, #082b26); color: #f2faf7; box-shadow: var(--shadow-lg); }
.cta__covers { position: relative; height: 300px; }
.cta__covers img { position: absolute; width: 46%; max-width: 170px; border-radius: 14px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6); transition: transform .8s var(--ease-spring); }
.cta__covers img:nth-child(1) { inset-inline-start: 4%; top: 12%; transform: rotate(-12deg); }
.cta__covers img:nth-child(2) { inset-inline-start: 30%; top: 0; z-index: 2; transform: rotate(2deg); }
.cta__covers img:nth-child(3) { inset-inline-start: 56%; top: 16%; transform: rotate(13deg); }
.cta__card:hover .cta__covers img:nth-child(1) { transform: rotate(-18deg) translate(-10px, -6px); }
.cta__card:hover .cta__covers img:nth-child(2) { transform: rotate(0) translateY(-14px); }
.cta__card:hover .cta__covers img:nth-child(3) { transform: rotate(19deg) translate(10px, -6px); }
.cta__logo { border-radius: 16px; margin-bottom: 20px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.cta__copy h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); color: #fff; }
.cta__copy p { margin-top: 12px; color: rgba(242, 250, 247, .8); font-size: 1.1rem; }
@media (max-width: 860px) {
  .cta__card { grid-template-columns: 1fr; text-align: center; }
  .cta__covers { height: 210px; max-width: 360px; width: 100%; margin-inline: auto; }
  .cta__logo { margin-inline: auto; }
  .cta__copy .store-row { justify-content: center; }
}

/* ---------- Footer ---------- */
.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--ink-2); font-size: .94rem; }
.footer__links a:hover { color: var(--mint); }
.footer__copy { color: var(--muted); font-size: .88rem; }
@media (max-width: 700px) { .footer__inner { flex-direction: column; text-align: center; } .footer__links { justify-content: center; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__title .w { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s; transition-delay: calc(var(--wi) * 70ms + 80ms); }
.js .hero__title.is-in .w { opacity: 1; transform: none; filter: none; }
.js .card.reveal { transform: translateY(30px) scale(.98); }
.js .card.reveal.is-in { transform: none; }

/* Theme switch: a circle grows from the toggle (View Transitions). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.lang-swap ::view-transition-old(root) { animation: fade-out .28s ease both; }
.lang-swap ::view-transition-new(root) { animation: fade-in .38s ease both; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero__title .w { opacity: 1; transform: none; filter: none; }
  .marquee__track { animation: none; }
}
