/* ============================================================
   appfella.com, the page layer (MKT-SITE-V2-001, live 28 Oct 2026).
   Loaded after site.css, on every page.
   Light and colourful only: no dark section, no dark phone, no
   prefers-color-scheme block. Tokens are site.css's :root; this
   file adds none of its own colours outside the brand palette.
   ============================================================ */

/* ---------- Header ---------- */
/* One language switch, on the bar in the markup (MKT-HEADER-LANG-001).
   Wide: the menu's box steps aside (display: contents), so the links,
   the switch and the actions are the bar's own row, ordered links,
   language, Sign in, Start trial. Narrow (900px and below): the menu is a
   panel under the bar, and the switch stays on the bar beside Start trial. */
.v2-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.v2-menu { display: contents; }
.v2-nav {
  order: 1;
  margin-inline-start: auto;
  margin-inline-end: 14px;
}
.v2-header-inner > .lang-switch { order: 2; }
.v2-acts { order: 3; }
.v2-nav ul {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v2-nav a {
  font-size: 14.5px;
  font-weight: var(--fw-medium);
  color: var(--ink-2);
}
.v2-nav a:hover,
.v2-nav a[aria-current="page"] { color: var(--brand); }
.v2-acts {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* The bar's own trial button and the menu button exist for the narrow
   layout only; the menu's trial button for the wide one. */
.v2-bar-trial,
.v2-menu-btn { display: none; }

.v2-menu-btn {
  align-items: center;
  gap: 7px;
  height: var(--control-h);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--card);
  color: var(--ink);
  font: var(--fw-semibold) 14px / 1 var(--font-body);
  cursor: pointer;
}
.v2-menu-btn:hover { border-color: var(--brand-2); }
.v2-menu-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #FFFFFF, var(--focus-ring);
}
.v2-menu-btn path { transition: transform .2s var(--ease), opacity .2s var(--ease); transform-origin: 12px 12px; }
.v2-menu-btn[aria-expanded="true"] .v2-menu-l1 { transform: translateY(5px) rotate(45deg); }
.v2-menu-btn[aria-expanded="true"] .v2-menu-l2 { opacity: 0; }
.v2-menu-btn[aria-expanded="true"] .v2-menu-l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .v2-bar-trial { display: inline-flex; }
  .v2-menu-btn { display: inline-flex; }
  .v2-menu-trial { display: none; }

  /* The language switch on the bar: first of the three controls, the
     same height and frame as the Menu button, and a tap area a little
     larger than it draws. */
  .v2-header-inner > .lang-switch {
    order: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: var(--control-h);
    margin-inline-start: auto;
    padding: 0 12px;
    border-radius: var(--r-control);
    color: var(--ink);
    font-size: 14px;
  }
  .v2-header-inner > .lang-switch::after {
    content: "";
    position: absolute;
    inset: -4px -3px;
  }

  /* The menu: a panel under the bar, the full width of the screen. */
  .v2-menu {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px clamp(18px, 4vw, 32px) 20px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
  }
  .v2-menu.is-open { display: flex; }
  .v2-nav { margin: 0; }
  .v2-nav ul { flex-direction: column; gap: 0; }
  .v2-nav a {
    display: block;
    padding: 14px 2px;
    font-size: 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .v2-acts { padding-top: 18px; gap: 18px; }
  .v2-acts .link-signin { font-size: 15px; }
}

/* On a phone the bar holds the mark and three controls, so the switch
   shows its short label (EN or ع) and the Menu button its icon alone.
   Both keep their words as their accessible names (each has an
   aria-label); the button's word is hidden from sight only. */
@media (max-width: 560px) {
  .v2-header-inner > .lang-switch .lang-long { display: none; }
  .v2-header-inner > .lang-switch .lang-short { display: inline; }
  .v2-menu-btn { justify-content: center; width: 44px; padding: 0; }
  .v2-menu-word {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .v2-header-inner { gap: 10px; }
  .v2-bar-trial { padding: 0 12px; }
  .v2-header-inner > .lang-switch { padding: 0 10px; }
}

/* ---------- Footer ---------- */
.v2-footer-top { padding-top: 34px; }
.v2-footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  font-weight: var(--fw-semibold);
}
.v2-footer-links a { color: var(--slate); }
.v2-footer-links a:hover,
.v2-footer-links a[aria-current="page"] { color: var(--brand); }
.v2-footer-top + .footer-inner { padding-top: 20px; }

