/*
  Baytak website. One stylesheet, one small script.
  Colour comes from the logo: the bowl of the "b" (#00847c) is the primary, the stem (#009898) its lighter partner.
  Neutrals are tinted with the same teal. Paid is the brand teal; Unpaid is the one warm ink (vermilion).
  Type is the app's own family, IBM Plex Sans Arabic, self-hosted. One corner system: 4 stamps, 8 buttons and plates, 12 panels.
*/

@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/plex-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("/assets/fonts/plex-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Arabic Wordmark"; src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F; }

:root {
  color-scheme: light dark;

  --teal: #00847c;
  --teal-bright: #009898;
  --teal-text: #00706a;
  --teal-deep: #05403d;
  --night: #031a19;

  --bg: #f4f8f7;
  --surface: #fbfdfc;
  --wash: #e4f3f1;
  --wash-2: #cfe8e5;
  --line: #d6e4e2;
  --line-2: #b6cdca;

  --text: #0a2321;
  --text-2: #3d5654;
  --text-3: #58706d;

  --warn: #b8321b;
  --warn-wash: #fbe6df;
  --paid-text: #00706a;
  --paid-wash: #dff1ef;

  --on-night: #e9f6f4;
  --on-night-2: #a9c4c1;
  --link: var(--teal-text);

  --shadow-1: 0 1px 2px rgba(5, 64, 61, 0.08), 0 14px 32px -18px rgba(5, 64, 61, 0.28);
  --shadow-2: 0 2px 4px rgba(5, 64, 61, 0.08), 0 30px 60px -28px rgba(5, 64, 61, 0.42);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  --nav-h: 72px;
  --gutter: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #041312;
    --surface: #0a1f1e;
    --wash: #0d2928;
    --wash-2: #143533;
    --line: #17302e;
    --line-2: #264643;

    --text: #e6f3f1;
    --text-2: #a9c4c1;
    --text-3: #86a3a0;

    --warn: #ff9e88;
    --warn-wash: #3a1710;
    --paid-text: #5fd6cb;
    --paid-wash: #0e3330;
    --link: #5fd6cb;
    --teal-text: #5fd6cb;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 34px -18px rgba(0, 0, 0, 0.7);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -28px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; font-weight: 400; text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: var(--r-sm); }

.wrap { width: min(1240px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 60; background: var(--teal); color: #fff; padding: 12px 16px; border-radius: var(--r-md); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- motion helpers ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: var(--r-md); background: #fbfdfc; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(5, 64, 61, 0.5); }

.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a, .menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-md); color: var(--text-2); font-weight: 600; font-size: 0.96875rem; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
.nav a:hover, .menu a:hover { background: var(--wash); color: var(--text); }
.nav a[aria-current="page"], .menu a[aria-current="page"] { color: var(--teal-text); background: var(--wash); }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-md); background: var(--wash); color: var(--text); font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); display: grid; gap: 2px; }
@media (max-width: 860px) { .nav { display: none; } .menu { display: block; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px;
  border-radius: var(--r-md); border: 1px solid transparent; font: inherit; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color 0.25s ease, transform 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 132, 124, 0.85); }
.btn-primary:hover { background: #007069; box-shadow: 0 16px 30px -14px rgba(0, 132, 124, 0.9); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--wash); text-decoration: none; }
.btn-light { background: #fbfdfc; color: var(--teal-deep); }
.btn-light:hover { background: #fff; text-decoration: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- type ---------- */

.display { font-size: clamp(3rem, 1rem + 6.6vw, 7rem); line-height: 1.0; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.4rem + 4vw, 5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem); line-height: 1; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; }
.lead { font-size: 1.3125rem; line-height: 1.5; color: var(--text-2); max-width: 38ch; }
.sub { margin-top: 24px; font-size: 1.1875rem; color: var(--text-2); max-width: 44ch; }
.num { font-variant-numeric: tabular-nums; }

.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; }
.js .line > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 100ms); }
.js .in .line > span, .js .line.in > span { transform: none; }

/* ---------- hero ---------- */

.hero { padding: 36px 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: stretch; }
.hero-copy { grid-column: 1 / 8; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-top: 12px; }
.hero-low { max-width: 520px; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { grid-column: 8 / 13; position: relative; }
.hero-photo { height: min(650px, calc(100dvh - var(--nav-h) - 84px)); min-height: 480px; border-radius: var(--r-lg); overflow: hidden; background: var(--wash-2); box-shadow: var(--shadow-2); }
.hero-photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 62%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-photo img { animation: drift linear both; animation-timeline: view(); animation-range: exit -20% exit 100%; }
    @keyframes drift { to { transform: translateY(-9%); } }
  }
}

