/* ==========================================================================
   Forex Strategy Studio: landing page (index.html), loaded after site.css.
   Breakpoints as in site.css, plus 1360 for the hero install block beside
   the headline.
   ========================================================================== */

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

.hero {
  --ring: min(118vw, 500px);
  --phone: calc(var(--ring) * 0.5294);
  --phone-h: calc(var(--phone) * 1.7768);
  --px-phone: -60px;

  position: relative;
  overflow: clip;
  padding: 44px 0 72px;
  isolation: isolate;
}

@media (min-width: 768px) {
  .hero {
    --ring: min(74vw, 620px);
    padding-top: 52px;
  }
}

@media (min-width: 1200px) {
  .hero {
    --ring: min(47.2vw, 680px);
    --px-phone: -140px;
    padding-bottom: 62px;
  }
}

.hero__copy {
  position: relative;
  z-index: 4;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(46px, 11.6vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

/* The eyebrow sits inside the H1 (so the heading carries "Forex strategy
   builder"), styled as a small gold label above the two lines. */
.hero__title .hero__eyebrow {
  display: block;
  margin-bottom: 40px;
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Two lines: the claim, then the gold italic line. */
.hero__title .line1,
.hero__title .line2 {
  display: block;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__lead {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-4);
}

@media (min-width: 768px) {
  .hero__copy {
    gap: 36px;
  }

  .hero__title .hero__eyebrow {
    margin-bottom: 48px;
    letter-spacing: 0.32em;
  }

  .hero__lead { font-size: 17px; }
}

.hero__install {
  position: relative;
  z-index: 4;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero__install .qr {
  display: none;
  width: 112px;
  height: 112px;
  padding: 6px;
}

.hero__install .store-badge img {
  height: 64px;
}

@media (min-width: 992px) {
  .hero__install .qr { display: block; }
}

@media (min-width: 1360px) {
  .hero__install {
    position: absolute;
    top: 168px;
    inset-inline-end: 80px;
    margin: 0;
  }
}

/* The stage reserves the phone's height; rings, phone and (on
   desktop) the orbit points are all centred on the phone. */
.hero__stage {
  position: relative;
  margin-top: 44px;
  padding-top: var(--phone-h);
}

.hero__orbitals {
  position: absolute;
  left: 50%;
  top: calc(var(--phone-h) / 2);
  z-index: 0;
  width: 0;
  height: 0;
}

.ring {
  position: absolute;
  left: 0;
  top: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  pointer-events: none;
}

.ring--1 { width: calc(var(--ring) * 2.412); border: 1px solid rgba(var(--gold-rgb), 0.16); }
.ring--2 { width: calc(var(--ring) * 1.735); border: 1px solid rgba(var(--gold-rgb), 0.26); }
.ring--3 { width: calc(var(--ring) * 1.276); border: 1px dashed rgba(var(--gold-rgb), 0.3); }
.ring--5 { width: calc(var(--ring) * 0.765); border: 1px solid rgba(var(--gold-rgb), 0.22); }

.ring--4 {
  width: var(--ring);
  border: 1.5px solid rgba(var(--gold-rgb), 0.62);
  box-shadow: 0 0 40px rgba(var(--gold-rgb), 0.12), inset 0 0 60px rgba(var(--gold-rgb), 0.08);
  background: radial-gradient(closest-side, rgba(var(--gold-rgb), 0.14), rgba(var(--gold-rgb), 0.04) 70%, transparent);
}

.hero__phone {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 5; /* above the copy (4): the parallax slides it over the text */
  width: var(--phone);
  height: var(--phone-h);
  translate: -50% 0;
  filter: drop-shadow(0 50px 70px rgba(0, 0, 0, 0.8));
}

.hero__screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none; /* hidden ones must not catch the pointer */
}

.hero__screen.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__fade {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 6;
  height: 240px;
  background: linear-gradient(to bottom, rgba(10, 9, 6, 0), var(--bg));
  pointer-events: none;
}

/* Orbit points. Below 1200px: a row of four buttons under the phone
   with the active description as a caption. From 1200px: labels
   pinned to the glow ring, as in the design. */
.hero__points {
  position: relative;
  z-index: 7;
  max-width: 560px;
  margin: 26px auto 0;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 768px) {
  .hero__points {
    max-width: 720px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero__point {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(10, 9, 6, 0.6);
  color: var(--text-5);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.hero__point-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.hero__point-n {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--text-6);
  transition: color 0.3s ease;
}

.hero__point-t {
  font-size: 15px;
  font-weight: 500;
}

.hero__point-d,
.hero__point-line,
.hero__point-dot {
  display: none;
}

.hero__point[aria-pressed="true"] {
  color: var(--text);
  border-color: rgba(var(--gold-rgb), 0.6);
}

.hero__point[aria-pressed="true"] .hero__point-n {
  color: var(--gold);
}

.hero__caption {
  position: relative;
  z-index: 7;
  max-width: 460px;
  min-height: 3em;
  margin: 16px auto 0;
  padding-inline: var(--pad);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--text-4);
}

@media (min-width: 1200px) {
  .hero__points {
    position: absolute;
    left: 50%;
    top: calc(var(--phone-h) / 2);
    width: 0;
    height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
  }

  .hero__point {
    position: absolute;
    left: calc(cos(var(--a)) * var(--ring) / 2);
    top: calc(sin(var(--a)) * var(--ring) / 2);
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #A8A397;
    translate: calc(-100% + 8px) -50%;
  }

  .hero__point[data-side="right"] {
    flex-direction: row-reverse;
    translate: -8px -50%;
  }

  .hero__point-text {
    width: 250px;
    text-align: right;
  }

  .hero__point[data-side="right"] .hero__point-text {
    text-align: left;
  }

  .hero__point-t { font-size: 17px; }

  .hero__point-d {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: #86826F;
    transition: color 0.3s ease;
  }

  .hero__point-line {
    display: block;
    flex-shrink: 0;
    width: 28px;
    height: 1px;
    margin: 0 12px;
    background: rgba(var(--gold-rgb), 0.4);
    transition: background-color 0.3s ease;
  }

  .hero__point-dot {
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 4px rgba(10, 9, 6, 0.9);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }

  .hero__point[aria-pressed="true"] .hero__point-d { color: #C2BCAE; }
  .hero__point[aria-pressed="true"] .hero__point-line { background: var(--gold); }

  .hero__point[aria-pressed="true"] .hero__point-dot {
    background: var(--gold);
    box-shadow: 0 0 0 7px rgba(var(--gold-rgb), 0.18), 0 0 22px rgba(var(--gold-rgb), 0.65);
  }

  .hero__caption {
    display: none;
  }
}

/* Scroll-driven parallax (Chrome/Edge; other browsers stay static). */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__phone {
      animation: px-phone linear both;
      animation-timeline: scroll(root);
      animation-range: 0 900px;
    }

    .hero__orbitals {
      animation: px-rings linear both;
      animation-timeline: scroll(root);
      animation-range: 0 900px;
    }

    .hero__copy {
      animation: px-copy linear both;
      animation-timeline: scroll(root);
      animation-range: 0 600px;
    }
  }
}

@keyframes px-phone {
  to { transform: translateY(var(--px-phone)); }
}

@keyframes px-rings {
  to { transform: translateY(140px) scale(1.06); }
}

@keyframes px-copy {
  to { transform: translateY(80px); opacity: 0; }
}

/* ---------- Social proof ---------- */

.proof {
  padding: 72px 0;
  overflow: hidden;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof__inner {
  max-width: calc(1080px + 2 * var(--pad));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.proof__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
}

@media (min-width: 768px) {
  .proof__eyebrow { letter-spacing: 0.24em; }
}

.proof__eyebrow svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.proof__question {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-6);
}

.proof__quote {
  font-size: clamp(26px, 6.4vw, 42px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.proof__quote span {
  font-weight: 400;
  color: var(--gold);
}

.proof__rating {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}

.stars {
  position: relative;
  display: inline-block;
  width: 111px;
  height: 19px;
}

.stars__base,
.stars__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  display: flex;
  gap: 4px;
  overflow: hidden;
}

.stars__base { color: #3A362C; }
.stars__fill { color: var(--gold); }

.stars svg {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
}

.proof__score {
  font-size: 15px;
  font-weight: 500;
}

.proof__score-label {
  font-size: 14px;
  color: var(--text-5);
}

@media (min-width: 768px) {
  .proof { padding: 90px 0; }
  .proof__inner { gap: 26px; }
  .proof__rating { margin-top: 18px; }
}

/* Review marquee: three copies of the reviews (the extra two hidden from
   assistive tech) keep the loop seamless on screens up to ~2800px wide.
   Each loop moves the track by one copy: a third of its width plus a gap. */
.marquee {
  margin-top: 36px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc((-100% - 20px) / 3)); }
}

.review {
  flex-shrink: 0;
  width: 280px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--bg);
  text-align: start;
}

.review__stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.review__stars svg {
  width: 14px;
  height: 14px;
}

.review blockquote {
  font-size: 19px;
  font-weight: 300;
}

.review figcaption {
  font-size: 12px;
  color: var(--text-5);
}

@media (min-width: 768px) {
  .review {
    width: 340px;
    padding: 24px 26px;
  }

  .review blockquote { font-size: 20px; }
}

/* ---------- AI analysis today ---------- */

.read {
  padding: 72px 0;
}

.read__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.read__intro {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.read__title {
  font-size: clamp(38px, 9vw, 52px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.read__lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-3);
}

.read__note {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-5);
}

.read__meta {
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

.read__meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.12);
}

.read__meta dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-6);
}

