/* ============================================================
   HUDDLE — White-label: locul firmei tale în afacerea clienților.
   Deschidere într-o scenă lipită de ecran (nevoie → platformă, ultima
   fiind firma ta; apoi telefonul clientului, cu aplicația firmei tale),
   urmată de avantaje comasate.
   ============================================================ */

.page-wl { --bg-page: #fafbf7; background: var(--bg-page); }
.wl-page { padding: 0 var(--gutter); overflow-x: clip; }
.wl-page > section { max-width: 1180px; margin-left: auto; margin-right: auto; }
.wl-page .eyebrow { color: var(--accent-ink); }
.wl-page h1 em, .wl-page h2 em { color: #3f7424; }

/* ---------- scena de deschidere ---------- */
.assoc { position: relative; max-width: none !important; margin: 0 calc(-1 * var(--gutter)) !important; }
.assoc-stage { display: none; }
.assoc-text { padding: calc(var(--header-h) + 60px) var(--gutter) 40px; max-width: 760px; margin: 0 auto; text-align: center; }
.assoc-text p { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -.02em; }
.assoc-text p + p { margin-top: 18px; }

.assoc.is-live { height: 320svh; }
.assoc.is-live .assoc-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.assoc.is-live .assoc-stage {
  display: block; position: sticky; top: 0;
  height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate;
}
.assoc-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, var(--green-700) 1px, transparent 1.6px);
  background-size: 32px 32px; opacity: .08;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 52%, #000 10%, transparent 90%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 52%, #000 10%, transparent 90%);
}
.assoc-eyebrow { position: absolute; top: calc(var(--header-h) + 24px); left: 0; right: 0; text-align: center; }

/* nevoie → brand, ca o listă care bate */
.pairs {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(6px, 1.4vh, 16px);
  width: max-content; max-width: calc(100vw - 40px);
}
.pair {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: clamp(14px, 2vw, 28px);
  font-size: clamp(40px, 6.4vw, 96px); line-height: 1.08; letter-spacing: -.04em; font-weight: 500;
  opacity: 0;
}
.need { text-align: right; color: var(--text-secondary); font-weight: 400; }
.arrow-to { color: var(--green-400); font-weight: 400; font-size: .6em; opacity: 0; }
.brand { color: var(--green-700); font-weight: 600; opacity: 0; transform: translateX(-16px); display: inline-block; justify-self: start; }

.pair-you .need { color: var(--text-primary); }
.pair-you .brand { color: var(--lime-300); background: var(--green-800); padding: 0 .28em .06em; border-radius: .16em; margin-left: -.28em; }

