@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #101a2c;
  --muted: rgba(22, 40, 68, 0.62);
  --faint: rgba(36, 68, 110, 0.48);
  --line: rgba(36, 74, 120, 0.12);
  --accent: #5b87b5;
  --accent-soft: #e8eef6;
  --navy: #173254;
  --navy-hover: #21406a;
  --bg: #f2f5f9;
  --surface: #ffffff;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 68px;
  --shell: 1180px;
  --radius-pill: 999px;
  --radius-lg: 28px;
  --radius-card: 20px;
  --radius-xl: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent-soft); color: var(--navy); }

.page { overflow-x: clip; }

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(36, 74, 120, 0.04);
  backdrop-filter: blur(16px);
}

.site-header.is-solid { background: #fff; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  color: var(--navy);
}

.logo-mark {
  width: 40px;
  height: 28px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1a2438;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 8px 2px;
  transform: scale(1);
  transform-origin: center;
  transition: color 0.2s var(--ease), transform 0.22s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease);
}

.nav-link:hover {
  color: var(--navy);
  transform: scale(1.08);
}

.nav-link:hover::after { transform: scaleX(0.5); }

.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  transform: scale(1.06);
}

.nav-link[aria-current="page"]::after { transform: scaleX(1); height: 2px; }

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

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s;
}

.icon-btn:hover,
.icon-btn[aria-current="page"] {
  background: rgba(11, 18, 32, 0.06);
  color: var(--navy);
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.account-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  min-height: 40px;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s;
}

.account-tab.is-on {
  background: var(--navy);
  color: #fff;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.06);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  padding: 0;
}

.burger:hover { background: rgba(11, 18, 32, 0.1); }

.burger span {
  display: block;
  width: 16px;
  height: 1.7px;
  margin: 3px auto;
  background: currentColor;
  border-radius: 2px;
}

.drawer {
  position: fixed;
  inset: calc(var(--header-h) + 8px) 12px auto 12px;
  z-index: 49;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px);
  display: none;
  gap: 4px;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.12);
}

.drawer.is-open { display: grid; }

.drawer a {
  padding: 12px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(11, 18, 32, 0.82);
}

.drawer a:hover,
.drawer a[aria-current="page"] {
  background: rgba(11, 18, 32, 0.06);
  color: var(--ink);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.4s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: scale(1.06);
}
.btn:active {
  transform: scale(0.98);
}
.header-actions .icon-btn {
  flex: 0 0 40px;
}

.btn-solid {
  background: var(--navy);
  color: #fff !important;
}

.btn-solid:hover { background: var(--navy-hover); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(91, 135, 181, 0.35);
  color: var(--navy) !important;
}

.btn-ghost:hover {
  background: rgba(11, 18, 32, 0.04);
  border-color: rgba(11, 18, 32, 0.35);
}

.btn-lg { min-height: 48px; padding: 0 22px; font-size: 0.94rem; }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 0.82rem; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--navy);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover::after { transform: translateX(4px); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: start;
  overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 40px;
  background: var(--bg);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 8%;
  animation: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(242, 245, 249, 0.82) 0%, rgba(242, 245, 249, 0.42) 34%, rgba(242, 245, 249, 0.08) 52%, transparent 64%),
    linear-gradient(180deg, rgba(242, 245, 249, 0.16) 0%, transparent 22%, transparent 78%, rgba(242, 245, 249, 0.28) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
  display: grid;
  gap: 28px;
}

.hero-copy {
  max-width: 560px;
  animation: rise 0.9s var(--ease) both;
}

.hero-copy .lede + .lede {
  margin-top: 12px;
}

.kicker {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b8faf;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
}

.hero h1 .rest { color: var(--accent); font-weight: 650; }

.lede {
  margin: 18px 0 0;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 860px;
  animation: rise 1s 0.08s var(--ease) both;
}

.pill {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(91, 135, 181, 0.16);
  box-shadow: 0 12px 32px rgba(23, 50, 84, 0.06);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(23, 50, 84, 0.1);
}

.pill-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--navy);
}

.pill-icon svg { width: 22px; height: 22px; display: block; }

.pill span {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}

.hero-scroll {
  position: absolute;
  left: var(--pad);
  bottom: 22px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(11, 18, 32, 0.35);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-scroll i {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.45), transparent);
  animation: pulse 2.2s ease-in-out infinite;
}

/* ========== LAYOUT ========== */
.section {
  padding: 72px var(--pad);
}

