/* ============================================================
 * partner.gety.fr/estorie — co-branded landing page styles
 * Mobile-first. No preprocessor. Design tokens at :root.
 * ============================================================ */

:root {
  /* Gety */
  --gety-primary: #9c1aff;
  --gety-primary-hover: #7400cc;
  --gety-gold: #caa869;
  --gety-gold-deep: #5f3e00;
  --gety-cream: #f4e5ff;
  --gety-form-bg: #f6f2f9;
  --gety-ink: #050505;

  /* Estorie */
  --estorie-terracotta: #e16335;
  --estorie-terracotta-dark: #c1491d;
  --estorie-blush: #fbe9e2;
  --estorie-warm-bg: #f9f8f5;
  --estorie-ink: #212121;
  --estorie-muted: #8f8f8f;
  --estorie-muted-body: #5f6770;

  /* fonts */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:
    "Figtree", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-action:
    "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* layout */
  --container-max: 1200px;
  --gap-section-mobile: 56px;
  --gap-section-desktop: 96px;

  /* easing */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-long: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--estorie-warm-bg);
  color: var(--estorie-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gety-primary);
  text-decoration: none;
  transition: color 200ms var(--ease-standard);
}

a:hover {
  color: var(--gety-primary-hover);
}

/* container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 769px) {
  .container {
    padding: 0 40px;
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 64px;
  }
}

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

/* skip-link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gety-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 100px;
  font-family: var(--font-action);
  font-weight: 600;
  font-size: 14px;
  z-index: 100;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 16px;
  outline: 3px solid var(--gety-primary-hover);
  outline-offset: 3px;
  color: #fff;
}

/* focus rings — WCAG AAA */
:focus-visible {
  outline: 3px solid var(--gety-primary-hover);
  outline-offset: 3px;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 5px var(--gety-primary);
  border-radius: 4px;
}

/* -------------------- header -------------------- */
.site-header {
  background: var(--estorie-warm-bg);
  border-bottom: 1px solid rgba(225, 99, 53, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
  opacity: 0;
  transform: translateY(-8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
@media (min-width: 769px) {
  .header-inner {
    min-height: 80px;
    flex-wrap: nowrap;
  }
}

.logo-estorie img {
  height: 28px;
}
.logo-gety img {
  height: 22px;
}
@media (min-width: 769px) {
  .logo-estorie img {
    height: 36px;
  }
  .logo-gety img {
    height: 28px;
  }
}

.relationship {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex: 1 1 100%;
  justify-content: center;
  order: 3;
}
@media (min-width: 769px) {
  .relationship {
    flex: 0 1 auto;
    order: 0;
  }
}

.rel-x {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--estorie-terracotta);
  opacity: 0;
  transform: scale(0.7);
  display: inline-block;
}
.rel-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--estorie-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
}

.logo-estorie,
.logo-gety {
  opacity: 0;
}

/* -------------------- hero -------------------- */
.hero {
  background: var(--estorie-warm-bg);
  padding-top: 56px;
  padding-bottom: 40px;
}
@media (min-width: 1024px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 64px;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* Correction #6: C1491D (was E16335 — fails AA-normal) */
  color: var(--estorie-terracotta-dark);
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
}
.kicker .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--estorie-terracotta-dark);
  border-radius: 50%;
  margin-right: 10px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--estorie-ink);
  margin: 0 0 24px;
}

.word-gety {
  position: relative;
  display: inline-block;
}
.word-gety::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 7px;
  background: var(--gety-gold);
  border-radius: 4px;
  transform: scaleX(var(--draw, 0));
  transform-origin: left center;
  transition: transform 1100ms var(--ease-draw) 1500ms;
}
.word-gety.is-drawn {
  --draw: 1;
}
.word-gety.is-drawn-static::after {
  transform: scaleX(1);
  transition: none;
}

.lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--estorie-ink);
  max-width: 540px;
  margin: 0 0 32px;
}

.trust-line {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--estorie-muted-body);
  margin: 0;
}
.trust-line .sep {
  color: var(--estorie-terracotta);
  margin: 0 8px;
}

.hero-image {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: 0 12px 40px rgba(33, 33, 33, 0.08);
}
.hero-image svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* stagger items: start hidden, JS will reveal */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
}

/* -------------------- transition band -------------------- */
.transition-band {
  background: linear-gradient(
    180deg,
    var(--estorie-warm-bg) 0%,
    var(--gety-form-bg) 100%
  );
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.transition-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hairline {
  display: inline-block;
  width: 1px;
  height: 24px;
  background: var(--gety-gold);
}
.transition-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--estorie-muted-body);
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0;
  max-width: 720px;
}

