/* harfbaharf.net, from Maham's frames (1440 x 1024, "HARF BA HARF" Desktop 14 to 23). */
:root {
  --green: #516244;
  --green-btn: #758e62;
  --green-btn-hover: #66804f;
  --grey: #8d8d8d;
  --ink: #2b2e29;
  --label: #3a3a3a;
  --star-green: #bcc490;
  --star-salmon: #efb6a1;
  --star-blue: #c5d7e3;
  --star-yellow: #e8c574;
  --sage: #f2f5f0;
  --sage-on: #c8d3c0;
  --glow: #c5d7e3;
  --glow-mid: #d6e3ec;
  --glow-soft: #e8eff4;
  --nav-h: 110px;
  --gutter: 16px;
  --sans: "Kumbh Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ui-serif: Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
p, h1, h2, h3, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.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; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  height: 46px; padding: 0 22px; border: 0; border-radius: 8px;
  background: var(--green-btn); color: #fff; font: 400 1.375rem/1 var(--sans); text-decoration: none;
  cursor: pointer; transition: background-color 0.2s ease;
}
.btn:hover { background: var(--green-btn-hover); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.btn:disabled { opacity: 0.7; cursor: progress; }

/* Header */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 30px 31px 12px 36px;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-logo { display: block; color: var(--green); border-radius: 4px; }
.nav-logo svg { display: block; width: 80px; height: auto; transition: width 0.3s ease; }
.nav-cta { margin-top: 5px; transition: margin 0.3s ease, background-color 0.2s ease; }
.nav.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 rgba(81, 98, 68, 0.08); }
.nav.is-scrolled .nav-logo svg { width: 52px; }
.nav.is-scrolled .nav-cta { margin-top: 0; }

/* Shared type */
.hero-title { font-size: clamp(2.5rem, min(7.2vw, 10vh), 6.5rem); font-weight: 500; line-height: 1.12; color: var(--green); }
.hero-sub { margin-top: 0.15em; font-size: clamp(1.35rem, min(3.5vw, 4.9vh), 3.15rem); font-weight: 350; line-height: 1.2; color: var(--grey); }
.section-title { font-size: clamp(2.1rem, min(4.75vw, 6.6vh), 4.25rem); font-weight: 500; line-height: 1.12; color: var(--green); }
.section-sub { margin-top: 0.45em; font-size: clamp(1.1rem, min(2.35vw, 3.3vh), 2.1rem); font-weight: 350; line-height: 1.2; color: var(--grey); }
.urdu-title { font-family: var(--urdu); font-size: clamp(1.75rem, min(3.6vw, 5.2vh), 3.3rem); font-weight: 500; line-height: 2.05; color: var(--green); }

/* App mockups are laid out at their Figma size and scaled to fit; site.js sets --s. */
.mock { width: calc(var(--w) * var(--s, 1) * 1px); height: calc(var(--h) * var(--s, 1) * 1px); }
.mock-inner { width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform: scale(var(--s, 1)); transform-origin: 0 0; }
.av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e2cdb8; color: #6b4c33; font: 600 12px/1 var(--ui); flex-shrink: 0; }
.av-ali { background: #bccad6; color: #34495c; }
.av-lg { width: 40px; height: 40px; font-size: 16px; }

/* 1. Hero, then the dashboard rises: one pinned screen driven by scroll */
.stage { position: relative; height: 240vh; }
.stage-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse 78% 46% at 50% 100%, var(--glow) 0%, var(--glow-mid) 34%, var(--glow-soft) 62%, rgba(255, 255, 255, 0) 100%);
}
.hero-copy {
  position: absolute; inset: 0 var(--gutter); display: grid; place-items: center; padding-bottom: 16vh; text-align: center;
  opacity: var(--hero-o, 1); transform: translateY(var(--hero-y, 0px));
}
.swap { display: grid; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.swap-item { grid-area: 1 / 1; opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.swap-item.is-on { opacity: 1; transform: none; transition-delay: 0.25s; }
.swap-item.is-off { opacity: 0; transform: translateY(-22px); }
.intro-playing .swap { opacity: 0; transform: translateY(14px); }
.intro-playing .dash .mock-inner { opacity: 0; }
.dash .mock-inner { transition: opacity 0.9s ease 0.3s; }

.dash-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 3vh); text-align: center;
  opacity: var(--copy-o, 0); transform: translateY(var(--copy-y, 24px));
}
.dash-copy .section-sub { max-width: 24em; margin-inline: auto; }
.dash { --w: 812; --h: 578; position: absolute; top: 0; left: 50%; transform: translate(-50%, var(--dash-y, 80vh)); }