.section--soft { background: #fff; }

.container {
  width: min(var(--shell), 100%);
  margin-inline: auto;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section h2,
.band h2,
.cta-band h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.1;
}

.section-lead {
  margin: 0 0 28px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.eyebrow {
  display: block;
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b8faf;
}

/* ========== STEPS GRID (4 étapes, no carousel) ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.step-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(23, 50, 84, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(23, 50, 84, 0.1);
}

.step-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--accent-soft);
}

.step-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.step-card:hover .step-card__media img { transform: scale(1.05); }

.step-card__body { padding: 18px 16px 20px; }

.step-card__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.step-card p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.step-card p:last-child { margin-bottom: 0; }

.tile-grid--5 {
  grid-template-columns: repeat(3, 1fr);
}

.tile-grid--5 .tile:nth-child(4),
.tile-grid--5 .tile:nth-child(5) {
  /* last row centered-ish on desktop via spanning feel — keep simple 3+2 */
}

/* ========== CAROUSEL (kept for potential reuse) ========== */
.carousel-wrap {
  position: relative;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 18px) / 4);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 2px 16px;
}

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

.carousel-card {
  scroll-snap-align: start;
  min-width: 0;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(23, 50, 84, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(23, 50, 84, 0.1);
}

.carousel-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--accent-soft);
}

.carousel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.carousel-card:hover .carousel-card__media img { transform: scale(1.06); }

.carousel-card__body { padding: 16px 16px 18px; }

.carousel-card__step {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.carousel-card h3 {
  margin: 6px 0 6px;
  font-size: 1.08rem;
  font-weight: 650;
}

.carousel-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.carousel-nav {
  position: absolute;
  top: 34%;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(23, 50, 84, 0.08);
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}

.carousel-nav:hover { transform: scale(1.06); }
.carousel-nav.prev { left: -12px; }
.carousel-nav.next { right: -12px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(91, 135, 181, 0.28);
  cursor: pointer;
}

.carousel-dots button.is-on { background: var(--navy); width: 22px; border-radius: 8px; }

.partners-intro {
  margin-bottom: 22px;
}
.partners-intro .kicker { margin: 0 0 6px; }

#partners {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 62%, #ffffff 100%);
  padding-bottom: 28px;
}

#partners + #operation {
  padding-top: 36px;
}

#partners .carousel-wrap,
#partners .partners-rail {
  position: relative;
  margin-top: 4px;
  overflow: visible;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 9%,
    #000 91%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 9%,
    #000 91%,
    transparent 100%
  );
}

#partners .partners-rail::before,
#partners .partners-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(56px, 9vw, 120px);
  z-index: 5;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#partners .partners-rail::before {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    rgba(242, 245, 249, 0.72) 42%,
    rgba(242, 245, 249, 0) 100%
  );
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 100%);
}

#partners .partners-rail::after {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--bg) 0%,
    rgba(242, 245, 249, 0.72) 42%,
    rgba(242, 245, 249, 0) 100%
  );
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 35%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 0%, #000 35%, transparent 100%);
}


#partners .carousel.is-marquee {
  overflow: hidden;
  display: block;
  container-type: inline-size;
}
#partners .carousel-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--partners-gap, 16px);
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
#partners .carousel-strip > .carousel-card {
  flex: 0 0 var(--partners-card, 240px);
  width: var(--partners-card, 240px);
  max-width: var(--partners-card, 240px);
}

#partners .carousel {
  --partners-gap: 16px;
  --partners-card: calc((100cqi - 4 * var(--partners-gap)) / 4);
  grid-auto-columns: var(--partners-card);
  gap: var(--partners-gap);
  align-items: stretch;
  padding: 36px 14px 48px;
  scroll-snap-type: none;
}

#partners .carousel-card {
  position: relative;
  z-index: 1;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(23, 50, 84, 0.06);
  scroll-snap-align: none;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
#partners .carousel-card:hover {
  z-index: 4;
  transform: scale(1.08);
  box-shadow: 0 22px 46px rgba(23, 50, 84, 0.16);
}

#partners .carousel-card__media,
#partners .carousel-card__media--shop {
  aspect-ratio: 4 / 5;
  flex: none;
  height: auto;
  background: #f2f3f5;
}
#partners .carousel-card__media img,
#partners .carousel-card--shop .carousel-card__media--shop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
}
#partners .carousel-card:hover .carousel-card__media img,
#partners .carousel-card--shop:hover .carousel-card__media--shop img {
  transform: none;
}