/* ---------- Shared ---------- */
.v2-section { padding: clamp(72px, 10vw, 128px) 0; }
.v2-center { text-align: center; }
.v2-h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: var(--fw-bold);
  text-wrap: balance;
}
.v2-h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -.6px;
  font-weight: var(--fw-bold);
  text-wrap: balance;
}
.v2-lead {
  margin-top: 14px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
}

.v2-tint-brand { background: var(--brand-soft); color: var(--brand); }
.v2-tint-accent { background: var(--accent-soft); color: var(--warn-deep); }
.v2-tint-info { background: var(--info-soft); color: var(--info-deep); }
.v2-tint-good { background: var(--good-soft); color: var(--good-deep); }

/* ---------- Hero ---------- */
.v2-hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(48% 60% at 92% 8%, rgba(255, 107, 74, .13), transparent 70%),
    radial-gradient(40% 50% at 70% 96%, rgba(46, 124, 214, .09), transparent 70%),
    radial-gradient(36% 46% at 4% 90%, rgba(241, 168, 10, .10), transparent 70%),
    var(--bg-warm);
}
.v2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.v2-hero-title {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  font-weight: var(--fw-bold);
  max-width: 15ch;
  text-wrap: balance;
}
/* The rotating word, as on the 1A hero: coral, underlined, swapped with no
   transition. All four words share one grid cell, so the line is as wide and
   as tall as the longest at every width, and nothing moves when it changes. */
.v2-hero-vis { display: block; }
.v2-rot {
  display: grid;
  justify-items: start;
  color: var(--brand);
}
.v2-rot > span {
  grid-area: 1 / 1;
  visibility: hidden;
  border-bottom: 3px solid var(--brand-line);
}
.v2-rot > .is-on { visibility: visible; }
.v2-hero-sub {
  margin-top: 22px;
  max-width: 30ch;
  text-wrap: balance;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
}
.v2-hero-ctas { margin-top: 34px; }

.v2-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}
/* The chart card sits beside the phone, low on its start side. */
.v2-hero-visual .v2-hero-chart {
  position: absolute;
  inset-inline-start: 0;
  bottom: 14%;
}

/* ---------- Phones (HTML and CSS, drawn light) ---------- */
.v2-phone {
  position: relative;
  /* Its layers (the message over the app) stay inside it, under the chart. */
  isolation: isolate;
  flex: none;
  width: 256px;
  aspect-ratio: 9 / 18;
  padding: 9px;
  border-radius: 42px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop), 0 30px 60px -30px rgba(255, 107, 74, .30);
}
/* The camera island, in a light tone. */
.v2-phone::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 19px;
  left: 50%;
  width: 70px;
  height: 18px;
  margin-left: -35px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.v2-phone-sm { width: 224px; }
.v2-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  padding: 50px 12px 12px;
}

