/* تعليق صوتي بالعربي — homepage
   Ink and paper only, like the black and white icons. The particles carry the life;
   the page stays quiet around them. */

@font-face { font-family: "Readex Pro"; font-weight: 300; font-display: swap; src: url("fonts/ReadexPro-Light.woff2") format("woff2"); }
@font-face { font-family: "Readex Pro"; font-weight: 400; font-display: swap; src: url("fonts/ReadexPro-Regular.woff2") format("woff2"); }
@font-face { font-family: "Readex Pro"; font-weight: 500; font-display: swap; src: url("fonts/ReadexPro-Medium.woff2") format("woff2"); }
@font-face { font-family: "Readex Pro"; font-weight: 600; font-display: swap; src: url("fonts/ReadexPro-SemiBold.woff2") format("woff2"); }

:root {
  --ink: #000000;
  --paper: #ECECE8;
  --chalk: #F4F4F1;
  --chalk-2: #C6C6C2;
  --ash: #8F8F94;
  --graphite: #55555A;
  --rule-ink: rgba(244, 244, 241, .16);
  --rule-paper: rgba(0, 0, 0, .14);
  --gutter: clamp(16px, 4.2vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 88px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  color: var(--chalk);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.sr-only {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.skip {
  position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 30;
  padding: 10px 16px; border-radius: 999px; background: var(--chalk); color: var(--ink);
  text-decoration: none; transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---- the stage: one fixed canvas between section backgrounds and their content ---- */
.stage {
  position: fixed;
  inset: 0;
  inline-size: 100vw;
  block-size: 100vh;
  block-size: 100lvh;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: difference;
}
.wrap {
  position: relative;
  z-index: 2;
  inline-size: 100%;
  max-inline-size: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.tone-ink { background: var(--ink); color: var(--chalk); }
.tone-paper { background: var(--paper); color: var(--ink); }

/* ---- bar: inverts over paper, exactly like the icon pair ---- */
.bar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
  transition: transform .4s var(--ease);
}
.bar.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { block-size: 34px; inline-size: auto; aspect-ratio: 1000 / 1439; fill: currentColor; }
.brand-name { font-size: 16px; font-weight: 500; white-space: nowrap; }
.bar-links { display: flex; gap: 28px; margin-inline-start: auto; font-size: 15px; }
.bar-links a { text-decoration: none; opacity: .78; transition: opacity .15s; }
.bar-links a:hover { opacity: 1; }
.bar .cta { min-block-size: 42px; padding-inline: 20px; font-size: 15px; background: #fff; color: #000; }
.bar .cta.is-soon { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }

/* ---- type ---- */
.display {
  font-size: clamp(46px, 6.4vw, 104px);
  font-weight: 600;
  line-height: 1.16;
  color: var(--chalk);
}
.h2 { font-size: clamp(32px, 3.9vw, 56px); font-weight: 500; line-height: 1.3; }
.lead { font-size: clamp(18px, 1.5vw, 21px); font-weight: 300; line-height: 1.85; color: var(--chalk-2); max-inline-size: 34em; }
.body { font-size: 17px; line-height: 1.9; color: var(--chalk-2); max-inline-size: 36em; }
.fine { font-size: 14px; color: var(--ash); }
.tone-paper .body, .tone-paper .fine { color: var(--graphite); }

/* ---- buttons ---- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 54px;
  padding-inline: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--chalk);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s var(--ease), background-color .15s;
}
a.cta:hover { background: #fff; }
a.cta:active { transform: scale(.97); }
.cta.is-soon { background: transparent; color: var(--chalk); border-color: rgba(244, 244, 241, .38); cursor: default; }
.tone-paper .cta { background: var(--ink); color: var(--paper); }

/* ---- hero ---- */
.hero { min-block-size: 100svh; display: grid; align-items: center; padding-block: 120px 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.hero-copy { grid-column: 1; grid-row: 1; }
.hero-copy .display { margin-block-end: 28px; }
.hero-fallback { display: none; grid-column: 2; grid-row: 1; justify-self: center; block-size: min(62vh, 520px); fill: var(--chalk); }
.no-gl .hero-fallback { display: block; }
.no-gl .stage { display: none; }

/* the written line */
.say { margin-block-start: 44px; max-inline-size: 560px; }
.say-label { display: block; font-size: 14px; color: var(--ash); margin-block-end: 6px; }
.say-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block-end: 8px;
  border-block-end: 1px solid rgba(244, 244, 241, .38);
  transition: border-color .2s;
}
.say-line:focus-within { border-color: var(--chalk); box-shadow: 0 1px 0 var(--chalk); }
.say-input {
  flex: 1;
  min-inline-size: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 500;
  line-height: 1.5;
  caret-color: var(--chalk);
}
.say-input::placeholder { color: rgba(244, 244, 241, .32); }
.say-go {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 56px;
  block-size: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--chalk);
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s var(--ease);
}
.say-go:hover { background: #fff; }
.say-go:active { transform: scale(.94); }
.say-go svg { inline-size: 24px; block-size: 24px; grid-area: 1 / 1; }
.say-go .i-stop, .say-go.is-playing .i-play, .say-go.is-busy .i-play { display: none; }
.say-go.is-playing .i-stop { display: block; }
.say-busy {
  display: none;
  grid-area: 1 / 1;
  inline-size: 26px;
  block-size: 3px;
  border-radius: 2px;
  background: currentColor;
  animation: stretch 1s var(--ease) infinite alternate;
}
.say-go.is-busy .say-busy { display: block; }
@keyframes stretch { from { transform: scaleX(.25); } to { transform: scaleX(1); } }

.say-voices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 18px; }
.say-voice-label { font-size: 14px; color: var(--ash); margin-inline-end: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.chip span {
  display: inline-block;
  padding: 5px 15px;
  border: 1px solid rgba(244, 244, 241, .28);
  border-radius: 999px;
  font-size: 14px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover span { border-color: rgba(244, 244, 241, .6); }
.chip input:checked + span { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.chip input:focus-visible + span { outline: 2px solid var(--chalk); outline-offset: 3px; }
.say-status { min-block-size: 1.7em; margin-block-start: 12px; font-size: 14px; color: var(--chalk-2); }

.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-block-start: 28px; }

/* kashida grows with the voice; it never moves on its own */
.kashida { white-space: nowrap; }

/* ---- what it does: four verbs ---- */
.act { min-block-size: 100svh; display: grid; align-items: center; padding-block: 16vh; }
.act-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.act-copy { grid-column: 1; }
.verb {
  font-size: clamp(96px, 13.5vw, 216px);
  font-weight: 300;
  line-height: 1.05;
  margin-block-end: 12px;
  color: var(--chalk);
}
.act-title { font-size: clamp(26px, 2.5vw, 38px); font-weight: 500; line-height: 1.4; margin-block-end: 18px; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; max-inline-size: 30em; border-block-start: 1px solid var(--rule-ink); }
.facts li { padding-block: 12px; border-block-end: 1px solid var(--rule-ink); font-size: 15px; color: var(--chalk-2); }

/* ---- voices ---- */
.voices { padding-block: 18vh 14vh; }
.voices-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.voices-head, .voice-list, .voices-soon { grid-column: 1; }
.voices-head .body { margin-block-start: 16px; }
.voice-list { list-style: none; margin: 48px 0 0; padding: 0; border-block-start: 1px solid var(--rule-ink); }
.voice {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  padding-block: 18px;
  border-block-end: 1px solid var(--rule-ink);
}
.voice-play {
  grid-row: span 2;
  display: grid;
  place-items: center;
  inline-size: 52px;
  block-size: 52px;
  border: 1px solid rgba(244, 244, 241, .32);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.voice-play svg { inline-size: 22px; block-size: 22px; grid-area: 1 / 1; }
.voice-play .i-stop, .voice-play.is-playing .i-play { display: none; }
.voice-play.is-playing .i-stop { display: block; }
.voice-play:hover { border-color: var(--chalk); }
.voice-play.is-playing { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.voice-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.voice-name { font-size: 21px; font-weight: 500; }
.voice-meta { font-size: 14px; color: var(--ash); }
.voice-desc { grid-column: 2; font-size: 14px; line-height: 1.75; color: var(--chalk-2); }
.voices-soon { margin-block-start: 32px; color: var(--chalk-2); }

/* ---- free ---- */
.free { min-block-size: 92svh; display: grid; align-items: center; padding-block: 14vh; }
.free-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 28px; }
.free-grid > * { grid-column: 1; justify-self: start; }

/* ---- pricing (paper) ---- */
.pricing { padding-block: 16vh 10vh; }
.pricing-head { max-inline-size: 640px; }
.pricing-head .body { margin-block-start: 16px; }
.plans {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.plan { padding: 36px 34px 40px; border-inline-start: 1px solid var(--rule-paper); }
.plan:first-child { border-inline-start: 0; padding-inline-start: 0; }
.plan.is-featured {
  position: relative;
  z-index: 2;
  margin-block: -20px;
  padding: 56px 38px 60px;
  border: 0;
  border-radius: 28px;
  background: var(--ink);
  color: var(--chalk);
}
.plan.is-featured + .plan { border-inline-start: 0; }
.plan-name { font-size: 26px; font-weight: 600; }
.plan-tag { margin-block-start: 4px; font-size: 15px; color: var(--graphite); }
.is-featured .plan-tag { color: var(--chalk-2); }
.plan-price { margin-block-start: 28px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-amount { font-size: clamp(46px, 4.6vw, 66px); font-weight: 300; line-height: 1; }
.plan-unit { font-size: 15px; color: var(--graphite); }
.is-featured .plan-unit { color: var(--chalk-2); }
.plan-reach { block-size: 24px; margin-block-start: 26px; inline-size: max(18%, calc(var(--reach) * 100%)); }
.plan-reach svg { inline-size: 100%; block-size: 100%; fill: currentColor; }
.plan-features { list-style: none; margin: 26px 0 0; padding: 0; }
.plan-features li { padding-block: 11px; border-block-start: 1px solid var(--rule-paper); font-size: 15px; line-height: 1.7; }
.is-featured .plan-features li { border-color: var(--rule-ink); }
.pricing-note { margin-block-start: 44px; font-size: 14px; color: var(--graphite); }

/* ---- questions (paper) ---- */
.faq { padding-block: 10vh 18vh; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.faq-head .body { margin-block-start: 16px; }
.faq-head a { text-underline-offset: 5px; }
.faq-list { border-block-start: 1px solid var(--rule-paper); }
.faq details { border-block-end: 1px solid var(--rule-paper); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  inline-size: 14px;
  block-size: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-block-end: 24px; max-inline-size: 60ch; color: var(--graphite); font-size: 16px; }
.faq details a { text-underline-offset: 4px; }

/* ---- final ---- */
.final { min-block-size: 100svh; display: grid; align-items: center; padding-block: 16vh; }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 26px; }
.final-grid > * { grid-column: 1; justify-self: start; }

/* ---- footer ---- */
.foot { position: relative; padding-block: 44px; border-block-start: 1px solid var(--rule-ink); }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.foot .brand-mark { block-size: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.foot-links a { color: var(--chalk-2); text-decoration: none; }
.foot-links a:hover { color: var(--chalk); }

/* ---- narrow screens: the shape sits on top, words below it ---- */
@media (max-width: 899px) {
  .bar { gap: 16px; padding-block: 14px; }
  .bar-links { display: none; }
  .bar .cta { margin-inline-start: auto; min-block-size: 38px; padding-inline: 16px; font-size: 14px; }
  .brand-name { font-size: 15px; }
  .hero, .act, .free, .final { align-items: end; }
  .hero { padding-block: 38svh 48px; }
  .hero-grid, .act-grid, .voices-grid, .free-grid, .final-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-fallback { grid-column: 1; grid-row: 1; block-size: 30svh; margin-block-end: 24px; }
  .no-gl .hero { padding-block-start: 96px; }
  .no-gl .hero-copy { grid-row: 2; }
  .act { padding-block: 46svh 12svh; }
  .act-copy, .free-grid, .final-grid { padding-block-start: 28px; background: linear-gradient(to bottom, transparent, var(--ink) 28px); }
  .verb { font-size: clamp(80px, 24vw, 120px); }
  .voices { padding-block: 44svh 10svh; }
  .voices-head { background: linear-gradient(to bottom, transparent, var(--ink) 32px); padding-block-start: 32px; }
  .voice-list { background: var(--ink); }
  .free { padding-block: 44svh 10svh; }
  .final { padding-block: 44svh 12svh; }
  .plans { grid-template-columns: minmax(0, 1fr); margin-block-start: 40px; }
  .plan, .plan:first-child { padding: 28px 0 32px; border-inline-start: 0; border-block-start: 1px solid var(--rule-paper); }
  .plan.is-featured { margin-block: 8px; padding: 36px 24px 40px; }
  .plan.is-featured + .plan { border-block-start: 0; }
  .faq-grid { gap: 28px; }
  .faq summary { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