#partners .carousel-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 16px;
  flex: 1;
}

#partners .carousel-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

#partners .carousel-card p {
  margin: 0;
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--navy);
}

#partners .carousel-card__step {
  font-size: 0.68rem;
}

#partners .carousel-nav {
  top: 40%;
  width: 42px;
  height: 42px;
}

#partners .carousel-card--shop {
  display: flex;
  flex-direction: column;
  height: auto;
  align-self: stretch;
  background: #111827;
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(23, 50, 84, 0.16);
  overflow: hidden;
}

#partners .carousel-card__media--shop {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  background: #111;
}

#partners .carousel-card--shop .carousel-card__media--shop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  opacity: 1;
  transform: none;
}

#partners .carousel-card--shop:hover .carousel-card__media--shop img {
  transform: none;
}

#partners .carousel-card__shop-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 20px 24px;
  background: linear-gradient(180deg, rgba(10, 18, 32, 0.08) 0%, rgba(10, 18, 32, 0.22) 45%, rgba(10, 18, 32, 0.82) 100%);
  color: #fff;
}

#partners .carousel-card--shop .carousel-card__step,
#partners .carousel-card--shop h3,
#partners .carousel-card--shop .carousel-card__cta {
  color: #fff;
}

#partners .carousel-card--shop h3 {
  font-size: 1.22rem;
  margin: 0;
}

#partners .carousel-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#partners .carousel-card__cta::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

#partners .carousel-card--shop:hover .carousel-card__cta::after {
  transform: translateX(4px);
}

/* ========== MEDIA STRIP ========== */
.media-strip {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.media-strip--flip { direction: rtl; }
.media-strip--flip > * { direction: ltr; }

.media-strip__img {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--accent-soft);
  box-shadow: 0 24px 50px rgba(23, 50, 84, 0.08);
}

.media-strip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-strip__copy h2 { margin: 0 0 14px; }
.media-strip__copy .lede {
  max-width: 44ch;
  color: var(--muted);
}

/* ========== FLIP CARDS ========== */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  perspective: 1400px;
}

.flip-grid--2 { grid-template-columns: repeat(2, 1fr); }

.flip {
  min-height: 320px;
  cursor: pointer;
}

.flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
  border-radius: var(--radius-card);
}

.flip:hover .flip__inner,
.flip:focus-within .flip__inner,
.flip.is-flipped .flip__inner {
  transform: rotateY(180deg);
}

.flip__face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
}

.flip__face--front {
  background: #fff;
}

.flip__media {
  margin: 0;
  height: 68%;
  overflow: hidden;
  background: var(--accent-soft);
}

.flip__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip__face--front h3 {
  margin: 0;
  padding: 16px 18px 4px;
  font-size: 1.12rem;
  font-weight: 650;
}

.flip__hint {
  display: block;
  padding: 0 18px 16px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.flip__face--back {
  transform: rotateY(180deg);
  background: var(--navy);
  color: #fff;
  display: grid;
  align-content: center;
  padding: 28px;
  gap: 10px;
}

.flip__face--back h3 {
  margin: 0;
  font-size: 1.2rem;
}

.flip__face--back p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

/* ========== PAGE HERO ========== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) var(--pad) 72px;
  overflow: hidden;
  min-height: 42vh;
  display: grid;
  align-items: end;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(242, 245, 249, 0.94) 0%, rgba(242, 245, 249, 0.7) 42%, rgba(242, 245, 249, 0.2) 100%),
    linear-gradient(180deg, rgba(242, 245, 249, 0.2) 0%, transparent 30%, rgba(242, 245, 249, 0.55) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.page-hero .lede { max-width: 48ch; }

/* ========== TILES / LEGAL ========== */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tile {
  padding: 28px;
  border-radius: var(--radius-card);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 50, 84, 0.04);
}

.tile h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ========== CTA BAND ========== */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 var(--pad) 0;
  padding: 28px 32px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(23, 50, 84, 0.06);
}

.cta-band p {
  margin: 6px 0 0;
  color: var(--muted);
}

.band {
  margin: 48px var(--pad) 0;
  padding: 56px 32px;
  border-radius: 32px 32px 0 0;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.band .lede {
  margin: 14px auto 0;
  color: rgba(255, 255, 255, 0.7);
}

.band .btn-group { justify-content: center; }

.band .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

.band .btn-solid { background: #fff; color: var(--navy) !important; }
.band .btn-solid:hover { background: var(--accent-soft); }

/* ========== FAQ ========== */
.faq-group { margin-bottom: 36px; }

.faq-group__title {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  position: relative;
  flex: 0 0 auto;
  background: var(--accent-soft);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--navy);
}

.faq-icon::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }

