/* ==========================================================================
   Otimiz homepage v2, Hyros visual system. HOMEPAGE SECTIONS ONLY.
   Requires /css/v2-base.css loaded first (fonts, tokens, header, footer,
   buttons, FAQ rows, contour texture). Split 2026-09-17; the values are the
   same ones documented in docs/HOME-V2-HYROS-2026-09-16.md.
   ========================================================================== */

:is(#hero, #benefits, #solutions, #testimonials, #about, #faq, #cta) { scroll-margin-top: calc(var(--header-h) + 16px); }
.js-motion .pk__box .zp { animation-duration: 40s; animation-direction: alternate-reverse; }

/* ---------- Hero (.cx) ---------- */
.cx { overflow: hidden; }
.cx__wrap {
  max-width: var(--container); margin: 0 auto; padding: 52px var(--gutter) 0;
  display: grid; grid-template-columns: 500px 1fr; gap: 52px; align-items: center;
}
.cx__h1 {
  font-family: var(--font-display); font-weight: 400; font-size: 50px; line-height: 1.12;
  letter-spacing: -0.01em; color: var(--ink-900); font-variation-settings: 'opsz' 64;
}
.cx__h1 .line { display: block; padding-bottom: .06em; margin-bottom: -.06em; }
.cx__h1 .word { display: inline-block; }
.cx__h1 em { font-style: normal; color: var(--brand-600); }
.cx__sub { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--ink-600); letter-spacing: 0; }

