/* Home hero: differentiators (USPs) + the real team, in four designs.
   html[data-hero] = a (default) | b | c | d — chosen by ?hero=… (kept for the session), see hero-variants.js.
   .hero-copy is flattened (display: contents) so every block can be placed on the hero grid per design. */

.hero-v .hero-copy { display: contents; }
.hero-v .hero-grid { grid-template-areas: "bubble quote" "usp quote" "team quote" "actions quote"; column-gap: 44px; row-gap: 16px; align-items: start; }
.hero-v .hero-bubble { grid-area: bubble; margin-bottom: 0; }
.hero-v .usp { grid-area: usp; }
.hero-v .hero-team { grid-area: team; }
.hero-v .hero-actions { grid-area: actions; }
.hero-v #quote { grid-area: quote; align-self: center; }

/* kicker line above the H1 */
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 5px 12px 5px 14px; border-radius: 99px;
  background: linear-gradient(135deg, #fff6d6, #ffe9a8); color: #6b4a00; font-size: 14px; font-weight: 800; }
.hero-kicker .ic { width: 16px; height: 16px; color: #e19b00; fill: #ffc531; stroke: #c98600; }

/* ---------- USPs (shared) ---------- */
.usp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.usp li { position: relative; display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px;
  background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 14px 30px -18px rgba(20,42,82,.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; }
.usp li::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--u, #1d8cf8); }
.usp-ic { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--u, #1d8cf8), var(--u2, #22d3ee)); box-shadow: 0 10px 18px -8px var(--u, #1d8cf8); }
.usp-ic .ic { width: 26px; height: 26px; }
.usp b { font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.usp li > span:last-child { font-size: 13.5px; color: #3d5170; line-height: 1.35; }
.usp-price { --u: #f59e0b; --u2: #fbbf24; }
.usp-happy { --u: #16a34a; --u2: #4ade80; }
.usp-team  { --u: #1d4ed8; --u2: #3b82f6; }
.usp-gear  { --u: #0891b2; --u2: #22d3ee; }
/* the two promises the owner leads with get a gentle pulse on the icon */
.usp-price .usp-ic, .usp-happy .usp-ic { animation: usp-pulse 3.2s ease-in-out infinite; }
.usp-happy .usp-ic { animation-delay: 1.6s; }
@keyframes usp-pulse { 0%, 70%, 100% { transform: none; } 80% { transform: scale(1.14) rotate(-6deg); } 90% { transform: scale(1.06) rotate(4deg); } }

/* ---------- team media (shared pieces) ---------- */
.hero-team { margin: 0; }
.ht-media { position: relative; }
.ht-media img, .ht-video { display: block; object-fit: cover; }
.ht-video, .ht-seal { display: none; }
.ht-live { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(12,45,90,.86); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ht-live i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.hero-team figcaption strong { display: block; color: var(--navy); font-size: 16px; font-weight: 800; }
.hero-team figcaption span { color: #3d5170; font-size: 14px; }

/* ================= A · photo hero + USP tiles + team strip (default) ================= */
html[data-hero="a"] .hero-team { display: flex; align-items: center; gap: 16px; padding: 10px; padding-inline-end: 18px; border-radius: 22px;
  background: rgba(255,255,255,.88); box-shadow: 0 18px 40px -22px rgba(20,42,82,.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html[data-hero="a"] .ht-media { flex: none; display: flex; gap: 6px; }
html[data-hero="a"] .ht-media img { width: 84px; height: 96px; border-radius: 14px; }
html[data-hero="a"] .usp li { padding: 10px 12px; }
html[data-hero="a"] .hero-grid { row-gap: 12px; }
html[data-hero="a"] .ht-media .ht-3 { object-position: 30% 20%; }
html[data-hero="a"] .ht-live { bottom: 6px; inset-inline-start: 6px; font-size: 11px; padding: 3px 8px; }
html[data-hero="a"] .hero-team figcaption { min-width: 0; }

/* ================= B · team video spotlight (dark) ================= */
html[data-hero="b"] .hero { background: radial-gradient(1200px 600px at 75% 10%, #1561b5 0%, transparent 60%), linear-gradient(160deg, #0a2448 0%, #0c3a73 55%, #0b4f8a 100%); }
html[data-hero="b"] .hero::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23f7fbff' d='M0 50 C 240 100 480 0 720 40 C 960 80 1200 10 1440 45 L1440 90 L0 90 Z'/%3E%3C/svg%3E"); }
html[data-hero="b"] :is(.hero-photo, .hero-wash, .hero-shine) { display: none; }
html[data-hero="b"] .hero-grid { grid-template-columns: minmax(0, 1fr) 250px minmax(0, .95fr); grid-template-areas: "bubble team quote" "usp team quote" "actions team quote"; column-gap: 34px; align-items: center; }
html[data-hero="b"] .hero-bubble { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
html[data-hero="b"] .hero h1 { color: #fff; text-shadow: none; font-size: clamp(30px, 2.8vw, 42px); }
html[data-hero="b"] .hero .lead { color: #cfe3ff; }
html[data-hero="b"] .usp { grid-template-columns: 1fr; gap: 8px; }
html[data-hero="b"] .usp li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); box-shadow: none; padding: 9px 12px; grid-template-columns: 40px 1fr; }
html[data-hero="b"] .usp li::before { display: none; }
html[data-hero="b"] .usp-ic { width: 40px; height: 40px; border-radius: 12px; }
html[data-hero="b"] .usp-ic .ic { width: 22px; height: 22px; }
html[data-hero="b"] .usp b { color: #fff; font-size: 16px; }
html[data-hero="b"] .usp li > span:last-child { color: #a9c6ec; font-size: 13px; }
html[data-hero="b"] .hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
html[data-hero="b"] .hero-team { align-self: center; text-align: center; }
html[data-hero="b"] .ht-media { padding: 10px; border-radius: 38px; background: linear-gradient(160deg, #1e293b, #0f172a); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 2px rgba(255,255,255,.08), 0 0 60px -10px rgba(34,211,238,.45); }
html[data-hero="b"] .ht-video { display: block; width: 100%; aspect-ratio: 9 / 16; height: auto; border-radius: 30px; background: #0f172a; }
html[data-hero="b"] .ht-media img { display: none; }
html[data-hero="b"] .ht-live { top: 22px; inset-inline-start: 22px; }
html[data-hero="b"] .hero-team figcaption { margin-top: 14px; }
html[data-hero="b"] .hero-team figcaption strong { color: #fff; }
html[data-hero="b"] .hero-team figcaption span { color: #a9c6ec; font-size: 13px; }
/* floating proof chips around the phone */
html[data-hero="b"] .ht-media::before, html[data-hero="b"] .ht-media::after { position: absolute; z-index: 3; padding: 7px 12px; border-radius: 14px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); animation: bob 5s ease-in-out infinite; }
html[data-hero="b"] .ht-media::before { content: '✓ חומרי Buzil'; top: 38%; inset-inline-end: -34px; }
html[data-hero="b"] .ht-media::after { content: '✓ אוסמוזה הפוכה'; bottom: 16%; inset-inline-start: -40px; animation-delay: 2.5s; }

/* ================= C · guarantee seal (bright, bold promises) ================= */
html[data-hero="c"] .hero { background: radial-gradient(circle at 1px 1px, rgba(29,140,248,.18) 1.2px, transparent 1.6px) 0 0 / 22px 22px, linear-gradient(170deg, #ffffff 0%, #eef7ff 60%, #e2f3ff 100%); }
html[data-hero="c"] :is(.hero-photo, .hero-wash, .hero-shine) { display: none; }
html[data-hero="c"] .hero-grid { grid-template-areas: "bubble quote" "usp quote" "actions quote"; }
html[data-hero="c"] .hero-bubble { position: relative; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; padding-inline-end: 190px; min-height: 180px; width: auto; }
html[data-hero="c"] .hero h1 { text-shadow: none; }
html[data-hero="c"] .usp { grid-template-columns: 1fr; gap: 0; background: #fff; border-radius: 24px; box-shadow: 0 24px 50px -28px rgba(20,42,82,.45); padding: 6px 8px; }
html[data-hero="c"] .usp li { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 12px 10px; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-hero="c"] .usp li + li { border-top: 1px dashed #d6e6f7; }
html[data-hero="c"] .usp li::before { display: none; }
html[data-hero="c"] .usp b { font-size: 21px; width: fit-content; background: linear-gradient(transparent 58%, var(--hl, #fff0a8) 58%, var(--hl, #fff0a8) 92%, transparent 92%); }
html[data-hero="c"] .usp-price { --hl: #ffe58a; } html[data-hero="c"] .usp-happy { --hl: #bbf7d0; }
html[data-hero="c"] .usp-team { --hl: #dbeafe; } html[data-hero="c"] .usp-gear { --hl: #cffafe; }
/* the seal: a round team photo inside a rotating ring of the three promises — sits beside the headline */
html[data-hero="c"] .hero-team { grid-area: bubble; justify-self: end; align-self: start; width: 178px; position: relative; z-index: 2; }
html[data-hero="c"] .ht-media { width: 178px; height: 178px; }
html[data-hero="c"] .ht-media img { display: none; }
html[data-hero="c"] .ht-media .ht-1 { display: block; position: absolute; inset: 24px; width: 130px; height: 130px; border-radius: 50%; object-position: 40% 22%; border: 4px solid #fff; box-shadow: 0 14px 30px -12px rgba(20,42,82,.6); }
html[data-hero="c"] .ht-seal { display: block; position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
html[data-hero="c"] .ht-seal i { position: absolute; left: 50%; top: 0; height: 50%; width: 14px; margin-left: -7px; transform-origin: 50% 100%; transform: rotate(var(--a)); font: 800 13px/1 Heebo, sans-serif; font-style: normal; color: var(--navy); text-align: center; }
html[data-hero="c"] .ht-media::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: conic-gradient(from 0deg, #ffe58a, #bbf7d0, #bae6fd, #ffe58a); opacity: .55; }
html[data-hero="c"] .ht-live { display: none; }
html[data-hero="c"] .hero-team figcaption { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= D · split with full-height team photo ================= */
html[data-hero="d"] .hero { background: linear-gradient(160deg, #e7f4ff 0%, #f6fbff 60%, #ffffff 100%); }
html[data-hero="d"] :is(.hero-photo, .hero-wash, .hero-shine) { display: none; }
html[data-hero="d"] .hero-grid { grid-template-columns: minmax(0, 1fr) 370px minmax(120px, .3fr); grid-template-areas: "bubble quote ." "usp quote ." "actions quote ."; position: relative; align-items: start; }
html[data-hero="d"] .hero-bubble { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
html[data-hero="d"] .hero h1 { text-shadow: none; }
html[data-hero="d"] #quote { position: relative; z-index: 2; }
/* the photo bleeds from behind the quote card to the edge of the screen */
html[data-hero="d"] .hero-team { grid-area: auto; position: absolute; z-index: 0; top: -40px; bottom: -80px; inset-inline-end: calc((100% - 100vw) / 2); width: calc(50vw - 150px); }
html[data-hero="d"] .ht-media { height: 100%; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
html[dir="rtl"][data-hero="d"] .ht-media { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
html[data-hero="d"] .ht-media img { display: none; }
html[data-hero="d"] .ht-media .ht-1 { display: block; width: 100%; height: 100%; object-position: 30% 30%; animation: kenburns 30s ease-in-out infinite alternate; }
html[data-hero="d"] .ht-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,36,72,.55), transparent 40%); }
html[data-hero="d"] .ht-live { top: 70px; inset-inline-end: 24px; }
html[data-hero="d"] .hero-team figcaption { position: absolute; z-index: 2; bottom: 110px; inset-inline-end: 28px; max-width: 260px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }
html[data-hero="d"] .usp { grid-template-columns: 1fr; gap: 8px; }
html[data-hero="d"] .usp li { background: #fff; padding: 9px 12px; grid-template-columns: 40px 1fr; }
html[data-hero="d"] .usp-ic { width: 40px; height: 40px; border-radius: 12px; }
html[data-hero="d"] .usp-ic .ic { width: 22px; height: 22px; }
html[data-hero="d"] .hero-team figcaption { bottom: auto; top: 130px; }

/* ---------- design switcher (only shown when a ?hero= link is used) ---------- */
.hero-switch { position: fixed; z-index: 60; bottom: 86px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 99px; background: rgba(12,45,90,.94); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); }
.hero-switch span { padding: 0 8px; }
.hero-switch button { font: inherit; border: 0; background: none; cursor: pointer; color: #fff; text-decoration: none; min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 99px; padding: 0 10px; }
.hero-switch button[aria-current] { background: linear-gradient(135deg, #1d8cf8, #22d3ee); }

/* ---------- desktop height tuning (keeps the review ribbon close to the fold) ---------- */
@media (min-width: 981px) {
  .hero-v .hero-bubble h1 { font-size: clamp(30px, 2.8vw, 42px); }
  .hero-v .hero-bubble .lead { font-size: 16.5px; }
}
@media (min-width: 981px) and (max-width: 1180px) {
  html[data-hero="b"] .hero-grid { grid-template-columns: minmax(0, 1fr) 230px minmax(0, .9fr); column-gap: 24px; }
  html[data-hero="b"] .ht-media::before, html[data-hero="b"] .ht-media::after { display: none; }
  html[data-hero="d"] .hero-grid { grid-template-columns: minmax(0, 1fr) 360px 90px; }
  .usp b { font-size: 15.5px; }
}

/* ---------- tablet & phone: one column ---------- */
@media (max-width: 980px) {
  .hero-v .hero-grid, html[data-hero] .hero-v .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bubble" "usp" "actions" "team" "quote"; row-gap: 16px; }
  html[data-hero="b"] .hero-v .hero-grid { grid-template-areas: "bubble" "team" "usp" "actions" "quote"; }
  html[data-hero="d"] .hero-v .hero-grid { grid-template-areas: "bubble" "team" "usp" "actions" "quote"; }
  html[data-hero="b"] .hero-team { width: min(240px, 62vw); justify-self: center; }
  html[data-hero="b"] .ht-media::before { inset-inline-end: -48px; } html[data-hero="b"] .ht-media::after { inset-inline-start: -54px; }
  html[data-hero="c"] .hero-bubble { padding-inline-end: 0; padding-top: 0; min-height: 0; }
  html[data-hero="c"] .hero-team { grid-area: team; justify-self: center; margin-bottom: -6px; width: 150px; }
  html[data-hero="c"] .hero-v .hero-grid { grid-template-areas: "team" "bubble" "usp" "actions" "quote"; }
  html[data-hero="c"] .ht-media { width: 150px; height: 150px; }
  html[data-hero="c"] .ht-media .ht-1 { inset: 21px; width: 108px; height: 108px; }
  html[data-hero="c"] .ht-seal i { font-size: 11px; }
  html[data-hero="d"] .hero-team { grid-area: team; position: relative; top: auto; bottom: auto; inset-inline-end: auto; width: auto; height: 300px; }
  html[data-hero="d"] .ht-media, html[dir="rtl"][data-hero="d"] .ht-media { border-radius: 24px; clip-path: none; }
  html[data-hero="d"] .ht-media .ht-1 { object-position: 30% 48%; }
  html[data-hero="d"] .hero-team figcaption { top: auto; bottom: 14px; inset-inline-end: 14px; inset-inline-start: 14px; max-width: none; padding: 10px 14px; }
  html[data-hero="d"] .ht-live { top: 14px; inset-inline-end: 14px; }
}
@media (max-width: 640px) {
  .usp { gap: 8px; }
  .usp li { grid-template-columns: 1fr; padding: 10px 10px 10px 12px; text-align: center; justify-items: center; row-gap: 6px; }
  .usp-ic { grid-row: auto; width: 40px; height: 40px; }
  .usp b { font-size: 14.5px; }
  .usp li > span:last-child { font-size: 12px; }
  html:is([data-hero="b"], [data-hero="c"], [data-hero="d"]) .usp li { grid-template-columns: 40px 1fr; text-align: start; justify-items: start; }
  html:is([data-hero="b"], [data-hero="c"], [data-hero="d"]) .usp-ic { grid-row: span 2; }
  html[data-hero="c"] .usp b { font-size: 17px; }
  html[data-hero="a"] .hero-team { padding-inline-end: 12px; gap: 12px; }
  html[data-hero="a"] .ht-media img { width: 70px; height: 92px; }
  html[data-hero="a"] .ht-media .ht-3 { display: none; }
  .hero-kicker { font-size: 12.5px; }
  .hero-switch { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  html[data-hero="d"] .hero-team { height: 260px; }
  html[data-hero="d"] .hero-team figcaption span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .usp-ic, .ht-seal, .ht-live i, html[data-hero="b"] .ht-media::before, html[data-hero="b"] .ht-media::after, html[data-hero="d"] .ht-media .ht-1 { animation: none !important; }
}

/* side-by-side preview frames (hero-compare.html): no cookie banner covering the hero */
html[data-preview] .consent { display: none !important; }
.hero-switch .hs-compare { color: #fff; text-decoration: none; padding: 0 12px; height: 34px; display: grid; place-items: center; border-radius: 99px; background: rgba(255,255,255,.14); margin-inline-start: 4px; white-space: nowrap; }
