/* ==========================================================================
   إتقان الحرفة بإكمال التحفة — Landing page
   Visual system derived from the app (Figma "Tohfa web") and its brochure:
   warm paper, ink-brown, taupe, gold; IBM Plex Sans Arabic (app UI font)
   with Noto Naskh Arabic for quoted text.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Plex Arabic"; src: url("../assets/fonts/ibm-plex-sans-arabic-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../assets/fonts/ibm-plex-sans-arabic-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../assets/fonts/ibm-plex-sans-arabic-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("../assets/fonts/ibm-plex-sans-arabic-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Naskh"; src: url("../assets/fonts/noto-naskh-arabic-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* colour — sampled from the app screens */
  --paper: #FDF9F4;        /* app background */
  --paper-2: #F7F0E6;
  --paper-3: #F0E7DA;
  --surface: #FFFFFF;
  --line: #EBE4DC;         /* app borders / tab bar */
  --line-2: #DFD3C3;
  --taupe: #9C836D;        /* app secondary (cards, chips) */
  --taupe-dk: #7A6450;
  --gold: #C9B08F;
  --ink: #563407;          /* logo / primary buttons */
  --ink-2: #6E4A1C;
  --ink-deep: #2A1A07;     /* dark sections */
  --ink-deeper: #1C1105;
  --text: #3B3128;
  --muted: #6F5E4E;
  --on-dark: #F4ECE1;
  --on-dark-muted: #CDBDA8;

  /* type */
  --font: "Plex Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-quote: "Naskh", "Plex Arabic", serif;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);

  /* layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --shadow-sm: 0 1px 2px rgba(58, 36, 10, .06), 0 2px 8px rgba(58, 36, 10, .05);
  --shadow-md: 0 10px 30px -12px rgba(58, 36, 10, .25);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.4; color: var(--ink-deep); }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.ico-flip { transform: scaleX(-1); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

/* ---------- Type helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-size: .9375rem; font-weight: 600; color: var(--taupe-dk); letter-spacing: 0;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.kicker--light { color: var(--gold); }
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.35; text-wrap: balance; }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.45; text-wrap: balance; }
.lead { font-size: var(--fs-lead); color: var(--text); line-height: 1.95; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-sub { color: var(--muted); font-size: var(--fs-lead); margin-top: 14px; }

/* ---------- Justified paragraphs ---------- */
.hero-lead, .lead, .about-copy p, .need-card p, .why-p-in, .feature-copy > p:not(.feature-fact),
.testimonial-note, .section-sub, .download-sub, .footer-brand p, .aud-card p, .services-list li {
  text-align: justify; text-justify: inter-word; text-align-last: start;
}
/* paragraphs that sit in centred blocks keep a centred last line */
.testimonial-note, .section-head--center .section-sub { text-align-last: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary { box-shadow: 0 8px 20px -10px rgba(86, 52, 7, .6); }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(86, 52, 7, .65); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(86, 52, 7, .04); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; border-radius: 12px; }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-1px); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.chip {
  display: inline-block; margin: 0;
  padding: 6px 16px; border-radius: 999px;
  background: var(--taupe); color: #fff;
  font-size: .875rem; font-weight: 500; line-height: 1.6;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(253, 249, 244, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand-logo {
  width: 150px; aspect-ratio: 1445 / 347;
  background: var(--ink);
  -webkit-mask: url("../assets/images/itqan-logo.svg") center / contain no-repeat;
  mask: url("../assets/images/itqan-logo.svg") center / contain no-repeat;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; list-style: none; gap: 4px; }
.main-nav ul a {
  position: relative; display: block; padding: 8px 12px;
  text-decoration: none; font-weight: 500; font-size: .9688rem; color: var(--text);
  border-radius: 10px; transition: color .2s var(--ease), background-color .2s var(--ease);
}
.main-nav ul a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease);
}
.main-nav ul a:hover { color: var(--ink); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.main-nav ul a.is-active { color: var(--ink); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--surface); cursor: pointer; position: relative; flex: none;
}
.nav-toggle span {
  position: absolute; inset-inline-start: 13px; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Phone mockup ---------- */
.phone {
  --w: 280px;
  position: relative; margin: 0;
  width: var(--w);
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .165);
  background: linear-gradient(150deg, #3a302a 0%, #17120e 45%, #2b231d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 0 0 calc(var(--w) * .008) #0b0907,
    0 40px 70px -30px rgba(58, 36, 10, .55),
    0 18px 30px -18px rgba(58, 36, 10, .35);
  flex: none;
}
.phone::before { /* camera island */
  content: ""; position: absolute; z-index: 2;
  top: calc(var(--w) * .046); left: 50%; transform: translateX(-50%);
  width: 27%; height: calc(var(--w) * .066);
  background: #080605; border-radius: 999px;
}
.phone img, .phone .phone-stack {
  width: 100%; height: auto; aspect-ratio: 750 / 1624;
  border-radius: calc(var(--w) * .135);
  background: var(--paper);
}
.phone .float img { border-radius: calc(var(--w) * .135); }
.phone-stack { position: relative; overflow: hidden; }
.phone-stack img {
  position: absolute; inset: 0; border-radius: 0;
  opacity: 0; transform: scale(1.015);
  transition: opacity .6s var(--ease), transform .8s var(--ease-out);
}
.phone-stack img.is-active { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px));
  padding-bottom: clamp(56px, 7vw, 96px);
  /* kraft paper photo (Ayush Design, Unsplash) under a cream wash:
     lighter on the phones side, stronger behind the text so it stays readable */
  background:
    linear-gradient(to left, rgba(253, 249, 244, .8) 0%, rgba(253, 249, 244, .62) 45%, rgba(253, 249, 244, .38) 100%),
    url("../assets/images/craft-paper.webp") center / cover no-repeat,
    var(--paper);
  overflow: hidden;
}
.hero::after { /* paper grain */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/images/grain.png"); opacity: .05; mix-blend-mode: multiply;
}
/* Light animated lines (decorative, behind content) */
.hero-motif {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  /* strongest around the phones, softer behind the text */
  -webkit-mask-image: radial-gradient(ellipse 75% 95% at 28% 52%, #000 0%, rgba(0, 0, 0, .6) 50%, rgba(0, 0, 0, .22) 85%);
  mask-image: radial-gradient(ellipse 75% 95% at 28% 52%, #000 0%, rgba(0, 0, 0, .6) 50%, rgba(0, 0, 0, .22) 85%);
}
/* A wide, soft beam of warm light drifts slowly back and forth across the paper. */
.hero-light {
  position: absolute; top: -30%; bottom: -30%; left: -60%; width: 220%;
  background: linear-gradient(104deg,
    rgba(255, 244, 222, 0) 34%,
    rgba(255, 244, 222, .5) 45%,
    rgba(255, 250, 238, .75) 50%,
    rgba(255, 244, 222, .5) 55%,
    rgba(255, 244, 222, 0) 66%);
  animation: light-sweep 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes light-sweep { from { transform: translate3d(-18%, 0, 0); } to { transform: translate3d(18%, 0, 0); } }
/* Dust motes drawn by js/main.js */
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero-logo { margin: 0 0 18px; max-width: 520px; }
.hero-logo img { width: 100%; }
.hero-title {
  margin: 26px 0 18px;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.375rem);
  font-weight: 700; line-height: 1.5; color: var(--ink-deep); text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--ink); box-shadow: inset 0 -.32em 0 rgba(201, 176, 143, .38); }
.hero-lead { color: var(--muted); font-size: var(--fs-lead); max-width: 34em; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-books { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; max-width: 520px; }
.hero-books-label { font-size: .875rem; color: var(--taupe-dk); font-weight: 500; }
.six-books {
  display: block; width: 100%; aspect-ratio: 248 / 20;
  background: var(--ink);
  -webkit-mask: url("../assets/images/six-books.svg") center / contain no-repeat;
  mask: url("../assets/images/six-books.svg") center / contain no-repeat;
}

.hero-visual { position: relative; display: grid; place-items: center; min-height: 620px; }
.hero-arch {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  width: min(88%, 470px); height: 86%;
  border-radius: 999px 999px 32px 32px;
  background: linear-gradient(180deg, var(--paper-3) 0%, rgba(240, 231, 218, .35) 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 176, 143, .35);
}
.hero-arch::before {
  content: ""; position: absolute; inset: 14px; border-radius: inherit;
  border: 1px dashed rgba(156, 131, 109, .35);
}
.hero-visual .phone--front { --w: clamp(230px, 22vw, 290px); z-index: 3; }
.hero-visual .phone--back { --w: clamp(190px, 18vw, 238px); position: absolute; z-index: 2; }
.phone--back-a { inset-inline-start: 0; top: 16%; }
.phone--back-b { inset-inline-end: 0; top: 24%; }
.phone--back::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(42, 26, 7, .06); pointer-events: none; }
.hero-visual { padding-bottom: 68px; }
.hero-tag {
  position: absolute; z-index: 4; bottom: 0; inset-inline: 0; margin-inline: auto; width: max-content; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px; margin-block: 0;
  padding: 12px 18px; border-radius: 14px;
  background: var(--ink-deep); color: var(--on-dark);
  font-size: .9375rem; font-weight: 600; line-height: 1.4;
  box-shadow: 0 16px 30px -14px rgba(28, 17, 5, .6);
}
.hero-tag .ico { color: var(--gold); }


/* entrance */
.enter { animation: enter .9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Stats ---------- */
.stats {
  position: relative;
  background: var(--ink); color: var(--on-dark);
  padding-block: clamp(36px, 5vw, 56px);
  overflow: hidden;
}
.stats::after { content: ""; position: absolute; inset: 0; background: url("../assets/images/grain.png"); opacity: .08; mix-blend-mode: overlay; pointer-events: none; }
.stats-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.stat { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 8px 12px; }
.stat + .stat { border-inline-start: 1px solid rgba(244, 236, 225, .18); }
.stat-num {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; color: #fff;
}
.stat-label { font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); color: var(--on-dark-muted); font-weight: 500; }

/* ---------- Film ---------- */
.film {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 520px at 20% 50%, rgba(201, 176, 143, .28), transparent 65%),
    var(--paper-2);
}
.film-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.film-copy .h2 { margin-bottom: 4px; }
.chapters { list-style: none; display: grid; gap: 6px; margin-top: 32px; max-width: 460px; counter-reset: none; }
.chapter {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: start;
  padding: 12px 16px; border-radius: 14px; border: 1px solid transparent; background: transparent;
  font-weight: 500; color: var(--text); cursor: pointer; line-height: 1.5;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.chapter:hover { background: rgba(255, 255, 255, .7); border-color: var(--line); }
.chapter-t {
  flex: none; min-width: 52px; padding: 3px 0; border-radius: 8px; text-align: center;
  font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--paper-3); color: var(--taupe-dk);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.chapter.is-current { background: var(--surface); border-color: var(--line); color: var(--ink-deep); font-weight: 700; box-shadow: var(--shadow-sm); }
.chapter.is-current .chapter-t { background: var(--ink); color: #fff; }

.film-visual { display: grid; place-items: center; }
@media (max-width: 960px) { .chapters li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.film-frame {
  --fw: clamp(260px, 25vw, 330px);
  position: relative; width: var(--fw); aspect-ratio: 9 / 16;
  padding: 8px; border-radius: 34px;
  background: linear-gradient(150deg, #3a302a 0%, #17120e 45%, #2b231d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 70px -30px rgba(58, 36, 10, .55), 0 18px 30px -18px rgba(58, 36, 10, .35);
}
.film-video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 26px; background: var(--ink-deep);
}
.film-bar {
  position: absolute; inset-inline: 30px; bottom: 26px; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .28); overflow: hidden; direction: ltr;
  opacity: 0; transition: opacity .3s var(--ease);
}
.film-bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
.film-controls {
  position: absolute; top: 20px; inset-inline-end: 20px; display: flex; gap: 8px;
  opacity: 0; transition: opacity .3s var(--ease);
}
.film-frame.is-started .film-bar, .film-frame.is-started .film-controls { opacity: 1; }
.film-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 0; cursor: pointer; color: #fff;
  background: rgba(28, 17, 5, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.film-btn:hover { background: rgba(28, 17, 5, .8); transform: scale(1.05); }
.film-btn .ico { width: 20px; height: 20px; }
.film-btn .ico-pause, .film-btn[aria-pressed="true"] .ico-play { display: none; }
.film-btn[aria-pressed="true"] .ico-pause { display: inline-block; }
#filmSound .ico-sound, #filmSound[aria-pressed="true"] .ico-muted { display: none; }
#filmSound[aria-pressed="true"] .ico-sound { display: inline-block; }
.film-start {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .25), 0 16px 30px -12px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease), opacity .3s var(--ease), box-shadow .3s var(--ease);
}
.film-start svg { width: 30px; height: 30px; margin-inline-end: -3px; }
.film-start:hover { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(255, 255, 255, .3), 0 16px 30px -12px rgba(0, 0, 0, .5); }
.film-frame.is-started .film-start { opacity: 0; pointer-events: none; transform: scale(.9); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: stretch; }
.about-copy .h2 { margin-bottom: 24px; }
.about-copy p:not(.kicker):not(.lead) { color: var(--muted); }
.about-copy .lead { margin-bottom: 1.1em; }
/* the card stretches to the height of the text column and spreads its content evenly */
.about-card { display: flex; }
.about-card-frame {
  position: relative; padding: clamp(28px, 4vw, 44px) clamp(22px, 3vw, 36px);
  background: var(--surface); border-radius: 160px 160px var(--radius) var(--radius);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
  text-align: center;
  flex: 1; display: flex; flex-direction: column; justify-content: space-evenly;
}
.about-card-frame::before {
  content: ""; position: absolute; inset: 10px; border-radius: 150px 150px 14px 14px;
  border: 1px solid var(--line); pointer-events: none;
}
.tuhfa-title {
  display: block; width: 92%; margin: 28px auto 0; aspect-ratio: 246 / 62;
  background: var(--ink);
  -webkit-mask: url("../assets/images/tuhfa-title.svg") center / contain no-repeat;
  mask: url("../assets/images/tuhfa-title.svg") center / contain no-repeat;
}
.about-card-rule { display: block; width: 56px; height: 2px; background: var(--gold); margin: 22px auto 12px; border-radius: 2px; }
.about-card-sub { color: var(--taupe-dk); font-weight: 500; margin-bottom: 26px; }
.about-card-facts { list-style: none; display: grid; gap: 10px; text-align: start; }
.about-card-facts li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm); background: var(--paper);
  border: 1px solid var(--line); font-size: .9375rem; line-height: 1.6;
}
.about-card-facts strong { color: var(--ink); }
.about-card-facts span { color: var(--muted); font-size: .875rem; text-align: end; }

