.gemel-hero {
  background: var(--yellow);
  color: var(--ink);
}

.gemel-hero::before {
  opacity: 0.1;
}

.gemel-hero .compare-eyebrow {
  background: transparent;
  color: var(--ink);
}

.gemel-hero h1 span {
  color: var(--paper);
  -webkit-text-stroke-color: var(--ink);
  text-shadow: 7px 8px 0 var(--ink);
}

.gemel-hero-art {
  isolation: isolate;
}

.gemel-score-card {
  color: var(--ink);
}

.gemel-character {
  width: 80%;
  height: auto;
  display: block;
  object-fit: contain;
  transform: rotate(6deg);
}

.gemel-score-card strong {
  font-family: "Yarden", Arial, sans-serif;
  font-size: clamp(6rem, 13vw, 10rem);
  line-height: 0.78;
}

.gemel-score-card span {
  max-width: 220px;
  margin-top: 26px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.gemel-chip {
  position: absolute;
  z-index: 2;
  padding: 10px 18px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  box-shadow: 6px 7px 0 var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.chip-return { top: 5%; right: 2%; transform: rotate(7deg); }
.chip-fees { right: -2%; bottom: 13%; transform: rotate(-7deg); background: var(--yellow); }
.chip-track { left: -4%; bottom: 14%; transform: rotate(5deg); }
.chip-service { top: 13%; left: -4%; transform: rotate(-5deg); background: var(--yellow); }

.gemel-star {
  top: -2%;
  left: 18%;
  width: 48px;
}

.gemel-result .result-rate {
  min-width: 150px;
  font-size: 2rem;
}

.gemel-body .choice-row input:focus-visible + span {
  outline-color: var(--ink);
}

.gemel-plans {
  background: var(--yellow);
}

.gemel-point-grid {
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 auto;
}

.gemel-point {
  padding: 28px;
  border: 4px solid var(--ink);
  border-radius: 32px;
  box-shadow: 8px 9px 0 var(--ink);
  background: var(--paper);
}

.gemel-point > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: "Yarden", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.gemel-point h3 {
  margin: 24px 0 12px;
  font-size: 1.75rem;
  line-height: 1;
}

.gemel-point p {
  margin: 0;
  line-height: 1.45;
}

.gemel-market-section {
  padding: 110px clamp(24px, 7vw, 120px);
  border-top: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
  background: var(--paper);
}

.gemel-market-heading {
  max-width: 860px;
  margin: 0 auto 52px;
  text-align: center;
}

.gemel-market-heading > p:first-child {
  margin: 0 0 12px;
  font-weight: 700;
}

.gemel-market-heading h2 {
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  line-height: 0.86;
}

.gemel-market-heading > p:last-child {
  max-width: 700px;
  margin: 26px auto 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.gemel-company-grid {
  max-width: 1450px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0 auto;
}

.gemel-company-card {
  position: relative;
  min-height: 625px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 4px solid var(--ink);
  border-radius: 34px;
  box-shadow: 8px 9px 0 var(--ink);
  background: #fff;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gemel-company-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 13px 0 var(--ink);
}

.gemel-company-card:nth-child(3n + 2) { background: #fff2bd; }
.gemel-company-card:nth-child(3n + 3) { background: var(--yellow); }

.gemel-company-card.is-market-leader {
  background: var(--yellow);
  box-shadow: 11px 12px 0 var(--ink);
}

.gemel-company-card.is-market-leader .gemel-card-highlight { background: #fff2bd; }
.gemel-company-card.is-market-leader .gemel-company-cta { background: #fff; }

.gemel-company-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 190px;
  padding: 18px 15px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 4px 5px 0 var(--ink);
  background: #fff;
  text-align: center;
}

.gemel-company-logo-wrap {
  width: min(100%, 220px);
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  padding: 2px 8px;
}

.gemel-company-logo {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 74px;
  display: block;
  object-fit: contain;
}

.gemel-company-logo-fallback {
  display: none;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--yellow);
  font-family: "Yarden", Arial, sans-serif;
  font-size: 1.75rem;
}

.gemel-company-logo-wrap.is-missing .gemel-company-logo { display: none; }
.gemel-company-logo-wrap.is-missing .gemel-company-logo-fallback { display: grid; }
.gemel-company-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gemel-company-copy h3 { margin: 7px 0 4px; font-size: 1.65rem; line-height: 1; }
.gemel-company-copy p { max-width: 290px; margin: 0; color: #655f50; font-size: 0.92rem; line-height: 1.25; }

.gemel-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #655f50;
  font-size: 0.76rem;
  font-weight: 700;
}

.gemel-source-chip i {
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #5bd468;
  box-shadow: 1px 1px 0 var(--ink);
}

.gemel-source-chip.is-ranking-leader {
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
}

.gemel-provider-infinity .gemel-company-logo,
.gemel-provider-harel .gemel-company-logo,
.gemel-provider-yelin .gemel-company-logo {
  max-width: 70px;
  max-height: 66px;
}

.gemel-provider-altshuler .gemel-company-logo { max-width: 86px; max-height: 82px; }
.gemel-provider-analyst .gemel-company-logo { max-width: 205px; max-height: 56px; }
.gemel-provider-ayalon .gemel-company-logo,
.gemel-provider-mor .gemel-company-logo,
.gemel-provider-menora .gemel-company-logo { max-width: 205px; max-height: 60px; }
.gemel-provider-phoenix .gemel-company-logo,
.gemel-provider-clal .gemel-company-logo,
.gemel-provider-meitav .gemel-company-logo { max-width: 190px; max-height: 70px; }
.gemel-provider-migdal .gemel-company-logo { max-width: 66px; max-height: 78px; }

.gemel-card-highlight {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 18px;
  padding: 20px;
  border: 3px solid var(--ink);
  border-radius: 26px;
  background: var(--yellow);
}

.gemel-company-card:nth-child(3n + 3) .gemel-card-highlight { background: #fff2bd; }

.gemel-yield-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}

.gemel-yield-main span { font-size: 0.88rem; font-weight: 700; }
.gemel-yield-main strong { margin-top: 6px; font-family: "Yarden", Arial, sans-serif; font-size: clamp(3.25rem, 5vw, 5rem); line-height: 0.82; }

.gemel-plan-count {
  max-width: 92px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  font-size: 0.74rem;
  line-height: 1.08;
  text-align: center;
}

.gemel-plan-count strong {
  font-family: "Yarden", Arial, sans-serif;
  font-size: 1.65rem;
  line-height: 1;
}

.gemel-company-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.gemel-company-stats > div {
  min-height: 88px;
  padding: 13px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: rgba(255, 250, 232, 0.72);
}

.gemel-company-stats .gemel-fee-stat {
  grid-column: 1 / -1;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.gemel-company-stats dt { font-size: 0.82rem; line-height: 1.2; }
.gemel-company-stats dd { margin: 5px 0 0; font-size: 1.15rem; font-weight: 700; }
.gemel-company-stats .gemel-fee-stat dd { margin: 0; font-size: 1.4rem; }
.gemel-card-disclaimer { margin: 18px 0; color: #655f50; font-size: 0.88rem; line-height: 1.35; }

.gemel-company-cta {
  min-height: 59px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px 17px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 5px 0 var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.gemel-company-cta:hover,
.gemel-company-cta:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 var(--ink);
}

.gemel-company-card:nth-child(3n + 3) .gemel-company-cta { background: #fff; }
.gemel-company-cta .app-arrow { width: 18px; transform: rotate(90deg); }
.gemel-company-card.is-loading { grid-column: 1 / -1; min-height: 190px; align-items: center; justify-content: center; text-align: center; }

.gemel-market-note {
  max-width: 1040px;
  margin: 38px auto 0;
  padding-top: 24px;
  border-top: 2px dashed var(--ink);
  color: #655f50;
  line-height: 1.5;
  text-align: center;
}

.gemel-market-note a { color: var(--ink); font-weight: 700; }

.gemel-table-head {
  display: grid;
  grid-template-columns: minmax(210px, 1.05fr) minmax(240px, 1.25fr) minmax(175px, 0.8fr) auto;
  gap: 24px;
  padding: 18px 0 12px;
  border-bottom: 2px dashed var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.gemel-tool-row p small {
  font-size: 0.85rem;
  font-weight: 400;
}

@media (max-width: 1100px) {
  .gemel-point-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gemel-company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .gemel-score-card { width: min(64vw, 310px); }
  .chip-return { right: 10%; }
  .chip-fees { right: 7%; }
  .chip-track { left: 7%; }
  .chip-service { left: 7%; }
  .gemel-star { left: 23%; }
  .gemel-table-head { display: none; }
}

@media (max-width: 620px) {
  .gemel-hero h1 span {
    text-shadow: 5px 6px 0 var(--ink);
  }

  .gemel-score-card {
    width: min(70vw, 300px);
  }

  .gemel-score-card strong {
    font-size: clamp(6rem, 28vw, 8rem);
  }

  .gemel-chip {
    padding: 8px 12px;
    border-width: 3px;
    font-size: 0.85rem;
  }

  .gemel-point-grid {
    grid-template-columns: 1fr;
  }

  .gemel-market-section { padding-block: 76px; }
  .gemel-market-heading { margin-bottom: 38px; }
  .gemel-market-heading h2 { font-size: clamp(3.5rem, 16vw, 5rem); }
  .gemel-company-grid { grid-template-columns: 1fr; }
  .gemel-company-card { min-height: 680px; padding: 22px 18px; }
  .gemel-company-brand { gap: 8px; min-height: 180px; padding: 16px 13px; }
  .gemel-company-logo-wrap { width: min(100%, 205px); height: 72px; flex-basis: 72px; }
  .gemel-company-copy h3 { font-size: 1.45rem; }
  .gemel-card-highlight { padding: 18px 15px; }
  .gemel-yield-main strong { font-size: clamp(3.15rem, 16vw, 4.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .gemel-company-card,
  .gemel-company-cta { transition: none; }

  .gemel-company-card:hover,
  .gemel-company-cta:hover,
  .gemel-company-cta:focus-visible { transform: none; }
}