.read__meta dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
}

.read__meta .read__next {
  color: var(--gold);
}

.read__status {
  align-self: flex-start;
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(92, 201, 154, 0.35);
  border-radius: 15px;
  color: #7DD9AE;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.read__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5CC99A;
}

.read__status.is-stale {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-4);
}

.read__status.is-stale .read__status-dot {
  background: var(--text-6);
}

.read__ctas {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.read__ctas .btn {
  white-space: normal;
  text-align: center;
}

.read__all {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* Cards. Phones: a horizontal swipe strip (landing.js drifts it slowly
   until the visitor first touches it, then snapping takes over).
   Tablet and up: a two-column grid. */
.read__cards {
  margin-inline: calc(var(--pad) * -1);
  padding: 4px var(--pad) 8px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}

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

.read__cards.is-user {
  scroll-snap-type: x mandatory;
}

.read__cards:focus-visible {
  outline-offset: -2px;
}

.read-card {
  flex: 0 0 min(80vw, 320px);
  min-height: 152px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-snap-align: start;
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.read-card:hover {
  color: var(--text);
  border-color: rgba(var(--gold-rgb), 0.55);
  transform: translateY(-3px);
}

.read-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Pair (the MCP instrument name) and signal badge, as on the AI Analysis
   listing. */
.read-card__pair {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.read-card__signal {
  flex-shrink: 0;
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.read-card__signal--sell { color: #F0716B; background: rgba(240, 113, 107, 0.12); }
.read-card__signal--buy { color: #5CC99A; background: rgba(92, 201, 154, 0.12); }
.read-card__signal--neutral { color: var(--text-4); background: rgba(255, 255, 255, 0.06); }

/* Only shown on cards older than the newest one (e.g. weekends, when
   only BITCOIN updates). */
.read-card__date {
  display: none;
  margin-top: -6px;
  font-size: 11px;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.38);
}

.read-card.is-older .read-card__date {
  display: block;
}

.read-card__summary {
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
}

.read-card__levels {
  padding-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.12);
}

.read-card__level {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.read-card__level-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-6);
}

.read-card__level-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
}

@media (min-width: 768px) {
  .read {
    padding: 100px 0;
  }

  .read__ctas {
    align-items: flex-start;
  }

  .read__all {
    text-align: start;
  }

  .read__cards {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (min-width: 1200px) {
  .read__grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .read__intro {
    position: sticky;
    top: 120px;
  }

  .read__ctas {
    align-items: stretch;
  }

  .read__all {
    text-align: center;
  }
}

@media (min-width: 1360px) {
  .read__grid {
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 64px;
  }
}

/* ---------- How it works ---------- */

.how {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}

.how__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.how__title {
  max-width: 960px;
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.how__lead {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-5);
  text-wrap: pretty;
}

/* Accordion (js/landing.js): one step open at a time, a gold bar on it.
   Below 992px the open step shows its screenshot inside the panel; from
   992px the screenshots sit in a column beside the list and crossfade. */
.how-steps {
  margin-top: 56px;
}

.how-steps__list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.how-step {
  position: relative;
  padding-inline-start: 22px;
  border-top: 1px solid var(--line);
}

.how-step::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.how-step.is-active::before {
  transform: scaleY(1);
}

.how-step__heading {
  margin: 0;
}

.how-step__trigger {
  width: 100%;
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 0;
  background: none;
  color: var(--text-4);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: color 0.2s ease;
}

.how-step__trigger:hover,
.how-step.is-active .how-step__trigger {
  color: var(--text);
}

.how-step__trigger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.how-step__kicker {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.how-step.is-active .how-step__kicker {
  opacity: 1;
}

.how-step__n {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0;
}

.how-step__title {
  font-size: clamp(22px, 5.4vw, 30px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.how-step__panel {
  padding: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-step__panel[hidden] {
  display: none;
}

.how-step__body {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-3);
}

.how-step__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* The Features page's marker: a gold dot in a thin ring. */
.how-step__points li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.how-step__points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), 0.6);
  background: radial-gradient(circle, var(--gold) 0 2.5px, transparent 3px);
}

.how-step__media {
  padding-top: 12px;
  display: flex;
  justify-content: center;
}

.how-step__img,
.how-preview__img {
  display: block;
  height: auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.85));
}

.how-step__media--phone .how-step__img {
  width: 200px;
}

.how-step__media--wide .how-step__img {
  width: 100%;
  max-width: 460px;
  border-radius: 14px;
}

.how-steps__preview {
  display: none;
}

@media (min-width: 768px) {
  .how {
    padding: 110px 0 60px;
  }

  .how-step__body {
    font-size: 17px;
  }
}

/* Beside the list: the screenshots stack and crossfade; the column keeps
   the phone's height so switching steps never moves the page. */
@media (min-width: 992px) {
  .how-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 64px;
    align-items: center;
  }

  .how-step__media {
    display: none;
  }

  .how-steps__preview {
    position: relative;
    height: 440px;
    display: block;
  }

  .how-preview__img {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }

  .how-preview__img.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .how-preview__img--phone {
    width: 230px;
  }

  .how-preview__img--wide {
    width: 100%;
    border-radius: 14px;
  }

  /* Scroll-through (js/landing.js, when the block fits the screen): the
     steps pin under the header while the page scrolls through the taller
     track, and each stretch of scrolling opens the next step. */
  .how-track.is-pinned .how-steps {
    position: sticky;
    top: var(--how-pin-top, 120px);
  }

  /* The list keeps its place as steps of different heights open. */
  .how-track.is-pinned .how-steps__list {
    align-self: start;
  }
}

@media (min-width: 1200px) {
  .how-steps {
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 96px;
  }

  .how-steps__preview {
    height: 460px;
  }

  .how-preview__img--phone {
    width: 240px;
  }
}

/* ---------- Tutorial ---------- */

.tutorial {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.tutorial__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.tutorial__title {
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tutorial__lead {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-5);
}

.tutorial__frame {
  width: 100%;
  max-width: 960px;
  margin-top: 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #000;
}

.tutorial__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tutorial__more {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .tutorial {
    padding: 96px 0;
  }

  .tutorial__lead {
    font-size: 17px;
  }
}

/* ---------- Features ---------- */

.features {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.features__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.features__title {
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.features__hint {
  font-size: 15px;
  color: var(--text-6);
}

.features__hint--touch {
  display: none;
}

@media (hover: none) {
  .features__hint--hover { display: none; }
  .features__hint--touch { display: inline; }
}

/* Below 992px: a single column; tapping a feature opens its text and
   screenshot in place (tap again to close). */
.features__grid {
  max-width: 680px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-show {
  display: none;
}

.feature-card {
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  border-radius: 22px;
  background: var(--surface);
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.feature-card.is-active {
  border-color: rgba(var(--gold-rgb), 0.7);
  background: var(--surface-hi);
}

.feature-card__btn {
  width: 100%;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--text);
  text-align: start;
  cursor: pointer;
}

.feature-card__icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--gold-rgb), 0.45);
  border-radius: 50%;
  color: var(--gold);
  transition: border-color 0.3s ease;
}

.feature-card.is-active .feature-card__icon {
  border-color: var(--gold);
}

.feature-card__icon svg {
  width: 20px;
  height: 20px;
}

.feature-card__title {
  font-size: 17px;
  font-weight: 500;
}

.feature-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-5);
}

.feature-card__panel {
  display: none;
  padding: 0 22px 26px;
}

.feature-card.is-active .feature-card__panel {
  display: block;
}

.feature-card__panel p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-4);
}