.need { margin-top: clamp(64px, 8vw, 112px); }
.need-title { font-size: var(--fs-h3); margin-bottom: 28px; text-align: center; }
.need-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 20px; }
.need-card { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); line-height: 2; }
.need-card--problem { background: var(--paper-2); border: 1px solid var(--line); color: var(--muted); }
.need-card--solution { background: var(--ink-deep); color: var(--on-dark); box-shadow: var(--shadow-md); }
.need-label {
  display: inline-block; margin-bottom: 14px; padding: 4px 18px; border-radius: 999px;
  font-size: 1rem; font-weight: 700; line-height: 1.7;
}
.need-card--problem .need-label { background: var(--line); color: var(--taupe-dk); }
.need-card--solution .need-label { background: rgba(201, 176, 143, .2); color: var(--gold); }
.need-arrow { align-self: center; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }

/* ---------- Why ---------- */
.why { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.why-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "head visual" "tabs visual";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 96px); row-gap: clamp(24px, 3vw, 36px);
  align-items: start;
}
.why-head { grid-area: head; align-self: end; }
.why-copy { grid-area: tabs; }
.why-visual { grid-area: visual; align-self: center; }
.why-tabs { display: grid; gap: 12px; }
.why-tab {
  display: flex; gap: 18px; align-items: flex-start; width: 100%; text-align: start;
  padding: 20px 22px; border-radius: var(--radius);
  background: transparent; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.why-tab:hover { background: rgba(255, 255, 255, .6); border-color: var(--line); }
.why-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-md); }
.why-icon {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--paper-3); color: var(--ink); font-size: 1.25rem;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.why-tab[aria-selected="true"] .why-icon { background: var(--ink); color: #fff; }
.why-text { display: grid; gap: 6px; }
.why-h { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); font-weight: 700; color: var(--ink-deep); line-height: 1.5; }
.why-p {
  color: var(--muted); font-size: .9688rem; line-height: 1.9;
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .45s var(--ease), opacity .35s var(--ease);
}
.why-p-in { overflow: hidden; min-height: 0; }
.why-tab[aria-selected="true"] .why-p { grid-template-rows: 1fr; opacity: 1; }
.why-tab:not([aria-selected="true"]) .why-text { gap: 0; }
.why-tab:not([aria-selected="true"]) { align-items: center; }
.why-visual { position: relative; display: grid; place-items: center; padding-block: 20px; }
.why-halo {
  position: absolute; width: min(100%, 440px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 176, 143, .42) 0%, rgba(201, 176, 143, 0) 68%);
}
.phone--lg { --w: clamp(250px, 24vw, 310px); }