/* Dashboard mockup (Desktop 20) */
.db { display: flex; overflow: hidden; background: #fff; border: 1px solid #5f645b; border-radius: 6px; color: #2b2b2b; font: 10px/1.2 var(--ui); }
.db-side { display: flex; flex-direction: column; width: 130px; padding: 23px 4px 16px; background: #f2f4ef; }
.db-me { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 11px; color: #4f5f45; }
.db-me .i { font-size: 11px; }
.db-name { display: flex; align-items: center; gap: 5px; margin: 9px 0 0 11px; font-weight: 700; }
.db-name .i { font-size: 10px; }
.db-email { margin: 3px 0 0 11px; font-size: 8px; color: #444; }
.db-nav { margin-top: 12px; }
.db-nav::before { content: ""; display: block; height: 1px; margin: 0 11px 11px; background: #d5dbd0; }
.db-nav li { display: flex; align-items: center; gap: 9px; height: 24px; margin-bottom: 6px; padding: 0 12px; border-radius: 4px; font-size: 10.5px; color: #4f5f45; }
.db-nav li.is-on { background: var(--sage-on); }
.db-nav .i, .db-logout .i { font-size: 11px; }
.db-logout { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 0 12px; font-size: 10.5px; color: #4f5f45; }
.db-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.db-top { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 13px 0 14px; border-bottom: 1px solid #e4e4e4; }
.db-search { display: flex; align-items: center; gap: 7px; width: 339px; height: 22px; padding: 0 9px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 7.5px; color: #8a8a8a; }
.db-search .i { font-size: 9px; color: #666; }
.db-bell { margin-left: auto; font-size: 15px; color: #5a6a50; }
.db-new { display: flex; align-items: center; gap: 6px; height: 23px; padding: 0 9px; border-radius: 3px; background: var(--green-btn); color: #fff; font-size: 9px; }
.db-new .i { font-size: 9px; }
.db-new .i:last-child { margin-left: 8px; }
.db-title { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; border-bottom: 1px solid #e4e4e4; font: 18px/1 var(--ui-serif); color: #333; }
.db-title .i { font-size: 16px; color: #4f5f45; }
.db-grid { display: grid; flex: 1; grid-template-columns: 428px 1fr; grid-template-rows: 200px 1fr; }
.db-cell { padding: 12px 14px 0; }
.db-cell:nth-child(odd) { border-right: 1px solid #e4e4e4; }
.db-cell:nth-child(-n + 2) { border-bottom: 1px solid #e4e4e4; }
.db-h { display: flex; align-items: center; gap: 6px; font: 13px/1 var(--ui-serif); color: #333; }
.db-h .i { font-size: 11px; color: #4f5f45; }
.db-more { margin-left: auto; font: 7.5px var(--ui); color: #4f5f45; text-decoration: underline; }
.db-more-end { display: block; margin-top: 12px; text-align: right; }
.db-tasks { display: grid; grid-template-columns: 136px 1fr; margin-top: 8px; }
.db-pie { display: block; width: 84px; height: 84px; margin: 6px 0 0 12px; }
.db-pie path { stroke: #fff; stroke-width: 0.6; }
.db-legend { display: grid; grid-template-columns: auto auto; gap: 5px 10px; margin: 14px 0 0 2px; font-size: 6.5px; color: #555; }
.db-legend span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--c); vertical-align: middle; }
.db-lists { padding-top: 4px; }
.db-group { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; font-size: 8.5px; color: #333; }
.db-group .i { font-size: 8px; }
.db-task + .db-group { margin-top: 12px; }
.db-task { display: flex; align-items: center; gap: 7px; height: 17px; margin-bottom: 5px; padding: 0 12px; border-radius: 3px; font-size: 7.5px; color: #333; }
.db-task .i { font-size: 7.5px; }
.db-task.is-blue { background: #c5d7e3; }
.db-task.is-yellow { background: #e8c574; }
.db-month { display: flex; align-items: center; justify-content: space-between; margin: 16px 6px 0; font: 700 12px var(--ui); color: #222; }
.db-month .i { font-size: 10px; }
.db-days { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; margin-top: 12px; text-align: center; font-size: 7.5px; color: #333; }
.db-days b { margin-bottom: 2px; font-size: 6.5px; font-weight: 400; color: #666; text-transform: uppercase; }
.db-days span { display: grid; place-items: center; height: 16px; }
.db-days .is-today { width: 16px; margin: 0 auto; border-radius: 50%; background: #8a9e78; color: #fff; }
.db-meeting { position: relative; display: grid; grid-template-columns: 1fr 112px 64px; align-items: start; height: 72px; margin-top: 8px; padding: 12px; border: 1px solid #cbcbcb; border-radius: 8px; }
.db-h + .db-meeting, .db-h + .db-today { margin-top: 11px; }
.db-mt { font: 700 12px var(--ui); color: #222; }
.db-md { margin-top: 6px; font-size: 9px; color: #333; }
.db-mtime { margin-top: 5px; font-size: 7.5px; color: #777; }
.db-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.db-tags span { padding: 2px 9px; border-radius: 7px; font-size: 7.5px; color: #333; }
.t-salmon { background: #efb6a1; }
.t-blue { background: #c5d7e3; }
.t-green { background: #bcc490; }
.db-who { display: flex; align-items: center; gap: 6px; font-size: 8px; color: #777; }
.db-who .av { width: 18px; height: 18px; font-size: 8px; }
.db-kebab { position: absolute; top: 10px; right: 9px; font-size: 10px; color: #555; }
.db-today { height: 94px; margin-top: 10px; padding: 11px 12px; border: 1px solid #cbcbcb; border-radius: 8px; }
.db-today .db-mt { font-size: 11px; }
.db-today .db-md { margin-top: 5px; font-size: 8px; }
.db-today .db-mtime { margin-top: 5px; font-size: 8px; }
.db-today .db-tags { margin-top: 8px; }

/* 2. The transcript card: Urdu, English, then the summary, as you scroll */
.story { position: relative; height: 330vh; }
.story-pin {
  position: sticky; top: 0; display: flex; align-items: center; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(ellipse 62% 78% at 100% 100%, var(--glow-mid) 0%, var(--glow-soft) 42%, rgba(255, 255, 255, 0) 100%);
}
.story-grid {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px);
  width: min(1220px, 100% - 2 * clamp(16px, 5vw, 110px)); margin: 0 auto; padding-top: calc(var(--nav-h) * 0.55);
}
.story-card { --w: 580; --h: 592; }
.story-text { display: flex; flex-direction: column; }
.dots { display: flex; gap: 18px; align-self: flex-end; margin: 40px 8% 0 0; }
.dots span { width: 24px; height: 24px; border-radius: 50%; background: #ececec; transition: background-color 0.4s ease; }
.story[data-step="0"] .dots span:nth-child(-n + 1),
.story[data-step="1"] .dots span:nth-child(-n + 2),
.story[data-step="2"] .dots span { background: var(--star-green); }
.story-steps { display: grid; flex: 1; align-items: center; padding-top: 6vh; }
.story-step { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); pointer-events: none; }
.story[data-step="0"] [data-for="0"], .story[data-step="1"] [data-for="1"], .story[data-step="2"] [data-for="2"] { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.15s; }
.story-step .section-title { max-width: 10.5em; font-size: clamp(2rem, min(4.45vw, 6.25vh), 4rem); }
.story-step .section-sub { max-width: 17em; }
.story-step .urdu-title { text-align: right; }
.story-step .urdu-title + .section-sub { margin-top: 0.2em; }

/* Transcript card mockup (Desktop 16, 21, 22) */
.sc { display: flex; padding: 6px; background: #fff; border: 1px solid #8f9a88; border-radius: 18px; font: 14px/1.4 var(--ui); color: #2b2b2b; }
.sc-side { display: flex; flex-direction: column; align-items: center; width: 101px; padding: 37px 0 32px; border-radius: 12px; background: var(--sage); color: #4f5f45; }
.sc-me { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.sc-me .i { font-size: 14px; }
.sc-name { margin-top: 18px; font-weight: 700; font-size: 15px; color: #222; }
.sc-nav { display: flex; flex-direction: column; gap: 7px; width: 100%; margin-top: 50px; padding: 0 7px; }
.sc-nav li { display: grid; place-items: center; height: 38px; border-radius: 6px; font-size: 18px; }
.sc-nav li.is-on { background: var(--sage-on); }
.sc-logout { margin-top: auto; font-size: 18px; }
.sc-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sc-head { padding: 19px 14px 14px 21px; border-bottom: 1px solid #a8aca5; }
.sc-title { font: 22px/1.2 var(--ui-serif); color: #222; }
.sc-meta { margin-top: 9px; font-size: 13px; color: #555; }
.sc-tabs { position: relative; display: flex; align-items: center; height: 56px; padding: 0 21px; border-bottom: 1px solid #a8aca5; }
.sc-tab { position: relative; z-index: 1; width: 62px; font-weight: 600; font-size: 14px; text-align: center; color: var(--green-btn); transition: color 0.35s ease; }
.sc-tab-en { width: 78px; }
.sc-pill { position: absolute; top: 14px; left: 21px; width: 62px; height: 28px; border-radius: 14px; background: var(--green-btn); transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.45s cubic-bezier(0.3, 0.7, 0.2, 1); }
.story:not([data-step="0"]) .sc-pill { width: 78px; transform: translateX(62px); }
.story[data-step="0"] .sc-tab-ur, .story:not([data-step="0"]) .sc-tab-en { color: #fff; }
.sc-body { position: relative; flex: 1; }
.sc-panel { position: absolute; inset: 0; padding: 22px 20px 0 21px; opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.story[data-step="0"] .sc-ur, .story[data-step="1"] .sc-en, .story[data-step="2"] .sc-sum { opacity: 1; transform: none; transition-delay: 0.1s; }
.sc-line + .sc-line { margin-top: 14px; }
.sc-who { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--green); }
.sc-who .av { width: 30px; height: 30px; }
.ts { color: #a2a8b0; }
.sc-ur { padding-top: 12px; font-family: var(--urdu); }
.sc-ur .sc-line + .sc-line { margin-top: 8px; }
.sc-ur .sc-who { gap: 10px; font-size: 15px; font-weight: 600; }
.sc-ur .sc-who .av { font-family: var(--urdu); font-size: 12px; line-height: 1; padding-top: 4px; }
.sc-ur .sc-who + p { font-size: 12.5px; line-height: 2.25; color: #333; }
.sc-ur .ts { font: 12px var(--ui-serif); }
.sc-en .sc-who { font-size: 18px; }
.sc-en .sc-who + p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: #333; }
.sc-note { margin-bottom: 14px; padding: 13px 20px 14px; border-left: 1.5px solid; border-radius: 10px; font-size: 14px; color: #333; }
.sc-note b { display: block; margin-bottom: 5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.sc-note.is-decision { background: #fae9e3; border-color: #d99a84; }
.sc-note.is-decision b { color: #c5765b; }
.sc-note.is-action { background: #ebedde; border-color: #aab47c; }
.sc-note.is-action b { color: #8a9a4e; }
.sc-note.is-parked { background: #eef3f7; border-color: #82a1b9; }
.sc-note.is-parked b { color: #628ca8; }

/* 3. Features */
.features {
  padding: calc(var(--nav-h) + 16px) var(--gutter) clamp(64px, 12vh, 120px);
  background:
    radial-gradient(ellipse 62% 16% at 100% 0%, var(--glow-mid) 0%, var(--glow-soft) 42%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 78% 46% at 50% 100%, var(--glow) 0%, var(--glow-mid) 34%, var(--glow-soft) 62%, rgba(255, 255, 255, 0) 100%);
}
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1146px; margin: 0 auto; }
.feature {
  min-height: 258px; padding: 32px 24px 28px; border: 1px solid #b7bdc6; border-radius: 12px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.35));
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .feature:not(.is-in) { opacity: 0; transform: translateY(18px); }
.star { display: block; width: 46px; height: 46px; fill: var(--star); }
.feature h3 { margin-top: 22px; font-size: clamp(1.5rem, 2.25vw, 2rem); font-weight: 500; line-height: 1.18; color: var(--green); }
.feature p { margin-top: 10px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.22; color: var(--grey); }
.integrations { margin-top: clamp(56px, 11vh, 120px); text-align: center; }
.integrations p { font-size: 1.5rem; color: #2f2f2f; }
.integrations ul { display: flex; justify-content: center; align-items: center; gap: 44px; margin-top: 26px; }
.integrations svg { display: block; width: 58px; height: 58px; }

/* 4. Demo request */
.demo {
  display: flex; flex-direction: column; min-height: 100vh;
  background:
    radial-gradient(ellipse 78% 10% at 50% 0%, var(--glow) 0%, var(--glow-mid) 34%, var(--glow-soft) 62%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 80% 52% at 50% 100%, var(--glow) 0%, var(--glow-mid) 34%, var(--glow-soft) 62%, rgba(255, 255, 255, 0) 100%);
}
.demo-inner { flex: 1; width: min(779px, 100%); margin: 0 auto; padding: calc(var(--nav-h) + 36px) var(--gutter) 72px; }
.demo .section-title { margin-bottom: clamp(36px, 8vh, 84px); text-align: center; }
.demo-form { position: relative; display: grid; }
.demo-form label { margin-bottom: 4px; font-size: 0.95rem; color: var(--label); }
.demo-form input + label, .demo-form textarea + label { margin-top: 32px; }
.demo-form input, .demo-form textarea {
  width: 100%; height: 48px; padding: 0 15px; border: 1px solid #9ca3af; border-radius: 6px;
  background: rgba(255, 255, 255, 0.75); color: #222; font: 400 1.25rem var(--sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.demo-form textarea { height: 138px; padding: 10px 15px; resize: vertical; }
.demo-form ::placeholder { color: #6f6f6f; opacity: 1; }
.demo-form input:focus, .demo-form textarea:focus { outline: none; border-color: var(--green-btn); box-shadow: 0 0 0 3px rgba(117, 142, 98, 0.25); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-actions .btn { height: 42px; padding: 0 16px; border-radius: 6px; font-size: 1.125rem; }
.form-status { font-size: 0.95rem; color: #555; }
.form-status[data-tone="error"] { color: #a33d2a; }
.form-done { display: grid; justify-items: center; gap: 10px; padding: 24px 0; text-align: center; }
.form-done .i { width: 44px; height: 44px; color: var(--green-btn); stroke-width: 1.6; }
.form-done-title { font-size: 1.75rem; font-weight: 500; color: var(--green); }
.form-done-text { max-width: 26em; font-size: 1.2rem; line-height: 1.4; color: #5f5f5f; }
.form-done-text strong { font-weight: 500; color: var(--ink); }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: min(1146px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 20px 0 26px; border-top: 1px solid rgba(81, 98, 68, 0.18); font-size: 0.95rem; color: #46504a; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--green); text-decoration: underline; }

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  :root { --nav-h: 76px; }
  .nav { padding: 16px 16px 10px; }
  .nav-logo svg { width: 54px; }
  .nav-cta { margin-top: 4px; height: 40px; padding: 0 16px; font-size: 1.05rem; }
  .nav.is-scrolled .nav-logo svg { width: 44px; }
  .nav.is-scrolled { padding-top: 10px; padding-bottom: 10px; }

  .story-pin { align-items: flex-start; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: calc(var(--nav-h) + 12px); }
  .story-text { order: -1; }
  .dots { align-self: flex-start; gap: 10px; margin: 0 0 14px; }
  .dots span { width: 12px; height: 12px; }
  .story-steps { padding-top: 0; }
  .story-step .section-title { max-width: none; font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .story-step .section-sub { max-width: none; }
  .story-step .urdu-title { font-size: clamp(1.45rem, 6.2vw, 2rem); line-height: 1.9; }
  .story-card-slot { display: flex; justify-content: center; }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .feature { min-height: 0; padding: 24px 20px; }
  .star { width: 36px; height: 36px; }
  .feature h3 { margin-top: 16px; }
  .integrations p { font-size: 1.25rem; }
  .integrations ul { gap: 32px; }
  .integrations svg { width: 48px; height: 48px; }
  .demo-form input + label, .demo-form textarea + label { margin-top: 22px; }
  .demo-form input, .demo-form textarea { font-size: 1.1rem; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
