/*
 * طمني عليك — the site, set the way the app is: words first.
 * Big headlines, a plain grey sentence under them, small grey labels over
 * each part, hairlines between things. No glows, gradients, floating cards
 * or moving decoration.
 * Colours are the app's AppPalette (lib/shared/style/app_palette.dart).
 */

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url(fonts/IBMPlexSansArabic-Regular.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url(fonts/IBMPlexSansArabic-Medium.woff2) format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans Arabic';
  src: url(fonts/IBMPlexSansArabic-Bold.woff2) format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #F5FAFA;
  --surface: #FFFFFF;
  --text: #152949;
  --text-2: #6E7591;
  --hint: #A2A0A8;
  --line: #E3E8E8;
  --accent: #4E8A8A;
  --on-accent: #FFFFFF;

  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --page: 1120px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1012;
    --surface: #1B1C1F;
    --text: #ECECEE;
    --text-2: #9C9DA3;
    --hint: #6B6C72;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #87B5B5;
    --on-accent: #0F1012;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

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

section[id] {
  scroll-margin-top: 64px;
}

.page {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Line icons: small, in the brand teal, never on a disc. */
.icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent);
}

/* ---------- Watermark ---------- */

/* The leaf, oversized and faint behind everything, drifting slowly. */
.watermark-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(70vmin, 640px);
  aspect-ratio: 1;
  color: var(--accent);
  opacity: 0.07;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: watermarkFloat 20s ease-in-out infinite;
}

.watermark-logo svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (prefers-color-scheme: dark) {
  .watermark-logo {
    opacity: 0.05;
  }
}

@keyframes watermarkFloat {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  25% {
    transform: translate(-52%, -48%) scale(1.02) rotate(2deg);
  }

  50% {
    transform: translate(-48%, -52%) scale(0.98) rotate(-2deg);
  }

  75% {
    transform: translate(-51%, -49%) scale(1.01) rotate(1deg);
  }
}

main,
.foot {
  position: relative;
  z-index: 1;
}

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

.eyebrow {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
}

.label svg {
  width: 18px;
  height: 18px;
}

.headline {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  max-width: 34em;
  margin-block-start: 14px;
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.75;
}

.lede strong {
  color: var(--text);
  font-weight: 700;
}

/* ---------- Bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-block-end: 1px solid transparent;
  transition: border-color 0.2s;
}

.bar.scrolled {
  border-block-end-color: var(--line);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.bar-links {
  display: flex;
  gap: 22px;
}

.bar-links a {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.bar-links a:hover,
.bar-links a.active {
  color: var(--text);
}

.bar-links a.active {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Two lines that close into an X. */
.bar-menu {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.bar-menu span {
  position: absolute;
  inset-inline: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s;
}

.bar-menu span:first-child {
  top: 15px;
}

.bar-menu span:last-child {
  top: 23px;
}

.bar.open .bar-menu span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.bar.open .bar-menu span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 1000px) {
  .bar-menu {
    display: block;
  }

  .bar-links {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 64px;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 16px;
    background: var(--bg);
    border-block-end: 1px solid var(--line);
  }

  .bar.open .bar-links {
    display: flex;
  }

  .bar-links a {
    padding: 12px 0;
    border-block-start: 1px solid var(--line);
    color: var(--text);
    font-size: 17px;
  }

  .bar-links a.active {
    color: var(--accent);
    text-decoration: none;
  }

  /* A page with one link keeps it in the bar. */
  .bar .bar-links--always {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
  }

  .bar .bar-links--always a {
    padding: 0;
    border: 0;
    color: var(--text-2);
    font-size: 15px;
  }
}

/* ---------- Store buttons ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 32px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}

.store:hover {
  border-color: var(--text-2);
}

.store svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.store small {
  color: var(--text-2);
  font-size: 12px;
}

.store b {
  font-size: 15px;
  font-weight: 700;
}

/* The phone's own store comes first and filled. */
.store.highlight {
  order: -1;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.store.highlight small {
  color: inherit;
  opacity: 0.8;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px);
}

.hero-mast {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-end: 20px;
}

.hero-logo {
  width: 52px;
  height: 52px;
}