/* ---------- Testimonial ---------- */
.testimonial {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(201, 176, 143, .16), transparent 70%),
    var(--ink-deep);
  color: var(--on-dark);
  padding-block: clamp(80px, 10vw, 140px);
}
.testimonial::after { content: ""; position: absolute; inset: 0; background: url("../assets/images/grain.png"); opacity: .1; mix-blend-mode: overlay; pointer-events: none; }
.testimonial-inner { position: relative; z-index: 1; max-width: 960px; text-align: center; }
.testimonial .kicker { justify-content: center; }
.quote { margin: 8px 0 0; }
.quote-mark { width: 56px; height: 56px; color: var(--gold); opacity: .8; margin: 0 auto 8px; display: block; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--font-quote); font-weight: 700;
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.5rem); line-height: 1.9; color: #fff; text-wrap: balance;
}
.quote figcaption { margin-top: 28px; display: grid; gap: 0; }
.quote-name { margin-bottom: 4px; }
.quote-name { font-weight: 700; color: var(--gold); font-size: 1.125rem; }
.quote-role { color: var(--on-dark); font-size: .9375rem; line-height: 1.7; }
.quote-src { color: var(--on-dark-muted); font-size: .9375rem; margin-top: 8px; }
.testimonial-note {
  margin: 40px auto 0; max-width: 720px; padding-top: 32px;
  border-top: 1px solid rgba(244, 236, 225, .14);
  color: var(--on-dark-muted); line-height: 2;
}