.cx__card {
  margin-top: 28px; max-width: 372px;
  background: var(--paper-card); border: 1px solid var(--border-subtle); border-radius: 14px;
  padding: 18px;
}
.cx__proof {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 14px; color: rgba(31,30,29,.9); font-size: 14px;
  transition: background-color var(--fast) ease, border-color var(--fast) ease;
}
.cx__proof:hover { background: var(--brand-100); border-color: var(--border-brand); }
.cx__avatars { display: inline-flex; flex: 0 0 auto; min-width: 56px; }
.cx__avatars img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--white); object-fit: cover; }
.cx__avatars img + img { margin-left: -8px; }
.cx__proof-label { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; min-width: 0; white-space: nowrap; }
.cx__proof:hover .ext { transform: translate(1px,-1px); }
/* Guarantee strip under the hero CTA (2026-09-24, C1): same copy and treatment as the /lp/ pages' .gtee. */
.cx__gtee {
  margin-top: 10px; padding: 14px 16px; text-align: left;
  border: 1px solid var(--border-brand); border-radius: 10px;
  background: linear-gradient(180deg, #F3F6FE 0%, #EBF0FD 100%);
}
.cx__gtee-k { color: #0F2F80; }
.cx__gtee-p { margin-top: 8px; font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.32; color: var(--ink-900); font-variation-settings: 'opsz' 48; text-wrap: pretty; }
.cx__gtee-c { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--ink-600); text-wrap: pretty; }

/* ---------- Hero automation canvas ----------
   Ported from the live homepage (style.css + main.js drawWires) on 2026-09-17 at
   Bastien's request: floating logo tiles, dashed wires with dots travelling to the
   Otimiz mark, orbit rings and the dark status pill. Recoloured to the v2 tokens
   (logo blue) and set on the paper panel instead of the old blue-gradient hero. */
.cx__panel {
  position: relative; min-height: 600px; overflow: hidden;
  border: 1px solid var(--border-brand); border-radius: var(--radius-lg); background: var(--brand-100);
  display: flex; align-items: center; justify-content: center; padding: 28px 20px;
}
.canvas {
  position: relative; z-index: 1; width: 100%; max-width: 560px;
  min-height: 440px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px 6px 64px;
}
/* Orbit rings behind everything; decorative, never intercept taps. */
.hero__rings { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__rings i {
  position: absolute; top: 46%; left: 50%;
  border: 1px solid rgba(31,88,234,.13); border-radius: 50%;
  transform: translate(-50%,-50%);
}
.js-motion .hero__rings i { animation: orbitSpin 46s linear infinite; }
.hero__rings i::before {
  content: ""; position: absolute; top: -3.5px; left: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(31,88,234,.5); box-shadow: 0 0 8px rgba(31,88,234,.45);
}
.hero__rings i:nth-child(1) { width: 300px; height: 300px; }
.hero__rings i:nth-child(2) { width: 420px; height: 420px; border-color: rgba(31,88,234,.09); }
.hero__rings i:nth-child(3) { width: 540px; height: 540px; border-color: rgba(31,88,234,.06); }
.js-motion .hero__rings i:nth-child(2) { animation-duration: 70s; animation-direction: reverse; }
.js-motion .hero__rings i:nth-child(3) { animation-duration: 95s; }
@keyframes orbitSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Wires and travelling dots are built by home-v2.js from the real tile boxes. */
.canvas__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.wire { stroke: rgba(31,88,234,.3); stroke-width: 1.5; stroke-dasharray: 5 7; fill: none; }
.js-motion .wire { animation: wireFlow 1.6s linear infinite; }
@keyframes wireFlow { to { stroke-dashoffset: -24; } }
.pulse { fill: var(--brand-600); filter: drop-shadow(0 0 6px rgba(31,88,234,.75)); }

.canvas__chips { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; }
.canvas__chips--left { align-items: flex-start; }
.canvas__chips--right { align-items: flex-end; }
.chip {
  width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.94); border: 1px solid var(--border-subtle); border-radius: 19px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .35s ease;
}
.chip:hover { box-shadow: var(--shadow-hover); }
.chip img { width: 58%; height: 58%; object-fit: contain; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.chip:hover img { transform: scale(1.1); }
.chip .chip__img--dark { filter: invert(1); } /* white X logo, dark for the light theme */
.canvas__chips .chip:nth-child(1) { margin-left: 26px; }
.canvas__chips .chip:nth-child(2) { margin-left: -6px; }
.canvas__chips .chip:nth-child(3) { margin-left: -2px; }
.canvas__chips .chip:nth-child(4) { margin-left: 30px; }
.canvas__chips--right .chip:nth-child(1) { margin-left: 0; margin-right: 26px; }
.canvas__chips--right .chip:nth-child(2) { margin-left: 0; margin-right: -6px; }
.canvas__chips--right .chip:nth-child(3) { margin-left: 0; margin-right: -2px; }
.canvas__chips--right .chip:nth-child(4) { margin-left: 0; margin-right: 30px; }

.canvas__core { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 0 40px; }
.canvas__core-card {
  position: relative; z-index: 2; width: 112px; height: 112px;
  background: var(--white); border-radius: 30px; border: 1px solid rgba(31,88,234,.18);
  box-shadow: 0 12px 34px -10px rgba(31,88,234,.36);
  display: flex; align-items: center; justify-content: center;
}
.canvas__core-card img { width: 64px; height: 64px; object-fit: contain; }
.canvas__core-ring {
  position: absolute; width: 160px; height: 160px;
  border: 1px solid rgba(31,88,234,.25); border-radius: 44px;
}
.canvas__core-ring--2 { width: 208px; height: 208px; border-radius: 60px; border-color: rgba(31,88,234,.12); }
.js-motion .canvas__core-ring { animation: ringSpin 14s linear infinite; }
.js-motion .canvas__core-ring--2 { animation-duration: 22s; animation-direction: reverse; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.canvas__status {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 11px; white-space: nowrap;
  background: rgba(31,30,29,.9); color: var(--white);
  font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  padding: 9px 20px; border-radius: var(--radius-pill);
  box-shadow: 0 14px 30px -12px rgba(31,30,29,.5);
}
.canvas__spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.85);
  border-top-color: transparent; border-radius: 50%;
}
.js-motion .canvas__spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.canvas__toggle { position: relative; width: 32px; height: 17px; background: var(--brand-600); border-radius: var(--radius-pill); }
.canvas__knob { position: absolute; right: 2.5px; top: 2.5px; width: 12px; height: 12px; background: var(--white); border-radius: 50%; }

/* Hero entrance state (motion only; home-v2.js animates to the resting state) */
.js-motion .cx__h1 .word:not(.is-in) { opacity: 0; transform: translateY(.55em); }
.js-motion [data-hero-in]:not(.is-in) { opacity: 0; transform: translateY(16px); }
.js-motion [data-hero-panel]:not(.is-in) { opacity: 0; transform: scale(.965); }
/* ---------- Section head (shared) ---------- */
.sec__head { text-align: center; }
.sec__h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 56px; line-height: 1.1;
  letter-spacing: -0.012em; color: var(--ink-900); margin-top: 18px;
  font-variation-settings: 'opsz' 64;
}

