/*
 * Techuist — portfolio.
 * Warm black, cream text, one amber accent. Square edges, hairline rules, square bullets.
 * Type: Bricolage Grotesque for Latin display, Alexandria for Arabic display (one stack, each script
 * falls through to its own face), IBM Plex Sans Arabic for running text in both languages,
 * IBM Plex Mono for numbers, labels and URLs.
 * Mobile first. Logical properties throughout, so Arabic (RTL) and English (LTR) share one stylesheet.
 */

:root {
  color-scheme: dark;

  --bg: #0E0C0A;
  --surface: #161310;
  --surface-2: #1E1A16;
  --ink: #F2EADF;
  --ink-2: #D9CFC2;
  --muted: #A39787;
  --line: rgba(242, 234, 223, .12);
  --line-2: rgba(242, 234, 223, .22);
  --accent: #E8A33D;
  --accent-hi: #F2B85E;
  --on-accent: #0E0C0A;
  --wa: #25D366;

  --display: "Bricolage Grotesque", "Alexandria", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: 16px;
  --wrap: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sec: clamp(72px, 10vw, 136px);
}

@media (min-width: 700px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern";
}
html:lang(ar) body { line-height: 1.85; }

img, video { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
bdi { unicode-bidi: isolate; }
em { font-style: normal; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--on-accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num { font-variant-numeric: tabular-nums; }
.sq { display: inline-block; width: 8px; height: 8px; background: var(--accent); flex: none; }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

.hero__title, .h2, .work__title, .case__title, .contact__title, .about__lead,
.index__name, .svc h3, .steps h3, .faq h3, .plan__name, .ready__title,
.pricing__num, .steps__n, .brand {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
/* Arabic display: Alexandria carries it; no negative tracking on a connected script */
html:lang(ar) :is(.hero__title, .h2, .work__title, .case__title, .contact__title, .about__lead,
  .index__name, .svc h3, .steps h3, .faq h3, .plan__name, .ready__title) { letter-spacing: 0; }
/* Latin names inside Arabic keep Latin tracking */
html:lang(ar) [lang="en"]:is(.case__title, .index__name) { letter-spacing: -0.01em; }

/* Small labels: mono caps in English, quiet Arabic text in Arabic */
.kicker, .case__meta, .facts dt, .brief dt, .chips, .browser__bar, .pricing__altlbl,
.ft__lbl, .index__no, .index__year, .index__kind, .svc__n, .chat__time {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html:lang(ar) :is(.kicker, .case__kind, .facts dt, .brief dt, .pricing__altlbl, .ft__lbl, .index__kind) {
  font-family: var(--body);
  font-size: .875rem;
  letter-spacing: 0;
  text-transform: none;
}

.kicker { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.h2 {
  font-size: clamp(2.125rem, 5.2vw, 4rem);
  line-height: 1.04;
}
html:lang(ar) .h2 { font-size: clamp(1.875rem, 4.4vw, 3.25rem); line-height: 1.35; font-weight: 700; }

/* ---------- Buttons and links ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--ink); }
.btn--line { border-color: var(--line-2); color: var(--ink); font-weight: 500; }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.btn--ink { background: var(--bg); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--bg); }
.btn--ink .i-wa { color: var(--wa); }

.tlink {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 163, 61, .45);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.tlink:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Header ---------- */

.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 12, 10, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.hd.is-stuck { border-bottom-color: var(--line); }
.hd__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand .sq { width: 10px; height: 10px; }
.brand--lg { font-size: 1.75rem; }

.hd__nav { display: none; gap: clamp(20px, 2.6vw, 36px); }
.hd__nav a {
  color: var(--muted);
  font-size: .9375rem;
  text-decoration: none;
  padding-block: 8px;
  transition: color .2s;
}
.hd__nav a:hover { color: var(--ink); }
.hd__end { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.lang {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .2s;
}
.lang:lang(ar) { font-family: var(--body); font-size: .9375rem; letter-spacing: 0; }
.lang:hover { color: var(--ink); }

@media (min-width: 760px) {
  .hd__nav { display: flex; margin-inline-start: 32px; }
  .hd__in { min-height: 80px; }
}

/* ---------- 1. First screen ---------- */

.hero { padding-block: 36px 72px; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 26px; }

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: .9375rem; }

.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.012em;
  max-width: 17ch;
}
.hero__title em { color: var(--accent); }
html:lang(ar) .hero__title {
  font-size: clamp(2.125rem, 4.6vw, 4rem);
  line-height: 1.35;
  font-weight: 700;
  max-width: 15em;
}
.hero__sub {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  font-weight: 400;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
html:lang(en) .hero__sub { font-weight: 400; }

/* WhatsApp order card */
.chat { width: 100%; max-width: 400px; margin-inline: auto; }
.chat__card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9);
}
/* Offset amber block behind the card, only where there is room for it beside the text */
@media (min-width: 980px) {
  .chat__card { box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9), 24px 24px 0 -1px rgba(232, 163, 61, .14); }
  html:lang(ar) .chat__card { box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9), -24px 24px 0 -1px rgba(232, 163, 61, .14); }
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.chat__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
}
.chat__who { display: flex; flex-direction: column; line-height: 1.35; }
.chat__name { font-weight: 500; font-size: .9375rem; }
.chat__status { font-size: .75rem; color: var(--muted); }
.chat__time { margin-inline-start: auto; color: var(--muted); letter-spacing: .02em; }
.chat__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px 22px;
  background:
    radial-gradient(circle at 1px 1px, rgba(242, 234, 223, .05) 1px, transparent 0) 0 0 / 14px 14px,
    #110F0C;
  font-size: .875rem;
  line-height: 1.75;
}
.msg { padding: 12px 14px; }
.msg--in { align-self: flex-start; width: 94%; background: var(--surface-2); }
.msg--out {
  align-self: flex-end;
  max-width: 84%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}