/* ---------- Features ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-block: clamp(40px, 5vw, 64px);
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature--reverse .feature-copy { order: 2; }
.feature-copy { max-width: 540px; }
.feature-copy .h3 { margin-bottom: 18px; }
.feature-copy > p { color: var(--muted); }
.feature-num {
  display: inline-block; margin-bottom: 10px;
  font-size: .875rem; font-weight: 700; color: var(--taupe); letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.feature-fact {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 10px;
  padding: 12px 18px; border-radius: var(--radius-sm); background: var(--paper-2); border: 1px solid var(--line);
  color: var(--muted) !important; font-size: .9375rem;
}
.feature-fact strong { font-size: 1.5rem; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.big-figure { color: var(--gold); font-variant-numeric: tabular-nums; }

.ticks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.8; color: var(--text); }
.ticks .ico {
  width: 24px; height: 24px; padding: 4px; margin-top: 3px; border-radius: 50%;
  background: var(--paper-3); color: var(--ink);
}
.ticks--light li { color: var(--on-dark); }
.ticks--light .ico { background: rgba(201, 176, 143, .18); color: var(--gold); }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill-list li {
  padding: 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  font-size: .9375rem; font-weight: 500; color: var(--ink);
}

.search-modes { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.search-modes li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; color: var(--ink-deep);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.search-modes li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.search-modes .ico { color: var(--ink); width: 22px; height: 22px; }

.feature-visual { position: relative; display: grid; place-items: center; min-height: 100%; }
.feature-visual::before {
  content: ""; position: absolute; inset: 6% 8%; border-radius: 999px 999px 28px 28px;
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); z-index: 0;
}
.feature-visual .phone { z-index: 1; }
.feature-visual--single .phone { --w: clamp(230px, 22vw, 280px); }
.feature-visual--pair { min-height: clamp(480px, 46vw, 620px); }
.feature-visual--pair .phone { --w: clamp(200px, 19vw, 250px); position: absolute; }
.phone--pair-back { inset-inline-start: 4%; top: 2%; }
.phone--pair-front { inset-inline-end: 4%; bottom: 0; z-index: 2 !important; }

/* F3 dark band */
.feature--band {
  margin-block: clamp(24px, 4vw, 48px);
  padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 72px);
  border-radius: 32px; border-top: 0 !important;
  background: radial-gradient(600px 400px at 0% 100%, rgba(201, 176, 143, .16), transparent 70%), var(--ink-deep);
  color: var(--on-dark);
}
.feature--band + .feature { border-top: 0; }
/* Background photo: old papers and an inkwell (Unsplash, Clark Young), mirrored so the
   inkwell sits on the text side rather than behind the phone, under a brown overlay. */
