/* ==========================================================================
   FITORA — light studio, product-first landing
   ========================================================================== */

:root {
  /* global background/surface — reuses the lighter tone sampled from the
     hero photo backdrop, so the rest of the page reads as a continuation
     of the same studio wall rather than a different theme */
  --bg: #0d0d0d;
  --bg-elev: rgba(255, 255, 255, 0.06);
  --bg-elev-2: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.28);

  --ink: #ffffff;
  --ink-dim: #d4d1c9;
  --ink-faint: #a8a399;

  /* wine-red accent — used for eyebrow text, FAQ icons, and focus rings */
  --accent-deep: #7a1f45;

  /* hero background — sampled from assets/hero-runway.png backdrop
     (10% / 90% across the visible, unoccluded background band, y 0.01–0.06,
     full width — the only band clear of the crowd/models) */
  --hero-bg-dark: #abaaa8;
  --hero-bg-light: #b1b0ae;
  --hero-title-highlight: #2c5fb8;

  --font-head: "Sora", "Inter", sans-serif;
  --font-head-weight: 700;
  --font-head-style: normal;
  --font-body: "Inter", sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1080px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- focus ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 620px; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 0;
  margin-bottom: 20px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* single unified CTA treatment — transparent fill, thin dark border */
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: rgba(17, 17, 17, 0.06); }

.btn-lg { padding: 16px 32px; font-size: 15.5px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.header-inner .btn-sm { padding: 10px 26px; }
.btn-block { width: 100%; }
.header-cta-mobile { display: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.7);
  /* backdrop-filter removed: caused a scroll stutter crossing from the hero
     into "Comment ça marche", confirmed by manual A/B testing */
  border-bottom: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-img { height: 36px; width: auto; display: block; filter: brightness(0) invert(1); }
.logo--sm .logo-img { height: 24px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-toggle-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  color: var(--ink-faint);
  font-family: inherit;
  line-height: 1;
}
.lang-toggle-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}
.lang-toggle-btn.is-active {
  background: #ffffff;
  color: #111111;
}
.lang-toggle-sep {
  color: var(--ink-faint);
  opacity: 0.35;
  font-size: 11px;
  user-select: none;
}

@media (max-width: 480px) {
  .logo-img { height: 24px; }
  .header-inner .btn-sm { padding: 8px 14px; font-size: 12px; }
  .header-cta-desktop { display: none; }
  .header-cta-mobile { display: inline; }
  .lang-toggle-btn { padding: 4px 7px; font-size: 10.5px; }
  .lang-toggle-sep { font-size: 9px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: 56px 0 88px;
  background: linear-gradient(90deg, var(--hero-bg-dark) 0%, var(--hero-bg-light) 100%);
}

.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  z-index: 1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25vh;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 760px) {
  .hero {
    height: auto;
    min-height: unset;
    aspect-ratio: 3 / 4;
    align-items: flex-end;
    padding-bottom: 24px;
  }
  .hero-portrait {
    /* height-constrained cover: the full image height (head to floor) is
       always shown here regardless of this value — only X shifts the crop */
    object-position: 50% 35%;
  }
  .hero::after {
    height: 60vh;
  }
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 760px) {
  .hero-inner {
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
  }
}

.hero-title {
  font-family: var(--font-head);
  font-weight: var(--font-head-weight);
  font-style: var(--font-head-style);
  font-size: clamp(2.25rem, 5.2vw, 3.8rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 32px;
  color: var(--ink);
}

.hero-title-highlight {
  color: var(--hero-title-highlight);
}

.hero-title-leading,
.hero-title-last {
  display: inline;
}

@media (max-width: 760px) {
  .hero-title {
    font-size: clamp(1.5rem, 7.5vw, 1.8rem);
    max-width: 100%;
  }
  .hero-title-leading {
    display: block;
    white-space: nowrap;
  }
  .hero-title-last {
    display: block;
    text-align: center;
  }
}

/* ========================================
   HERO UPLOAD ZONE
   ======================================== */
.hero-upload-zone {
  width: 100%;
  max-width: min(480px, calc(100vw - 56px));
  margin: 0 auto;
  border-radius: 9999px;
  border: 1px solid rgba(20,17,15,0.15);
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
  font-family: 'Outfit', sans-serif;
}
.hero-upload-zone:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.hero-upload-zone.drag-over { border-color: #14110f; }

.btn-hero {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 600;
  padding: 18px 46px;
  background: #ffffff;
  color: #111111;
  border: none;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.btn-hero:hover { background: rgba(255, 255, 255, 0.85); transform: translateY(-1px); }
.btn-hero:active { transform: translateY(0); }

.hero-cta {
  position: relative;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* soft localized glow — guarantees AA contrast (4.5:1+) for the CTA + fine
   print where they overlap the darker (multiply-blended) part of the image */
.hero-cta::before {
  content: "";
  position: absolute;
  inset: -28px -56px;
  z-index: -1;
  background: rgba(255, 255, 255, 0.38);
  filter: blur(30px);
  border-radius: 100px;
}

.hero-fine { font-size: 12.5px; color: var(--ink); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.35);
}

/* Keep the hero and language controls in their original sans-serif style. */
.site-header .btn,
.lang-toggle-btn,
.hero-title,
.hero-cta,
.hero-cta .btn {
  font-family: "Outfit", sans-serif;
}

/* ========================================
   TAGLINE
   ======================================== */
.tagline { padding: 32px 0; }
.tagline .section-title { text-align: center; max-width: none; margin: 0 auto; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how-it-works { padding: 88px 0; }
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 22ch;
  margin-top: 0;
  margin-bottom: 48px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step-icon { width: 28px; height: 28px; color: var(--ink); margin-bottom: 18px; }
.step h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.step p { font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; max-width: 32ch; }

@media (max-width: 760px) {
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-title { margin-bottom: 36px; }
}

/* ==========================================================================
   BENEFITS
   ========================================================================== */
.benefits { padding: 88px 0; border-top: 1px solid var(--border); }
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.benefits-compare { position: relative; }
.compare-figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.compare-figure { display: flex; flex-direction: column; gap: 12px; }
.compare-img {
  aspect-ratio: 941 / 1672;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 6px;
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.1);
}
/* both photos are now cropped to the same 941x1672 ratio as the frame,
   so cover fills the card edge to edge with no gap and no distortion */
.compare-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius-sm) - 4px);
}
.compare-figure:first-child .compare-img img { filter: grayscale(1); }