.feature-card__img {
  display: block;
  margin: 22px auto 0;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.85));
}

.feature-card__img--phone {
  width: 220px;
}

.feature-card__img--wide {
  width: 100%;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .features {
    padding: 96px 0;
  }

  .features__grid {
    margin-top: 52px;
  }
}

/* 992px and up: the mockup's bento. The large card shows the hovered,
   focused or clicked feature; leaving the grid returns to the lead one. */
@media (min-width: 992px) {
  .features__grid {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 18px;
  }

  .feature-show {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
    overflow: hidden;
    padding: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 28px;
    border: 1px solid rgba(var(--gold-rgb), 0.3);
    border-radius: 22px;
    background: var(--surface);
  }

  .feature-show__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }

  .feature-show__kicker {
    letter-spacing: 0.24em;
  }

  .feature-show__title {
    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }

  .feature-show__body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-4);
  }

  .feature-show__media {
    position: relative;
    background: radial-gradient(closest-side, rgba(var(--gold-rgb), 0.18), transparent);
  }

  .feature-show__img {
    position: absolute;
    left: 50%;
    top: 50%;
    height: auto;
    translate: -50% -50%;
    opacity: 0;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.85));
    transition: opacity 0.5s ease;
    pointer-events: none; /* hidden ones must not catch the pointer */
  }

  .feature-show__img.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Phones are sized by the box's height, so they always fit inside it
     with room above and below; wide images by its width. */
  .feature-show__img--phone {
    width: auto;
    height: 100%;
  }

  .feature-show__img--wide {
    width: 100%;
    border-radius: 12px;
  }

  .feature-card--lead,
  .feature-card .feature-card__panel,
  .feature-card.is-active .feature-card__panel {
    display: none;
  }

  .feature-card:hover {
    transform: translateY(-3px);
  }

  .feature-card__btn {
    height: 100%;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .feature-card__title {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  .feature-show {
    padding: 44px;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
  }

  .feature-show__title {
    font-size: 34px;
  }

  .feature-show__body {
    font-size: 16px;
  }

}

/* ---------- FAQ ---------- */

.faq {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.faq__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
}

.faq__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__title {
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.faq__more {
  padding-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.faq__cols {
  margin-top: 40px;
  display: grid;
  gap: 0 56px;
  align-items: start;
}

.faq__col {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}

/* On one column the second list continues the first without a double line. */
.faq__col + .faq__col {
  border-top: 0;
}

.faq__item {
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.16);
}

.faq__item summary {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  color: var(--text);
}

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

.faq__plus {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--gold-rgb), 0.45);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq__item[open] .faq__plus {
  transform: rotate(45deg);
}

.faq__item p {
  padding: 0 44px 22px 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-4);
}

@media (min-width: 768px) {
  .faq {
    padding: 96px 0;
  }

  .faq__cols {
    margin-top: 48px;
  }

  .faq__item summary {
    padding: 22px 0;
  }
}

@media (min-width: 992px) {
  .faq__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq__col + .faq__col {
    border-top: 1px solid var(--line-strong);
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__screen {
    transition: none;
  }

  /* The marquee becomes a strip the visitor scrolls by hand. */
  .marquee {
    overflow-x: auto;
    padding-inline: var(--pad);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__track {
    animation: none;
  }

  .review[aria-hidden="true"] {
    display: none;
  }
}

/* ---------- Arabic ---------- */

/* Arabic has no italic; emphasis stays upright, in gold. */
:lang(ar) .hero__title em {
  font-style: normal;
}

:lang(ar) .hero__title .hero__eyebrow {
  font-size: 13px;
}

/* Right to left the review track starts at the right edge, so it moves
   the other way to stay seamless. */
[dir="rtl"] .marquee__track {
  animation-name: marquee-rtl;
}

@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(calc((100% + 20px) / 3)); }
}