.v2-lock { text-align: center; }
.v2-wall-1 { background: linear-gradient(165deg, #FFE5DC 0%, #FDF3DC 52%, #E7F0FB 100%); }
.v2-wall-2 { background: linear-gradient(165deg, #FDF0D2 0%, #FFEFEA 60%, #FFF8F1 100%); }
.v2-wall-3 { background: linear-gradient(165deg, #E1F5EC 0%, #E7F0FB 60%, #F6F9FC 100%); }
.v2-lock-time {
  font-family: var(--font-body);
  font-size: 54px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.v2-phone-sm .v2-lock-time { font-size: 46px; }
.v2-lock-date {
  margin-top: 6px;
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--ink-2);
}

.v2-push {
  margin-top: 30px;
  padding: 11px 12px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 28px -14px rgba(30, 41, 59, .28);
  text-align: start;
}
.v2-push-head {
  display: flex;
  align-items: center;
  gap: 7px;
}
.v2-app-icon {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--grad);
}
.v2-push-app {
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--ink-2);
}
.v2-push-ago {
  margin-inline-start: auto;
  font-size: 11px;
  color: var(--ink-3);
}
.v2-push-title {
  margin-top: 7px;
  font-size: 14px;
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--ink);
}
.v2-push-body {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
}

/* An app's screen: a few placeholder blocks, then the message on top. */
.v2-app { background: var(--card); text-align: start; }
.v2-app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.v2-skel {
  display: block;
  height: 9px;
  margin-top: 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
}
.v2-app-bar .v2-skel { margin-top: 0; }
.v2-w-40 { width: 40%; }
.v2-w-50 { width: 50%; }
.v2-w-70 { width: 70%; }
.v2-skel-card {
  height: 96px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface-2) 100%);
}
.v2-sheet {
  position: absolute;
  z-index: 1;
  inset-inline: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -16px rgba(30, 41, 59, .30);
}
.v2-sheet { bottom: 10px; }
.v2-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 10px;
}
.v2-progress i { height: 5px; border-radius: var(--r-pill); background: var(--track); }
.v2-progress i:nth-child(-n+2) { background: var(--brand); }
.v2-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: #C2452A;
  font-size: 11px;
  font-weight: var(--fw-bold);
}
.v2-msg-title {
  margin-top: 9px;
  font-size: 15px;
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--ink);
}
.v2-msg-body {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.v2-msg-btn {
  display: block;
  margin-top: 12px;
  padding: 9px 0;
  border-radius: 10px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  text-align: center;
}

/* ---------- Charts: one line or a few bars, an arrow, one label ---------- */
.v2-chart-card {
  position: relative;
  z-index: 2;
  width: 196px;
  padding: 10px 12px 6px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
}
.v2-chart { display: block; width: 100%; height: auto; overflow: visible; }
.v2-chart-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--ink-2);
}
.v2-line,
.v2-arrow {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v2-thin { stroke-width: 2; stroke-dasharray: 3 6; }
.v2-area { stroke: none; opacity: .12; }
.v2-floor { stroke: var(--line); stroke-width: 1.5; }
.v2-c-s1 { stroke: var(--s1); }
.v2-c-s2 { stroke: var(--s2); }
.v2-c-s3 { stroke: var(--s3); }
.v2-c-s4 { stroke: var(--s4); }
.v2-area.v2-c-s2 { fill: var(--s2); }
.v2-f-s3 { fill: var(--s3); }
.v2-f-s4 { fill: var(--s4); }
.v2-f-muted { fill: var(--line); }
.v2-f-track { fill: var(--track); }

/* One flow, top to bottom: each channel the next step of the same message. */
.v2-flow-card { width: 178px; padding-bottom: 12px; }
.v2-timeline { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
.v2-timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
}
.v2-timeline li + li::before {
  content: '';
  position: absolute;
  inset-inline-start: 13px;
  top: -10px;
  height: 10px;
  border-inline-start: 2px dotted var(--line);
}
.v2-tl-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

/* ---------- Goals ---------- */
.v2-goals { background: var(--card); border-top: 1px solid var(--line); }
.v2-goal {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 112px);
}
.v2-goal-flip .v2-goal-copy { order: 2; }
.v2-goal-copy p {
  margin-top: 16px;
  max-width: 32ch;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
}
.v2-see {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--brand);
}
.v2-see:hover { color: var(--link-hover); }
.v2-goal-media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(32px, 4vw, 48px) 20px;
  border-radius: 32px;
}
.v2-goal-media .v2-chart-card {
  position: absolute;
  inset-inline-end: clamp(12px, 5%, 48px);
  bottom: clamp(24px, 12%, 64px);
}
.v2-goal-flip .v2-goal-media .v2-chart-card {
  inset-inline-end: auto;
  inset-inline-start: clamp(12px, 5%, 48px);
}
/* Over an app screen the message sits low, so the chart card goes up, over
   the placeholder blocks; beside a lock screen the flow card sits low, under
   the push. */
.v2-goal-media .v2-chart-card.v2-chart-top { bottom: auto; top: clamp(28px, 9%, 56px); }
.v2-goal-media .v2-flow-card { bottom: 16px; }

/* ---------- How it works ----------
   The "Built for you" cards of /about/ (.audience-grid, .audience-card,
   .audience-num in site.css), numbered 01 / 02 / 03; an <ol>, so the order is
   also in the markup. */
.v2-how {
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.v2-how .card-h3 { text-wrap: balance; }

/* ---------- The promo ---------- */
.v2-watch { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v2-video {
  position: relative;
  max-width: 920px;
  margin: clamp(32px, 5vw, 52px) auto 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-warm);
  box-shadow: var(--shadow-pop);
}
.v2-video-el {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-warm);
}
.v2-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  padding: 0 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .55), var(--glow-brand-hover);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.v2-play[hidden] { display: none; }
.v2-play:hover { transform: scale(1.06); background: var(--action-primary-hover); }
.v2-play:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 6px;
}