/* the sample receipt: a paper slip with a stamp that lands */
.slip {
  position: absolute; left: -132px; bottom: 64px; width: 286px; padding: 26px 22px 20px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); transform: rotate(-3deg);
  --notch: radial-gradient(circle at 9px 0, transparent 6px, #000 6.5px);
  -webkit-mask: var(--notch) 0 0 / 18px 100% repeat-x, linear-gradient(#000, #000) 0 8px / 100% calc(100% - 8px) no-repeat;
          mask: var(--notch) 0 0 / 18px 100% repeat-x, linear-gradient(#000, #000) 0 8px / 100% calc(100% - 8px) no-repeat;
  border-radius: 2px 2px var(--r-md) var(--r-md);
}
.slip-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 1.0625rem; }
.slip-top span:last-child { color: var(--text-3); font-weight: 600; font-size: 0.9375rem; }
.slip dl { margin-top: 16px; display: grid; gap: 8px; font-size: 0.96875rem; }
.slip dl div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.slip dd { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.slip .total { margin-top: 6px; padding-top: 12px; border-top: 1.5px solid var(--text); color: var(--text); font-weight: 700; font-size: 1.125rem; }
.slip .stamp { position: absolute; right: 14px; bottom: 12px; font-size: 1.125rem; padding: 6px 14px; transform: rotate(-9deg); }
.js .slip .stamp { opacity: 0; transform: rotate(-9deg) scale(1.9); }
.js .slip.in .stamp { opacity: 1; transform: rotate(-9deg) scale(1); transition: opacity 0.15s ease 1.1s, transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) 1.1s; }
.slip-note { margin-top: 14px; font-size: 0.8125rem; color: var(--text-3); }

/* stamps and plates: the app's signature objects, in the brand's colours */
.stamp { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-sm); border: 2px solid currentColor; font-weight: 700; font-size: 0.8125rem; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-3deg); }
.stamp .i { width: 1.1em; height: 1.1em; }
.stamp-paid { color: var(--paid-text); background: var(--paid-wash); }
.stamp-unpaid { color: var(--warn); background: var(--warn-wash); }

/* ---------- marquee (the only one on the page) ---------- */

.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 28px 0; background: var(--surface); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 48px; animation: slide 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: clamp(2.25rem, 1.5rem + 3vw, 4.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }
.marquee span:nth-child(3n + 1) { color: var(--teal); -webkit-text-stroke: 0; }
.marquee span::after { content: "/"; margin-left: 48px; color: var(--line-2); -webkit-text-stroke: 0; font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; width: auto; justify-content: center; gap: 36px; padding: 0 var(--gutter); } .marquee-track span:nth-child(n + 9) { display: none; } .marquee span { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); } .marquee span::after { margin-left: 36px; } .marquee { -webkit-mask: none; mask: none; overflow-x: auto; } }

/* ---------- sections ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ---------- story (the one deliberate colour block) ---------- */

.story { background: var(--night); color: var(--on-night); position: relative; }
.story-pin { position: sticky; top: 0; height: 100dvh; display: flex; align-items: center; padding-top: var(--nav-h); }
.story-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
.story-copy { grid-column: 1 / 6; }
.story-copy h2 { color: var(--on-night); }
.steps { margin-top: 44px; display: grid; gap: 6px; }
.step { display: grid; grid-template-columns: 4px minmax(0, 1fr); gap: 20px; padding: 14px 0; opacity: 0.42; transition: opacity 0.5s var(--ease); }
.step::before { content: ""; border-radius: 2px; background: var(--teal-bright); transform: scaleY(0.2); transform-origin: top; transition: transform 0.6s var(--ease); }
.step h3 { color: var(--on-night); font-size: 1.5rem; }
.step p { margin-top: 6px; color: var(--on-night-2); max-width: 40ch; }
.story[data-step="1"] .step-1, .story[data-step="2"] .step-2, .story[data-step="3"] .step-3, .story[data-step="4"] .step-4 { opacity: 1; }
.story[data-step="1"] .step-1::before, .story[data-step="2"] .step-2::before, .story[data-step="3"] .step-3::before, .story[data-step="4"] .step-4::before { transform: none; }
.story-track { display: block; margin-top: -100dvh; pointer-events: none; }
.story-marker { height: 85dvh; }