.msg__no { color: var(--accent); font-weight: 500; }
.msg__no bdi { font-family: var(--mono); font-size: .8125rem; }
.msg__lines { margin-block-start: 6px; }
.msg__lines li, .msg__total, .msg__foot { display: flex; justify-content: space-between; gap: 12px; }
.msg__lines .num { font-family: var(--mono); font-size: .8125rem; white-space: nowrap; }
.msg__total .num { white-space: nowrap; }
.msg__soft { color: var(--muted); }
.msg__total {
  margin-block-start: 6px;
  padding-block-start: 6px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.msg__foot { margin-block-start: 6px; font-size: .8125rem; color: var(--muted); }
.msg__pin { color: var(--accent); }

@media (min-width: 980px) {
  .hero { padding-block: 56px 120px; }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; }
  .chat { margin-inline: auto 0; }
}

/* First-screen entrance: one short sequence, never a blank screen */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__text > * { animation: rise .8s var(--ease) both; }
  .js .hero__text > :nth-child(2) { animation-delay: .06s; }
  .js .hero__text > :nth-child(3) { animation-delay: .12s; }
  .js .hero__text > :nth-child(4) { animation-delay: .18s; }
  .js .chat__card { animation: rise 1s .15s var(--ease) both; }
  .js .msg--in { animation: rise .7s .55s var(--ease) both; }
  .js .msg--out { animation: rise .7s 1.25s var(--ease) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Promise strip ---------- */

.strip { background: var(--accent); color: var(--on-accent); }
.strip__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: -0.01em;
}
html:lang(ar) .strip__in { letter-spacing: 0; font-weight: 700; }
.strip__in li { display: flex; align-items: center; gap: 12px; }
.strip__in li::before { content: ""; width: 6px; height: 6px; background: currentColor; }

/* ---------- 2. Services ---------- */

.services { padding-block: var(--sec); }
.services__in { display: grid; gap: 48px; }
.services__head { display: flex; flex-direction: column; gap: 22px; }
.services__note { color: var(--muted); font-size: .9375rem; font-weight: 400; max-width: 26em; }
html:lang(en) .services__note { font-weight: 400; }