.app-name {
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.tagline {
  margin-block-start: 18px;
  color: var(--text);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
}

.tagline .accent {
  color: var(--accent);
}

/* The three promises: words in a row, ruled apart. */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-block-start: 28px;
}

.hero-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.hero-features svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* Numbers set large, labels small under them. */
.trust {
  display: flex;
  flex-wrap: wrap;
  margin-block-start: 48px;
  padding-block-start: 24px;
  border-block-start: 1px solid var(--line);
}

.trust div {
  padding-inline: 32px;
  border-inline-start: 1px solid var(--line);
}

.trust div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.trust dt {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.1;
}

.trust dd {
  margin-block-start: 6px;
  color: var(--text-2);
  font-size: 14px;
}

.scroll-hint {
  display: inline-block;
  margin-block-start: 40px;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
}

.scroll-hint:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .trust div {
    padding-inline: 18px;
  }
}

/* ---------- Sections ---------- */

.part {
  padding-block: clamp(56px, 8vw, 104px);
  border-block-start: 1px solid var(--line);
}

.part-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-block-end: clamp(32px, 5vw, 56px);
}

/* Numbered steps: a big teal numeral and its icon, then the words. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.steps li {
  padding-block-start: 20px;
  border-block-start: 1px solid var(--text);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 20px;
}

.steps .num {
  color: var(--accent);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.steps h3,
.list h3,
.people h3,
.contact h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.steps p,
.list p,
.people p,
.contact p {
  margin-block-start: 6px;
  color: var(--text-2);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Two columns of short entries, ruled. */
.list,
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}

.list li,
.people li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  padding-block: 24px;
  border-block-start: 1px solid var(--line);
}

.list li > .icon,
.people li > .icon {
  grid-row: span 2;
  margin-block-start: 4px;
}

@media (max-width: 640px) {

  .list,
  .people {
    grid-template-columns: 1fr;
  }
}

/* Screens: a plain strip you scroll sideways. */
.shots {
  display: flex;
  gap: 16px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-block-end: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.shots::-webkit-scrollbar {
  display: none;
}

.shots img {
  flex: none;
  width: 240px;
  height: auto;
  aspect-ratio: 430 / 932;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #0F1012;
  scroll-snap-align: start;
}

.shots-nav {
  display: flex;
  gap: 10px;
  margin-block-start: 24px;
}

@media (max-width: 640px) {
  .shots img {
    width: 62vw;
  }
}

/* A round hairline button with a line icon in it. */
.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s;
}

.round-btn:hover {
  border-color: var(--text-2);
}

.round-btn svg {
  width: 18px;
  height: 18px;
}

/* FAQ: native disclosure, a plus that turns. */
.faq details {
  border-block-start: 1px solid var(--line);
}

.faq details:last-child {
  border-block-end: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 22px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  margin-inline-start: auto;
  color: var(--accent);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-q {
  flex: none;
  color: var(--accent);
}

.faq details p {
  max-width: 44em;
  padding-block-end: 24px;
  padding-inline-start: 30px;
  color: var(--text-2);
}

/* Download: the logo, the headline, and the stores. */
.closing {
  padding-block: clamp(72px, 10vw, 128px);
  border-block-start: 1px solid var(--line);
}

.cta-logo {
  width: 52px;
  height: 52px;
  margin-block-end: 24px;
}

/* The maker. */
.developer {
  display: flex;
  align-items: center;
  gap: 28px;
}

.developer-image {
  width: 132px;
  height: 132px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.developer-name {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.3;
}

.developer-title {
  color: var(--text-2);
}

.developer-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 48px;
  font-weight: 700;
}

.social {
  display: flex;
  gap: 10px;
  margin-block-start: 16px;
}

@media (max-width: 520px) {
  .developer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .developer-image,
  .developer-image-placeholder {
    width: 96px;
    height: 96px;
  }
}

/* Contact: a ruled table of how to reach us. */
.contact li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-block: 22px;
  border-block-start: 1px solid var(--line);
}

.contact li:last-child {
  border-block-end: 1px solid var(--line);
}

.contact-what {
  display: flex;
  gap: 16px;
}

.contact-what .icon {
  margin-block-start: 4px;
}

.support-link {
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  unicode-bidi: plaintext;
}

.support-link:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .contact li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .support-link {
    padding-inline-start: 42px;
    font-size: 17px;
    word-break: break-all;
  }
}

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