/* telefonul clientului: aplicația firmei tale, lângă celelalte */
.phone-scene {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: min(1040px, calc(100vw - 40px));
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(32px, 6vw, 88px);
}
.phone {
  --ph: min(520px, 62svh);
  position: relative; height: var(--ph); aspect-ratio: 9 / 18.5;
  border-radius: calc(var(--ph) * .09); padding: calc(var(--ph) * .11) calc(var(--ph) * .045) 0;
  background: linear-gradient(170deg, #f3f7ee, #e3ecdb); border: 8px solid var(--green-950);
  box-shadow: 0 40px 80px -40px rgba(20, 44, 36, .55);
  opacity: 0;
}
.phone-notch { position: absolute; top: 8px; left: 50%; width: 34%; height: 18px; transform: translateX(-50%); border-radius: 12px; background: var(--green-950); }
.phone-time { position: absolute; top: 10px; left: 9%; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(var(--ph) * .035) calc(var(--ph) * .02); }
.apps li { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 5px; font-size: 12px; line-height: 1.1; text-align: center; color: var(--text-secondary); white-space: nowrap; }
.apps i {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 26%;
  font-style: normal; font-weight: 600; font-size: calc(var(--ph) * .045);
  background: #fff; color: var(--green-700); box-shadow: 0 6px 14px -10px rgba(20, 44, 36, .5);
}
.apps i.soft { background: rgba(255, 255, 255, .55); box-shadow: none; }
.apps .app-you { color: var(--text-primary); font-weight: 600; transform-origin: 50% 40%; opacity: 0; }
.apps .app-you i { background: var(--green-800); color: var(--lime-300); box-shadow: 0 0 0 4px rgba(166, 238, 121, .45), 0 14px 26px -12px rgba(20, 44, 36, .7); }
.phone-copy > * { opacity: 0; }
.pc-title { font-size: clamp(30px, 3.8vw, 56px); line-height: 1.06; letter-spacing: -.035em; font-weight: 500; }
.pc-title em { color: #3f7424; }
.pc-line { margin-top: 20px; max-width: 520px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--text-secondary); }
.pc-strong { color: var(--green-700); font-weight: 600; }
.assoc-hint { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }

/* ---------- ambiția ---------- */
.ambition { margin-top: clamp(40px, 8vh, 90px); text-align: center; max-width: 860px !important; }
.ambition h1 { font-size: clamp(34px, 4.2vw, 60px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.ambition p { margin: 20px auto 0; max-width: 680px; font-size: 18px; line-height: 1.6; color: var(--text-secondary); }
.ambition-strong { font-weight: 600; color: var(--green-700) !important; }

/* ---------- avantajele, comasate ---------- */
.perks-grid-wrap { margin-top: clamp(56px, 9vh, 96px); }
.perks-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.perk {
  position: relative; overflow: hidden;
  padding: 24px 22px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--rule);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s, transform .6s var(--ease-out), box-shadow .4s;
  transition-delay: calc(var(--k) * .1s);
}
.perks-grid-wrap.is-visible .perk { opacity: 1; transform: none; }
.perk:hover { box-shadow: 0 26px 50px -34px rgba(20, 44, 36, .5); transform: translateY(-4px); transition-delay: 0s; }
.perk::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--lime-300); transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease-out); }
.perk:hover::after { transform: scaleX(1); }
.perk-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.perk h3 { margin-top: 12px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.22; }
.perk ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.perk ul li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.45; color: var(--text-secondary); }
.perk ul li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--lime-300) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23263d28' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- toate se adună: brandul e al tău, tehnologia e a noastră ---------- */
.wl-page > .owner-band {
  margin-top: clamp(56px, 9vh, 96px);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(32px, 4vw, 52px); border-radius: 26px;
  background: var(--green-800); color: #f0f7ea;
}
.owner-band h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; }
.wl-page .owner-band h2 em { color: var(--lime-300); }
.owner-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.owner-cols > div { padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(166, 238, 121, .18); }
.half-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-300); }
.half-title { margin-top: 6px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.03em; color: var(--lime-300); }
.owner-cols p:last-child { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-on-dark-muted); }

/* ---------- finalul ---------- */
.wl-page > .wl-final { margin-top: clamp(80px, 12vh, 130px); padding-bottom: clamp(80px, 12vh, 130px); text-align: center; }
.wl-final h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; }
.wl-final p { margin: 16px auto 30px; font-size: 18px; color: var(--text-secondary); }

@media (max-width: 1000px) {
  .perks-grid { grid-template-columns: 1fr 1fr; }
  .wl-page > .owner-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .perks-grid, .owner-cols { grid-template-columns: 1fr; }
  .pair { grid-template-columns: auto; gap: 0; text-align: center; font-size: clamp(34px, 11vw, 56px); }
  .need { text-align: center; }
  .brand, .pair-you .brand { justify-self: center; margin-left: 0; }
  .arrow-to { display: none; }
  .pair + .pair { margin-top: 10px; }
  .phone-scene { top: 54%; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .phone { --ph: min(330px, 40svh); border-width: 6px; }
  .phone-notch { height: 12px; top: 6px; }
  .phone-time { display: none; }
  .apps li { font-size: 0; gap: 0; }
  .apps .app-you { font-size: 12px; gap: 3px; }
  .pc-line { margin: 12px auto 0; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .perk { opacity: 1; transform: none; }
}
