/* ==========================================================================
   SLYNUMBER /features — Figma "SLYNUMBER Website", page "Features" (node 868-954)
   Desktop frame 868:955 (1440px wide, 1209px content column).
   Linked from the CMS document's <head> AFTER homepage.css, whose shared
   primitives this page reuses as-is: .hp-h2, .hp-gradient, .hp-split-*,
   .hp-feature-*, .hp-ix-rule-*, .hp-ix-banner. Page-only classes are
   prefixed ft- and scoped under .ft-page (the <main>), so they cannot leak
   into the shared header/footer partials.
   Source copies of the four documents: cms-content/Features Page/features-<locale>.html
   ========================================================================== */

.ft-page {
  --ft-ink: #000;
  --ft-muted: #747785;
  --ft-paragraph: #6f7180;
  --ft-stroke: #b7b7b7;
  --ft-panel: #ebeef4;
  --ft-gradient: linear-gradient(90deg, #7248f1, #836ef9 50%, #ad87ff);
  background: #f3f3f3;
  color: var(--ft-ink);
  font-family: Montserrat, 'Montserrat Fallback', sans-serif;
  overflow: hidden;
}

/* 1209px content + 24px gutters, like the compare pages */
.ft-page .ft-container {
  width: 100%;
  max-width: 1257px;
  margin: 0 auto;
  padding: 0 24px;
}
.ft-page .ft-section { padding: 30px 0; }
.ft-page .ft-section-head { margin: 0 0 35px; }

/* Scroll reveal (same motion as the homepage). Only hidden when JS runs
   (html.w-mod-js comes from the inline head script), so no-JS visitors see
   every section. */
.ft-page .ft-reveal { transition: opacity .7s ease, transform .7s ease; }
html.w-mod-js .ft-page .ft-reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  .ft-page .ft-reveal { transition: none; }
  html.w-mod-js .ft-page .ft-reveal:not(.is-visible) { opacity: 1; transform: none; }
}

/* Screen-reader-only text */
.ft-page .ft-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   HERO — heading row + feature showcase (accordion left, phone right)
   -------------------------------------------------------------------------- */
.ft-page .ft-hero { padding: 171px 0 34px; }

.ft-page .ft-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
}
.ft-page .ft-h1 {
  flex-shrink: 0;
  margin: 0;
  max-width: 562px;
  font-size: 58px;
  font-weight: 700;
  line-height: 60px;
  letter-spacing: -0.04em;
  color: var(--ft-ink);
}
.ft-page .ft-hero-lead {
  margin: 0;
  max-width: 575px;
  font-size: 18px;
  font-weight: 400;
  line-height: 31px;
  letter-spacing: -0.04em;
  color: var(--ft-muted);
}

/* Panel: light #ebeef4; dark mode fades in the Figma "Dark gradient" */
.ft-page .ft-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 536fr) minmax(0, 668fr);
  column-gap: 5px;
  border-radius: 20px;
  background: var(--ft-panel);
  overflow: hidden;
  isolation: isolate;
}
.ft-page .ft-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #2f2f2f 0%, #262626 63.462%, #000 100%);
  opacity: 0;
  transition: opacity .35s ease;
}
.ft-page .ft-showcase.is-dark::before { opacity: 1; }

.ft-page .ft-acc {
  list-style: none;
  margin: 0;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* One feature card. Icon sits absolutely so it stays centred on the whole
   card (title + description) like the Figma auto-layout. */
.ft-page .ft-acc-item {
  position: relative;
  width: 100%;
  max-width: 435px;
  margin: 0;
  padding: 15px 15px 15px 57px;
  border-radius: 20px;
  background: #fff;
  color: var(--ft-ink);
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color .35s ease, color .35s ease, box-shadow .2s ease;
}
.ft-page .ft-acc-item.is-open { box-shadow: inset 0 0 0 1px var(--ft-stroke); }

.ft-page .ft-acc-head {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
/* The whole card is the click target (and carries the card-shaped focus ring) */
.ft-page .ft-acc-head::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
}
.ft-page .ft-acc-item.is-open .ft-acc-head { cursor: default; }
.ft-page .ft-acc-head:focus { outline: none; }
.ft-page .ft-acc-head:focus-visible::after {
  outline: 2px solid #7045f0;
  outline-offset: 2px;
}
.ft-page .ft-acc-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.04em;
}
.ft-page .ft-acc-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  background: url("/images/features/icon-plus-circle.svg") center / 32px 32px no-repeat;
  pointer-events: none;
}
.ft-page .ft-acc-item.is-open .ft-acc-icon { background-image: url("/images/features/icon-minus-circle.svg"); }