/* ---------- Why it matters ---------- */
.v2-claims { margin-top: clamp(32px, 5vw, 52px); }
.v2-claims .claim-num { font-size: clamp(42px, 4.4vw, 54px); }
.v2-claims .claim-text { font-size: 15px; }

/* ---------- Pricing teaser ---------- */
.v2-price-sec { background: var(--card); border-top: 1px solid var(--line); }
.v2-price {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 60px) clamp(24px, 5vw, 56px);
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(135deg, #FFF3EE 0%, #FEF8EA 100%);
  border: 1px solid var(--brand-line);
}
.v2-price .btn { margin-top: 26px; }

/* ---------- Final call to action ---------- */
.v2-final {
  background:
    radial-gradient(50% 80% at 15% 0%, rgba(255, 107, 74, .12), transparent 70%),
    radial-gradient(50% 80% at 85% 100%, rgba(241, 168, 10, .12), transparent 70%),
    var(--bg-warm);
  border-top: 1px solid var(--line);
}
.v2-final .btn { margin-top: 28px; }

/* ---------- Motion: subtle, and none for reduced motion ----------
   Each element's resting style is its finished state, so with the
   animation removed (site.css's reduced-motion block, or ?shot=1)
   everything is simply there. */
@keyframes v2-arrive {
  from { opacity: 0; transform: translateY(-14px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes v2-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
.v2-arrive { animation: v2-arrive .7s .35s var(--ease) both; }

/* The stat card. Its markup is the finished card, which is what no script,
   reduced motion and ?shot=1 show. With motion allowed, v2.js adds is-live
   when it comes into view: the line draws from nothing, the dots come in,
   and the number counts up. */
.v2-stat-card { width: 212px; }
.v2-stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  margin: 2px 0 6px;
}
.v2-stat-num {
  font: var(--fw-stat) 24px / 1 var(--font-body);
  letter-spacing: -.4px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.v2-stat-chip {
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--good-soft);
  color: var(--good-deep);
  font-size: 11px;
  font-weight: var(--fw-bold);
  white-space: nowrap;
}
.v2-stat-bar { fill: var(--brand-soft); }
.v2-dot { fill: var(--card); stroke: var(--s2); stroke-width: 2; }
.v2-dot-halo { fill: rgba(255, 107, 74, .18); }
.v2-dot-last { fill: var(--s2); stroke: var(--card); stroke-width: 1.5; }
/* No `to`: each part fades up to its own resting opacity. */
@keyframes v2-pop {
  from { opacity: 0; }
}
.v2-stat-card.is-live .v2-draw {
  stroke-dasharray: 1;
  animation: v2-draw 1.3s var(--ease) both;
}
.v2-stat-card.is-live .v2-dot,
.v2-stat-card.is-live .v2-dot-last { animation: v2-pop .3s var(--ease) 1s both; }
.v2-stat-card.is-live .v2-dot-halo { animation: v2-pop .4s var(--ease) 1.25s both; }

/* Reduced motion: everything that keeps changing still changes, every 3 s,
   by a plain fade: no typing, no caret, nothing that slides. is-fade is set
   only when the visitor asks for reduced motion (v2.js for the homes' word,
   site.js for the Ask card, the channel word and the event feed); these
   !important rules outrank site.css's blanket "transition: none" for them only. */
.v2-rot.is-fade > span {
  visibility: hidden;
  opacity: 0;
  transition: opacity .5s ease, visibility 0s linear .5s !important;
}
.v2-rot.is-fade > .is-on {
  visibility: visible;
  opacity: 1;
  transition: opacity .5s ease, visibility 0s !important;
}
.ask-slots.is-fade .ask-slot { transition: opacity .5s ease, visibility 0s linear .5s !important; }
.ask-slots.is-fade .ask-slot.is-on { transition: opacity .5s ease, visibility 0s !important; }
/* The faded Ask card has no caret: it keeps its box, so nothing shifts. */
.ask-slots.is-fade .ask-q::after { background: transparent; animation: none; }
/* The same rule for the /features/ channel word and the /analytics/ event
   feed (site.js fadeCycle): out over .5s, the swap, then back in. */
.hero-word.is-fade,
.stream-rows.is-fade { transition: opacity .5s ease !important; }
.hero-word.is-fade.is-out,
.stream-rows.is-fade.is-out { opacity: 0; }
/* ?shot=1 (v2.js): screenshots — no reveal, no motion. */
.v2-shot *,
.v2-shot *::before,
.v2-shot *::after {
  animation: none !important;
  transition: none !important;
}
.v2-shot [data-reveal].is-hidden { opacity: 1; transform: none; }

/* ---------- Understand your users: Ask, and a small preview ---------- */
.v2-insight { background: var(--bg-warm); border-top: 1px solid var(--line); }
.v2-narrow { max-width: 40ch; margin-inline: auto; }
.v2-insight-visual { max-width: 1020px; margin: clamp(32px, 5vw, 52px) auto 0; }
.v2-insight-visual .analytics-stack { margin-top: 0; }

/* ---------- One header on every inner page ----------
   Home / page, then the title: the same space above, the same gap, the same
   title size, on the inner pages, pricing, section indexes and articles.
   No eyebrow above any title (the build removes them). */
.v2-crumbs,
.page-head-block,
.article-wrap { padding-top: clamp(28px, 4vw, 48px); }
.crumbs ol,
.page-head-block .crumbs ol { margin: 0 0 14px; }
.v2-crumbs .crumbs ol { margin: 0; }
.v2-crumbs + .section,
.v2-crumbs + section { padding-top: 14px; }
.v2-inner .sec-head h1,
.v2-inner .hero-title,
.page-head-block h1,
.article-head h1 {
  margin-top: 0;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.1;
  letter-spacing: -1.1px;
}
:lang(ar) .v2-inner .hero-title,
:lang(ar) .page-head-block h1,
:lang(ar) .article-head h1 { line-height: 1.35; }

/* /how-it-works/: where the setup guides are now. */
.v2-guides { margin-top: 28px; font-size: 15.5px; color: var(--ink-2); }

/* ---------- Inner pages: the earlier home sections, in the page layer look ---------- */
.v2-inner .sec-head h1 { font-weight: var(--fw-bold); }
.v2-page-hero .hero-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.v2-feature-pair { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
/* Four feature cards stay on /features/ (two moved to /analytics/): two by two. */
.v2-inner #features .feature-grid { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
/* The first section continues the breadcrumb's background rather than
   starting a white band, with a rule, right under it. */
.v2-crumbs + .section-white { background: transparent; border-top: 0; }
.v2-stream-wrap { max-width: 640px; }

/* The services panel, light: a warm tint instead of slate. */
.v2-inner .slate-panel {
  background: linear-gradient(135deg, #FFF3EE 0%, #FEF8EA 100%);
  border: 1px solid var(--brand-line);
}
.v2-inner .slate-logo span,
.v2-inner .slate-copy h2 { color: var(--slate); }
.v2-inner .slate-copy p { color: var(--ink-2); }
.v2-inner .slate-point { color: var(--ink); }
.v2-inner .slate-check { background: var(--accent-soft); color: var(--warn-deep); }

/* The lock-screen preview of the moments, light: a pale wallpaper. */
.v2-inner .preview-card {
  background: linear-gradient(165deg, #FFE5DC 0%, #FDF3DC 52%, #E7F0FB 100%);
}
.v2-inner .preview-clock { color: var(--slate); }
.v2-inner .clock-sub,
.v2-inner .preview-foot { color: var(--ink-2); }
.v2-inner .preview-shade { background: rgba(255, 255, 255, .55); }
.v2-inner .push-card { box-shadow: 0 18px 40px -18px rgba(30, 41, 59, .30); }

/* ---------- Right to left ----------
   The layout above is logical and mirrors on its own. Charts do not: every
   line, bar and grid runs left to right on the Arabic pages too (dir="ltr" in
   the markup), as on the dashboard — a mirrored growth line reads as a
   decline. Only the words around a chart follow the page. The one icon that
   points rather than plots (the paper plane) turns with the text. */
[dir="rtl"] .v2-flip { transform: scaleX(-1); }
/* Today's lifecycle stage bars (on /ar/analytics/): the fill starts at the
   left, as every other chart does. */
[dir="rtl"] .v2-inner .track { direction: ltr; }
:lang(ar) .v2-hero-title { line-height: 1.3; }
/* A range ("5–15%") keeps its order on an Arabic page; it still sits at the
   start (right) of its card. */
[dir="rtl"] .claim-num[dir="ltr"] { text-align: right; }
:lang(ar) .v2-h2,
:lang(ar) .v2-h3,
:lang(ar) .v2-inner .sec-head h1 { line-height: 1.4; }
:lang(ar) .v2-push-app { font-size: 12px; }
:lang(ar) .v2-hero-title { max-width: 14em; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .v2-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .v2-hero-copy { text-align: center; }
  /* Centre the rotating word under the centred line; the shared grid cell keeps the reserved width. */
  .v2-rot { justify-items: center; }
  .v2-hero-title,
  .v2-hero-sub { margin-inline: auto; }
  .v2-goal { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .v2-goal-flip .v2-goal-copy { order: 0; }
}
@media (max-width: 560px) {
  .v2-hero-ctas .btn { width: 100%; }
  .v2-phone { width: 232px; }
  .v2-phone-sm { width: 204px; }
  .v2-lock-time { font-size: 48px; }
  .v2-phone-sm .v2-lock-time { font-size: 42px; }
  .v2-chart-card { width: 156px; padding: 8px 10px 4px; }
  .v2-flow-card { width: 158px; }
  .v2-stat-card { width: 176px; }
  .v2-stat-num { font-size: 21px; }
  .v2-timeline { gap: 7px; }
  .v2-timeline li { font-size: 12px; }
  .v2-hero-visual .v2-hero-chart { bottom: 6%; }
  .v2-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; box-shadow: 0 0 0 7px rgba(255, 255, 255, .55), var(--glow-brand-hover); }
  .v2-goal-media { padding: 28px 12px 88px; }
  .v2-goal-media .v2-chart-card,
  .v2-goal-flip .v2-goal-media .v2-chart-card {
    inset-inline-start: auto;
    inset-inline-end: 12px;
    bottom: 16px;
  }
  .v2-goal-media .v2-chart-card.v2-chart-top { top: 16px; bottom: auto; }
}

/* ---------- Contact (MKT-CONTACT-001) ----------
   The form on /contact/ and in the floating panel, and the floating button.
   Light surfaces only. Everything starts hidden until site.js shows it, so
   [hidden] has to win over every display below. */
.cf-fab[hidden],
.cf-form[hidden],
.cf-done[hidden],
.cf-err[hidden],
.cf-fail[hidden] { display: none !important; }

/* Block flow with margins, not a grid gap: the live region and the hidden
   honeypot would each add a gap of their own. */
.cf-form { position: relative; }
.cf-field { margin-bottom: 16px; }
.cf-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--slate);
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  display: block;
  width: 100%;
  min-height: var(--control-h-lg);
  padding: 10px 12px;
  border: 1px solid #CBD5E1;
  border-radius: var(--r-control);
  background: var(--card);
  color: var(--ink);
  font: var(--fw-regular) 15px / 1.4 var(--font-body);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.cf-field textarea { min-height: 128px; resize: vertical; }
.cf-field input:hover,
.cf-field select:hover,
.cf-field textarea:hover { border-color: var(--brand-2); }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--brand);
  border-radius: var(--r-control);
  box-shadow: var(--focus-ring);
}
.cf-field [aria-invalid="true"] { border-color: var(--bad); }
.cf-field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(220, 61, 61, .2); }
/* An address and a link read left to right on the Arabic page too; they
   still sit at the start (right) of their box. */
[dir="rtl"] .cf-field input[dir="ltr"] { text-align: right; }
.cf-err {
  margin-top: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--bad-deep);
}