.svc { border-bottom: 1px solid var(--line); }
.svc li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.svc__n { color: var(--accent); padding-top: .55em; }
.svc h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.25; }
html:lang(ar) .svc h3 { line-height: 1.6; }
.svc p { grid-column: 2; color: var(--ink-2); font-weight: 400; max-width: 36em; text-wrap: pretty; }
html:lang(en) .svc p { font-weight: 400; }

@media (min-width: 980px) {
  .services__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
  .services__head { position: sticky; top: 112px; }
  .svc li { grid-template-columns: 64px minmax(0, 1fr); padding-block: 32px; }
}

/* ---------- 3. Work ---------- */

.work { background: var(--surface); border-top: 1px solid var(--line); outline: none; padding-block: var(--sec) 24px; }

.work__head { display: grid; gap: 20px; padding-block-end: 40px; }
.work__head > div { display: flex; flex-direction: column; gap: 18px; }
.work__title { font-size: clamp(3.5rem, 11vw, 9rem); line-height: .92; font-weight: 700; letter-spacing: -0.03em; }
html:lang(ar) .work__title { font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1.15; }
.work__intro { color: var(--muted); max-width: 26em; font-size: 1rem; }

@media (min-width: 980px) {
  .work__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; padding-block-end: 56px; }
  .work__intro { text-align: end; }
}

/* Project index */
.index { border-top: 1px solid var(--line-2); margin-block-end: 24px; }
.index__row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .25s;
}
.index__no { color: var(--muted); transition: color .25s; }
.index__name { font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.25; font-weight: 600; }
.index__kind { display: none; color: var(--muted); }
.index__year { color: var(--muted); }
.index__go { display: none; }
.index__row::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .45s var(--ease);
}
.index__row:hover::before, .index__row:focus-visible::before { width: 100%; }
.index__row:hover .index__no, .index__row:hover .index__name { color: var(--accent); }

@media (min-width: 760px) {
  .index__row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 15em) 64px 28px; padding-block: 22px; }
  .index__kind { display: block; }
  /* A small down chevron: the rows jump to the case studies below */
  .index__go { display: block; justify-self: end; width: 11px; height: 11px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease), border-color .25s; }
  .index__row:hover .index__go { border-color: var(--accent); transform: translateY(1px) rotate(45deg); }
}

/* Case study */
.case { padding-block: 72px 80px; border-top: 1px solid var(--line-2); }
.index + .case { border-top: 0; }

.case__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: var(--muted);
}
.case__no { color: var(--accent); direction: ltr; unicode-bidi: isolate; }
.case__of { color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}
.pill .sq { width: 6px; height: 6px; background: var(--muted); }
.pill--live { color: var(--ink); }
.pill--live .sq { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .pill--live .sq { animation: blink 2.4s ease-in-out infinite; }
}
@keyframes blink { 50% { opacity: .35; } }
html:lang(ar) .pill { font-family: var(--body); font-size: .8125rem; letter-spacing: 0; text-transform: none; }

.case__top { display: grid; gap: 18px; margin-block-start: 22px; }
.case__title { font-size: clamp(2.5rem, 7.4vw, 5.5rem); line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
html:lang(ar) .case__title { font-size: clamp(2.125rem, 5.4vw, 4rem); line-height: 1.3; font-weight: 700; }
html:lang(ar) .case__title[lang="en"] { font-size: clamp(2.5rem, 7.4vw, 5.5rem); line-height: 1.05; font-weight: 650; }
.case__lead {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  line-height: 1.55;
  max-width: 30em;
  text-wrap: pretty;
}
html:lang(ar) .case__lead { line-height: 1.8; }

@media (min-width: 980px) {
  .case { padding-block: 104px 120px; }
  .case__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 56px; }
  .case__lead { padding-block-end: .4em; }
}