.stage { grid-column: 7 / 13; position: relative; }
.stage-board { padding: 34px 30px 30px; border: 1px solid rgba(233, 246, 244, 0.14); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(233, 246, 244, 0.07), rgba(233, 246, 244, 0.02)); }
.floors { display: grid; gap: 14px; }
.floor { display: grid; grid-template-columns: 58px repeat(4, minmax(0, 1fr)); gap: 14px; align-items: center; }
.floor-label .fl-long { }
.floor-label { font-size: 0.8125rem; color: var(--on-night-2); font-weight: 600; font-variant-numeric: tabular-nums; }

.plate {
  position: relative; display: grid; place-items: center; height: 62px; border-radius: var(--r-md); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  border: 1.5px dashed rgba(233, 246, 244, 0.28); color: rgba(233, 246, 244, 0.45); background: transparent;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease; transition-delay: calc(var(--k, 0) * 28ms);
}
.plate .i { position: absolute; top: 6px; right: 6px; width: 15px; height: 15px; opacity: 0; transition: opacity 0.4s ease; transition-delay: calc(var(--k, 0) * 28ms + 150ms); }
.story:not([data-step="1"]) .plate { border-style: solid; border-color: rgba(233, 246, 244, 0.3); color: var(--on-night); background: rgba(233, 246, 244, 0.1); }
.story:not([data-step="1"]) .plate-pending { border-style: dashed; border-color: var(--teal-bright); background: transparent; color: var(--teal-bright); }
.story[data-step="3"] .plate, .story[data-step="4"] .plate { border-color: #ff9e88; background: rgba(184, 50, 27, 0.2); color: var(--on-night); }
.story[data-step="3"] .plate-pending, .story[data-step="4"] .plate-pending { border-style: solid; }
.story[data-step="4"] .plate:not(.plate-late) { border-color: var(--teal-bright); background: var(--teal); color: #fff; }
.story[data-step="4"] .plate:not(.plate-late) .i { opacity: 1; }

.legend { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; color: var(--on-night-2); font-size: 0.9375rem; }
.legend .stamp-paid { color: #7ee4da; background: rgba(0, 152, 152, 0.18); }
.legend .stamp-unpaid { color: #ff9e88; background: rgba(184, 50, 27, 0.22); }

.float { position: absolute; right: -14px; bottom: -34px; width: 292px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-2); opacity: 0; transform: translateY(24px) scale(0.97); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.float strong { display: block; font-size: 1.0625rem; letter-spacing: -0.01em; }
.float p { margin-top: 4px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.45; }
.float-actions { margin-top: 14px; display: flex; gap: 8px; }
.float-actions span { flex: 1; text-align: center; padding: 9px 10px; border-radius: var(--r-md); font-weight: 600; font-size: 0.9375rem; }
.float-actions .no { background: var(--wash); color: var(--text); }
.float-actions .yes { background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.story[data-step="2"] .float-join, .story[data-step="3"] .float-issue, .story[data-step="4"] .float-paid { opacity: 1; transform: none; }
.float-issue .amount { margin-top: 10px; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
  .story-pin { position: static; height: auto; padding: 88px 0 72px; }
  .story-grid { row-gap: 56px; }
  .story-copy, .stage { grid-column: 1 / -1; }
  .step { opacity: 1; }
  .step::before { transform: none; }
  .story-track { display: none; }
  .float { position: static; width: auto; margin-top: 16px; transform: none; }
  .float-join, .float-issue { display: none; }
  .float-paid { opacity: 1; }
  .floor { grid-template-columns: 22px repeat(4, minmax(0, 1fr)); gap: 8px; }
  .floor-label .fl-long { display: none; }
  .plate { height: 50px; font-size: 1.0625rem; }
  .stage-board { padding: 22px 16px 22px; }
}

/* ---------- features ---------- */

.feat-head { max-width: 760px; }
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.cell { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 280px; }
.cell h3 { font-size: 1.625rem; letter-spacing: -0.025em; line-height: 1.15; }
.cell p { color: var(--text-2); max-width: 36ch; }
.cell-photo { grid-column: 1 / 8; grid-row: 1 / 3; padding: 0; color: #fff; justify-content: flex-end; min-height: 560px; }
.cell-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cell-photo:hover img { transform: scale(1.03); }
.cell-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 26, 25, 0.86) 0%, rgba(3, 26, 25, 0.25) 46%, transparent 70%); }
.cell-photo figcaption { position: relative; z-index: 1; padding: 34px; }
.cell-photo h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); color: #fff; }
.cell-photo p { margin-top: 10px; color: #e9f6f4; max-width: 40ch; }
.cell-money { grid-column: 8 / 13; background: var(--teal); color: #fff; }
.cell-money p { color: #fff; }
.currencies { display: grid; gap: 4px; font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; font-size: clamp(3.5rem, 2rem + 5vw, 6rem); }
.currencies span:last-child { color: transparent; -webkit-text-stroke: 2px #fff; }
.cell-phone { grid-column: 8 / 13; background: var(--surface); border: 1px solid var(--line); }
.field { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--bg); font-weight: 600; font-variant-numeric: tabular-nums; }
.field small { color: var(--text-3); font-weight: 600; font-size: 0.9375rem; }
.code { margin-top: 10px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code span { display: grid; place-items: center; height: 52px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--bg); font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.code span:nth-child(-n + 3) { border-color: var(--teal); color: var(--teal-text); }
.cell-final { grid-column: 1 / 5; background: var(--night); color: var(--on-night); }
.cell-final p { color: var(--on-night-2); }
.cell-final .i { width: 38px; height: 38px; color: var(--teal-bright); }
.cell-push { grid-column: 5 / 13; background: var(--wash); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 32px; }
.push { padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.push img { width: 44px; height: 44px; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); }
.push strong { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.push strong span { color: var(--text-3); font-weight: 600; }
.push p { margin-top: 2px; color: var(--text-2); font-size: 0.96875rem; line-height: 1.4; }
.bento-note { margin-top: 18px; font-size: 0.9375rem; color: var(--text-3); }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr; }
  .cell-photo, .cell-money, .cell-phone, .cell-final, .cell-push { grid-column: 1 / -1; grid-row: auto; }
  .cell-photo { min-height: 420px; }
  .cell-push { grid-template-columns: 1fr; }
  .cell { padding: 28px 24px; }
  .cell-photo figcaption { padding: 28px 24px; }
}

/* ---------- roles (tabs without script) ---------- */

.roles { background: var(--surface); border-block: 1px solid var(--line); }
.roles-head { max-width: 700px; }
.tabs { margin-top: 48px; position: relative; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tablist { display: inline-flex; padding: 5px; gap: 4px; background: var(--wash); border-radius: var(--r-lg); }
.tablist label { cursor: pointer; padding: 12px 24px; min-height: 48px; display: inline-flex; align-items: center; border-radius: var(--r-md); font-weight: 600; color: var(--text-2); transition: background-color 0.3s ease, color 0.3s ease; }
#r-res:checked ~ .tablist label[for="r-res"], #r-adm:checked ~ .tablist label[for="r-adm"] { background: var(--teal); color: #fff; }
#r-res:focus-visible ~ .tablist label[for="r-res"], #r-adm:focus-visible ~ .tablist label[for="r-adm"] { outline: 3px solid var(--teal-bright); outline-offset: 2px; }
.pane { display: none; margin-top: 44px; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; align-items: center; }
#r-res:checked ~ .pane-res, #r-adm:checked ~ .pane-adm { display: grid; animation: paneIn 0.7s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { #r-res:checked ~ .pane-res, #r-adm:checked ~ .pane-adm { animation: none; } }
.pane-copy { grid-column: 1 / 7; }
.pane-copy h3 { font-size: clamp(1.875rem, 1.2rem + 2vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.05; }
.ticks { margin-top: 28px; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 1.125rem; }
.ticks .i { margin-top: 3px; color: var(--teal); width: 24px; height: 24px; }
.pane-note { margin-top: 28px; color: var(--text-3); font-size: 0.96875rem; max-width: 46ch; }
.pane-visual { grid-column: 8 / 13; }
.statement { padding: 30px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.statement .owe { color: var(--text-3); font-weight: 600; }
.statement .amount { font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.statement .amount small { font-size: 0.4em; letter-spacing: 0; color: var(--text-3); margin-left: 6px; }
.statement ul { margin-top: 26px; display: grid; gap: 14px; }
.statement li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.statement li span:first-child { font-weight: 600; }
.statement .sample { margin-top: 20px; font-size: 0.8125rem; color: var(--text-3); }
.mini-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.mini-board .plate { height: 56px; font-size: 1.125rem; border: 1.5px solid var(--line-2); color: var(--text); background: var(--surface); }
.mini-board .plate-paid { background: var(--teal); border-color: var(--teal); color: #fff; }
.mini-board .plate-paid .i { opacity: 1; }
.mini-board .plate-unpaid { border-color: var(--warn); background: var(--warn-wash); color: var(--warn); }
.statement .headline { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }

@media (max-width: 960px) { .pane-copy, .pane-visual { grid-column: 1 / -1; } }

/* ---------- principles ---------- */

.principles-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 56px; align-items: start; }
.principles-lead { grid-column: 1 / 6; position: sticky; top: calc(var(--nav-h) + 40px); }
.principles-list { grid-column: 7 / 13; display: grid; gap: 52px; }
.principle { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 22px; align-items: start; }
.tile { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-md); background: var(--wash); color: var(--teal-text); font-size: 1.625rem; }
.principle p { margin-top: 8px; color: var(--text-2); max-width: 46ch; }
@media (max-width: 960px) { .principles-lead, .principles-list { grid-column: 1 / -1; position: static; } }

/* ---------- chatgpt ---------- */

.gpt { background: var(--wash); }
.gpt-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px; align-items: center; }
.gpt-copy { grid-column: 1 / 6; }
.gpt-copy .text-link { margin-top: 32px; }
.quotes { grid-column: 7 / 13; display: grid; gap: 28px; }
.quotes blockquote { padding-left: 24px; border-left: 4px solid var(--teal); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 700; }
.quotes blockquote:nth-child(2) { margin-left: clamp(0px, 4vw, 56px); }
.quotes .who { margin-top: 10px; display: block; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
@media (max-width: 960px) { .gpt-copy, .quotes { grid-column: 1 / -1; } }

/* ---------- faq ---------- */

.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; align-items: start; }
.faq-head { grid-column: 1 / 5; position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-head p { margin-top: 20px; color: var(--text-2); }
.faq { grid-column: 6 / 13; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 18px 4px; font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-text); }
.faq summary .i { color: var(--teal); transition: transform 0.35s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .answer { padding: 0 4px 26px; color: var(--text-2); max-width: 60ch; }
@media (max-width: 960px) { .faq-head, .faq { grid-column: 1 / -1; position: static; } }

/* ---------- closing band ---------- */

.closing { background: var(--teal); color: #fff; position: relative; overflow: hidden; }
.closing-grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px; align-items: center; padding-block: clamp(72px, 9vw, 128px); }
.closing-copy { grid-column: 1 / 8; position: relative; z-index: 1; }
.closing h2 { color: #fff; font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.5rem); }
.closing .sub { color: #fff; font-size: 1.25rem; }
.closing-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.closing-cta .text-link { color: #fff; }
.closing-photo { position: relative; z-index: 1; grid-column: 9 / 13; height: 420px; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -28px rgba(3, 26, 25, 0.7); }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.wordmark { position: relative; text-align: center; font-family: "Plex Arabic Wordmark", "IBM Plex Sans Arabic", sans-serif; font-weight: 700; font-size: clamp(8rem, 3rem + 18vw, 20rem); line-height: 1.2; margin-top: -0.35em; color: rgba(255, 255, 255, 0.14); pointer-events: none; user-select: none; direction: rtl; }
@media (max-width: 960px) { .closing-copy, .closing-photo { grid-column: 1 / -1; } .closing-photo { height: 300px; } }

/* ---------- footer ---------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
.foot-brand { grid-column: 1 / 6; }
.foot-brand p { margin-top: 18px; color: var(--text-2); max-width: 38ch; }
.foot-col { grid-column: span 2; }
.foot-brand + .foot-col { grid-column: 6 / 8; }
.foot-col:last-child { grid-column: 10 / 13; }
.foot-col h2 { font-size: 0.9375rem; letter-spacing: 0; line-height: 1.3; margin-bottom: 14px; color: var(--text); }
.foot-col a { display: flex; align-items: center; min-height: 38px; color: var(--text-2); text-decoration: none; font-size: 0.96875rem; }
.foot-col a:hover { color: var(--teal-text); text-decoration: underline; }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.9375rem; }

/* ---------- document pages ---------- */

.doc-hero { background: linear-gradient(180deg, var(--wash) 0%, var(--bg) 100%); padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 64px); }
.doc-hero .lead { margin-top: 24px; max-width: 54ch; }
.meta { margin-top: 20px; color: var(--text-3); font-size: 0.96875rem; font-weight: 600; }
.doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-block: 40px clamp(72px, 9vw, 128px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); }
.toc h2 { font-size: 0.9375rem; letter-spacing: 0; line-height: 1.3; margin-bottom: 10px; }
.toc a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); color: var(--text-2); text-decoration: none; font-size: 0.96875rem; line-height: 1.35; transition: color 0.2s ease, border-color 0.2s ease; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--teal-text); border-left-color: var(--teal); font-weight: 600; }

.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 64px; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem); letter-spacing: -0.03em; line-height: 1.1; scroll-margin-top: calc(var(--nav-h) + 16px); }
.prose > h2:first-child, .prose > .glance + h2 { margin-top: 56px; }
.prose h2 + * { margin-top: 16px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: 0.78em; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.prose ol { display: grid; gap: 16px; counter-reset: n; }
.prose ol > li { counter-increment: n; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: center; min-height: 44px; }
.prose ol > li::before { content: counter(n); display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--teal); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.prose a { font-weight: 600; }

.facts { display: grid; gap: 22px; }
.facts div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 6px 28px; }
.facts dt { font-weight: 700; color: var(--teal-text); }
.facts dd { color: var(--text-2); }

.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prose .glance li { padding: 22px; padding-left: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; color: var(--text-2); }
.prose .glance li::before { content: none; }
.glance .i { width: 44px; height: 44px; padding: 10px; border-radius: var(--r-md); background: var(--wash); color: var(--teal-text); }

.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.panel { padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.panel-dark { background: var(--night); color: var(--on-night); border-color: transparent; }
.panel h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.panel.panel-dark h3, .panel.panel-dark h4 { color: var(--on-night); }
.panel h4 { margin-top: 24px; font-size: 1rem; color: var(--text); }
.panel .ticks { margin-top: 18px; gap: 14px; }
.panel .ticks li { font-size: 1.0625rem; color: var(--text-2); }
.panel-dark .ticks li { color: var(--on-night-2); }
.panel-dark .ticks .i { color: var(--teal-bright); }
.prose .panel .ticks li { padding-left: 0; }
.prose .panel .ticks li::before { content: none; }

.contact-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 36px; padding: 32px 36px; border-radius: var(--r-lg); background: var(--teal); color: #fff; box-shadow: 0 30px 60px -32px rgba(0, 132, 124, 0.8); }
.contact-panel strong { display: block; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.02em; word-break: break-word; }
.contact-panel p { margin-top: 4px; color: #fff; }
.support-body { padding-block: 56px clamp(72px, 9vw, 128px); }
.support-faq { margin-top: 64px; }
.support-faq h2 { font-size: clamp(1.875rem, 1.3rem + 1.8vw, 2.75rem); margin-bottom: 28px; }
.support-faq .faq { grid-column: auto; }
.page-links { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 12px; }

.notfound { padding: clamp(80px, 12vw, 160px) 0; }
.notfound p { margin-top: 24px; max-width: 46ch; color: var(--text-2); font-size: 1.1875rem; }
.notfound .hero-cta { margin-top: 36px; }

/* ---------- small screens ---------- */

@media (max-width: 960px) {
  :root { --gutter: 22px; }
  .hero-grid { row-gap: 40px; }
  .hero-copy, .hero-visual { grid-column: 1 / -1; }
  .hero-copy { gap: 32px; }
  .hero-photo { height: 420px; min-height: 0; }
  .slip { left: 12px; bottom: -36px; width: 262px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col, .foot-brand + .foot-col { grid-column: span 4; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; padding-bottom: 8px; }
  .two-up, .glance { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 1rem; }
  .lead { font-size: 1.125rem; }
  .hero-photo { height: 340px; }
  .hero { padding-bottom: 96px; }
  .cell { min-height: 0; }
  .principle { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .tile { width: 48px; height: 48px; }
  .foot-col, .foot-brand + .foot-col { grid-column: span 6; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .btn { white-space: normal; text-align: center; }
  .tablist { display: flex; }
  .tablist label { flex: 1; justify-content: center; padding-inline: 12px; }
  .contact-panel { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal], .js .line > span { opacity: 1 !important; transform: none !important; }
  .js .slip .stamp { opacity: 1; transform: rotate(-9deg); }
}
