/* دفتر — product page. Palette mirrors frontend/lib/src/shared/design/pointy_colors.dart
   (see marketing/BRAND.md): teal acts, amber counts, everything else is warm paper. */

@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/plex-arabic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --primary: #0F766E;
  --primary-strong: #006C53;
  --primary-dark: #064E3B;
  --teal-bright: #2DD4BF;
  --night: #0B111C;
  --night-2: #111827;
  --amber: #C98A3B;
  --danger: #B42318;
  --ink: #101828;
  --muted: #667085;
  --line: #E5E0D8;
  --line-strong: #D5CFC4;
  --surface: #FFFFFF;
  --page: #F8F7F4;
  --sunken: #F1EFEA;
  --teal-wash: #E0F2EF;
  --amber-wash: #FFF4E3;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 28px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --display: clamp(44px, 8.4vw, 112px);
  --h2: clamp(34px, 5.6vw, 72px);
  --h3: clamp(24px, 3vw, 36px);
  --lead: clamp(18px, 1.7vw, 23px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0; /* Arabic is connected script: never track it */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; direction: ltr; display: inline-block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(80px, 13vw, 168px); position: relative; }
.dark { background: var(--night); color: #F2F4F7; }
.dark .muted, .dark .lead { color: #98A2B3; }
.paper-2 { background: var(--sunken); }
.white { background: var(--surface); }
.muted { color: var(--muted); }

.eyebrow { font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; color: var(--primary); margin-bottom: 14px; }
.dark .eyebrow { color: var(--teal-bright); }
.eyebrow.amber { color: var(--amber); }
.h2 { font-size: var(--h2); }
.h3 { font-size: var(--h3); }
.lead { font-size: var(--lead); color: #475467; max-width: 720px; line-height: 1.75; }
.lead strong { color: var(--ink); font-weight: 600; }
.dark .lead strong { color: #fff; }
.center { text-align: center; margin-inline: auto; }
.head { margin-bottom: clamp(40px, 6vw, 80px); }
.head .lead { margin-top: 22px; }
.head.center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 0; background: var(--primary); color: #fff;
  transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--primary-strong); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px currentColor; }
.dark .btn.ghost { color: var(--teal-bright); }
.btn.small { min-height: 34px; padding: 0 16px; font-size: 14px; }
.link { color: var(--primary); font-weight: 600; text-decoration: none; }
.link::after { content: " ‹"; }
.dark .link { color: var(--teal-bright); }

/* ---------- local nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 28, .72);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 auto 0 0; padding: 0; font-size: 14px; }
.nav ul a { text-decoration: none; color: #D0D5DD; transition: color .2s; }
.nav ul a:hover { color: #fff; }
@media (max-width: 860px) { .nav ul { display: none; } .nav .btn { margin-inline-start: auto; } }

/* ---------- hero ---------- */
.hero { background: radial-gradient(120% 70% at 50% 0%, #10302d 0%, var(--night) 58%); color: #fff; padding-top: clamp(56px, 9vw, 110px); overflow: clip; }
.hero-copy { text-align: center; }
.hero h1 { font-size: var(--display); margin-top: 6px; }
.hero .grad { background: linear-gradient(90deg, #5EEAD4, #2DD4BF 40%, #F3C98B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 22px auto 0; color: #B8C0CC; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero-cta .btn.ghost { color: #fff; }
.hero-stage { height: 150vh; margin-top: clamp(28px, 5vw, 56px); }
.hero-sticky { position: sticky; top: 72px; display: grid; place-items: center; padding-bottom: 40px; }
.hero-device {
  --p: 0;
  width: min(1100px, 100%);
  transform-origin: 50% 0%;
  transform: perspective(1800px) rotateX(calc((1 - var(--p)) * 28deg)) scale(calc(1.06 - var(--p) * .06)) translateY(calc((1 - var(--p)) * -10px));
  will-change: transform;
}
.hero-glow { position: absolute; inset: 20% 10% auto; height: 50%; background: radial-gradient(closest-side, rgba(45, 212, 191, .25), transparent); filter: blur(40px); pointer-events: none; opacity: calc(.4 + var(--p, 0) * .6); }
.hero-caption { margin-top: 26px; text-align: center; color: #98A2B3; font-size: 15px; opacity: var(--p, 0); }

/* ---------- device frames ---------- */
.laptop { position: relative; margin-inline: 3%; }
.laptop .screen {
  position: relative; border-radius: 18px 18px 6px 6px; padding: clamp(6px, 1.1vw, 14px) clamp(6px, 1.1vw, 14px) clamp(10px, 1.6vw, 20px);
  background: linear-gradient(#1b1f26, #0b0d11); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 40px 80px -30px rgba(0,0,0,.55);
}
.laptop .screen::before { content: ""; position: absolute; top: clamp(2px, .45vw, 6px); left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #2a2f37; }
.laptop .screen > * { border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; background: #f8f7f4; }
.laptop .base { height: clamp(10px, 1.4vw, 18px); width: 106%; margin-inline: -3%; border-radius: 2px 2px 18px 18px; background: linear-gradient(#e3e5e8, #a9aeb5 70%, #8d929a); position: relative; }
.laptop .base::after { content: ""; position: absolute; top: 0; left: 50%; width: 16%; margin-left: -8%; height: 38%; border-radius: 0 0 10px 10px; background: #c6c9ce; }
.dark .laptop .screen { box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 40px 120px -20px rgba(45, 212, 191, .18); }

.phone {
  position: relative; width: 100%; max-width: 320px; margin-inline: auto;
  padding: 9px; border-radius: 50px; background: linear-gradient(145deg, #2a2e35, #0d0f12);
  box-shadow: 0 0 0 1.5px #3a3f47 inset, 0 30px 60px -24px rgba(16, 24, 40, .45);
}
.phone > img, .phone > video { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 42px; background: var(--page); }
.phone.crop > img { object-position: top; }

.tablet { padding: 12px; border-radius: 30px; background: linear-gradient(145deg, #2a2e35, #0d0f12); box-shadow: 0 30px 60px -24px rgba(16, 24, 40, .45); }
.tablet > img { border-radius: 20px; width: 100%; }

.shot { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -28px rgba(16, 24, 40, .35); background: var(--surface); }
.shot img { width: 100%; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- highlights carousel ---------- */
.hl { padding-block: clamp(70px, 10vw, 130px) clamp(60px, 8vw, 100px); }
.hl-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.hl-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 900px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), (100vw - var(--max)) / 2); scroll-padding-inline: max(var(--gutter), (100vw - var(--max)) / 2);
  overscroll-behavior-x: contain;
}
.hl-track::-webkit-scrollbar { display: none; }
.hl-card {
  scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--night); color: #fff; aspect-ratio: 16 / 11; display: flex; flex-direction: column;
}
.hl-card .cap { position: absolute; inset: 0 0 auto 0; padding: clamp(20px, 3vw, 36px); z-index: 2; font-size: clamp(18px, 2vw, 26px); font-weight: 600; line-height: 1.4; max-width: 560px; }
.hl-card .cap span { color: #98A2B3; font-weight: 400; display: block; font-size: .7em; margin-top: 4px; }
.hl-card .media { position: absolute; inset: 0; display: grid; place-items: end center; padding: 0 6% 0; }
.hl-card .media .laptop { width: 86%; transform: translateY(14%); }
.hl-card .media .phone { width: 34%; max-width: 250px; transform: translateY(18%); }
@media (max-width: 760px) {
  .hl-card { aspect-ratio: 3 / 4; }
  .hl-card .media .laptop { width: 150%; margin-inline: 0; transform: translate(-6%, 8%); }
  .hl-card .media .phone { width: 58%; transform: translateY(16%); }
  .hero-stage { height: auto; }
  .hero-sticky { position: static; padding-bottom: 56px; }
  .hero-device { --p: 1 !important; transform: none; }
  .hero-caption { opacity: 1; }
}
.hl-card.light { background: linear-gradient(180deg, #fff, var(--sunken)); color: var(--ink); }
.hl-card.light .cap span { color: var(--muted); }
.hl-card.teal { background: linear-gradient(160deg, #0f766e, #064e3b); }
.hl-card.teal .cap span { color: #A7F3D0; }
.hl-ui { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 26px; }
.dots { display: flex; gap: 8px; background: rgba(16, 24, 40, .06); padding: 10px 14px; border-radius: 999px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; padding: 0; border: 0; background: #98A2B3; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.dots button[aria-current="true"] { width: 36px; background: var(--ink); }
.round { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(16, 24, 40, .06); color: var(--ink); cursor: pointer; }
.round svg { width: 16px; height: 16px; }

/* ---------- word reveal statement ---------- */
.statement { height: 220vh; }
.statement .sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.statement p { font-size: clamp(30px, 5vw, 64px); font-weight: 700; line-height: 1.35; max-width: 1000px; text-align: center; padding-inline: var(--gutter); }
.statement .w { color: #D0D5DD; transition: color .25s; }
.statement .w.on { color: var(--ink); }
.statement .w.on.t { color: var(--primary); }

/* ---------- speed ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(50px, 8vw, 96px); }
.stat .big { font-size: clamp(48px, 7.6vw, 104px); font-weight: 700; line-height: 1; background: linear-gradient(180deg, #fff, #9CE9DB); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .big small { font-size: .38em; margin-inline-start: 6px; color: #5EEAD4; -webkit-text-fill-color: #5EEAD4; }
.stat p { color: #98A2B3; margin-top: 12px; max-width: 300px; }
.stat p strong { color: #fff; font-weight: 600; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.bars { display: grid; gap: 18px; max-width: 880px; }
.bar { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; gap: 14px; align-items: center; }
.bar .lbl { font-size: 15px; color: #D0D5DD; }
.bar .track { position: relative; height: 30px; }
.bar .p95, .bar .p50 { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 8px; width: 0; transition: width 1.4s var(--ease); }
.bar .p95 { background: rgba(45, 212, 191, .18); }
.bar .p50 { background: linear-gradient(90deg, #14B8A6, #2DD4BF); }
.bar .v { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: #04211e; white-space: nowrap; opacity: 0; transition: opacity .6s .9s; }
.bars.in .v { opacity: 1; }
.legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: #98A2B3; margin-top: 22px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-inline-end: 6px; }
.footnote { font-size: 13px; color: #667085; margin-top: 30px; max-width: 760px; line-height: 1.8; }
@media (max-width: 560px) { .bar { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- feature splits ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split.wide-media { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 900px) { .split, .split.wide-media { grid-template-columns: 1fr; } }
.points { display: grid; gap: 22px; margin-top: 30px; }
.points div { padding-inline-start: 18px; border-inline-start: 2px solid var(--line-strong); }
.dark .points div { border-color: rgba(255,255,255,.14); }
.points strong { display: block; font-size: 18px; margin-bottom: 2px; }
.points p { color: var(--muted); font-size: 16px; }
.dark .points p { color: #98A2B3; }

.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 36px); align-items: end; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.trio figure, .duo figure { margin: 0; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 18px; text-align: center; line-height: 1.6; }
figcaption strong { color: var(--ink); display: block; font-size: 17px; }
.dark figcaption { color: #98A2B3; }
.dark figcaption strong { color: #fff; }
@media (max-width: 760px) {
  .trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .trio > * { scroll-snap-align: center; }
  .duo { grid-template-columns: 1fr; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.dark .chip { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.chip.amber { background: var(--amber-wash); box-shadow: none; color: #8A5A1C; }
.cards .chip.amber { background: rgba(201, 138, 59, .18); }

.bigstat { display: flex; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; margin-top: 34px; }
.bigstat div b { display: block; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.1; color: var(--primary); }
.dark .bigstat div b { color: var(--teal-bright); }
.bigstat div span { font-size: 15px; color: var(--muted); }
.dark .bigstat div span { color: #98A2B3; }

/* GPT bubble */
.ask { display: inline-block; background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 22px 22px 6px 22px; font-size: clamp(18px, 2vw, 24px); font-weight: 600; margin-top: 26px; }

/* ---------- remote ---------- */
.remote { background: radial-gradient(90% 70% at 50% 100%, #0f3b37 0%, var(--night) 70%); }
.remote-stage { display: grid; grid-template-columns: 1fr 300px; gap: clamp(20px, 4vw, 56px); align-items: end; }
.remote-stage .phone { max-width: 300px; }
@media (max-width: 900px) { .remote-stage { grid-template-columns: 1fr; } .remote-stage .phone { max-width: 260px; } }

/* ---------- privacy diagram ---------- */
.flow { width: 100%; max-width: 1040px; margin: 0 auto; display: block; }
.flow .node rect { fill: #111827; stroke: rgba(255,255,255,.14); }
.flow .node.shop rect { fill: #0f3b37; stroke: #2DD4BF; }
.flow text { fill: #E4E7EC; font-family: inherit; font-size: 17px; font-weight: 600; }
.flow text.sub { fill: #98A2B3; font-size: 13px; font-weight: 400; }
.flow .wire { stroke: rgba(45,212,191,.25); stroke-width: 2; fill: none; }
.flow .tunnel { stroke: rgba(45,212,191,.45); stroke-width: 12; stroke-linecap: round; fill: none; opacity: .18; }
.flow .pkt { fill: #5EEAD4; }
.flow .lan { stroke: #C98A3B; stroke-dasharray: 4 6; stroke-width: 2; fill: none; }
.priv-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vw, 70px); }
.priv-points h3 { font-size: 20px; margin-bottom: 8px; }
.priv-points p { color: #98A2B3; font-size: 16px; }
@media (max-width: 760px) { .priv-points { grid-template-columns: 1fr; } }

/* ---------- updates timeline ---------- */
.upd { height: 260vh; }
.upd .sticky { position: sticky; top: 56px; min-height: calc(100vh - 56px); display: grid; align-items: center; }
.upd-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .upd { height: auto; } .upd .sticky { position: static; min-height: 0; } .upd-grid { grid-template-columns: 1fr; } }
.lane { position: relative; background: var(--surface); border-radius: 22px; box-shadow: 0 0 0 1px var(--line); padding: clamp(18px, 3vw, 30px); }
.lane h4 { margin: 0 0 16px; font-size: 15px; color: var(--muted); font-weight: 600; }
.srv { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--sunken); margin-bottom: 10px; transition: background .4s, opacity .4s, transform .4s var(--ease); }
.srv .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; transition: background .4s, box-shadow .4s; }
.srv b { font-size: 16px; }
.srv small { margin-inline-start: auto; color: var(--muted); font-size: 13px; }
.srv.live { background: var(--teal-wash); }
.srv.live .dot { background: var(--primary); box-shadow: 0 0 0 5px rgba(15,118,110,.15); }
.srv.prep .dot { background: var(--amber); }
.srv.gone { opacity: .35; }
.prog { height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; margin: 14px 0 4px; }
.prog i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--primary); border-radius: 6px; }
.tills { display: flex; gap: 10px; margin-top: 18px; }
.till { flex: 1; text-align: center; padding: 12px 6px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); }
.till b { display: block; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.step-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.step-list li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); transition: color .4s; }
.step-list li b { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; background: var(--sunken); color: var(--muted); transition: background .4s, color .4s; }
.step-list li.on { color: var(--ink); }
.step-list li.on b { background: var(--primary); color: #fff; }

/* ---------- compare (light / dark) ---------- */
.compare { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(16,24,40,.4); --x: 50%; user-select: none; }
.compare img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.compare .top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.compare .handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; direction: ltr; }
.tag { position: absolute; top: 14px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.9); color: var(--ink); }
.tag.l { left: 14px; } .tag.r { right: 14px; background: rgba(11,17,28,.85); color: #fff; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; grid-column: span 2; background: var(--surface); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); padding: 26px 26px 0; overflow: hidden; display: flex; flex-direction: column; min-height: 330px; }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile h3 { font-size: 21px; }
.tile p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.tile .pic { margin-top: auto; padding-top: 22px; }
.tile .pic img { border-radius: 14px 14px 0 0; box-shadow: 0 0 0 1px var(--line); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.tile .pic.ph img { width: 62%; margin-inline: auto; aspect-ratio: 390 / 520; border-radius: 26px 26px 0 0; box-shadow: 0 0 0 7px #16191e; }
.tile.text { padding-bottom: 26px; min-height: 0; justify-content: flex-end; background: var(--night); color: #fff; box-shadow: none; }
.tile.text p { color: #98A2B3; }
.tile.teal { background: linear-gradient(160deg, var(--primary), var(--primary-dark)); }
.tile.teal p { color: #A7F3D0; }
.tile .list { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tile .list li { font-size: 14px; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.08); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.w3, .tile.w4 { grid-column: span 1; } .tile.w4 { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile, .tile.w3, .tile.w4 { grid-column: auto; } }

/* ---------- closing ---------- */
.closing { text-align: center; }
.closing .mark { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; }
.closing .stamp { margin-top: 30px; font-size: 22px; color: #98A2B3; }
footer { padding: 34px 0 44px; color: #667085; font-size: 13px; background: var(--night); border-top: 1px solid rgba(255,255,255,.06); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- video play state ---------- */
.vid { position: relative; }
.vid button.pp { position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(16,24,40,.55); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.vid:hover button.pp, .vid button.pp:focus-visible { opacity: 1; }
.vid button.pp svg { width: 14px; height: 14px; }

:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-device { transform: none; }
  .hero-stage, .statement, .upd { height: auto; }
  .hero-sticky, .statement .sticky, .upd .sticky { position: static; height: auto; min-height: 0; }
  .statement .w { color: var(--ink); }
  .hero-caption { opacity: 1; }
}

/* ---------- كروت دفتر: the page's one warm section (amber counts — this is money the shop earns) ---------- */
.cards { background: radial-gradient(90% 60% at 50% 0%, #FFE9C7 0%, var(--amber-wash) 45%, var(--page) 100%); overflow: clip; }
.cards .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 14px; border-radius: 999px; background: rgba(201, 138, 59, .14); color: #8A5A1C; }
.cards .gift { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cards .warm { background: linear-gradient(90deg, #B7772A, #E0A458); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cards .center-chips { justify-content: center; }
.cards .laptop .screen { box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 50px 110px -30px rgba(201, 138, 59, .55); }
.card-steps { list-style: none; padding: 0; margin: clamp(36px, 5vw, 60px) auto 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.card-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px #F0DDBF; font-weight: 600; font-size: 16px; }
.card-steps li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--amber); color: #fff; flex: none; }
.cards-split { margin-top: clamp(50px, 8vw, 100px); }
.cards .points div { border-color: #E9CFA6; }
.hl-card.amber { background: linear-gradient(160deg, #C98A3B, #7A4B15); }
.hl-card.amber .cap span { color: #FCE3BE; }
.nav ul a.warm-link { color: #F3C98B; }
.nav ul a.warm-link:hover { color: #FFE2B3; }