.compare-figure figcaption {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.compare-arrow {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 18px;
}
@media (min-width: 761px) {
  .site-header .wrap {
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
  }
  .compare-arrow { display: flex; }
  .hero-title,
  .hero-cta .btn,
  .hero-badge {
    transform: scale(1.15);
    transform-origin: center;
  }
  .hero-cta .btn:hover {
    transform: translateY(-1px) scale(1.15);
  }
}

.benefits-content { display: flex; flex-direction: column; gap: 40px; }
.benefits-list { display: flex; flex-direction: column; gap: 28px; }
.benefit-item { border-top: 1px solid var(--border); padding-top: 20px; }
.benefit-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
}
.benefit-item p:last-child { font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; }

@media (max-width: 760px) {
  .benefits-grid { grid-template-columns: 1fr; gap: 40px; }
  .compare-figures { grid-template-columns: 1fr; gap: 20px; }
}

/* ==========================================================================
   REVIEWS MARQUEE
   ========================================================================== */
.reviews {
  padding: 88px 0;
  border-top: none;
  overflow: hidden;
}

.reviews .wrap {
  margin-bottom: 48px;
}

.reviews .section-title {
  margin-bottom: 0;
}

.reviews-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: #14110f;
  font-family: "Outfit", var(--font-body), sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.reviews-verified-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* fade-out mask on left/right edges */
.rev-marquee-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rev-marquee-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.rev-row {
  width: 100%;
  overflow: hidden;
}

.rev-row--bottom {
  padding-left: clamp(32px, 6vw, 96px);
}

.rev-row-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: max-content;
  animation: rev-marquee 50s linear infinite;
  will-change: transform;
}

.rev-row--bottom .rev-row-track {
  animation-name: rev-marquee-reverse;
  animation-duration: 56s;
}

@keyframes rev-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 8px)); }
}

@keyframes rev-marquee-reverse {
  from { transform: translateX(calc(-50% - 8px)); }
  to   { transform: translateX(0); }
}

/* individual card */
.rev-card {
  width: min(224px, calc((100vw - 44px) / 2));
  flex-shrink: 0;
  background: #ffffff;
  color: #111111;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rev-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rev-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #14110f;
  color: #f5f3f0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rev-name {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: #111111;
  line-height: 1.2;
}

.rev-stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* half-star: two SVGs absolutely stacked */
.rev-star-half {
  position: relative;
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.rev-quote {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: #111111;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rev-row-track { animation: none; }
}

@media (max-width: 640px) {
  .rev-marquee-outer {
    gap: 10px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }

  .rev-marquee-track,
  .rev-row-track {
    gap: 10px;
  }

  .rev-row--bottom {
    padding-left: 20px;
  }

  .rev-card {
    padding: 14px;
    gap: 9px;
  }

  .rev-header {
    gap: 7px;
  }

  .rev-avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .rev-name {
    font-size: 12.5px;
  }

  .rev-quote {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: 0 0 96px; }
.faq-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
}
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
}
.faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink-dim);
  transition: transform 0.2s var(--ease);
}
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translateX(-50%) scaleY(0); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.25s var(--ease);
}
.faq-answer > p {
  overflow: hidden;
  font-size: 13.5px;
  color: var(--ink-dim);
  padding-right: 30px;
  line-height: 1.65;
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > p { padding-bottom: 20px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal { font-size: 11.5px; color: var(--ink-dim); max-width: 56ch; text-align: right; }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