/* The honeypot: off screen, out of the tab order, never read out. Moved
   toward the inline start, the side a page cannot scroll to in either
   direction. */
.cf-hp {
  position: absolute;
  inset-inline-start: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-fail {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: var(--r-control);
  background: var(--bad-soft);
  color: var(--bad-deep);
  font-size: 14px;
  line-height: 1.5;
}
.cf-fail a,
.cf-noscript a { color: inherit; font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 2px; }
.cf-noscript a { color: var(--brand); }

.cf-send { min-width: 132px; margin-top: 4px; }
.cf-send[aria-disabled="true"] { opacity: .72; cursor: progress; transform: none; }

.cf-done {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-control-lg);
  background: var(--good-soft);
  color: var(--good-deep);
  font-size: 16px;
  font-weight: var(--fw-semibold);
}
.cf-done:focus { outline: none; box-shadow: none; }
.cf-done:focus-visible { box-shadow: var(--focus-ring); }
.cf-done-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  color: var(--good);
}
.cf-noscript { font-size: 16px; color: var(--ink-2); }

/* /contact/: the form in one card at reading width. */
.cf-page .sec-head { margin-bottom: 24px; }
.cf-card {
  max-width: 620px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

/* The floating button: the bottom corner at the inline end, so the mirrored
   corner on the Arabic pages. The footer keeps room under its small print,
   so the button never sits over the last links. */
.site-footer { padding-bottom: 72px; }
.cf-fab {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-end: 18px;
  /* Under the sticky header (40), so its open menu covers the button. */
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding-block: 0;
  padding-inline: 14px 18px;
  border: 1px solid var(--brand-line);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--slate);
  font: var(--fw-semibold) 14.5px / 1 var(--font-body);
  box-shadow: var(--shadow-pop);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), opacity .2s var(--ease), visibility 0s linear 0s;
}
.cf-fab svg { color: var(--brand); flex: none; }
.cf-fab:hover { border-color: var(--brand-2); transform: var(--lift); }
.cf-fab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 2px #FFFFFF, var(--focus-ring), var(--shadow-pop);
}
/* Stepping aside while a call to action passes under it (narrow screens). */
.cf-fab.is-tucked {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}