.feature--band { position: relative; overflow: hidden; isolation: isolate; background: var(--ink-deep); }
.feature--band::before,
.feature--band::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.feature--band::before {
  z-index: -2;
  background: url("../assets/images/inkwell-desk.webp?v=2") 50% 55% / cover no-repeat;
  transform: scaleX(-1);
}
.feature--band::after {
  z-index: -1;
  background:
    radial-gradient(600px 400px at 0% 100%, rgba(201, 176, 143, .14), transparent 70%),
    linear-gradient(to left, rgba(28, 17, 5, .84) 0%, rgba(28, 17, 5, .74) 48%, rgba(28, 17, 5, .5) 100%);
}
.feature--band .h3 { color: #fff; }
.feature--band .feature-copy > p { color: var(--on-dark-muted); }
.feature--band .feature-num { color: var(--gold); }
.feature--band .feature-visual::before { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---------- Tour ---------- */
.tour {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(201, 176, 143, .14), transparent 70%),
    radial-gradient(700px 400px at 10% 100%, rgba(201, 176, 143, .08), transparent 70%),
    var(--ink-deep);
  color: var(--on-dark);
}
.tour::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/images/grain.png"); opacity: .1; mix-blend-mode: overlay; pointer-events: none; }
.tour .kicker { color: var(--gold); }
.tour .h2 { color: #fff; }
.tour .icon-btn { background: rgba(255, 255, 255, .06); border-color: rgba(244, 236, 225, .22); color: var(--on-dark); }
.tour .icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: var(--gold); }
.tour .icon-btn:disabled { opacity: .3; }
/* lift the dark phone bezels off the dark background */
.tour-item .phone { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 0 calc(var(--w) * .008) #0b0907, 0 0 0 1px rgba(201, 176, 143, .18), 0 30px 60px -28px rgba(0, 0, 0, .8); }
.tour-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.tour-controls { display: flex; gap: 10px; }
.tour-track {
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  padding-block: 12px 36px;
}
.tour-track::-webkit-scrollbar { display: none; }
.tour-track:focus-visible { outline-offset: -3px; }
.tour-list {
  list-style: none; display: flex; gap: clamp(20px, 2.6vw, 36px);
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  width: max-content;
}
.tour-item { scroll-snap-align: start; display: grid; gap: 18px; justify-items: center; }
.tour-item .phone { --w: clamp(210px, 19vw, 250px); transition: transform .4s var(--ease); }
.tour-item:hover .phone { transform: translateY(-6px); }
.tour-cap { margin: 0; text-align: center; display: grid; gap: 2px; font-size: .9063rem; color: var(--on-dark-muted); max-width: 240px; line-height: 1.7; }
.tour-cap strong { color: #fff; font-size: 1rem; }

/* ---------- Capabilities ---------- */
.bento { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bento-item {
  display: flex; flex-direction: column; gap: 16px; justify-content: space-between;
  min-height: 150px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; color: var(--ink-deep); line-height: 1.7;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.bento-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.bento-item .ico {
  width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: var(--paper-2); color: var(--ink);
}
.bento-item strong { color: var(--ink); font-size: 1.25em; font-variant-numeric: tabular-nums; }
.bento-item--wide { grid-column: span 2; background: var(--paper-3); border-color: transparent; font-size: 1.125rem; }
.bento-item--span { grid-column: span 2; }
.bento-item--wide .ico { background: var(--surface); }
.bento-item--accent { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.bento-item--accent strong { color: #fff; }
.bento-item--accent .ico { background: rgba(255, 255, 255, .1); color: var(--gold); }

.services {
  margin-top: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden;
}
.services summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; font-weight: 700; color: var(--ink-deep); min-height: 64px;
  transition: background-color .2s var(--ease);
}
.services summary::-webkit-details-marker { display: none; }
.services summary:hover { background: var(--paper); }
.services-count { margin-inline-start: auto; font-size: .8125rem; font-weight: 600; color: var(--taupe-dk); background: var(--paper-2); padding: 2px 12px; border-radius: 999px; }
.services-chev { transform: rotate(-90deg); transition: transform .3s var(--ease); color: var(--ink); }
.services[open] .services-chev { transform: rotate(90deg); }
.services-list {
  list-style: none; counter-reset: s;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px;
  padding: 4px 24px 24px; border-top: 1px solid var(--line);
}
.services-list li {
  counter-increment: s; position: relative; padding: 14px 44px 14px 0; padding-inline: 44px 0;
  border-bottom: 1px dashed var(--line); color: var(--text); line-height: 1.85; font-size: .9688rem;
}
.services-list li::before {
  content: counter(s, arabic-indic); position: absolute; inset-inline-start: 0; top: 14px;
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper-2); color: var(--ink); font-weight: 700; font-size: .875rem; line-height: 1;
}

/* ---------- Audience ---------- */
.audience { padding-top: 0; }
.audience-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.aud-card {
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.aud-card::after {
  content: ""; position: absolute; inset-inline: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--gold); transform: scaleX(.25); transform-origin: right; transition: transform .4s var(--ease);
}
.aud-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.aud-card:hover::after { transform: scaleX(1); }
.aud-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); font-size: 1.25rem; margin-bottom: 20px; }
.aud-h { font-size: 1.125rem; margin-bottom: 6px; line-height: 1.55; }
.aud-card p { color: var(--muted); font-size: .9688rem; line-height: 1.85; }

/* ---------- Download ---------- */
.download { padding-bottom: var(--section-y); }
.download-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 32px;
  padding: clamp(36px, 5vw, 72px);
  border-radius: 36px;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(201, 176, 143, .5), transparent 65%),
    linear-gradient(160deg, var(--paper-3) 0%, var(--paper-2) 100%);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.download-icon { width: 92px; height: 92px; border-radius: 24px; box-shadow: var(--shadow-md); margin-bottom: 26px; }
.download-sub { color: var(--muted); font-size: var(--fs-lead); margin: 14px 0 30px; max-width: 32em; }
.stores { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 20px 8px 22px; border-radius: 14px;
  background: var(--ink-deeper); color: #fff; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.store:hover { transform: translateY(-2px); background: #000; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); }
.store .ico { width: 26px; height: 26px; }
.store span { display: grid; line-height: 1.25; }
.store small { font-size: .75rem; color: rgba(255, 255, 255, .72); }
.store b { font-size: 1.0625rem; font-weight: 600; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; letter-spacing: .01em; }
.download-visual { position: relative; display: grid; justify-items: center; align-self: end; margin-bottom: calc(clamp(36px, 5vw, 72px) * -1 - 120px); }
.phone--cta { --w: clamp(220px, 21vw, 270px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deeper); color: var(--on-dark-muted); padding-top: clamp(56px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, .8fr)) minmax(0, .8fr); gap: 40px; padding-bottom: 48px; }
.footer-logo {
  display: block; width: 220px; aspect-ratio: 1445 / 347; margin-bottom: 18px;
  background: var(--gold);
  -webkit-mask: url("../assets/images/itqan-logo.svg") center / contain no-repeat;
  mask: url("../assets/images/itqan-logo.svg") center / contain no-repeat;
}
.footer-brand p { max-width: 30em; font-size: .9375rem; line-height: 1.95; }
.footer-h { display: block; font-size: .875rem; font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.footer-nav ul { list-style: none; display: grid; gap: 6px; }
.footer-nav a { text-decoration: none; font-size: .9375rem; display: inline-block; padding: 4px 0; transition: color .2s var(--ease); }
.footer-nav a:hover { color: #fff; }
.footer-maker img { width: 140px; height: auto; margin-top: 4px; filter: invert(1) brightness(1.6) sepia(.25); opacity: .9; }
.footer-bottom {
  border-top: 1px solid rgba(244, 236, 225, .1); padding-block: 22px; font-size: .875rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
}
.footer-bottom p { margin: 0; }
/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 80; bottom: 24px; left: 50%; transform: translate(-50%, 16px);
  padding: 12px 20px; border-radius: 12px; background: var(--ink-deep); color: var(--on-dark);
  font-size: .9375rem; box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .5);
  opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav { gap: 16px; }
  .main-nav ul a { padding: 8px 8px; font-size: .9375rem; }
  .brand-logo { width: 120px; }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento-item--wide, .bento-item--span { grid-column: auto; }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Tablet & below: off-canvas nav */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: rgba(253, 249, 244, .98);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -24px rgba(58, 36, 10, .4), 0 1px 0 var(--line) inset;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .3s var(--ease), visibility 0s linear .35s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a { padding: 14px 8px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav ul a::after { display: none; }
  .nav-cta { min-height: 52px; }
  .site-header.menu-open { background: rgba(253, 249, 244, .98); box-shadow: 0 1px 0 var(--line); }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero {
    background:
      linear-gradient(to bottom, rgba(253, 249, 244, .82) 0%, rgba(253, 249, 244, .7) 45%, rgba(253, 249, 244, .42) 100%),
      url("../assets/images/craft-paper-1200.webp") center / cover no-repeat,
      var(--paper);
  }
  .hero-motif {
    -webkit-mask-image: radial-gradient(ellipse 100% 55% at 50% 74%, #000 0%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .2) 90%);
    mask-image: radial-gradient(ellipse 100% 55% at 50% 74%, #000 0%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .2) 90%);
  }
  .hero-copy { display: grid; justify-items: center; }
  .hero-logo { max-width: 440px; }
  .hero-lead { margin-inline: auto; text-align-last: center; }
  .download-sub, .film-copy .section-sub { text-align-last: center; }
  .hero-actions { justify-content: center; }
  .hero-books { width: 100%; justify-items: center; }
  .hero-visual { min-height: 0; padding-block: 24px 68px; width: 100%; max-width: 600px; margin-inline: auto; }
  .hero-visual .phone--front { --w: clamp(220px, 40vw, 280px); }
  .hero-visual .phone--back { --w: clamp(170px, 31vw, 220px); }
  .phone--back-a { inset-inline-start: 2%; }
  .phone--back-b { inset-inline-end: 2%; }

  .film-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 0; }
  .film-copy { display: contents; }
  .film-copy .kicker { justify-content: center; }
  .film-copy .section-sub { margin-bottom: 32px; max-width: 32em; }
  .film-visual { order: 1; }
  .chapters { order: 2; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
  .film-frame { --fw: clamp(260px, 44vw, 330px); }

  .about-grid { grid-template-columns: 1fr; }
  .about-card { max-width: 460px; width: 100%; margin-inline: auto; }
  .about-card-frame { justify-content: flex-start; }

  .why-grid { grid-template-columns: 1fr; grid-template-areas: "head" "visual" "tabs"; grid-template-rows: auto; }
  .why-head { align-self: start; }
  .why-visual { padding-block: 0; }
  .phone--lg { --w: clamp(220px, 36vw, 270px); }

  .feature, .feature--reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature--reverse .feature-copy { order: 0; }
  .feature-copy { max-width: 640px; }
  .feature-visual--pair { min-height: clamp(440px, 80vw, 560px); width: 100%; max-width: 560px; margin-inline: auto; }
  .feature-visual--pair .phone { --w: clamp(190px, 34vw, 240px); }
  /* stacked band: text on top, phone below → darker at the top, photo shows more at the bottom */
  .feature--band::before { background-position: 28% 50%; }
  .feature--band::after {
    background: linear-gradient(to bottom, rgba(28, 17, 5, .9) 0%, rgba(28, 17, 5, .8) 45%, rgba(28, 17, 5, .55) 100%);
  }

  .download-card { grid-template-columns: 1fr; text-align: center; }
  .download-copy { display: grid; justify-items: center; }
  .stores { justify-content: center; }
  .download-visual { margin-bottom: calc(clamp(36px, 5vw, 72px) * -1 - 160px); }
}

@media (max-width: 760px) {
  .stats-list { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .need-grid { grid-template-columns: 1fr; }
  .need-arrow { justify-self: center; transform: rotate(-90deg); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-item--wide { grid-column: span 2; }
  .services-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-logo { width: 112px; }
  .hero-title { font-size: 1.5rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { padding: 16px 0 64px; }
  .hero-visual .phone--front { --w: 60vw; }
  .hero-visual .phone--back { --w: 42vw; }
  .phone--back-a { inset-inline-start: 0; top: 11%; }
  .phone--back-b { inset-inline-end: 0; top: 17%; }
  .hero-tag { font-size: .875rem; padding: 10px 16px; }
  .hero-arch { bottom: 64px; height: 80%; }

  .film-frame { --fw: min(78vw, 300px); }
  .chapters { gap: 6px; }
  .chapter { padding: 10px; gap: 10px; font-size: .875rem; }
  .chapter-t { min-width: 40px; font-size: .75rem; }

  .why-tab { padding: 16px; gap: 14px; }
  .why-icon { width: 44px; height: 44px; border-radius: 13px; }

  .feature-visual::before { inset: 6% 2%; }
  .feature-visual--pair { min-height: 128vw; }
  .feature-visual--pair .phone { --w: 50vw; }
  .phone--pair-back { inset-inline-start: 0; }
  .phone--pair-front { inset-inline-end: 0; }
  .search-modes { grid-template-columns: 1fr 1fr; }
  .search-modes li { padding: 14px; font-size: .9375rem; }
  .feature--band { border-radius: 24px; margin-inline: calc(var(--gutter) * -.5); }
  .feature--band::before { background-image: url("../assets/images/inkwell-desk-900.webp?v=2"); }

  .tour-head { align-items: center; }
  .tour-item .phone { --w: 64vw; }

  .bento { gap: 10px; }
  .bento-item { min-height: 0; padding: 16px; gap: 12px; justify-content: flex-start; font-size: .9375rem; line-height: 1.65; }
  .bento-item .ico { width: 38px; height: 38px; padding: 8px; border-radius: 11px; }
  .bento-item--wide { flex-direction: row; align-items: center; font-size: 1rem; }
  .why-tab:not([aria-selected="true"]) .why-h { font-size: 1rem; }
  .phone--lg { --w: 56vw; }
  .download-visual { display: none; }
  .download-card { padding-bottom: 40px; }
  .audience-grid { grid-template-columns: 1fr; }

  .stores { flex-direction: column; width: 100%; }
  .store { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-light { animation: none; transform: none; }
  .hero-dust { display: none; }
}