.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }

.faq-panel-inner { overflow: hidden; }

.faq-body {
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.55;
}

.faq-body p { margin: 0; }

/* ========== FORMS ========== */
.form-card {
  max-width: 740px;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(23, 50, 84, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid rgba(36, 74, 120, 0.16);
  border-radius: 14px;
  background: var(--bg);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 135, 181, 0.18);
}

.textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 0.82rem; color: var(--faint); }
.form-inline-note {
  font-size: 0.9rem;
  margin: 0 0 14px;
  color: var(--muted);
}
.form-inline-note.is-error { color: #9b2c2c; }
.form-inline-note.is-ok { color: var(--navy); }
.faint { color: var(--faint); font-weight: 500; }

.stepper {
  display: flex;
  gap: 8px;
  margin: 8px 0 24px;
  flex-wrap: wrap;
}

.stepper button {
  border: 0;
  background: var(--accent-soft);
  color: var(--muted);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.stepper button:disabled {
  opacity: 0.55;
  cursor: default;
}

.stepper button.is-active {
  background: var(--navy);
  color: #fff;
}

.stepper button.is-done { background: #d7e4f4; color: var(--navy); }

.stepper__num { opacity: 0.7; }

/* ========== PARTNER WIZARD ========== */
.wizard-page {
  min-height: 100svh;
  background:
    radial-gradient(80% 50% at 10% 0%, rgba(91, 135, 181, 0.12), transparent 55%),
    radial-gradient(60% 40% at 100% 10%, rgba(23, 50, 84, 0.06), transparent 50%),
    var(--bg);
}

.wizard-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.wizard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.wizard-top__note {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--faint);
}

.wizard-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 36px var(--pad) 64px;
}

.wizard-card {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 18px 50px -36px rgba(23, 50, 84, 0.35);
}

.wizard-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  color: var(--navy);
  letter-spacing: -0.03em;
}

.wizard-step-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--navy);
}

.wizard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.wizard-actions__spacer { flex: 1; }

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--navy);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.check-pill:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.check-pill input {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}

.check-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}

.check-inline input {
  margin-top: 3px;
  accent-color: var(--navy);
}

@media (max-width: 640px) {
  .wizard-top__note { display: none; }
  .check-grid { grid-template-columns: 1fr; }
  .wizard-actions { flex-wrap: wrap; }
  .wizard-actions__spacer { display: none; }
}

.form-success {
  text-align: center;
  padding: 28px 12px;
}

.form-success h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 56px var(--pad) 28px;
}

.footer-grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid--client {
  grid-template-columns: 1.2fr 1.8fr;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.footer-links a:hover { color: var(--accent); }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--navy);
}

.footer-brand img {
  width: 44px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand strong {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-footer h4 {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--ink);
  font-size: 0.92rem;
}

.site-footer a:hover { color: var(--accent); }

.footer-base {
  max-width: var(--shell);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--faint);
}