.foot {
  padding-block: 48px;
  border-block-start: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.foot-brand img {
  width: 28px;
  height: 28px;
}

.foot-tagline {
  margin-block-start: 8px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-block: 20px;
}

.foot-links a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.foot-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 14px;
}

/* ---------- Long text (privacy) ---------- */

.doc {
  max-width: 44em;
  padding-block: clamp(40px, 7vw, 88px);
}

.doc h1 {
  margin-block-end: 32px;
}

.doc h2 {
  margin-block: 44px 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.doc .section-text {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.85;
}

.doc .section-text strong {
  color: var(--text);
}

.doc .section-text + .section-text {
  margin-block-start: 18px;
}

.doc .closing-note {
  margin-block-start: 40px;
  color: var(--text);
  font-weight: 700;
}

.doc .en {
  direction: ltr;
  text-align: left;
}

.developer-credit {
  margin-block-start: 48px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--line);
  color: var(--text-2);
  font-weight: 700;
}

/* ---------- Motion ----------
 * Everything that moves comes in with script.js, which only marks things
 * up when JS runs and the system's reduce-motion setting is off; without
 * it the page is simply there. Transforms and opacity only.
 *
 *   .rv          fades in rising into place (-x: from the start side,
 *                -pop: springs up from small, -clip: a picture wiped in
 *                from below, -circle: a photo opened from its middle,
 *                -grow: the leaf growing from its stem)
 *   .sw          a headline whose words rise out of a mask, one by one
 *   .ln          a ruled row or part whose hairline draws itself in
 *   .in          shown; --d is when it starts, --step the gap between words
 */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hairlines as backgrounds, so they can draw in from the start side. */
.part,
.closing,
.trust,
.list > li,
.people > li,
.faq > details,
.contact > li {
  border-block-start: 0;
  background-image: linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 100% 1px;
}

.faq > details:last-child,
.contact > li:last-child {
  border-block-end: 0;
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-position: right top, right bottom;
  background-size: 100% 1px, 100% 1px;
}

.js .rv.in,
.js .ln.in {
  transition:
    opacity 0.8s var(--ease-out) var(--d, 0ms),
    transform 1s var(--ease-out) var(--d, 0ms),
    clip-path 1.2s var(--ease-out) var(--d, 0ms),
    background-size 1.3s var(--ease-out) var(--d, 0ms),
    translate 0.3s var(--ease-out),
    border-color 0.2s,
    color 0.2s;
}

.js .rv {
  opacity: 0;
  transform: translateY(22px);
}

.js .rv-x {
  transform: translateX(18px);
}

.js .rv-pop {
  transform: scale(0.5);
}

.js .rv-pop.in {
  transition:
    opacity 0.5s var(--ease-out) var(--d, 0ms),
    transform 0.8s var(--spring) var(--d, 0ms),
    translate 0.3s var(--ease-out),
    border-color 0.2s;
}

.js .rv-grow {
  transform: scale(0.2) rotate(-40deg);
  transform-origin: 43% 94%;
}

.js .rv-grow.in {
  transition:
    opacity 0.4s var(--ease-out) var(--d, 0ms),
    transform 1.2s var(--spring) var(--d, 0ms);
}

.js .rv-clip {
  opacity: 1;
  transform: translateY(40px) scale(1.06);
  clip-path: inset(100% 0 0 0 round 28px);
}

.js .rv-clip.in {
  clip-path: inset(0 0 0 0 round 28px);
}

.js .rv-circle {
  opacity: 1;
  transform: scale(1.15);
  clip-path: circle(0% at 50% 50%);
}