.ft-page .ft-acc-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: -0.04em;
}
/* Figma text frames are 333px wide inside the 435px card */
.ft-page .ft-acc-title,
.ft-page .ft-acc-body p { max-width: 333px; }
.ft-page .ft-acc-body[hidden] { display: none; }
.ft-page .ft-acc-body p { margin: 0; }

/* Appearance: a mode dot instead of +/−; open state drops the dot and shows
   the light/dark switch (Figma 1051:697 / 1028:382) */
.ft-page .ft-acc-item.is-appearance { padding-left: 55px; }
.ft-page .ft-acc-item.is-appearance .ft-acc-icon {
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border: 3px solid #7248f1;
  border-radius: 50%;
  background: #fff;
}
.ft-page .ft-acc-item.is-appearance.is-open {
  padding-left: 15px;
  background: var(--ft-panel);
  box-shadow: none;
}
.ft-page .ft-acc-item.is-appearance.is-open .ft-acc-icon { display: none; }
.ft-page .ft-acc-item.is-appearance .ft-acc-body p { margin-top: 8px; }

.ft-page .ft-mode-switch {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.ft-page .ft-mode-opt {
  --fill: #fff;
  --ring: var(--ft-stroke);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(var(--fill), var(--fill)) padding-box,
              linear-gradient(var(--ring), var(--ring)) border-box;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ft-page .ft-mode-opt[data-mode="dark"] { --fill: #000; --ring: #868686; }
.ft-page .ft-mode-opt[aria-checked="true"] {
  background: linear-gradient(var(--fill), var(--fill)) padding-box,
              var(--ft-gradient) border-box;
}
.ft-page .ft-mode-opt:focus { outline: none; }
.ft-page .ft-mode-opt:focus-visible { outline: 2px solid #7045f0; outline-offset: 2px; }

/* Dark mode (Figma Hero_*_dark frames) */
.ft-page .ft-showcase.is-dark .ft-acc-item { background: #444; color: #fff; }
.ft-page .ft-showcase.is-dark .ft-acc-item.is-appearance.is-open { background: #2f2f2f; }
.ft-page .ft-showcase.is-dark .ft-acc-icon { background-image: url("/images/features/icon-plus-circle-white.svg"); }
.ft-page .ft-showcase.is-dark .ft-acc-item.is-open .ft-acc-icon { background-image: url("/images/features/icon-minus-circle-white.svg"); }
.ft-page .ft-showcase.is-dark .ft-acc-item.is-appearance .ft-acc-icon { background: #000; }
/* the purple ring is too dark on #2f2f2f / #444 (2.4:1): lavender in dark mode */
.ft-page .ft-showcase.is-dark .ft-acc-head:focus-visible::after,
.ft-page .ft-showcase.is-dark .ft-mode-opt:focus-visible { outline-color: #ad87ff; }

/* Phone screenshots: one <img> per feature, cross-faded. Each WebP is the
   Figma box render (crop baked in), transparent around the device. */
.ft-page .ft-showcase-media {
  position: relative;
  align-self: stretch;
  aspect-ratio: 668 / 689;
}
.ft-page .ft-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity .35s ease;
}
.ft-page .ft-shot.is-active { opacity: 1; }

/* --------------------------------------------------------------------------
   SECTION 2 — A real U.S. mobile number (reuses .hp-split / .hp-feature-*)
   -------------------------------------------------------------------------- */
.ft-page .ft-real .hp-split-grid { grid-template-columns: minmax(0, 594px) 553px; justify-content: space-between; gap: 59px; }
.ft-page .ft-real .hp-split-text { gap: 35px; }
.ft-page .ft-real .hp-body { color: #3c3d3f; }
.ft-page .ft-real .hp-feature-card { padding: 25px 14px; }
.ft-page .ft-real .hp-feature-list { gap: 12px; }
.ft-page .ft-real .hp-feature-row { margin: 0; padding: 0 20px; }

/* --------------------------------------------------------------------------
   SECTION 3 — See the benefits (auto-rotating carousel, 5s)
   -------------------------------------------------------------------------- */
/* clip (not hidden): a hidden box can still be scrolled by text-fragment links
   or scrollIntoView, which would leave the carousel offset */
.ft-page .ft-slider-viewport { overflow: hidden; overflow: clip; }
html:not(.w-mod-js) .ft-page .ft-slider-viewport { overflow-x: auto; }
.ft-page .ft-slider-track {
  display: flex;
  gap: 35px;
  will-change: transform;
  touch-action: pan-y;
}
.ft-page .ft-slide {
  position: relative;
  flex: 0 0 368px;
  height: 591px;
  margin: 0;
  padding: 33px 25px;
  border: 0.2px solid #000;
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
}
.ft-page .ft-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ft-page .ft-slide-title {
  position: relative;
  margin: 0;
  max-width: 276px;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -0.04em;
  color: #fff;
}
.ft-page .ft-slide.is-ink .ft-slide-title { color: var(--ft-ink); }
.ft-page .ft-slide-body {
  position: relative;
  margin: 16px 0 0;
  max-width: 264px;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.04em;
  color: var(--ft-paragraph);
}
.ft-page .ft-slider-buttons {
  display: flex;
  justify-content: center;
  gap: 19px;
  padding: 55px 49px 10px;
}
.ft-page .ft-slider-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease;
}
.ft-page .ft-slider-btn:hover { transform: scale(1.06); }
.ft-page .ft-slider-btn:focus { outline: none; }
.ft-page .ft-slider-btn:focus-visible { outline: 2px solid #7045f0; outline-offset: 3px; }
.ft-page .ft-slider-btn img { display: block; }
/* Figma "Arrow right" variant: white disc + 0.2px stroke + CaretRight */
.ft-page .ft-slider-btn.is-next {
  background: #fff;
  box-shadow: inset 0 0 0 0.2px var(--ft-stroke);
}
.ft-page .ft-slider-btn.is-next img { position: absolute; left: 18.25px; top: 10.5px; width: 29px; height: 29px; }

/* --------------------------------------------------------------------------
   SECTION 4 — Optimized for iPad (copy laid over the transparent right side)
   -------------------------------------------------------------------------- */
.ft-page .ft-ipad-section { padding-bottom: 20px; }
.ft-page .ft-ipad {
  position: relative;
  max-width: 1189px;
  aspect-ratio: 1189 / 591;
  border-radius: 30px;
  overflow: hidden; /* Figma clips the cut-off iPad to the 30px box corners */
}
.ft-page .ft-ipad-media,
.ft-page .ft-ipad-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 98.318%; /* 1169 of 1189: the export is trimmed at the shadow's end */
  height: 100%;
}
.ft-page .ft-ipad-media img { width: 100%; object-fit: contain; object-position: left center; }
.ft-page .ft-ipad-copy {
  position: absolute;
  left: 59.462%;
  top: 25.381%;
  width: 40.538%;
}
.ft-page .ft-ipad-title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: -0.04em;
  color: var(--ft-ink);
}
.ft-page .ft-ipad-body {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: -0.04em;
  color: var(--ft-ink);
}

/* --------------------------------------------------------------------------
   SECTION 5 — SlyAI (ruled list left, photo right; reuses .hp-ix-rule-*)
   -------------------------------------------------------------------------- */
.ft-page .ft-ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 626fr) minmax(0, 548fr);
  gap: 35px;
  align-items: end;
}
.ft-page .ft-ai-text { display: flex; flex-direction: column; gap: 20px; }
.ft-page .ft-ai-text .hp-ix-rule-list { max-width: 536px; }
.ft-page .ft-ai-text .hp-ix-rule-item p { max-width: 479px; }
.ft-page .ft-rule-desc { font-weight: 400; }
.ft-page .ft-ai-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 548 / 719;
  object-fit: cover;
  border-radius: 40px;
}

/* --------------------------------------------------------------------------
   FAQ (shared partial, Strapi questions) — Figma 1234:484: no eyebrow, 48px
   heading, full-width two-column cards (#e0e0e0 stroke, 18px radius, 24px
   padding, 24px caret). The accordion animates .accordion-content's
   max-height (overflow hidden), so the answer is pulled up by moving that
   clip box itself (relative top), never by a negative margin on the answer,
   which would push its first line out of the clip.
   -------------------------------------------------------------------------- */
.ft-page .ft-faq .section { padding-top: 64px; padding-bottom: 30px; }
.ft-page .ft-faq .content { max-width: 1209px; }
.ft-page .ft-faq .block-heading { margin-bottom: 0; }
.ft-page .ft-faq .subtitle { display: none; }
.ft-page .ft-faq .heading {
  max-width: 505px;
  margin: 0 auto 27px;
  font-size: 48px;
  font-weight: 700;
  line-height: 53px;
  letter-spacing: -0.04em;
}
.ft-page .ft-faq .grid-faq { column-gap: 24px; row-gap: 10px; }
.ft-page .ft-faq .block-faq { row-gap: 10px; }
.ft-page .ft-faq .accordion-item {
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  box-shadow: none;
}
.ft-page .ft-faq .accordion-header { padding: 24px; }
.ft-page .ft-faq .icon-arrow { width: 24px; height: 24px; margin-right: 14px; }
.ft-page .ft-faq .heading-accordion {
  font-size: 24px;
  font-weight: 600;
  line-height: 31px;
  letter-spacing: -0.04em;
  color: var(--ft-ink);
}
.ft-page .ft-faq .accordion-content { position: relative; top: -16px; padding-left: 62px; padding-right: 24px; }
.ft-page .ft-faq .paragraph-accordion {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ft-paragraph);
}
@media screen and (min-width: 992px) {
  .ft-page .ft-faq .section { padding-left: 24px; padding-right: 24px; }
  /* Figma's SlyAI text column runs 13px below the photo */
  .ft-page .ft-ai-img { margin-bottom: 13px; }
}

/* Desktop (Figma width): collapsed cards are 62px tall like the Figma rows,
   where the 32px icon sets the height (here it is absolutely positioned) */
@media screen and (min-width: 1209px) {
  .ft-page .ft-acc-item:not(.is-open) { padding-top: 17px; padding-bottom: 17px; }
  .ft-page .ft-acc-item.is-appearance:not(.is-open) { padding-top: 18.5px; padding-bottom: 18.5px; }
}

/* Banner → shared footer CTA: Figma leaves 44px (the theme's footer adds 92px) */
.ft-page > .ft-section:last-child { padding-bottom: 0; }
.ft-page + .section-footer { padding-top: 44px; }

/* ==========================================================================
   LAPTOP  (≤ 1208px) — two columns kept; tighten the accordion so the list
   always fits the phone column's height
   ========================================================================== */
@media screen and (max-width: 1208px) {
  .ft-page .ft-acc { gap: 10px; padding: 16px 20px; }
  .ft-page .ft-acc-item { padding: 11px 12px 11px 52px; }
  .ft-page .ft-acc-item.is-appearance { padding-left: 50px; }
  .ft-page .ft-acc-item.is-appearance.is-open { padding-left: 12px; }
  .ft-page .ft-acc-icon { left: 12px; }
  .ft-page .ft-acc-title { font-size: 18px; }

  .ft-page .ft-real .hp-split-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 553px); gap: 40px; }

  .ft-page .ft-ipad-title { font-size: 30px; line-height: 36px; }
  .ft-page .ft-ipad-body { margin-top: 14px; font-size: 15px; line-height: 26px; }
}