/* ---------- Benefits, stats-band treatment (.st) ---------- */
.st__wrap { max-width: var(--container); margin: 0 auto; padding: 96px var(--gutter) 0; text-align: center; }

.st__head .kick { margin-top: 22px; }
.st__h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 56px; line-height: 1.1;
  letter-spacing: -0.012em; color: var(--ink-900); margin-top: 16px;
  font-variation-settings: 'opsz' 64;
}
.st__win {
  max-width: 980px; margin: 36px auto 0; background: var(--white);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); text-align: left;
}
.st__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.st__col { padding: 26px 22px 28px; border-right: 1px solid var(--border-subtle); }
.st__col:last-child { border-right: 0; }
.st__ic { width: 22px; height: 22px; color: var(--ink-400); }
.st__ic svg { width: 22px; height: 22px; }
.st__col.is-b .st__ic { color: var(--brand-600); }
.st__v {
  font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.05;
  letter-spacing: -0.015em; color: var(--ink-900); margin-top: 14px;
  font-variation-settings: 'opsz' 48;
}
.st__col.is-b .st__v { color: var(--brand-600); }
.st__c { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-600); letter-spacing: 0; }

/* ---------- Solutions, business-model picker treatment (.pk) ---------- */
.pk__wrap { max-width: var(--container); margin: 0 auto; padding: 88px var(--gutter) 0; }
.pk__box {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-brand); border-radius: var(--radius-lg); background: var(--brand-100);
}
.pk__in { position: relative; z-index: 1; padding: 48px 48px 50px; }
.pk__head {
  max-width: 920px; margin: 0 auto; background: var(--white); border-radius: var(--radius-md);
  padding: 30px 40px 34px; text-align: center;
}
.pk__h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1.12;
  letter-spacing: -0.012em; color: var(--ink-900); margin-top: 12px;
  font-variation-settings: 'opsz' 64;
}
.pk__sub { margin-top: 10px; font-size: 15px; color: var(--ink-600); letter-spacing: 0; }
.pk__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.pk__row {
  display: grid; grid-template-columns: 96px 1fr; min-height: 92px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-card); overflow: hidden;
  background: var(--white);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pk__row:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--border-brand); }
.pk__stage { position: relative; background: var(--brand-100); display: flex; align-items: center; justify-content: center; }
.pk__idx { position: absolute; left: 10px; top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--brand-600); }
.pk__ic { width: 32px; height: 32px; color: var(--brand-600); transition: transform .25s var(--ease); }
.pk__ic svg { width: 32px; height: 32px; }
.pk__row:hover .pk__ic { transform: translateY(-2px); }
.pk__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.pk__t {
  font-family: var(--font-display); font-weight: 500; font-size: 19px; line-height: 1.25;
  color: var(--ink-900); letter-spacing: -0.005em; font-variation-settings: 'opsz' 48;
}
.pk__cta {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; line-height: 1;
  background: var(--tan-100); color: var(--ink-900); border-radius: var(--radius-xs); padding: 9px 12px;
  transition: background-color var(--fast) ease, color var(--fast) ease;
}
.pk__row:hover .pk__cta { background: var(--ink-900); color: var(--white); }
/* ---------- Testimonials (.tm) ---------- */
.tm .wrap { padding-top: 96px; }
.tm__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.tm__card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-card);
  padding: 24px 22px 22px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tm__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.tm__stars .star { width: 14px; height: 14px; }
