/* Rasel site — the app's identity, read from its own colours (RaselColors.kt): blue leads, gold marks
   what is scheduled or sent to many, pink is for failure only. Flat faces, no gradients, no glow;
   a button is a face on a deeper base that sinks when pressed, as the app's buttons do. */

@font-face { font-family: Tajawal; font-weight: 400; font-display: swap; src: url("../fonts/tajawal-400.woff") format("woff"), url("../fonts/tajawal-400.ttf") format("truetype"); }
@font-face { font-family: Tajawal; font-weight: 700; font-display: swap; src: url("../fonts/tajawal-700.woff") format("woff"), url("../fonts/tajawal-700.ttf") format("truetype"); }

:root {
  --blue: #1F7DC1; --blue-deep: #155F91; --gold: #D4AF37; --gold-deep: #A8891F; --pink: #CD1963; --pink-deep: #981149; --green: #2E7D32;
  --bg: #FFFFFF; --surface: #F7F7F5; --raised: #EFF0ED; --deep: #C8CBD0;
  --text: #343A45; --text-2: #606672; --line: #EFF0ED; --outline: #C8CBD0;
  --soft: #E7F2FA; --on-blue: #FFFFFF; --device: #0E1219;
  --radius: 16px; --radius-sm: 10px; --wrap: 1180px; --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1219; --surface: #1C222C; --raised: #343A45; --deep: #080B10;
  --text: #FFFFFF; --text-2: #A2A8B0; --line: #343A45; --outline: #343A45;
  --soft: #132A3B; --device: #080B10;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1219; --surface: #1C222C; --raised: #343A45; --deep: #080B10;
    --text: #FFFFFF; --text-2: #A2A8B0; --line: #343A45; --outline: #343A45;
    --soft: #132A3B; --device: #080B10;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* What a page hides stays hidden, whatever its own display says. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.7 Tajawal, system-ui, sans-serif;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:root[data-theme="dark"] a:hover { color: #5FA8DC; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon.flip { transform: scaleX(-1); }
[dir="rtl"] .icon-arrow, [dir="rtl"] .link-arrow .icon, [dir="rtl"] .btn .icon[data-dir] { transform: scaleX(-1); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.muted { color: var(--text-2); }
.small { font-size: .88rem; }
.kicker { color: var(--blue); font-weight: 700; font-size: .95rem; letter-spacing: .02em; margin-bottom: .4em; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 22ch; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-2); max-width: 46ch; }

/* Logos and screens follow the theme the page wears. */
.logo-dark, .shot-dark, .on-dark { display: none; }
:root[data-theme="dark"] .logo-dark, :root[data-theme="dark"] .shot-dark, :root[data-theme="dark"] .on-dark { display: block; }
:root[data-theme="dark"] .logo-light, :root[data-theme="dark"] .shot-light, :root[data-theme="dark"] .on-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-dark, :root:not([data-theme="light"]) .shot-dark, :root:not([data-theme="light"]) .on-dark { display: block; }
  :root:not([data-theme="light"]) .logo-light, :root:not([data-theme="light"]) .shot-light, :root:not([data-theme="light"]) .on-light { display: none; }
}
.on-light, .on-dark { width: 22px; height: 22px; }

