/* thoraya-website/src/assets/site.css — www.thoraya.app.
   Premium dark tech: ink, a raised surface, warm ivory, one teal signal (voice,
   signal, the action) and brass for small details. Instrument Serif for
   display and Satoshi for text; Reem Kufi and IBM Plex Sans Arabic in Arabic.
   A 12-column grid with equal outer margins. Motion lives in site.js; this
   file holds the resting state and the tokens it moves with. */

@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url(fonts/satoshi-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url(fonts/satoshi-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url(fonts/satoshi-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/plex-arabic-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/plex-arabic-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(fonts/plex-arabic-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: 'Reem Kufi'; src: url(fonts/reem-kufi-400-700.woff2) format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41; }

:root {
  --ink: #0B0C0E;
  --surface: #15171B;
  --surface-2: #1C1F24;
  --ivory: #EDE8DF;
  --ivory-2: rgba(237, 232, 223, 0.74);
  --ivory-3: rgba(237, 232, 223, 0.5);
  --line: rgba(237, 232, 223, 0.12);
  --signal: #3DE0C4;
  --signal-2: #6BEBD5;
  --brass: #B8925A;

  --display: 'Instrument Serif', 'Times New Roman', serif;
  --text: 'Satoshi', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);     /* expo-out: entrances */
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);  /* quart in-out: transitions */
  --fast: 200ms;

  --margin: clamp(16px, 2.8vw, 44px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --gap: clamp(88px, 10vw, 156px);               /* between sections */
}
html[lang='ar'] {
  --display: 'Reem Kufi', 'Instrument Serif', serif;
  --text: 'IBM Plex Sans Arabic', 'Satoshi', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 400 18px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* film grain over everything, very quiet */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 400; pointer-events: none; opacity: 0.05;
  background-image: url(img/grain.svg);
}

.skip { position: absolute; left: var(--margin); top: -100px; z-index: 600; background: var(--signal); color: var(--ink); padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-inline: var(--margin);
}

.label {
  font: 500 12px/1.3 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
html[lang='ar'] .label { letter-spacing: 0; font-size: 14px; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.035em; line-height: 0.92; }
html[lang='ar'] .display { letter-spacing: 0; line-height: 1.15; font-weight: 500; }
.statement { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.04; }
html[lang='ar'] .statement { letter-spacing: 0; line-height: 1.4; }

/* ---------- links and buttons ---------- */
.ulink {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 500ms var(--ease-out), color var(--fast) var(--ease-out);
  padding-bottom: 2px;
}
html[dir='rtl'] .ulink { background-position: 100% 100%; }
.ulink:hover { background-size: 100% 1px; }
.arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; }
.arrow span { transition: translate 400ms var(--ease-out); }
.arrow:hover span { translate: 5px 0; }
html[dir='rtl'] .arrow:hover span { translate: -5px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font: 500 16px/1 var(--text); text-decoration: none;
  border: 0; cursor: pointer; overflow: hidden;
  transition: background-color var(--fast) var(--ease-out), color var(--fast) var(--ease-out), scale var(--fast) var(--ease-out);
}
.btn:active { scale: 0.96; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-2); }
.btn-ghost { height: 42px; padding: 0 20px; color: var(--ivory); background: transparent; box-shadow: inset 0 0 0 1px rgba(237, 232, 223, 0.24); font-size: 15px; }
.btn-ghost:hover { background: var(--ivory); color: var(--ink); }

/* the label rolls up and a copy rises from below */
.roll { position: relative; display: inline-block; line-height: 1.25; overflow: hidden; vertical-align: middle; }
.roll::after { content: attr(data-text); position: absolute; inset-inline-start: 0; top: 100%; }
.roll, .roll::after { transition: translate 480ms var(--ease-out); }
a:hover > .roll, button:hover > .roll, a:hover .orb-in .roll { translate: 0 -100%; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ivory-3); flex: none; }
.dot.is-live { background: var(--signal); box-shadow: none; animation: live 2s var(--ease-out) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(61, 224, 196, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(61, 224, 196, 0); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 300;
  display: flex; align-items: center; gap: 36px;
  padding: 20px var(--margin);
  transition: translate 650ms var(--ease-inout), background-color 400ms var(--ease-out), backdrop-filter 400ms;
}
.nav.is-hidden { translate: 0 -110%; }
.nav.is-solid { background: rgba(11, 12, 14, 0.82); }
.nav-brand { margin-inline-end: auto; font: 400 30px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
html[lang='ar'] .nav-brand { font-size: 28px; font-weight: 500; letter-spacing: 0; }
.nav-links { display: flex; gap: 30px; }
.nav-link { position: relative; text-decoration: none; font: 500 15px/1 var(--text); color: var(--ivory-2); padding: 8px 0; transition: color var(--fast) var(--ease-out); }
.nav-link::after { content: ''; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: var(--signal); scale: 0 1; transform-origin: right; transition: scale 450ms var(--ease-out); }
.nav-link:hover { color: var(--ivory); }
.nav-link:hover::after { scale: 1 1; transform-origin: left; }
.nav-lang { font-family: 'IBM Plex Sans Arabic', var(--text); }
html[lang='ar'] .nav-lang { font-family: 'Satoshi', var(--text); }

/* ---------- intro: the name ---------- */
.intro { display: none; }
.intro-on .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 500; background: var(--ink); }
.intro-name { width: min(60vw, 460px); height: auto; overflow: visible; }
.intro-skip { position: absolute; inset-inline-end: var(--margin); bottom: 28px; appearance: none; border: 0; background: none; color: var(--ivory-3); font: 500 13px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; padding: 10px 0; }
.intro-skip:hover { color: var(--ivory); }
.tl-letter, .tl-ar-word { fill: var(--ivory); }
.tl-ar-word { stroke: var(--ivory); stroke-width: 1.5; stroke-linejoin: round; paint-order: stroke; }
.tl-ar-marks { fill: var(--signal); stroke: var(--signal); }
.tl-ar-aura { opacity: 0; }
.tl-core { fill: var(--ivory); }
.tl-spike { fill: var(--ivory); opacity: 0.55; }
.tl-mote { fill: var(--ivory); }
.tl-link { fill: none; stroke: rgba(237, 232, 223, 0.7); stroke-width: 0.8; stroke-linecap: round; opacity: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: max(100svh, 700px); display: grid; isolation: isolate; overflow: clip;
  background: radial-gradient(60% 50% at 85% 85%, rgba(61, 224, 196, 0.1), transparent 70%), radial-gradient(40% 40% at 10% 0%, rgba(184, 146, 90, 0.07), transparent 70%), var(--ink);
}
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.4s var(--ease-out); -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hero-field.is-live { opacity: 1; }
.hero-grid { grid-template-rows: 1fr auto auto auto; padding-top: 128px; padding-bottom: 28px; }
.hero-label { grid-column: 1 / span 7; grid-row: 1; align-self: end; margin-bottom: 30px; }
.hero-title { grid-column: 1 / span 11; grid-row: 2; font-size: clamp(66px, 12.4vw, 206px); max-width: 10ch; }
html[lang='ar'] .hero-title { font-size: clamp(58px, 10vw, 168px); max-width: 11ch; }
.hero-side { grid-column: 8 / span 5; grid-row: 3; margin-top: 40px; }
.hero-lede { font-size: 19px; color: var(--ivory-2); max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-foot { grid-column: 1 / -1; grid-row: 4; display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 64px; }
.cue { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.cue-line { position: relative; width: 1px; height: 46px; background: rgba(237, 232, 223, 0.18); overflow: hidden; }
.cue-line::after { content: ''; position: absolute; inset: 0; background: var(--signal); animation: cue 2.2s var(--ease-inout) infinite; }
@keyframes cue { 0% { translate: 0 -100%; } 55% { translate: 0 0; } 100% { translate: 0 100%; } }
.status { display: flex; gap: 28px; font: 500 14px/1 var(--text); color: var(--ivory-2); }
.status li { display: inline-flex; align-items: center; gap: 10px; }
.status-tag { color: var(--ivory-3); }

/* ---------- the problem ---------- */
.problem { padding-block: var(--gap) calc(var(--gap) * 0.75); }
.problem .grid { row-gap: 44px; }
.problem-label { grid-column: 1 / span 3; margin-top: 16px; }
.problem-text { grid-column: 4 / span 9; font-size: clamp(36px, 5.4vw, 86px); }
html[lang='ar'] .problem-text { font-size: clamp(32px, 4.4vw, 68px); }
.problem-text .word { display: inline-block; }
.problem-note { grid-column: 8 / span 5; color: var(--ivory-2); max-width: 42ch; }

/* ---------- what Thoraya is ---------- */
.about { padding-bottom: var(--gap); }
.band { overflow: hidden; padding-block: 28px; border-block: 1px solid var(--line); margin-bottom: clamp(64px, 8vw, 120px); }
.band-track { display: flex; align-items: center; gap: 0.35em; width: max-content; font-size: clamp(64px, 11vw, 180px); line-height: 1; white-space: nowrap; will-change: transform; }
.band-serif { font-family: var(--display); font-style: italic; letter-spacing: -0.03em; }
.band-sans { font: 700 0.78em/1 var(--text); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(237, 232, 223, 0.55); }
html[lang='ar'] .band-serif { font-style: normal; letter-spacing: 0; }
html[lang='ar'] .band-sans { letter-spacing: 0; }
.band-star { font-size: 0.32em; color: var(--signal); }
.about-grid { row-gap: 36px; align-items: start; }
.about-label { grid-column: 1 / -1; }
.about-title { grid-column: 1 / span 7; font-size: clamp(54px, 7.6vw, 128px); }
html[lang='ar'] .about-title { font-size: clamp(46px, 6.4vw, 104px); }
.about-text { grid-column: 9 / span 4; align-self: end; font-size: 20px; color: var(--ivory-2); }

/* ---------- services ---------- */
.services { padding-bottom: var(--gap); }
.services-head { row-gap: 26px; margin-bottom: 64px; }
.services-head .label { grid-column: 1 / -1; }
.services-title { grid-column: 1 / -1; font-size: clamp(60px, 10vw, 170px); }
html[lang='ar'] .services-title { font-size: clamp(52px, 8.4vw, 140px); }
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: center; min-height: clamp(460px, 44vw, 640px);
  padding: 56px var(--margin);
  border-bottom: 1px solid var(--line);
}
/* the panel that opens behind a row */
.row::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--surface); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 750ms var(--ease-out); }
.row:hover::before, .row:focus-within::before { transform: scaleY(1); }
.row-head { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: center; }
.row-index { color: var(--brass); }
.row-name { font-size: clamp(48px, 6.4vw, 108px); transition: translate 700ms var(--ease-out); }
html[lang='ar'] .row-name { font-size: clamp(40px, 5vw, 84px); }
.row:hover .row-name { translate: 14px 0; }
html[dir='rtl'] .row:hover .row-name { translate: -14px 0; }
.tag { justify-self: start; display: inline-flex; gap: 10px; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font: 500 13px/1 var(--text); color: var(--ivory-2); box-shadow: inset 0 0 0 1px var(--line); }
.tag.is-live { color: var(--signal); box-shadow: inset 0 0 0 1px rgba(61, 224, 196, 0.4); }
.tag.is-soon { color: var(--brass); box-shadow: inset 0 0 0 1px rgba(184, 146, 90, 0.45); }
.row-body { grid-column: 6 / span 3; display: grid; gap: 26px; align-content: center; }
.row-text { color: var(--ivory-2); }
.row-media { grid-column: 9 / span 4; display: grid; place-items: center; }
.phone { margin: 0; width: min(100%, 268px); aspect-ratio: 390 / 844; padding: 9px; border-radius: 40px; background: #050607; box-shadow: inset 0 0 0 1px rgba(237, 232, 223, 0.14), 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.phone-screen { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 31px; background: #F4F6FB; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.call { width: min(100%, 400px); padding: 28px; border-radius: 26px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.call-wave { width: 100%; height: 56px; margin: 18px 0 22px; overflow: visible; }
.call-wave path, .foot-wave path { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.call-lines { display: grid; gap: 12px; }
.call-line { display: grid; gap: 4px; padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: rgba(237, 232, 223, 0.06); justify-self: start; max-width: 90%; }
.call-line.is-ai { justify-self: end; border-radius: 16px 16px 4px 16px; background: rgba(61, 224, 196, 0.12); }
html[dir='rtl'] .call-line { border-radius: 16px 16px 4px 16px; }
html[dir='rtl'] .call-line.is-ai { border-radius: 16px 16px 16px 4px; }
.call-who { font: 500 12px/1 var(--text); color: var(--ivory-3); }
.call-line.is-ai .call-who { color: var(--signal); }
.call-said { font-size: 15px; line-height: 1.45; }
.row-more { min-height: 240px; }
.more-star { font-size: clamp(120px, 14vw, 220px); line-height: 1; color: var(--signal); display: inline-block; }

/* ---------- ThorayaEdu, step by step ---------- */
.deep { padding-bottom: var(--gap); }
.deep-head { row-gap: 26px; margin-bottom: 72px; }
.deep-head .label { grid-column: 1 / -1; }
.deep-title { grid-column: 1 / span 9; font-size: clamp(56px, 8.6vw, 150px); }
html[lang='ar'] .deep-title { font-size: clamp(48px, 7vw, 120px); }
.deep-intro { grid-column: 9 / span 4; color: var(--ivory-2); align-self: end; }
.deep-stage { padding-inline: var(--margin); }
.deep-device, .deep-rail { display: none; }
.steps { display: grid; gap: 96px; }
.step { display: grid; gap: 18px; }
.step-index { color: var(--brass); }
.step-title { font-size: clamp(40px, 5vw, 84px); }
html[lang='ar'] .step-title { font-size: clamp(34px, 4vw, 66px); }
.step-text { color: var(--ivory-2); max-width: 46ch; }
.step-screen { width: min(100%, 320px); aspect-ratio: 390 / 600; padding: 9px; border-radius: 40px; background: #050607; box-shadow: inset 0 0 0 1px rgba(237, 232, 223, 0.14); margin-top: 12px; }
.step-screen > img, .step-screen > .app { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; object-fit: cover; object-position: top; }

/* pinned on a wide screen: the phone stays, the steps change around it */
@media (min-width: 900px) {
  .has-pin .deep-stage { position: relative; height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
  .has-pin .deep-device { display: grid; place-items: center; grid-column: 8 / span 4; grid-row: 1; perspective: 1400px; }
  .has-pin .phone-deep { width: min(100%, 330px, calc((100svh - 160px) * 390 / 844)); transform-style: preserve-3d; }
  .has-pin .screen { position: absolute; inset: 0; }
  .has-pin .screen > img, .has-pin .screen > .app { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .has-pin .deep-rail { display: block; grid-column: 6; grid-row: 1; justify-self: center; width: 1px; height: 60%; background: var(--line); position: relative; }
  .deep-progress { position: absolute; inset: 0; background: var(--signal); transform: scaleY(0); transform-origin: top; }
  .has-pin .steps { grid-column: 1 / span 5; grid-row: 1; display: grid; gap: 0; }
  .has-pin .step { grid-area: 1 / 1; }
  .has-pin .step-screen { display: none; }
}

/* the two moments drawn as the app draws them */
.app { height: 100%; background: #F4F6FB; color: #1B2240; font: 500 13px/1.4 'IBM Plex Sans Arabic', var(--text); padding: 18px 14px; display: grid; align-content: start; gap: 12px; }
.app-bar { font-weight: 700; font-size: 17px; padding: 6px 4px 10px; }
.app-card { background: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 6px; box-shadow: 0 1px 0 rgba(27, 34, 64, 0.06); }
.app-name { font-weight: 700; font-size: 16px; }
.app-sub { color: #6B7390; font-weight: 400; }
.app-timer { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.app-timer b { font: 700 28px/1 var(--text); color: #2B4BD8; }
.app-undo { justify-self: stretch; text-align: center; margin-top: 10px; padding: 10px; border-radius: 12px; background: #2B4BD8; color: #fff; font-weight: 700; }
.app-wa { background: #ECE5DD; }
.app-wa .app-bar { background: #075E54; color: #fff; margin: -18px -14px 6px; padding: 18px 16px 14px; }
.wa-bubble { justify-self: end; max-width: 88%; padding: 10px 12px 8px; border-radius: 12px 0 12px 12px; background: #DCF8C6; color: #111; font-weight: 400; font-size: 13.5px; line-height: 1.55; }
.wa-time { display: block; margin-top: 4px; text-align: left; font-size: 11px; color: #667; }
.wa-read { display: inline-block; width: 16px; height: 9px; margin-inline-start: 3px; vertical-align: middle; background: linear-gradient(#34B7F1, #34B7F1) 0 0 / 0 0; border-bottom: 2px solid #34B7F1; border-left: 2px solid #34B7F1; transform: rotate(-45deg) scale(0.6); }

/* ---------- how we work ---------- */
.how { padding-bottom: var(--gap); }
.how-head { row-gap: 26px; margin-bottom: 80px; }
.how-head .label { grid-column: 1 / -1; }
.how-title { grid-column: 1 / -1; font-size: clamp(60px, 10vw, 170px); }
html[lang='ar'] .how-title { font-size: clamp(52px, 8.4vw, 140px); }
.facts { row-gap: 56px; margin-bottom: clamp(96px, 12vw, 180px); }
.fact { grid-column: span 3; display: grid; gap: 14px; align-content: start; padding-top: 28px; border-top: 1px solid var(--line); }
.fact-n { font: italic 400 clamp(72px, 7vw, 120px)/0.8 'Instrument Serif', serif; color: var(--brass); }
.fact-title { font-size: clamp(30px, 2.6vw, 42px); line-height: 1; letter-spacing: -0.02em; }
html[lang='ar'] .fact-title { font-size: clamp(26px, 2.2vw, 34px); line-height: 1.3; }
.fact-text { color: var(--ivory-2); font-size: 16px; }
.faq { row-gap: 32px; }
.faq-title { grid-column: 1 / span 3; }
.faq-list { grid-column: 4 / span 9; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; cursor: pointer; font: 400 clamp(22px, 2.2vw, 32px)/1.2 var(--display); letter-spacing: -0.01em; transition: color var(--fast) var(--ease-out); }
html[lang='ar'] .qa summary { letter-spacing: 0; line-height: 1.5; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--signal); }
.plus { position: relative; flex: none; width: 18px; height: 18px; }
.plus::before, .plus::after { content: ''; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; transition: rotate 500ms var(--ease-out); }
.plus::after { rotate: 90deg; }
.qa[open] .plus::after { rotate: 0deg; }
.qa-a { padding: 0 0 28px; color: var(--ivory-2); max-width: 64ch; }

/* ---------- contact ---------- */
.contact { position: relative; padding-bottom: clamp(56px, 6vw, 96px); overflow: clip; }
.contact::before { content: ''; position: absolute; inset-inline-end: -14vw; top: 0; width: 66vw; height: 100%; background: radial-gradient(closest-side, rgba(61, 224, 196, 0.11), transparent 100%); pointer-events: none; }
.contact-grid { row-gap: 40px; align-items: center; }
.contact-label { grid-column: 1 / -1; }
.contact-title { grid-column: 1 / span 9; font-size: clamp(84px, 17vw, 300px); line-height: 0.85; }
html[lang='ar'] .contact-title { font-size: clamp(70px, 13vw, 220px); line-height: 1.1; }
.contact-title .char { display: inline-block; }
.orb { grid-column: 10 / span 3; justify-self: center; display: grid; place-items: center; width: clamp(150px, 15vw, 230px); aspect-ratio: 1; border-radius: 50%; background: var(--signal); color: var(--ink); text-decoration: none; font: 500 18px/1 var(--text); transition: background-color var(--fast) var(--ease-out); }
.orb:hover { background: var(--signal-2); }
.orb-in { display: block; }
.contact-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; margin-top: 24px; }
.contact-text { grid-column: 1 / span 5; font-size: 20px; color: var(--ivory-2); }
.ask { grid-column: 7 / span 6; }
.ask-line { font: 400 clamp(26px, 2.6vw, 40px)/1.4 var(--display); letter-spacing: -0.01em; }
html[lang='ar'] .ask-line { letter-spacing: 0; }
.ask-line input { font: inherit; color: var(--ivory); background: transparent; border: 0; border-bottom: 1px solid var(--ivory-3); width: 9em; padding: 0 0 2px; transition: border-color var(--fast) var(--ease-out); }
.ask-line input:focus { outline: none; border-color: var(--signal); }
.ask-line input::placeholder { color: var(--ivory-3); }
.ask-send { font: 500 15px/1 var(--text); vertical-align: middle; border: 0; cursor: pointer; padding: 12px 18px; border-radius: 999px; background: var(--ivory); color: var(--ink); transition: background-color var(--fast) var(--ease-out); }
.ask-send:hover { background: var(--signal); }
.contact-mails { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; color: var(--ivory-2); padding-top: 28px; border-top: 1px solid var(--line); }
.contact-mails .big { font: 400 clamp(26px, 2.6vw, 40px)/1.2 'Instrument Serif', serif; color: var(--ivory); }
.contact-where { margin-inline-start: auto; color: var(--ivory-3); }

/* ---------- footer ---------- */
.foot { padding: 64px var(--margin) 28px; background: var(--ink); overflow: clip; }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 28px; font-size: 15px; color: var(--ivory-2); padding-top: 36px; border-top: 1px solid var(--line); }
.foot-what { grid-column: 1 / span 4; }
.foot-legal { grid-column: 6 / span 3; display: grid; gap: 8px; justify-items: start; align-content: start; }
.foot-mail { grid-column: 10 / span 3; display: grid; gap: 8px; justify-items: start; align-content: start; }
.foot-up { margin-top: 12px; color: var(--ivory); }
.foot-word { position: relative; margin-top: 40px; }
.foot-wave { position: absolute; inset: 30% 0 auto; width: 100%; height: 36%; opacity: 0.3; }
.foot-letters { display: flex; justify-content: center; font: 400 36.4vw/0.9 'Instrument Serif', serif; letter-spacing: -0.055em; margin-inline: -0.03em; padding-bottom: 0.2em; overflow: hidden; }
html[lang='ar'] .foot-letters { justify-content: center; font: 500 21vw/1.1 'Reem Kufi', serif; letter-spacing: 0; }
.foot-letter { display: inline-block; }
.foot-owner { font-size: 13px; color: var(--ivory-3); margin-top: 12px; }

/* ---------- legal pages ---------- */
.legal { padding-top: 160px; padding-bottom: var(--gap); }
.legal-head { row-gap: 26px; margin-bottom: 96px; }
.legal-head .label { grid-column: 1 / -1; }
.legal-title { grid-column: 1 / span 10; font-size: clamp(56px, 8.4vw, 140px); }
html[lang='ar'] .legal-title { font-size: clamp(46px, 6.6vw, 110px); }
.legal-lead { grid-column: 1 / span 7; font-size: 21px; color: var(--ivory-2); }
.legal-body { align-items: start; }
.legal-toc { grid-column: 1 / span 3; position: sticky; top: 110px; }
.legal-toc ol { display: grid; gap: 4px; counter-reset: toc; }
.legal-toc a { display: block; padding: 7px 0; font-size: 14px; color: var(--ivory-3); text-decoration: none; transition: color var(--fast) var(--ease-out), translate 400ms var(--ease-out); }
.legal-toc a:hover, .legal-toc a.is-on { color: var(--ivory); translate: 6px 0; }
html[dir='rtl'] .legal-toc a:hover, html[dir='rtl'] .legal-toc a.is-on { translate: -6px 0; }
.legal-toc a.is-on { color: var(--signal); }
.prose { grid-column: 5 / span 7; max-width: 72ch; color: var(--ivory-2); }
.prose h2 { font: 400 clamp(30px, 3vw, 46px)/1.05 var(--display); letter-spacing: -0.02em; color: var(--ivory); margin: 72px 0 20px; scroll-margin-top: 110px; }
html[lang='ar'] .prose h2 { letter-spacing: 0; line-height: 1.35; font-weight: 500; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 700 18px/1.4 var(--text); color: var(--ivory); margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-inline-start: 1.2em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--brass); }
.prose a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.prose strong { color: var(--ivory); font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ivory); font-weight: 500; }

/* ---------- the wipe between pages ---------- */
.wipe { position: fixed; inset: 0; z-index: 550; display: grid; place-items: center; background: var(--ink); pointer-events: none; transform: translateX(101%); }
html[dir='rtl'] .wipe { transform: translateX(-101%); }
.wipe-in .wipe { transform: none; }
.wipe-mark { font: 500 clamp(90px, 12vw, 160px)/1 'Reem Kufi', serif; color: var(--signal); }

/* ---------- cursor (fine pointers only) ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary { cursor: none; }
  .has-cursor input { cursor: text; }
  .cursor { display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 650; pointer-events: none; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: var(--ivory); scale: 0.1; opacity: 0; transition: scale 450ms var(--ease-out), background-color 300ms var(--ease-out), opacity 300ms; }
  .cursor.is-on { opacity: 1; }
  .cursor.is-link { scale: 0.3; }
  .cursor.is-label { scale: 1; background: var(--signal); }
  .cursor-label { font: 700 13px/1 var(--text); color: var(--ink); opacity: 0; transition: opacity 200ms; }
  .cursor.is-label .cursor-label { opacity: 1; }
}

/* hidden only while the motion script runs; early.js shows all on failure */
.js [data-rise], .js [data-lines], .js .foot-letter, .js [data-fact] { visibility: hidden; }
.ready [data-rise], .ready [data-lines], .ready .foot-letter, .ready [data-fact] { visibility: visible; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1100px) {
  .nav-links { gap: 22px; }
  .row-head { grid-column: 1 / span 6; }
  .row-body { grid-column: 7 / span 6; }
  .row-media { grid-column: 1 / -1; margin-top: 40px; justify-items: start; }
  .row { min-height: 0; }
  .fact { grid-column: span 6; }
}
@media (max-width: 900px) {
  .nav { gap: 16px; padding-block: 16px; }
  .nav-links .nav-link:not(.nav-lang) { display: none; }
  .nav-brand { font-size: 26px; }
  .hero-grid { padding-top: 108px; }
  .hero-label, .hero-title, .hero-side { grid-column: 1 / -1; }
  .hero-side { margin-top: 30px; }
  .hero-lede { font-size: 17px; }
  .hero-foot { flex-direction: column; align-items: start; margin-top: 48px; }
  .status { flex-direction: column; gap: 14px; }
  .problem-label, .problem-text, .problem-note,
  .about-title, .about-text, .deep-title, .deep-intro,
  .faq-title, .faq-list, .contact-title, .contact-text, .ask,
  .legal-title, .legal-lead, .prose { grid-column: 1 / -1; }
  .row-head, .row-body { grid-column: 1 / -1; }
  .row-body { margin-top: 24px; }
  .row { padding-block: 48px; }
  .orb { grid-column: 1 / -1; justify-self: start; }
  .foot-what, .foot-legal, .foot-mail { grid-column: 1 / -1; }
  .legal-toc { display: none; }
  .legal { padding-top: 120px; }
  .contact-where { margin-inline-start: 0; }
}
@media (max-width: 900px) {
  .row-more { min-height: 0; justify-items: start; margin-top: 28px; }
  .more-star { font-size: 96px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav-cta { display: none; }
  .fact { grid-column: 1 / -1; }
  .facts { row-gap: 40px; }
  .ask-line input { width: 7em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- the ThorayaEdu page ---------- */
.hero-product .hero-title { grid-column: 1 / span 8; font-size: clamp(64px, 11vw, 190px); max-width: none; }
html[lang='ar'] .hero-product .hero-title { font-family: 'Instrument Serif', serif; letter-spacing: -0.035em; line-height: 0.92; font-weight: 400; }
.hero-product .hero-label { display: inline-flex; align-items: center; gap: 10px; }
.hero-product .hero-side { grid-column: 1 / span 6; }
.product-line { font: 400 clamp(28px, 2.8vw, 44px)/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 18px; }
html[lang='ar'] .product-line { letter-spacing: 0; line-height: 1.4; }
.product-shot { grid-column: 9 / span 4; grid-row: 1 / span 3; align-self: center; justify-self: center; padding-top: 40px; }
.phone-hero { width: min(100%, 300px, calc((100svh - 240px) * 390 / 844)); }
.back { color: var(--ivory-2); }
.nav-link[aria-current='page'] { color: var(--ivory); }
.nav-link[aria-current='page']::after { scale: 1 1; }
.ask-section .contact-side .ask { grid-column: 1 / span 7; }
.ask-section .contact-side .contact-text { grid-column: 8 / span 5; font-size: 16px; align-self: center; }
@media (max-width: 900px) {
  .hero-product .hero-title, .hero-product .hero-side { grid-column: 1 / -1; }
  .product-shot { grid-column: 1 / -1; grid-row: auto; justify-self: start; padding-top: 48px; }
  .ask-section .contact-side .ask, .ask-section .contact-side .contact-text { grid-column: 1 / -1; }
}