.js .rv-circle.in {
  clip-path: circle(50% at 50% 50%);
  transition:
    clip-path 1.3s var(--ease-out) var(--d, 0ms),
    transform 1.6s var(--ease-out) var(--d, 0ms);
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

.js .ln {
  background-size: 0% 1px;
}

.js .ln.in {
  background-size: 100% 1px;
}

.js .ln:is(.faq > details:last-child, .contact > li:last-child) {
  background-size: 0% 1px, 0% 1px;
}

.js .ln.in:is(.faq > details:last-child, .contact > li:last-child) {
  background-size: 100% 1px, 100% 1px;
}

/* Headlines: each word rises out of its own mask, tilted a little, then
   settles. The mask (clip-path) leaves room for Arabic's tall letters and
   dots below the line without changing the layout. */
.sw .w {
  display: inline-block;
  clip-path: inset(-0.6em -0.3em -0.32em -0.3em);
}

.sw .wi {
  display: inline-block;
}

.js .sw .wi {
  transform: translateY(160%) rotate(7deg);
  transform-origin: right bottom;
}

.js .sw.in .wi {
  transform: none;
  transition: transform 1.1s var(--ease-out) calc(var(--d, 0ms) + var(--i, 0) * var(--step, 70ms));
}

/* The rule over each step draws itself in, from the start side. */
.steps li {
  position: relative;
  border-block-start: 0;
}

.steps li::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: var(--text);
  transform-origin: right;
}

.js .steps li.rv::before {
  transform: scaleX(0);
}

.js .steps li.rv.in::before {
  transform: scaleX(1);
  transition: transform 1.2s var(--ease-out) calc(var(--d, 0ms) + 100ms);
}

/* ---------- Page load ---------- */

.js:not(.motion-on) .hero {
  visibility: hidden;
}

/* The bar slides down as the page opens. */
.js .bar {
  animation: barIn 0.9s var(--ease-out) both;
}

@keyframes barIn {
  from {
    transform: translateY(-100%);
  }
}

/* The leaf behind the page comes in turning, then drifts; scrolling turns
   it a little more (script.js moves the svg inside). */
.js .watermark-logo {
  animation:
    watermarkIn 2.4s var(--ease-out) both,
    watermarkFloat 20s ease-in-out 2.4s infinite;
}

@keyframes watermarkIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(-18deg);
  }

  to {
    transform: translate(-50%, -50%);
  }
}

.watermark-logo svg {
  will-change: transform;
}

/* The hero's leaf sways once it has grown. */
.hero-logo {
  animation: leafSway 6s ease-in-out 2.4s infinite;
  transform-origin: 43% 94%;
}

@keyframes leafSway {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-6deg);
  }
}

/* "Scroll down": a line that keeps running down. */
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 32px;
  background: currentColor;
  animation: hintRun 2.2s var(--ease-out) infinite;
}