/* ==========================================================================
   TABLET  (≤ 991px) — single column; the phone moves into the open card
   (custom JS below), the iPad copy drops under the device
   ========================================================================== */
@media screen and (max-width: 991px) {
  .ft-page .ft-hero { padding-top: 140px; }
  .ft-page .ft-hero-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ft-page .ft-h1 { font-size: 48px; line-height: 52px; }

  .ft-page .ft-showcase { grid-template-columns: minmax(0, 1fr); }
  .ft-page .ft-acc { padding: 16px; gap: 10px; }
  .ft-page .ft-acc-item { max-width: none; }
  .ft-page .ft-acc-item .ft-acc-icon { top: 26px; margin-top: -16px; }
  .ft-page .ft-acc-item.is-appearance .ft-acc-icon { margin-top: -15px; }
  /* Without JS the phone stays under the list */
  .ft-page .ft-showcase > .ft-showcase-media { width: 100%; max-width: 560px; justify-self: center; }
  /* With JS it sits inside the open card, full card width */
  .ft-page .ft-acc-item > .ft-showcase-media {
    margin: 14px -12px -11px -52px;
    aspect-ratio: 668 / 689;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
  }
  .ft-page .ft-acc-item.is-appearance > .ft-showcase-media { margin-left: -12px; }
  /* these three screenshots are cut at their top edge: fade it under the card text */
  .ft-page .ft-acc-item:is([data-shot="callerid"], [data-shot="forwarding"], [data-shot="spam"]) > .ft-showcase-media {
    -webkit-mask-image: linear-gradient(transparent, #000 48px);
    mask-image: linear-gradient(transparent, #000 48px);
  }

  .ft-page .ft-real .hp-split-grid { grid-template-columns: 1fr; }

  .ft-page .ft-slide { flex-basis: 320px; height: auto; aspect-ratio: 368 / 591; }

  /* Stacked: only the image keeps the rounded clip, so the copy below is never cut */
  .ft-page .ft-ipad { aspect-ratio: auto; display: flex; flex-direction: column; gap: 24px; overflow: visible; border-radius: 0; }
  .ft-page .ft-ipad-media,
  .ft-page .ft-ipad-media img { position: static; width: 100%; height: auto; }
  .ft-page .ft-ipad-media { display: block; max-width: 640px; overflow: hidden; border-radius: 30px; }
  .ft-page .ft-ipad-copy { position: static; width: auto; max-width: 600px; }

  .ft-page .ft-ai-grid { grid-template-columns: 1fr; gap: 32px; }
  .ft-page .ft-ai-img { max-width: 548px; justify-self: center; }
}

/* ==========================================================================
   MOBILE  (≤ 767px)
   ========================================================================== */
@media screen and (max-width: 767px) {
  .ft-page .ft-container { padding: 0 16px; }
  .ft-page .ft-section { padding: 24px 0; }
  .ft-page .ft-hero { padding-top: 120px; padding-bottom: 24px; }
  .ft-page .ft-h1 { font-size: 38px; line-height: 44px; }
  .ft-page .ft-hero-lead { font-size: 16px; line-height: 26px; }
  .ft-page .ft-acc { padding: 12px; }
  .ft-page .ft-acc-title { font-size: 17px; line-height: 26px; }
  .ft-page .ft-acc-body { font-size: 15px; line-height: 19px; }
  .ft-page .ft-acc-item .ft-acc-icon { top: 24px; }

  .ft-page .ft-real .hp-feature-card { padding: 14px 6px; }

  .ft-page .ft-slider-track { gap: 16px; }
  .ft-page .ft-slide { flex-basis: min(300px, calc(100vw - 64px)); padding: 26px 20px; border-radius: 24px; }
  .ft-page .ft-slide-title { font-size: 24px; line-height: 28px; }
  .ft-page .ft-slider-buttons { padding-top: 28px; }

  .ft-page .ft-ipad-title { font-size: 26px; line-height: 32px; }

  .ft-page .ft-ai-img { border-radius: 30px; }

  .ft-page .ft-faq .section { padding-top: 34px; }
  .ft-page .ft-faq .heading { font-size: 32px; line-height: 38px; margin-bottom: 20px; }
  .ft-page .ft-faq .accordion-header { padding: 18px; }
  .ft-page .ft-faq .icon-arrow { margin-right: 10px; }
  .ft-page .ft-faq .heading-accordion { font-size: 18px; line-height: 24px; }
  .ft-page .ft-faq .accordion-content { top: -10px; padding-left: 52px; padding-right: 18px; }
  .ft-page .ft-faq .paragraph-accordion { margin: 0 0 8px; font-size: 14px; }
}

/* ==========================================================================
   SMALL PHONES  (≤ 400px) — keeps the translated h1s on two lines
   ("les fonctionnalités" needs ~338px at 38px)
   ========================================================================== */
@media screen and (max-width: 400px) {
  .ft-page .ft-h1 { font-size: 34px; line-height: 40px; }
}