.case__media { margin-block-start: 40px; }
@media (min-width: 980px) { .case__media { margin-block-start: 56px; } }

/* Problem / built / result, with facts and links beside */
.case__grid { display: grid; gap: 40px; margin-block-start: 48px; }
.brief { display: grid; gap: 0; }
.brief > div { display: grid; gap: 8px; padding-block: 20px; border-top: 1px solid var(--line); }
.brief dt { color: var(--accent); }
.brief dd { color: var(--ink-2); font-weight: 400; text-wrap: pretty; }
html:lang(en) .brief dd { font-weight: 400; }

.feats { display: grid; gap: 8px; }
.feats li { position: relative; padding-inline-start: 20px; }
.feats li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.case__side { display: grid; gap: 24px; align-content: start; }
.facts { border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; letter-spacing: .02em; text-transform: none; }
html:lang(ar) .chips { justify-content: flex-end; }
.chips li { padding: 3px 8px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: .75rem; font-weight: 400; line-height: 1.5; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.private { color: var(--muted); font-size: .9375rem; }

@media (min-width: 980px) {
  .case__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 72px; margin-block-start: 72px; }
  .brief { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .brief > div { align-content: start; padding-block: 20px 0; }
}

/* Frames */
.browser {
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .9);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .6875rem;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  direction: ltr;
}
html:lang(ar) .browser__bar { direction: rtl; }
.browser__bar i { width: 7px; height: 7px; flex: none; background: rgba(242, 234, 223, .16); }
.browser__bar span { margin-inline-start: 8px; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; }