/* The panel: a modal <dialog> in the same corner as the button. */
html.cf-locked { overflow: hidden; }
.cf-panel {
  position: fixed;
  inset-block: auto 18px;
  inset-inline: auto 18px;
  width: min(420px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.cf-panel::backdrop { background: rgba(250, 249, 246, .72); }
.cf-panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px 12px;
  padding-inline: 20px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.cf-panel-head h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.2px; }
.cf-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.cf-close:hover { background: var(--surface-2); color: var(--ink); }
.cf-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: var(--r-control); }
.cf-panel-body { padding: 18px 20px 20px; }
.cf-panel .cf-field textarea { min-height: 104px; }

@media (prefers-reduced-motion: no-preference) {
  .cf-panel[open] { animation: cf-rise .2s var(--ease); }
  .cf-panel[open]::backdrop { animation: cf-fade .2s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .cf-fab,
  .cf-fab.is-tucked { transition: none; }
  .cf-fab:hover { transform: none; }
}
@keyframes cf-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes cf-fade { from { opacity: 0; } to { opacity: 1; } }

/* A phone: a round button with the words kept for screen readers, and the
   panel as a sheet across the bottom of the screen. */
@media (max-width: 560px) {
  .cf-fab {
    inset-block-end: 14px;
    inset-inline-end: 14px;
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
  }
  .cf-fab svg { width: 22px; height: 22px; }
  .cf-fab-word {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cf-panel {
    inset-block: auto 8px;
    inset-inline: 8px;
    width: auto;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .cf-panel-body { padding: 16px; }
  /* 16px, so a phone does not zoom in on the field it focuses. */
  .cf-field input,
  .cf-field select,
  .cf-field textarea { font-size: 16px; }
  .cf-send { width: 100%; }
}

/* ---------- /contact/: the form beside the "Your app" phone ----------
   The studio poster's phone (owner, 29 Oct 2026), drawn in HTML and CSS.
   Sized in em from .cf-visual's font size, so one value shrinks it on a
   phone. Two columns on a wide screen, the form first; stacked below 900px,
   the form still first. */
.cf-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) auto;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.cf-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cf-goal {
  max-width: 16em;
  margin-bottom: 22px;
  font: var(--fw-bold) clamp(20px, 2vw, 24px) / 1.3 var(--font-display);
  letter-spacing: -.3px;
  color: var(--slate);
}
:lang(ar) .cf-goal { line-height: 1.5; letter-spacing: 0; }
.cf-visual {
  position: relative;
  padding-inline: 30px;
  font-size: 16px;
  text-align: start;
}
.cf-phone {
  width: 16.5em;
  aspect-ratio: auto;
  padding: .56em;
  border-radius: 2.6em;
}
.cf-phone::before { top: 1.15em; width: 4.4em; height: 1.1em; margin-left: -2.2em; }
.cf-screen {
  height: auto;
  padding: 2.9em .75em 1.3em;
  border-radius: 2.1em;
  background: var(--bg);
}
.cf-bar { display: flex; align-items: center; gap: .5em; margin-bottom: .7em; }
.cf-bar .v2-app-icon { width: 1.5em; height: 1.5em; border-radius: .45em; }
.cf-app-name { font-size: .95em; font-weight: var(--fw-bold); color: var(--slate); }
.cf-stat,
.cf-new,
.cf-feed li {
  background: var(--card);
  border: 1px solid var(--line);
}
.cf-stat { padding: .7em .85em .45em; border-radius: 1em; }
.cf-stat-label { display: block; font-size: .72em; font-weight: var(--fw-semibold); color: var(--ink-2); }
.cf-stat-row { display: flex; align-items: center; gap: .4em; margin: .15em 0 .35em; }
.cf-stat .v2-stat-num { font-size: 1.55em; }
.cf-stat .v2-stat-chip { padding: .2em .5em; font-size: .66em; }
.cf-stat-week { font-size: .66em; color: var(--ink-3); white-space: nowrap; }
.cf-chart { display: block; width: 100%; height: auto; overflow: visible; }
.cf-area { fill: var(--s2); }
.cf-new {
  display: flex;
  align-items: center;
  gap: .55em;
  margin-top: .6em;
  padding: .55em .8em;
  border-radius: .9em;
}
.cf-faces { display: flex; }
.cf-faces i {
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  border: 2px solid var(--card);
}
.cf-faces i + i { margin-inline-start: -.5em; }
.cf-f1 { background: var(--s1); }
.cf-f2 { background: var(--s3); }
.cf-f3 { background: var(--s5); }
.cf-f4 { background: var(--s7); }
.cf-f5 { background: var(--s2); }
.cf-new-label { font-size: .72em; color: var(--ink-2); white-space: nowrap; }
.cf-new-num { margin-inline-start: auto; font-size: .95em; font-weight: var(--fw-stat); color: var(--slate); }
.cf-feed-label { display: block; margin: .9em 0 .45em; font-size: .7em; font-weight: var(--fw-semibold); color: var(--ink-3); }
.cf-feed { display: grid; gap: .4em; margin: 0; padding: 0; list-style: none; }
.cf-feed li {
  display: flex;
  align-items: center;
  gap: .55em;
  padding: .5em .65em;
  border-radius: .8em;
}
.cf-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: .7em;
  font-weight: var(--fw-bold);
}
.cf-av-1 { background: var(--s2); }
.cf-av-2 { background: var(--s3); }
.cf-av-3 { background: var(--s5); }
.cf-av-4 { background: var(--s7); }
.cf-feed-text { min-width: 0; font-size: .74em; font-weight: var(--fw-semibold); line-height: 1.35; color: var(--ink); }
.cf-feed-ago { margin-inline-start: auto; padding-inline-start: .4em; font-size: .64em; color: var(--ink-3); white-space: nowrap; }
.cf-float {
  position: absolute;
  top: 2.75em;
  inset-inline-end: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .45em .85em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  box-shadow: var(--shadow-pop);
  color: var(--good-deep);
  font-size: .95em;
  font-weight: var(--fw-stat);
}
.cf-float i { width: .55em; height: .55em; border-radius: 50%; background: var(--good); }

/* With motion allowed, v2.js adds is-live once the phone is in view: the
   line draws, the number counts up (v2.js), then the rows come in one after
   another. Each part animates back to its own resting state. Not under
   reduced motion or ?shot=1 (v2.js never adds is-live there). */
@media (prefers-reduced-motion: no-preference) {
  .cf-visual.is-live .cf-draw { stroke-dasharray: 1; animation: v2-draw 1.3s var(--ease) both; }
  .cf-visual.is-live .cf-area { animation: v2-pop .6s var(--ease) .7s both; }
  .cf-visual.is-live .cf-end { animation: v2-pop .3s var(--ease) 1.2s both; }
  .cf-visual.is-live .cf-float { animation: cf-row .45s var(--ease) 1.3s both; }
  .cf-visual.is-live .cf-new { animation: cf-row .45s var(--ease) .5s both; }
  .cf-visual.is-live .cf-feed li { animation: cf-row .45s var(--ease) both; }
  .cf-visual.is-live .cf-feed li:nth-child(1) { animation-delay: 1.1s; }
  .cf-visual.is-live .cf-feed li:nth-child(2) { animation-delay: 1.45s; }
  .cf-visual.is-live .cf-feed li:nth-child(3) { animation-delay: 1.8s; }
  .cf-visual.is-live .cf-feed li:nth-child(4) { animation-delay: 2.15s; }
}
@keyframes cf-row { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 900px) {
  .cf-layout { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .cf-card { max-width: none; }
  .cf-aside { margin-top: 12px; }
  .cf-visual { font-size: 14px; }
}
@media (max-width: 560px) {
  .cf-visual { padding-inline: 20px; font-size: 12.5px; }
}