/* ========== REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes ken {
  from { transform: scale(1.04); }
  to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .nav { gap: 14px; }
  .nav-link { font-size: 0.82rem; }
  .carousel { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
  #partners .carousel {
    --partners-gap: 14px;
    --partners-card: calc((100cqi - 3 * var(--partners-gap)) / 3);
    grid-auto-columns: var(--partners-card);
    gap: var(--partners-gap);
  }
  .flip-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .pills { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid--client { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .tile-grid[style*="repeat(3"],
  .tile-grid--5 { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 900px) {
  .burger { display: grid; }
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .media-strip,
  .media-strip--flip {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 22px;
  }
  .flip-grid,
  .flip-grid--2,
  .tile-grid,
  .tile-grid--5,
  .steps-grid,
  .form-row,
  .checks { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

/* Large screens: first screen = copy + partner rail, with room to breathe */
@media (min-width: 1100px) {
  .hero {
    min-height: 640px;
    padding: calc(var(--header-h) + 56px) 0 48px;
    background: #d7e0ea;
  }
  .hero-inner { gap: 0; }
  .hero h1 { font-size: clamp(2.35rem, 3.4vw, 3.35rem); }
  .hero .lede {
    margin-top: 16px;
    font-size: 1.02rem;
    line-height: 1.55;
  }
  .hero-copy .lede + .lede { margin-top: 12px; }
  .hero .btn-group { margin-top: 28px; }
  .hero-media img { object-position: 66% 0%; }
  .hero-scroll { display: none; }

  #partners {
    padding: 36px var(--pad) 40px;
    background: transparent;
  }
  #partners .partners-intro { margin-bottom: 18px; }
  #partners .partners-intro h2 {
    font-size: clamp(1.7rem, 2.2vw, 2.15rem);
    letter-spacing: -0.03em;
  }
  #partners .carousel {
    --partners-gap: 16px;
    --partners-card: calc((100cqi - 4 * var(--partners-gap)) / 5);
    padding: 36px 16px 48px;
  }
  #partners .carousel-card {
    height: auto;
    border-radius: 18px;
  }
  #partners .carousel-card__media {
    aspect-ratio: 4 / 5;
    flex: none;
    height: auto;
    min-height: 0;
    max-height: none;
  }
  #partners .carousel-card__media--shop {
    aspect-ratio: auto;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    max-height: none;
  }
  #partners .carousel-card__body {
    padding: 12px 14px 14px;
    gap: 2px;
    flex: 0 0 auto;
  }
  #partners .carousel-card h3 { font-size: 0.95rem; }
  #partners .carousel-card p {
    font-size: 0.84rem;
    padding-top: 4px;
  }
  #partners .carousel-card__step { font-size: 0.64rem; letter-spacing: 0.12em; }
  #partners .carousel-card__shop-overlay { padding: 16px 16px 18px; gap: 4px; }
  #partners .carousel-card--shop h3 { font-size: 1.15rem; }
  #partners + #operation { padding-top: 48px; }
}

@media (max-width: 820px) {
  .logo-text { font-size: 0.78rem; letter-spacing: 0.12em; }
  .hero { padding-bottom: 72px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }
  .pills { grid-template-columns: 1fr 1fr; }
  .section, .page-hero, .site-footer { padding-left: 16px; padding-right: 16px; }
  .carousel { grid-auto-columns: minmax(220px, 82%); }
  #partners .carousel {
    --partners-gap: 12px;
    --partners-card: calc((100cqi - 2 * var(--partners-gap)) / 2);
    grid-auto-columns: var(--partners-card);
    gap: var(--partners-gap);
  }
  #partners .carousel-card h3 { font-size: 1.02rem; }
  .carousel-nav { display: none; }
  .hero-scroll { left: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .tile-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
  .form-card { padding: 22px 16px; }
  .band, .cta-band { margin-left: 16px; margin-right: 16px; }
}

/* Soften only — never nuke motion.
   Windows "Animation effects" off sets prefers-reduced-motion and used to
   kill carousel, flips, and reveals entirely. */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition-duration: 0.28s !important;
  }
  .flip__inner,
  .carousel-card,
  .step-card,
  .tile,
  .btn {
    transition-duration: 0.35s !important;
  }
}

/* Windows: fix flip faces (never put translateZ on .flip__face — it
   overrode rotateY(180deg) on the back and made cards glitch/mirror).
   Hover flips again; click still toggles for touch. */
html.is-windows .flip {
  perspective: 1400px;
}
html.is-windows .flip__inner {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
html.is-windows .flip__face {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
html.is-windows .flip__face--front {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
}
html.is-windows .flip__face--back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
html.is-windows .flip:hover .flip__inner,
html.is-windows .flip:focus-within .flip__inner,
html.is-windows .flip.is-flipped .flip__inner {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
html.is-windows .carousel-wrap .carousel,
html.is-windows [data-carousel] {
  scroll-behavior: auto !important;
}
html.is-windows .partners-rail .carousel-card {
  transform: translateZ(0);
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(16, 26, 44, 0.12);
}
.cookie-bar-inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.cookie-bar-title { margin: 0 0 4px; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.cookie-bar-text { margin: 0; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.cookie-bar-text a { color: var(--navy); }
.cookie-bar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-bar .btn { height: 38px; padding: 0 14px; font-size: 0.82rem; }
.cookie-bar .cookie-accept { background: var(--navy); color: #fff; border-color: var(--navy); }
.cookie-bar .cookie-essential { background: transparent; color: var(--ink); }
@media (max-width: 720px) {
  .cookie-bar-inner { flex-direction: column; align-items: stretch; }
  .cookie-bar-actions { flex-direction: column; }
}