.phone {
  position: relative;
  padding: 6px;
  border-radius: 30px;
  background: #24201C;
  border: 1px solid #3A342E;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone > img, .phone > video {
  width: 100%;
  border-radius: 24px;
  background: #F6EFE4;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.phone > img[height="1298"] { aspect-ratio: 600 / 1298; }
@media (min-width: 980px) {
  .phone { border-radius: 36px; padding: 7px; }
  .phone > img, .phone > video { border-radius: 29px; }
}

.case figcaption { color: var(--muted); font-size: .875rem; line-height: 1.55; }

/* 01 Lewan: desktop shot with the Arabic phone overlapping */
.media-lewan { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.media-lewan .browser--main { grid-column: 1 / -1; grid-row: 1; }
.media-lewan__phone {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-block-start: -18%;
  padding-inline-end: 4%;
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 16px;
}
.media-lewan__phone .phone { flex: 0 0 44%; }
.media-lewan__phone figcaption { flex: 1; padding-block-end: 8px; }
@media (min-width: 700px) {
  .media-lewan__phone { margin-block-start: -30%; }
  .media-lewan__phone .phone { flex-basis: 30%; }
}
@media (min-width: 980px) {
  .media-lewan .browser--main { grid-column: 1 / span 10; }
  .media-lewan__phone { grid-column: 10 / -1; grid-row: 1; align-self: end; display: block; margin: 0 0 -8%; padding: 0; }
  .media-lewan__phone figcaption { margin-block-start: 12px; }
}
.case__wide { margin-block-start: 56px; display: grid; gap: 12px; }
.case__wide figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
@media (min-width: 980px) { .case__wide { margin-block-start: 80px; } }

/* 02 Bakery: walkthrough video plus three screens */
.media-bakery { display: grid; gap: 32px; }
.media-bakery__video { width: min(78%, 330px); margin-inline: auto; display: grid; gap: 12px; }
.media-bakery__shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-block-end: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.media-bakery__shots > figure { scroll-snap-align: start; display: grid; gap: 14px; align-content: start; }
.media-bakery__shots figcaption { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: baseline; }
.step {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
}
.media-bakery__shots:focus-visible { outline-offset: 6px; }
@media (min-width: 700px) { .media-bakery__shots { grid-auto-columns: 34%; } }
@media (min-width: 980px) {
  .media-bakery { grid-template-columns: minmax(0, 1.12fr) minmax(0, 3fr); gap: 48px; align-items: start; }
  .media-bakery__video { width: 100%; margin: 0; }
  .media-bakery__shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    padding: 0;
    margin-block-start: 72px;
  }
}

/* 03 Techuist: home page with the product page overlapping */
.media-tq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.media-tq .browser--main { grid-column: 1 / span 11; grid-row: 1; }
.media-tq__deal { grid-column: 4 / -1; grid-row: 2; margin-block-start: -16%; position: relative; }
@media (min-width: 980px) {
  .media-tq .browser--main { grid-column: 1 / span 9; }
  .media-tq__deal { grid-column: 8 / -1; grid-row: 1; align-self: end; margin: 0 0 -10%; }
}

/* 04 WinPilot: an illustrated run, drawn in the page's own style */
.wp {
  display: grid;
  gap: 28px;
  padding: 20px;
  background:
    radial-gradient(110% 80% at 85% 0%, rgba(232, 163, 61, .12), rgba(232, 163, 61, 0) 60%),
    var(--bg);
  border: 1px solid var(--line);
}
.wp__stage { position: relative; padding: 8px 6px 16px; }
.wp__win {
  position: relative;
  background: #F2EADF;
  color: #1C1813;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  max-width: 520px;
  margin-inline: auto;
}
.wp__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #DCD2C3;
  font-size: .8125rem;
  font-weight: 500;
  color: #4E463D;
}
.wp__ctl { display: inline-flex; gap: 10px; direction: ltr; }
.wp__ctl i { width: 10px; height: 2px; background: #9D9488; display: block; }
.wp__ctl i:nth-child(2) { height: 8px; width: 8px; background: none; border: 1.5px solid #9D9488; }
.wp__ctl i:nth-child(3) { height: 2px; transform: rotate(45deg); }
.wp__form { display: grid; gap: 14px; padding: 18px 16px 20px; }
.wp__field { position: relative; display: grid; gap: 4px; }
.wp__lbl { font-size: .8125rem; color: #6A6156; }
.wp__val {
  display: block;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #CFC6B8;
  background: #fff;
  font-family: var(--mono);
  font-size: .875rem;
  color: #1C1813;
  text-align: start;
}
html:lang(ar) .wp__val { text-align: end; }
.wp__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wp__save {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 22px;
  background: #1C1813;
  color: #F2EADF;
  font-size: .875rem;
  font-weight: 500;
}
.wp__done { font-size: .8125rem; color: #2E6B45; font-weight: 500; }
.wp__done::before { content: "✓ "; }
.wp__mk {
  position: absolute;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(232, 163, 61, .25);
}
.wp__field .wp__mk { inset-inline-end: -10px; top: 18px; }
.wp__save .wp__mk { inset-inline-end: -12px; top: -12px; }
.wp__mk--win { inset-inline-start: -10px; top: -10px; }

.wp__side { display: grid; gap: 18px; align-content: center; }
.wp__steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.wp__steps li:first-child { border-top: 1px solid var(--line); }
.wp__n { font-family: var(--mono); font-size: .875rem; color: var(--accent); }
.wp__policy { color: var(--muted); font-size: .9375rem; }
.wp__cap { color: var(--muted); font-size: .8125rem; }

@media (min-width: 980px) {
  .wp { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; padding: 56px; align-items: center; }
  .wp__cap { grid-column: 1 / -1; }
  .wp__win { margin-inline: 0 auto; }
}

/* WinPilot run, played once when it comes into view */
@media (prefers-reduced-motion: no-preference) {
  .wp.is-waiting .wp__stage [data-step] { opacity: .18; transition: opacity .5s var(--ease); }
  .wp.is-waiting .wp__stage .wp__val { color: transparent; transition: color .4s; }
  .wp.is-waiting .wp__stage .wp__done { opacity: 0; }
  .wp.is-waiting.s1 .wp__stage [data-step="1"],
  .wp.is-waiting.s2 .wp__stage [data-step="2"],
  .wp.is-waiting.s3 .wp__stage [data-step="3"] { opacity: 1; }
  .wp.is-waiting.s2 .wp__stage .wp__val { color: #1C1813; }
  .wp.is-waiting.s3 .wp__stage .wp__done { opacity: 1; transition: opacity .5s .35s; }
}

/* Reveal for project media: one quiet rise as each comes into view */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .rv { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .js-motion .rv.in { opacity: 1; transform: none; }
}

/* ---------- 4. Process ---------- */

.process { padding-block: var(--sec); }
.process .wrap { display: grid; gap: 22px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px 32px;
  margin-block-start: 32px;
}
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.steps__n {
  font-size: 3.25rem;
  line-height: 1;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent);
}
.steps h3 { font-size: 1.3125rem; line-height: 1.35; }
.steps p { color: var(--ink-2); font-size: .9375rem; font-weight: 400; }
html:lang(en) .steps p { font-weight: 400; }

/* ---------- 5. Who builds it ---------- */

.about { padding-block: var(--sec); background: var(--surface); border-block: 1px solid var(--line); }
.about__text { display: grid; gap: 20px; max-width: 46em; }
.about__lead { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.12; }
html:lang(ar) .about__lead { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.55; font-weight: 600; }
.about__text > p:not(.kicker) { color: var(--ink-2); font-size: 1.0625rem; }



/* ---------- 6. Pricing ---------- */

.pricing { padding-block: var(--sec); border-bottom: 1px solid var(--line); }
.pricing__in { display: grid; gap: 56px; }
.pricing__main { display: flex; flex-direction: column; gap: 10px; }
.pricing__main .kicker { margin-block-end: 14px; }
.pricing__offer { color: var(--accent); font-size: .9375rem; }
.pricing__big { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.pricing__num {
  font-size: clamp(5rem, 13vw, 9.5rem);
  line-height: .95;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.pricing__unit { display: flex; flex-direction: column; font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.45; font-weight: 500; }
.pricing__month { color: var(--muted); font-weight: 400; }
.pricing__inc { margin-block-start: 14px; color: var(--ink-2); font-weight: 400; max-width: 30em; }
html:lang(en) .pricing__inc { font-weight: 400; }

.pricing__alt { display: flex; flex-direction: column; }
.pricing__altlbl { color: var(--muted); padding-block-end: 12px; }
.plan {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.plan__name { font-size: 1.25rem; line-height: 1.4; }
.plan__note { font-size: .8125rem; color: var(--muted); }
.plan__price { white-space: nowrap; color: var(--muted); font-size: .875rem; }
.plan__price .num { font-family: var(--display); font-size: 1.75rem; font-weight: 600; color: var(--ink); }
.plan__extras { padding-block-start: 20px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.plan__extras b { color: var(--ink); font-weight: 500; }

@media (min-width: 980px) {
  .pricing__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 96px; align-items: end; }
}

/* ---------- 7. FAQ ---------- */

.faq { padding-block: var(--sec); }
.faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 clamp(32px, 4vw, 64px);
  margin-block-start: 40px;
}
.faq__grid > div { display: flex; flex-direction: column; gap: 10px; padding-block: 24px 28px; border-top: 1px solid var(--line); }
.faq h3 { font-size: 1.1875rem; line-height: 1.45; color: var(--accent); }
.faq p { color: var(--ink-2); font-size: .9375rem; font-weight: 400; text-wrap: pretty; }
html:lang(en) .faq p { font-weight: 400; }

/* ---------- 8. Contact ---------- */

.contact { background: var(--accent); color: var(--on-accent); }
.contact__in { display: grid; gap: 48px; padding-block: var(--sec); align-items: center; }
.contact__main { display: flex; flex-direction: column; gap: 24px; }
.contact__title { font-size: clamp(2.75rem, 8vw, 6.5rem); line-height: .98; font-weight: 700; letter-spacing: -0.025em; }
html:lang(ar) .contact__title { font-size: clamp(2.375rem, 6vw, 5rem); line-height: 1.3; letter-spacing: 0; }
.contact__lead { font-size: 1.125rem; max-width: 28em; }
.actions--contact { align-items: center; gap: 16px 24px; }
.mail {
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .2s;
}
.mail:hover { opacity: .7; }
.contact__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .9375rem; opacity: .8; }
.contact :focus-visible { outline-color: var(--on-accent); }

.ready { background: var(--bg); color: var(--ink); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.ready__title { font-size: 1.25rem; }
.ready__list li { display: flex; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); font-size: .9375rem; }
.ready__n { color: var(--accent); font-family: var(--mono); font-size: .8125rem; width: 16px; padding-top: .2em; }
.ready__soft { color: var(--muted); }

@media (min-width: 980px) {
  .contact__in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 96px; }
}

/* ---------- Footer ---------- */

.ft { padding-block: clamp(48px, 6vw, 72px) 96px; }
.ft__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.ft__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.ft__brand p { color: var(--muted); font-size: .9375rem; max-width: 22em; }
.ft__col { display: flex; flex-direction: column; gap: 10px; font-size: .9375rem; color: var(--ink-2); min-width: 0; }
.ft__col a { text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.ft__col a:hover { color: var(--accent); }
html:lang(ar) .ft__col a[dir="ltr"] { text-align: right; }
.ft__lbl { color: var(--muted); }
.ft__base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-block-start: 48px;
  padding-block-start: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
}
.ft__base a { text-decoration: none; }
.ft__base a:hover { color: var(--accent); }

@media (min-width: 760px) {
  .ft__grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; }
  .ft__brand { grid-column: auto; }
}
@media (min-width: 900px) { .ft { padding-block-end: 32px; } }

/* ---------- Floating WhatsApp (phones only) ---------- */

.fab {
  position: fixed;
  inset-inline-end: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #0E0C0A;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s linear .25s;
}
.fab svg { width: 28px; height: 28px; }
.fab.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease), visibility 0s; }
@media (min-width: 900px) { .fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .fab, .fab.is-shown { transition: none; } }

/* ---------- Audit fixes: mobile layout, reach and tap targets ---------- */

/* Price link under the first-screen buttons, and a button right in the pricing section */
.hero__price { align-self: flex-start; font-size: .9375rem; color: var(--ink-2); }
.pricing__cta { margin-block-start: 22px; }

/* Secondary links on one row with comfortable tap targets */
.links__more { display: inline-flex; flex-wrap: wrap; gap: 4px 22px; }
.links .tlink, .ft__col a { padding-block: 8px; }

/* Techuist screenshots are labelled honestly */
.media-tq__cap { grid-column: 1 / -1; grid-row: 3; margin-block-start: 14px; color: var(--muted); font-size: .875rem; }

/* Swipe hint for the bakery screens on phones */
.swipe { display: none; color: var(--muted); font-size: .8125rem; margin-block-start: -18px; }

@media (max-width: 699px) {
  .strip__in { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .media-bakery__shots { grid-auto-columns: 72%; }
  .swipe { display: block; }
}
@media (max-width: 479px) {
  #heroActions .btn { flex: 1 1 100%; }
}
/* Very narrow phones: keep the header's call to action from clipping */
@media (max-width: 359px) {
  .hd__in { gap: 12px; }
  #waHead { padding-inline: 14px; }
}
/* Work index on phones: show what each project is on a second line */
@media (max-width: 759px) {
  .index__row { grid-template-rows: auto auto; row-gap: 2px; }
  .index__no { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .index__name { grid-column: 2; grid-row: 1; }
  .index__kind { display: block; grid-column: 2; grid-row: 2; font-size: .8125rem; }
  .index__year { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  /* Our own products (Techuist, WinPilot) without their big screenshots on phones: less to scroll before pricing */
  .case--own .case__media { display: none; }
  .case--own { padding-block: 56px 64px; }
}