.tm__quote {
  margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--ink-600); letter-spacing: 0;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
}
.tm__card.is-expanded .tm__quote { display: block; -webkit-line-clamp: unset; }
.tm__more {
  align-self: flex-start; margin-top: 10px; display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 13px; color: var(--brand-600);
}
.tm__more svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.tm__card.is-expanded .tm__more svg { transform: rotate(90deg); }
.tm__foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.tm__author { display: flex; align-items: center; gap: 10px; }
.tm__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tm__name { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-900); }
.tm__name:hover { color: var(--brand-600); }
.li-logo { width: 14px; height: 14px; border-radius: 2px; }
.tm__company { font-size: 12.5px; color: var(--ink-400); margin-top: 1px; }
/* ---------- About, guarantee-panel treatment (.ab) ---------- */
.ab .wrap { padding-top: 96px; }
.ab__panel {
  position: relative; overflow: hidden;
  border: 1px solid var(--border-panel); border-radius: var(--radius-panel); background: var(--paper-panel);
  padding: 64px 56px;
}
.ab__head { position: relative; z-index: 1; text-align: center; }
.ab__layout { position: relative; z-index: 1; display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; margin-top: 44px; }
/* The portrait is a transparent cut-out with a faded base, so it sits directly on the panel: no card, no border, no shadow. */
.ab__photo-card { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.ab__photo { width: 100%; border-radius: 0; object-fit: contain; aspect-ratio: 664 / 1024; display: block; }
.ab__h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1.1;
  letter-spacing: -0.012em; color: var(--ink-900); margin-top: 14px;
  font-variation-settings: 'opsz' 64;
}
.ab__text p { margin-top: 18px; font-size: 16px; line-height: 1.65; color: var(--ink-600); letter-spacing: 0; }
.ab__text p:first-child { margin-top: 0; }
.ab__quote {
  margin: 26px 0 0; padding-left: 18px; border-left: 2px solid var(--brand-600);
  font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.35;
  color: var(--ink-900); letter-spacing: -0.005em; font-variation-settings: 'opsz' 48;
}

/* ---------- FAQ section wrapper (.fq); the rows live in v2-base.css ---------- */
.fq .wrap { padding-top: 96px; }