/* Buttons: a face over a deeper base; pressing sinks the face, letting go lifts it back. */
.btn {
  --face: var(--surface); --base: var(--outline); --ink: var(--text); --press-depth: 5px;
  display: inline-flex; align-items: center; gap: .55em; min-height: 52px; padding: .7em 1.4em;
  border: 0; border-radius: 14px; background: var(--face); color: var(--ink);
  font: 700 1rem/1.2 Tajawal, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 var(--press-depth) 0 var(--base); transform: translateY(0);
  transition: transform 115ms var(--ease), box-shadow 115ms var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:active, .btn.is-pressed { transform: translateY(var(--press-depth)); box-shadow: 0 0 0 var(--base); transition-duration: 75ms; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { --face: var(--blue); --base: var(--blue-deep); --ink: var(--on-blue); }
.btn-ghost { --face: var(--bg); --base: var(--outline); --ink: var(--text); outline: 1px solid var(--outline); outline-offset: -1px; }
.btn-light { --face: #fff; --base: #C8CBD0; --ink: var(--blue-deep); }
.btn-danger { --face: var(--pink); --base: var(--pink-deep); --ink: #fff; }
.btn-small { --press-depth: 4px; min-height: 40px; padding: .45em 1em; font-size: .92rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .logo { width: 40px; height: auto; }
.brand-name { font-weight: 700; font-size: 1.35rem; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); color: var(--blue); }
.topbar-tools { display: flex; align-items: center; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: 700 .9rem Tajawal, sans-serif; cursor: pointer; text-decoration: none; }
.tool:hover { background: var(--surface); color: var(--text); }
.tool.menu { display: none; }

@media (max-width: 860px) {
  .tool.menu { display: inline-flex; }
  .tool.lang span { display: none; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s var(--ease); margin: 0; z-index: -1; }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .topbar-tools { margin-inline-start: auto; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 8vw, 110px); }
.stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.hero-title { display: flex; flex-direction: column; gap: 18px; font-size: clamp(2.2rem, 5.6vw, 4.1rem); line-height: 1.15; margin-bottom: .35em; }
.hero-logo { width: clamp(64px, 8vw, 92px); height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 28px 30px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--blue); font-weight: 700; font-size: .9rem; }
:root[data-theme="dark"] .badges li { color: #8CC3EA; }
.hero-phone { display: flex; justify-content: center; perspective: 1200px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Phone frame: a flat device face, rounded, with the screen inside. */
.phone { position: relative; width: 320px; aspect-ratio: 540 / 1212; border-radius: 42px; background: var(--device); padding: 10px; box-shadow: 0 0 0 1px var(--outline); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 76px; height: 8px; margin-left: -38px; border-radius: 8px; background: #000; opacity: .65; z-index: 2; }
.phone .shot { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; }
.phone-hero { transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)); transition: transform .4s var(--ease); }
.phone-small { width: 230px; border-radius: 32px; padding: 8px; }
.phone-small .shot { border-radius: 25px; }
.phone-small::before { top: 14px; width: 56px; height: 6px; margin-left: -28px; }
/* After .phone so the smaller size wins on narrow screens; the words come first there. */
@media (max-width: 860px) { .phone-hero { width: min(62vw, 260px); } }

/* Interactive tour: the section scrolls, the phone stays and tells one chapter after another. */
.tour { position: relative; height: calc(var(--steps, 6) * 90vh); background: var(--surface); }
.tour-sticky { position: sticky; top: 72px; min-height: calc(100vh - 72px); display: flex; align-items: center; padding-block: 32px; }
.tour-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.chapters { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 6px; }
.chapter { display: flex; gap: 14px; width: 100%; text-align: start; padding: 12px 14px; border: 0; border-radius: 14px; background: transparent; color: var(--text-2); font: inherit; cursor: pointer; transition: background .25s, color .25s; }
.chapter:hover { background: var(--bg); }
.chapter-num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--raised); color: var(--text-2); font-weight: 700; transition: background .25s, color .25s; }
.chapter-text { display: grid; }
.chapter-text strong { color: var(--text); font-size: 1.05rem; }
.chapter-text span { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s; font-size: .95rem; }
.chapter.is-active { background: var(--bg); color: var(--text); }
.chapter.is-active .chapter-num { background: var(--blue); color: #fff; }
.chapter.is-active .chapter-text span { max-height: 6em; opacity: 1; }
.progress { height: 4px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s linear; }
/* The caption repeats the current chapter under the numbers when the chapters fold into a row. */
.tour-caption { display: none; }
.tour-sticky { min-height: calc(100svh - 72px); }
@media (max-width: 860px) {
  /* Narrow screens: the same scroll-driven tour, folded so the words and the phone share one screen. */
  .tour { height: calc(var(--steps, 6) * 80svh); }
  .tour-sticky { align-items: flex-start; padding-block: 12px; }
  .tour-grid { grid-template-columns: 1fr; gap: 10px; }
  .tour-copy .kicker, .tour-copy > .muted { display: none; }
  .tour-copy .section-title { font-size: 1.45rem; margin: 0; text-align: center; }
  .chapters { display: flex; justify-content: center; gap: 4px; margin: 8px 0 4px; }
  .chapter { width: auto; padding: 5px; border-radius: 50%; }
  .chapter .chapter-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chapter.is-active { background: transparent; }
  .tour-caption { display: grid; gap: 2px; min-height: 4.6em; margin: 0; text-align: center; font-size: .92rem; line-height: 1.55; color: var(--text-2); }
  .tour-caption strong { color: var(--text); font-size: 1rem; }
  .progress { margin-top: 6px; }
  .tour-phone { display: flex; justify-content: center; }
}
/* A short wide screen (a small laptop) keeps all six chapters and the phone in view. */
@media (min-width: 861px) and (max-height: 760px) {
  .tour-sticky { padding-block: 16px; }
  .tour-copy .kicker, .tour-copy > .muted { display: none; }
  .tour-copy .section-title { font-size: 1.9rem; margin-bottom: 0; }
  .chapters { margin: 10px 0; gap: 2px; }
  .chapter { padding: 6px 12px; }
}
/* A short phone screen keeps the numbers, the words and the whole phone; the title gives way. */
@media (max-width: 860px) and (max-height: 720px) { .tour-copy .section-title { display: none; } }

/* The live phone: Rasel's screens drawn in HTML, one scene per chapter. */
.phone-live { width: 340px; display: flex; flex-direction: column; overflow: hidden; }
.phone-live > * { position: relative; }
.phone-live::after { content: ""; position: absolute; inset: 10px; border-radius: 33px; background: var(--bg); z-index: 0; }
.ph-status, .ph-scene, .ph-composer { z-index: 1; }
.ph-status { display: flex; justify-content: space-between; padding: 14px 26px 6px; font-size: .78rem; color: var(--text-2); }
.ph-dots { width: 34px; height: 10px; border-radius: 6px; background: var(--raised); }
.ph-scene { position: absolute; inset: 44px 18px 76px; display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.ph-scene.is-on { opacity: 1; visibility: visible; }
.ph-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 1.05rem; }
.ph-pill { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--blue); }
.ph-pill .icon { width: 18px; height: 18px; }
.ph-group { margin: 6px 4px 0; color: var(--blue); font-weight: 700; font-size: .78rem; }
.ph-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; background: var(--surface); }
.ph-av { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--blue); font-weight: 700; }
.ph-av.small { width: 32px; height: 32px; font-size: .9rem; }
.ph-lines { display: grid; min-width: 0; flex: 1; }
.ph-lines b { font-size: .9rem; }
.ph-lines i { font-style: normal; font-size: .78rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-badge { flex: none; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 11px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; }
.ph-tag { flex: none; color: var(--blue); }
.ph-tag .icon { width: 18px; height: 18px; }
.ph-tag.tag-work { color: #B5651D; }
.ph-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--blue); color: var(--blue); background: var(--bg); font: 700 .78rem Tajawal, sans-serif; white-space: nowrap; }
.ph-row .ph-chip { align-self: center; }
.ph-chip .icon { width: 15px; height: 15px; }
.ph-chip.gold { border-color: var(--gold); background: var(--gold); color: #3a2f00; font-size: .68rem; padding: 3px 8px; }
button.ph-chip { cursor: pointer; box-shadow: 0 3px 0 var(--blue-deep); transition: transform 75ms, box-shadow 75ms; }
button.ph-chip:active { transform: translateY(3px); box-shadow: none; }
.ph-bubble { max-width: 86%; padding: 9px 13px; border-radius: 16px; background: var(--soft); color: var(--text); font-size: .86rem; line-height: 1.55; }
.ph-bubble.in { align-self: flex-start; border-start-start-radius: 4px; }
.ph-spacer { flex: 1; }
.ph-details { display: grid; font-size: .74rem; color: var(--text-2); padding-inline: 6px; }
.ph-clock { align-self: center; margin-top: 18px; width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--blue); position: relative; }
.ph-clock .hand { position: absolute; left: 50%; top: 50%; width: 3px; height: 34px; margin-left: -1.5px; background: var(--gold); border-radius: 2px; transform-origin: 50% 0; transform: rotate(180deg); }
.ph-scene.is-on .ph-clock .hand { animation: sweep 2.4s var(--ease) .6s both; }
@keyframes sweep { from { transform: rotate(180deg); } to { transform: rotate(440deg); } }
.ph-voice { display: flex; align-items: center; justify-content: center; gap: 6px; height: 140px; margin-top: 40px; }
.ph-voice span { width: 8px; height: 30%; border-radius: 6px; background: var(--blue); }
.ph-voice span:nth-child(3n) { background: var(--gold); }
.ph-scene.is-on .ph-voice span { animation: talk 1.1s ease-in-out infinite; }
.ph-voice span[data-i="1"] { animation-delay: .1s !important; } .ph-voice span[data-i="2"] { animation-delay: .2s !important; }
.ph-voice span[data-i="3"] { animation-delay: .3s !important; } .ph-voice span[data-i="4"] { animation-delay: .4s !important; }
.ph-voice span[data-i="5"] { animation-delay: .3s !important; } .ph-voice span[data-i="6"] { animation-delay: .2s !important; }
.ph-voice span[data-i="7"] { animation-delay: .1s !important; } .ph-voice span[data-i="8"] { animation-delay: 0s !important; }
@keyframes talk { 0%, 100% { height: 20%; } 50% { height: 90%; } }
.ph-said { text-align: center; font-weight: 700; color: var(--text); padding: 0 10px; }
.ph-scheduled { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--gold); background: var(--bg); }
.ph-scheduled .icon { color: var(--gold); width: 26px; height: 26px; }
.ph-scheduled span { display: grid; font-size: .8rem; }
.ph-scheduled i { font-style: normal; color: var(--text-2); }
.ph-campaign { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface); font-size: .82rem; margin-top: 8px; }
.ph-campaign b { display: flex; align-items: center; gap: 8px; }
.ph-campaign b .icon { color: var(--gold); }
.ph-campaign i { font-style: normal; color: var(--green); font-weight: 700; }
.ph-campaign .bar { height: 8px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.ph-campaign .bar span { display: block; height: 100%; width: 0; background: var(--gold); }
.ph-scene.is-on .ph-campaign .bar span { animation: fill 2s var(--ease) .8s forwards; }
@keyframes fill { to { width: 100%; } }
.ph-lock { display: grid; justify-items: center; gap: 10px; margin-top: 70px; text-align: center; }
.ph-lock .big { width: 64px; height: 64px; color: var(--blue); }
.ph-lock i { font-style: normal; color: var(--text-2); font-size: .85rem; }
.ph-offline { align-self: center; margin-top: 28px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--soft); color: var(--blue); font-weight: 700; font-size: .85rem; }
.ph-toast { position: absolute; bottom: 4px; left: 50%; transform: translate(-50%, 20px); display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: .8rem; font-weight: 700; opacity: 0; transition: opacity .25s, transform .25s var(--ease); white-space: nowrap; }
.ph-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ph-composer { position: absolute; left: 18px; right: 18px; bottom: 22px; display: flex; align-items: center; gap: 8px; }
.ph-composer > span:first-child { flex: 1; padding: 10px 14px; border: 1px solid var(--outline); border-radius: 22px; font-size: .8rem; color: var(--text-2); background: var(--bg); }
.ph-send { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue-deep); }
[dir="rtl"] .ph-send .icon { transform: scaleX(-1); }
.ph-scene .pop { opacity: 0; transform: translateY(10px) scale(.98); }
.ph-scene.is-on .pop { animation: popIn .5s var(--ease) both; }
.ph-scene.is-on .pop[data-d="1"] { animation-delay: .25s; } .ph-scene.is-on .pop[data-d="2"] { animation-delay: .5s; }
.ph-scene.is-on .pop[data-d="3"] { animation-delay: .75s; } .ph-scene.is-on .pop[data-d="4"] { animation-delay: 1s; }
@keyframes popIn { to { opacity: 1; transform: none; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: var(--blue); }
.feature h3 { font-size: 1.15rem; margin-top: 14px; }
.feature p { color: var(--text-2); margin: 0; font-size: .98rem; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--soft); color: var(--blue); }
.feature-icon .icon { width: 26px; height: 26px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Promise: the brand blue, full width. */
.promise { background: var(--blue); color: #fff; }
.promise .kicker { color: var(--gold); }
.promise .section-title { color: #fff; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-block: 36px; }
.promise-item { padding: 26px; border-radius: var(--radius); background: var(--blue-deep); }
.promise-item p { margin: 0; color: #E7F2FA; }
.promise-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--blue); margin-bottom: 14px; }
.promise-icon .icon { width: 26px; height: 26px; }
.promise .link-arrow { color: #fff; }
@media (max-width: 860px) { .promise-grid { grid-template-columns: 1fr; } }

/* Screens strip */
.strip { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 32px var(--gutter) 20px; scrollbar-width: thin; }
.strip-item { flex: none; scroll-snap-align: center; margin: 0; display: grid; justify-items: center; gap: 12px; }
.strip-item figcaption { color: var(--text-2); font-size: .92rem; font-weight: 700; }

/* Voices */
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.voice { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.voice blockquote { margin: 10px 0; font-size: 1.02rem; }
.voice figcaption { color: var(--text-2); font-weight: 700; }
.stars { display: flex; gap: 2px; color: var(--outline); }
.stars .on { color: var(--gold); }
.stars .icon { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 860px) { .voices-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.5rem; line-height: 1; transition: transform .25s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-2); padding-bottom: 14px; margin: 0; }

/* CTA */
.cta-box { text-align: center; padding: clamp(40px, 7vw, 72px) var(--gutter); border-radius: 28px; background: var(--blue); color: #fff; display: grid; justify-items: center; gap: 6px; }
.cta-box h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: #fff; }
.cta-box p { color: #E7F2FA; }
.cta-logo { width: 64px; height: auto; margin-bottom: 8px; }
.cta-box .logo-light { display: none; }
.cta-box .logo-dark { display: block; }

/* An organization's public page (rasel.nabil.pm/<identity>). */
.profile { padding-block: clamp(32px, 6vw, 72px) 80px; }
.profile-card { border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.profile-cover { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; background: var(--surface); }
.profile-body { display: grid; justify-items: center; gap: 6px; padding: 32px 24px 36px; }
.profile-card.has-cover .profile-body { margin-top: -80px; }
.profile-logo { width: 96px; height: 96px; border-radius: 24px; object-fit: contain; background: var(--bg); border: 4px solid var(--surface); }
.profile-name { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 8px 0 0; }
.profile-identity { margin: 0; color: var(--text-2); font: 700 1rem ui-monospace, monospace; }
.profile-bio { max-width: 560px; margin: 10px 0 0; color: var(--text); line-height: 1.9; }
.profile-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--text-2); font-size: .92rem; }
.profile-note .icon { width: 18px; height: 18px; color: var(--blue); }

/* Inner pages */
.page-head { padding-block: clamp(48px, 8vw, 96px) 24px; }
.page-title { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.legal { padding-bottom: 80px; }
.legal-section { padding-top: 26px; scroll-margin-top: 90px; }
.legal-section h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.legal-num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--blue); font-size: .95rem; }
.legal-section p { color: var(--text-2); }
.toc { padding: 20px 24px; border-radius: var(--radius); background: var(--surface); margin-block: 24px; }
.toc ol { margin: 0; padding-inline-start: 1.3em; columns: 2; column-gap: 32px; }
.toc a { text-decoration: none; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.block { padding-block: 28px; }
.block-title { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; }
.card { padding: clamp(20px, 4vw, 32px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; scroll-margin-top: 90px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; background: var(--soft); color: var(--text); font-weight: 700; }
.notice.ok { background: #E3F1E4; color: #1B5E20; }
.notice.warn { background: #FBE3EC; color: var(--pink-deep); }
:root[data-theme="dark"] .notice.ok { background: #183B1A; color: #A5D6A7; }
:root[data-theme="dark"] .notice.warn { background: #3A1424; color: #F48FB1; }
.notfound { text-align: center; padding-bottom: 120px; }
.notfound .narrow { display: grid; justify-items: center; }
.big-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; color: var(--soft); line-height: 1; margin: 0; }

/* The eight derived tones for telling people apart (design-system.md): a mark's ring and letter, never a surface. */
:root { --tone-1: #1F7DC1; --tone-2: #2A9D8F; --tone-3: #6D597A; --tone-4: #B5651D; --tone-5: #4F772D; --tone-6: #D4AF37; --tone-7: #CD1963; --tone-8: #6C727D; }

/* Forms */
.form { display: grid; gap: 16px; margin-top: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.form input:not([type="radio"]):not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--outline); border-radius: 12px; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 Tajawal, sans-serif;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form .btn { justify-self: start; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.form .check input { width: 22px; height: 22px; accent-color: var(--blue); }
.rating { border: 0; padding: 0; margin: 0; }
.rating legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.rating-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
[dir="rtl"] .rating-stars { flex-direction: row-reverse; }
.rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-stars label { cursor: pointer; color: var(--outline); padding: 4px; }
.rating-stars label .icon { width: 34px; height: 34px; fill: currentColor; stroke: none; }
.rating-stars input:checked ~ label, .rating-stars label:hover, .rating-stars label:hover ~ label { color: var(--gold); }
.rating-stars input:focus-visible + label { outline: 3px solid var(--blue); border-radius: 8px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 48px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid > div { display: grid; align-content: start; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--text-2); }
.footer-grid a:hover { color: var(--blue); }
.footer-grid .brand { color: var(--text); }
.footer-grid .btn { justify-self: start; color: var(--on-blue); }
.footer-title { font-size: 1rem; color: var(--text); }
.footer-bottom { padding-block: 26px 36px; font-size: .9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; } .js .reveal[data-d="2"] { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .phone-hero { transform: none; }
}