/* -------------------- form section -------------------- */
.form-section {
  background: var(--gety-form-bg);
  padding-top: 56px;
  padding-bottom: 56px;
}
@media (min-width: 1024px) {
  .form-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

.form-section__inner {
  text-align: center;
}

.form-section__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gety-primary);
  margin: 0 0 16px;
}

.form-section__h2 {
  font-family: var(--font-action);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  color: var(--gety-primary);
  margin: 0 0 12px;
}

.form-section__intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--gety-ink);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Lavender border matches live search.gety.fr form, NOT Storybook Inputs token. Intentional. */
.gety-iframe-frame {
  background: #ffffff;
  border: 1px solid var(--gety-cream);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(156, 26, 255, 0.06);
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px) scale(0.99);
}
.gety-iframe-frame:focus-within {
  box-shadow:
    0 0 0 3px rgba(156, 26, 255, 0.4),
    0 8px 32px rgba(156, 26, 255, 0.06);
}

#getyForm {
  width: 100%;
  border: 0;
  display: block;
  min-height: 820px;
  background: transparent;
}
@media (min-width: 769px) {
  #getyForm {
    min-height: 580px;
  }
}

.form-section__reassurance {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--estorie-muted-body);
  text-align: center;
  max-width: 720px;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  opacity: 0;
}
.icon-lock {
  color: var(--gety-primary);
  flex-shrink: 0;
}

/* -------------------- why gety -------------------- */
.why-gety {
  background: #ffffff;
  padding: 56px 0;
}
@media (min-width: 1024px) {
  .why-gety {
    padding: 96px 0;
  }
}

.why-gety__heading {
  text-align: center;
  margin-bottom: 40px;
}
@media (min-width: 1024px) {
  .why-gety__heading {
    margin-bottom: 56px;
  }
}

.why-gety__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--estorie-terracotta-dark);
  margin: 0 0 12px;
}

/* Correction #7: revert to Outfit 700 36px (not Playfair). Hero H1 keeps Playfair. */
.why-gety__h2 {
  font-family: var(--font-action);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  color: var(--estorie-ink);
  margin: 0;
}

.why-gety__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 769px) {
  .why-gety__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
@media (min-width: 1024px) {
  .why-gety__grid {
    gap: 48px;
  }
}

.column {
  text-align: left;
  opacity: 0;
  transform: translateY(16px);
  transition:
    transform 200ms var(--ease-standard),
    box-shadow 200ms var(--ease-standard);
  border-radius: 16px;
  padding: 8px;
}
.column:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33, 33, 33, 0.06);
}

.icon-well {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transform: scale(0.85);
}
.icon-well--terracotta {
  background: var(--estorie-blush);
}
.icon-well--gold {
  background: #f9f4ec;
} /* Correction #2: well stays cream gold */
.icon-well--purple {
  background: var(--gety-cream);
}

.column__headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 19px;
  color: var(--estorie-ink);
  margin: 16px 0 8px;
}
.column__body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--estorie-muted-body);
  margin: 0;
}

/* -------------------- trust strip -------------------- */
.trust-strip {
  background: var(--estorie-blush);
  padding: 48px 0;
}
@media (min-width: 1024px) {
  .trust-strip {
    padding: 64px 0;
  }
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.tile {
  opacity: 0;
  transform: translateY(12px);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 40px);
  /* Correction #1: C1491D (Estorie primary-dark) for stat numbers */
  color: var(--estorie-terracotta-dark);
  margin: 0 0 12px;
  line-height: 1.1;
  filter: blur(0);
}

.tile-icon {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  min-height: 40px;
}

.tile-caption {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--estorie-ink);
  margin: 0;
  line-height: 1.5;
}

/* -------------------- footer -------------------- */
.site-footer {
  background: var(--estorie-ink);
  color: rgba(249, 248, 245, 0.85);
  padding: 40px 0;
}
@media (min-width: 1024px) {
  .site-footer {
    padding: 48px 0;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
@media (min-width: 769px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    flex-wrap: wrap;
  }
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-logo--estorie {
  height: 24px;
  filter: brightness(0) invert(1);
}
.footer-logo--gety {
  height: 18px;
  filter: brightness(0) invert(1);
}
.footer-divider {
  display: inline-block;
  width: 1px;
  height: 28px;
  background: rgba(249, 248, 245, 0.2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.footer-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: rgba(249, 248, 245, 0.7);
}
.footer-links a:hover {
  color: #f9f8f5;
}
.footer-sep {
  color: rgba(249, 248, 245, 0.3);
}

.footer-copy {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(249, 248, 245, 0.1);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: rgba(249, 248, 245, 0.5);
  text-align: center;
}
.footer-copy p {
  margin: 0;
}

/* -------------------- reduced motion -------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .word-gety::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }
}