/* ---------- CTA, guarantee panel (.bx) ---------- */
.bx .wrap { padding-top: 88px; }
.bx__panel {
  border: 1px solid var(--border-panel); border-radius: var(--radius-panel); background: var(--paper-panel);
  padding: 72px 32px 68px; text-align: center;
}
.bx__icon { width: 30px; height: 30px; color: var(--ink-900); }
.bx__panel .kick { margin-top: 14px; }
.bx__h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1.1;
  letter-spacing: -0.012em; color: var(--ink-900); margin-top: 18px;
  font-variation-settings: 'opsz' 64;
}
.bx__sub { margin-top: 14px; font-size: 16px; color: var(--ink-600); letter-spacing: 0; }
.bx__btns { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.bx__btns .btn--soft { background: var(--tan-100); border-color: transparent; }
.bx__btns .btn--soft:hover { background: var(--white); border-color: var(--border-strong); }

/* ---------- Scroll reveal (motion only; GSAP animates to rest) ---------- */
.js-motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
.js-motion .pk__row[data-reveal]:not(.is-in) { transform: translateY(16px); }

/* ---------- Single breakpoint ---------- */
@media (max-width: 1080px) {
  .cx__wrap { grid-template-columns: 440px 1fr; gap: 36px; }
  .cx__h1 { font-size: 44px; }
  .st__grid { grid-template-columns: repeat(3, 1fr); }
  .st__col:nth-child(3n) { border-right: 0; }
  .st__col:nth-child(-n+3) { border-bottom: 1px solid var(--border-subtle); }
  .tm__grid { grid-template-columns: 1fr 1fr; }
  .ab__layout { grid-template-columns: 240px 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .cx__wrap { grid-template-columns: 1fr; gap: 28px; padding: 24px var(--gutter) 0; text-align: center; }
  .cx__h1 { font-size: 40px; line-height: 1.1; }
  .cx__sub { font-size: 16px; line-height: 1.5; margin-top: 14px; }
  .cx__card { margin: 22px auto 0; max-width: none; text-align: left; }
  .cx__panel { min-height: 0; padding: 12px 8px; border-radius: 18px; }
  .canvas { min-height: 380px; padding: 12px 0 62px; }
  .canvas__core { padding: 0 14px; }
  .canvas__core-card { width: 84px; height: 84px; border-radius: 24px; }
  .canvas__core-card img { width: 48px; height: 48px; }
  .chip { width: 48px; height: 48px; border-radius: 15px; }
  .canvas__chips { gap: 18px; }
  .canvas__chips .chip:nth-child(1) { margin-left: 14px; }
  .canvas__chips .chip:nth-child(4) { margin-left: 16px; }
  .canvas__chips--right .chip:nth-child(1) { margin-right: 14px; }
  .canvas__chips--right .chip:nth-child(4) { margin-right: 16px; }
  .canvas__status { bottom: 4px; font-size: 12.5px; padding: 8px 16px; gap: 9px; }
  .hero__rings i:nth-child(1) { width: 220px; height: 220px; }
  .hero__rings i:nth-child(2) { width: 300px; height: 300px; }
  .hero__rings i:nth-child(3) { width: 380px; height: 380px; }
  .st__bar-url { margin-right: 0; font-size: 11px; }

  .sec__h2, .st__h2 { font-size: 36px; }
  .st__wrap { padding-top: 64px; }
  .st__win { margin-top: 28px; }
  .st__bar { padding: 10px 14px; font-size: 11px; }
  .st__grid { grid-template-columns: 1fr; }
  .st__col { border-right: 0; border-bottom: 1px solid var(--border-subtle); padding: 20px 18px 22px; }
  .st__col:last-child { border-bottom: 0; }
  .st__v { font-size: 22px; }

  .pk__wrap { padding-top: 64px; }
  .pk__box { border-radius: 18px; }
  .pk__in { padding: 22px 16px 20px; }
  .pk__head { padding: 22px 18px 24px; border-radius: 14px; }
  .pk__h2 { font-size: 27px; line-height: 1.15; text-wrap: balance; }
  .pk__sub { font-size: 14px; }
  .pk__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .pk__row { grid-template-columns: 72px 1fr; min-height: 80px; }
  .pk__body { padding: 14px 14px; }
  .pk__t { font-size: 17px; }
  .pk__cta { font-size: 12px; padding: 8px 10px; }

  .tm .wrap, .ab .wrap, .fq .wrap { padding-top: 64px; }
  .bx .wrap { padding-top: 56px; }
  .tm__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .ab__panel { padding: 28px 20px 30px; }
  .ab__layout { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .ab__visual { max-width: 260px; margin: 0 auto; }
  .ab__h2 { font-size: 34px; }
  .ab__text { text-align: left; }
  .ab__quote { font-size: 18px; }

  .bx__panel { padding: 44px 22px 40px; }
  .bx__h2 { font-size: 34px; }
  .bx__btns { flex-direction: column; align-items: stretch; }
  .bx__btns .btn { width: 100%; }
}
@media (max-width: 400px) {
  .cx__h1 { font-size: 34px; }
  .cx__proof { flex-wrap: wrap; }
  .cx__proof-label { margin-left: 0; width: 100%; }
  .canvas { grid-template-columns: 1fr auto 1fr; min-height: 340px; padding: 8px 0 58px; }
  .chip { width: 40px; height: 40px; border-radius: 13px; }
  .canvas__core { padding: 0 8px; }
  .canvas__core-card { width: 66px; height: 66px; border-radius: 20px; }
  .canvas__core-card img { width: 38px; height: 38px; }
  .canvas__chips { gap: 14px; }
  .canvas__chips .chip:nth-child(1), .canvas__chips .chip:nth-child(4) { margin-left: 8px; }
  .canvas__chips--right .chip:nth-child(1), .canvas__chips--right .chip:nth-child(4) { margin-left: 0; margin-right: 8px; }
  .sec__h2, .st__h2 { font-size: 31px; }
  .bx__h2, .ab__h2 { font-size: 30px; }
}