@keyframes hintRun {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  45% {
    transform: scaleY(1);
    transform-origin: top;
  }

  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---------- Scroll ---------- */

/* Reading progress: a teal line along the bottom of the bar. */
.progress {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  pointer-events: none;
}

/* The menu's marker slides to the part on screen. */
.bar-links {
  position: relative;
}

.nav-ind {
  position: absolute;
  left: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}

.nav-ind.ready {
  transition:
    transform 0.6s var(--ease-out),
    width 0.6s var(--ease-out),
    opacity 0.3s;
}

.bar-links.has-ind a.active {
  text-decoration: none;
}

.bar-links a {
  transition: color 0.25s;
}

@media (max-width: 1000px) {
  .nav-ind {
    display: none;
  }

  .bar-links.has-ind a.active {
    color: var(--accent);
  }
}

/* The screenshots strip can be dragged with a mouse. */
.shots {
  cursor: grab;
}

.shots.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.shots img {
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------- Pointer ---------- */

.store,
.round-btn {
  transition: translate 0.3s var(--ease-out), border-color 0.2s;
}

.store:hover,
.round-btn:hover {
  translate: 0 -3px;
}

.store svg {
  transition: transform 0.4s var(--spring);
}

.store:hover svg {
  transform: scale(1.15);
}

.shots img:hover {
  translate: 0 -6px;
}

.list li .icon,
.people li .icon,
.contact-what .icon,
.faq-q {
  transition: translate 0.4s var(--spring);
}

.list li:hover .icon,
.people li:hover .icon,
.contact li:hover .icon {
  translate: 0 -4px;
}

.faq summary:hover .faq-q {
  translate: -4px 0;
}

.faq details.closing summary::after {
  transform: none;
}

/* Links underline from the start side. */
.support-link,
.foot-links a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 0% 1px;
  transition: background-size 0.45s var(--ease-out), color 0.2s;
}

.support-link:hover,
.foot-links a:hover {
  background-size: 100% 1px;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {

  html,
  .shots {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- The way in ----------
 * A dark curtain with two lines on why this matters; it wipes up onto the
 * page. html.intro-on is set in <head> (once per visit, not with reduced
 * motion); script.js (initCurtain) opens it.
 */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  background: #0B0B0D;
  color: #ECECEE;
  text-align: center;
}

.intro-on .curtain {
  display: flex;
}

.curtain-line {
  overflow: hidden;
  padding-block: 0.12em;
  font-size: clamp(30px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.curtain-line span {
  display: inline-block;
  transform: translateY(110%);
  animation: curtainLine 1s var(--ease-out) 0.35s forwards;
}

.curtain-accent span {
  color: #E5484D;
  animation-delay: 1.35s;
}

@keyframes curtainLine {
  to {
    transform: none;
  }
}

.curtain.open {
  animation: curtainOut 1.1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.curtain.open .curtain-line {
  animation: curtainLinesOut 1.1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes curtainOut {
  to {
    clip-path: inset(0 0 100% 0);
  }
}

@keyframes curtainLinesOut {
  to {
    transform: translateY(-40vh);
    opacity: 0;
  }
}

/* While the curtain is up the page waits behind it. */
.intro-on .story-stage {
  visibility: hidden;
}

/* ---------- The story ----------
 * html.story-on (set in <head> unless reduce-motion is on): one stage stays
 * pinned while the page scrolls the track; script.js (initStory) sets the
 * track's height, which beat is on, and the phone. Without it the beats are
 * the page, one under the other.
 */

.story-anchor {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.story-canvas,
.story-scene,
.story-rail,
.story-progress {
  display: none;
}

/* Without motion: the beats, one after another. */
html:not(.story-on) .beat {
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  background-image: linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 100% 1px;
}

html:not(.story-on) .beat-shot {
  width: 220px;
  height: auto;
  margin-block-start: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #0F1012;
}

html:not(.story-on) .call-ui {
  display: none;
}

.story-on .beat-shot {
  display: none;
}

/* With motion: the pinned stage. */
.story-on .story-track {
  position: relative;
  height: var(--track-h, 1800vh);
}

.story-on .story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.story-on .story-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.7s var(--ease-out);
}

.story-on .story-canvas.touchable {
  pointer-events: auto;
}

.story-on .story-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  perspective: 1800px;
  transition: opacity 0.7s var(--ease-out);
}

.story-3d .story-scene {
  display: none;
}

.beats {
  position: relative;
}

.story-on .beats {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* A beat: a column of words at the start side. */
.story-on .beat {
  position: absolute;
  top: 50%;
  right: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  width: min(500px, 42%);
  max-height: calc(100% - 120px);
  translate: 0 -50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}

.story-on .beat.on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.6s var(--ease-out);
}

/* Its lines come in one after another, and leave upward. */
.story-on .beat:not(.beat-hero) > * {
  transform: translateY(36px);
  transition: transform 0.5s var(--ease-out);
}

.story-on .beat.past:not(.beat-hero) > * {
  transform: translateY(-36px);
}

.story-on .beat.on:not(.beat-hero) > * {
  transform: none;
  transition: transform 1s var(--ease-out);
}

.story-on .beat.on > :nth-child(2) { transition-delay: 60ms; }
.story-on .beat.on > :nth-child(3) { transition-delay: 120ms; }
.story-on .beat.on > :nth-child(4) { transition-delay: 180ms; }
.story-on .beat.on > :nth-child(5) { transition-delay: 240ms; }
.story-on .beat.on > :nth-child(n+6) { transition-delay: 300ms; }

.story-on .beat-hero {
  width: min(600px, 48%);
}

.story-on .beat-hero.past {
  transform: translateY(-60px);
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s linear 0.45s;
}

.story-on .beat-hero .hero-mast {
  margin-block-end: 14px;
}

.story-on .beat-hero .app-name {
  font-size: clamp(52px, 7.4vw, 104px);
}

.story-on .beat-hero .trust {
  margin-block-start: 28px;
  padding-block-start: 18px;
}

.story-on .beat-hero .scroll-hint {
  margin-block-start: 18px;
}

/* The questions: the phone steps out, and each question gets the whole
   stage: the words on the start side, lighting up word by word as the page
   scrolls, and what the question means drawn beside them (script.js moves
   it with the scroll: the hours going by, the calls nobody answers, the
   place nobody knows). */
.story-on .beat-hook {
  right: 0;
  left: 0;
  width: auto;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.hook-n {
  display: block;
  margin-block-end: 18px;
  color: #E5484D;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hook-q {
  max-width: 13ch;
  font-size: clamp(36px, 5.2vw, 84px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.story-on .hook-q .wi {
  color: color-mix(in srgb, var(--text) 18%, transparent);
  transition: color 0.4s var(--ease-out);
}

.story-on .hook-q .wi.lit {
  color: var(--text);
}

.hook-visual {
  justify-self: center;
  width: min(100%, 420px);
}

/* 1. The hours going by. */
.hook-clock {
  display: grid;
  gap: 18px;
  text-align: center;
}

.clock-value {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.clock-value.tick {
  animation: clockTick 0.5s var(--ease-out);
}

@keyframes clockTick {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.clock-bar {
  position: relative;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.clock-bar i {
  position: absolute;
  inset: 0;
  background: #E5484D;
  transform: scaleX(var(--t, 0));
  transform-origin: right;
}

.clock-note {
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 21px);
}

/* 2. The calls nobody answers. */
.hook-calls {
  padding: 22px 22px 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.calls-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 8px;
  font-size: 20px;
  font-weight: 700;
}

.calls-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.calls li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  border-block-start: 1px solid var(--line);
  color: var(--text-2);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out);
}

.calls li.shown {
  opacity: 1;
  transform: none;
}

.calls svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #E5484D;
}

.calls b {
  margin-inline-start: auto;
  color: #E5484D;
  font-size: 14px;
}

/* 3. The place nobody knows. */
.hook-map {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  overflow: hidden;
}

.map-streets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--line);
}

.map-streets path {
  stroke-dasharray: 600;
  stroke-dashoffset: calc(600 * (1 - var(--t, 0)));
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  translate: -50% -50%;
  border-radius: 50% 50% 50% 0;
  background: #E5484D;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  rotate: -45deg;
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.4s, transform 0.7s var(--spring);
}

.map-pin span {
  rotate: 45deg;
}

.map-pin::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid #E5484D;
  border-radius: inherit;
  opacity: 0;
}

.hook-map.dropped .map-pin {
  opacity: 1;
  transform: none;
}

.hook-map.dropped .map-pin::after {
  animation: pinPulse 1.8s ease-out 0.6s infinite;
}

@keyframes pinPulse {
  from {
    opacity: 0.7;
    transform: scale(0.8);
  }

  to {
    opacity: 0;
    transform: scale(1.8);
  }
}

.map-note {
  position: absolute;
  inset-inline: 18px;
  bottom: 16px;
  color: var(--text-2);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.5s;
}

.map-note b {
  color: #E5484D;
}

.hook-map.dropped .map-note {
  opacity: 1;
}

.answer {
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.answer .accent {
  display: block;
  color: var(--accent);
}

/* Section words inside the story. */
.story-on .beat .label {
  margin-block-end: 8px;
}

.story-on .beat .headline,
.story-on .story-title {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.story-sub {
  margin-block-start: 12px;
  color: var(--text-2);
  font-size: clamp(17px, 1.6vw, 21px);
}

.story-on .beat .lede {
  margin-block-start: 12px;
}

.story-on .beat-audience .people {
  grid-template-columns: 1fr;
  margin-block-start: 22px;
}

.story-on .beat-audience .people li {
  padding-block: 14px;
}

.story-on .beat-audience .people h3 {
  font-size: 19px;
}

.story-step {
  display: block;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.beat-chapter h3,
.beat-privacy h3 {
  margin-block-start: 8px;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.beat-chapter > p,
.beat-privacy > p {
  margin-block-start: 12px;
  color: var(--text-2);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.75;
}

.story-note {
  position: relative;
  padding-inline-start: 14px;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.story-note::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* The other sections' words, where they belong in the story. */
.beat-tag {
  display: grid;
  gap: 2px;
  margin-block-start: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.55;
}

.beat-tag-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.beat-tag-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.beat-tag b {
  font-weight: 700;
}

.beat-tag > span:last-child {
  color: var(--text-2);
}

.beat-privacy > .beat-tag-k {
  font-size: 15px;
}

.beat-faq {
  margin-block-start: 12px;
  border-block: 1px solid var(--line);
}

.beat-faq summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.beat-faq summary::-webkit-details-marker {
  display: none;
}

.beat-faq summary::before {
  content: 'س';
  color: var(--accent);
}

.beat-faq summary::after {
  content: '+';
  margin-inline-start: auto;
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}

.beat-faq[open] summary::after {
  transform: rotate(45deg);
}

.beat-faq.closing summary::after {
  transform: none;
}

.beat-faq p {
  padding-block-end: 14px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
}

.beat-faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-block-start: 22px;
  color: var(--text-2);
  font-size: 14px;
}

.beat-faq-head .faq-q {
  color: var(--accent);
  font-weight: 700;
}

.beat-link {
  display: inline-block;
  margin-block-start: 16px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 100% 1px;
}

.story-on .beat-download .cta-logo {
  width: 44px;
  height: 44px;
  margin-block-end: 18px;
}

.story-on .beat-download .stores {
  margin-block-start: 22px;
}

/* ---------- The call you can answer ---------- */

.call-ui {
  margin-block-start: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.call-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.call-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E5484D;
  animation: callDot 1.1s ease-in-out infinite;
}

@keyframes callDot {
  50% {
    transform: scale(1.6);
    opacity: 0.35;
  }
}

.call-time {
  margin-inline-start: auto;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.call-wave {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  margin-block-start: 12px;
  direction: ltr;
}

.call-wave i {
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  transition: height 0.08s linear;
}

.call-actions {
  display: flex;
  gap: 10px;
  margin-block-start: 14px;
}

.call-btn {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: translate 0.25s var(--ease-out), filter 0.2s;
}

.call-btn:hover {
  translate: 0 -2px;
  filter: brightness(1.08);
}

.call-btn svg {
  width: 20px;
  height: 20px;
}

.call-btn.decline,
.call-btn.stop {
  background: #FF3B30;
}

.call-btn.accept {
  background: #34C759;
}

.call-btn.again {
  background: var(--accent);
  color: var(--on-accent);
}

.call-ui[data-state="ringing"] .decline,
.call-ui[data-state="ringing"] .accept,
.call-ui[data-state="live"] .stop,
.call-ui[data-state="ended"] .again {
  display: inline-flex;
}

.call-ui[data-state="ringing"] .accept {
  animation: callNudge 1.4s ease-in-out infinite;
}

@keyframes callNudge {
  0%, 60%, 100% { transform: none; }
  70% { transform: rotate(-8deg); }
  80% { transform: rotate(8deg); }
  90% { transform: rotate(-5deg); }
}

.call-ui[data-state="live"] .call-wave {
  display: flex;
}

.call-ui[data-state="live"] .call-dot {
  background: #34C759;
}

.call-ui[data-state="ended"] .call-dot {
  animation: none;
  background: var(--hint);
}

/* ---------- Rail and progress ---------- */

/* The story's chapters down the far side: where you are, and a way to jump. */
.story-on .story-rail {
  position: absolute;
  left: 28px;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  translate: 0 -50%;
}

.rail-dot {
  position: relative;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.rail-dot::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: var(--hint);
  transition: height 0.4s var(--ease-out), top 0.4s var(--ease-out), background 0.3s;
}

.rail-dot.on::before {
  top: -4px;
  height: 22px;
  background: var(--accent);
}

.rail-dot::after {
  content: attr(data-label);
  position: absolute;
  left: 26px;
  top: 50%;
  translate: 0 -50%;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: 600 13px/1.4 var(--font);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s;
}

.rail-dot:hover::after,
.rail-dot:focus-visible::after {
  opacity: 1;
}

.story-on .story-progress {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  bottom: 7vh;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(500px, 42%);
  opacity: 0;
  transition: opacity 0.4s;
}

.story-progress.on {
  opacity: 1;
}

.story-count {
  color: var(--text-2);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.story-count b {
  color: var(--text);
}

.story-bar {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.story-bar i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: right;
}

/* ---------- The CSS phone (without WebGL) ---------- */

.phone {
  --bz: calc(var(--sw) * 0.034);
  position: absolute;
  left: calc(var(--cx) - var(--sw) / 2 - var(--bz));
  top: calc(var(--cy) - var(--sh) / 2 - var(--bz));
  width: calc(var(--sw) + var(--bz) * 2);
  height: calc(var(--sh) + var(--bz) * 2);
  transform-style: preserve-3d;
  will-change: transform;
}

.phone-body {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--sw) * 0.16);
  background: linear-gradient(145deg, #3a3a3c, #161618 40%, #2c2c2e);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), inset 0 0 0 calc(var(--bz) * 0.45) #0b0c0e;
}

.phone-screen {
  position: absolute;
  inset: var(--bz);
  border-radius: calc(var(--sw) * 0.14);
  overflow: hidden;
  background: #0F1012;
}

.phone-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease-out);
}

.phone-island {
  position: absolute;
  left: 50%;
  top: calc(var(--bz) + var(--sw) * 0.026);
  width: calc(var(--sw) * 0.27);
  height: calc(var(--sw) * 0.08);
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
}

/* ---------- Phones ---------- */

@media (max-width: 899px) {
  .story-on .beat {
    top: 76px;
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
    max-height: calc(100% - 96px);
    translate: none;
  }

  .story-on .beat-hero {
    width: auto;
  }

  .story-on .beat-hook {
    top: 50%;
    right: 0;
    left: 0;
    translate: 0 -50%;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hook-q {
    font-size: 34px;
  }

  .clock-value {
    font-size: 64px;
  }

  .hook-calls {
    padding: 14px 16px 4px;
  }

  .calls li {
    padding-block: 8px;
    font-size: 15px;
  }

  .hook-map {
    aspect-ratio: 16 / 10;
  }

  .story-on .beat-hero .app-name {
    font-size: 54px;
  }

  .story-on .beat-hero .tagline {
    font-size: 24px;
  }

  .story-on .beat-hero .lede {
    font-size: 16px;
  }

  .story-on .beat-hero .hero-features,
  .story-on .beat-hero .stores {
    margin-block-start: 16px;
  }

  .story-on .beat-hero .trust {
    margin-block-start: 18px;
    padding-block-start: 12px;
  }

  .story-on .beat-hero .trust dt {
    font-size: 26px;
  }

  .story-on .beat-hero .scroll-hint {
    display: none;
  }

  .beat-chapter h3,
  .beat-privacy h3,
  .story-on .beat .headline,
  .story-on .story-title {
    font-size: 27px;
  }

  .beat-chapter > p,
  .beat-privacy > p {
    margin-block-start: 8px;
    font-size: 15px;
    line-height: 1.65;
  }

  .beat-tag {
    margin-block-start: 10px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .beat-faq summary {
    padding-block: 9px;
    font-size: 15px;
  }

  .story-on .beat-audience .people li {
    padding-block: 8px;
  }

  .story-on .story-progress {
    right: var(--gutter);
    left: var(--gutter);
    bottom: 14px;
    width: auto;
  }

  .story-on .story-rail {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .curtain {
    display: none !important;
  }
}

/* The curtain stays on screen while it wipes away. */
.curtain.open {
  display: flex;
}

/* The hero inside the story keeps only its own spacing. */
.story-on .beat-hero {
  padding: 0;
}

/* The CSS phone eases between poses (it isn't driven per frame). */
.story-on .story-scene .phone {
  transition: transform 1.2s var(--ease-out);
}

/* The phone model's credit (shown by story3d.js once the model is in use). */
.model-credit {
  margin-block-end: 8px;
  font-size: 13px;
}

.model-credit a {
  color: inherit;
}

/* The SOS chapter: every place help is one press away. */
.beat-devices {
  margin-block-start: 18px;
}

.beat-devices-k {
  color: #E5484D;
  font-size: 14px;
  font-weight: 700;
}

.beat-devices ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-block-start: 10px;
}

.beat-devices li {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px 6px;
  border-radius: 16px;
  background: #0F1012;
  color: #ECECEE;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.beat-devices img {
  width: 100%;
  height: 76px;
  object-fit: contain;
}

@media (max-width: 899px) {
  .beat-devices img {
    height: 52px;
  }

  .beat-devices li {
    padding: 8px 4px;
    font-size: 12px;
  }
}
