/*
 * EV-BOY Connect promo card on ev-boy.com.
 * Reuses CONNECT.web hero cues: blue band with sheen and yellow/white stripes, yellow chip,
 * app icon and a 26px pill button. The visual is the app home screen rising from the card edge,
 * with zoom lines magnifying its 本月 card into a cut-down ledger card.
 * Band starts at blue-700 so white copy keeps AA contrast (Brand guideline: white text on dark blue).
 */

.connect-promo-section {
  padding-block: 48px 0;
}

.connect-promo-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, 1.15fr);
  align-items: center;
  gap: 40px;
  padding: 36px 48px 0;
  border-radius: 20px;
  background: linear-gradient(105deg, var(--blue-700) 0%, var(--blue-700) 45%, var(--blue) 100%);
  color: #fff;
}

.connect-promo-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.connect-promo-art-narrow {
  display: none;
}

.connect-promo-art .sheen { fill: rgba(255, 255, 255, 0.06); }
.connect-promo-art .stripe-yellow { fill: var(--yellow); }
.connect-promo-art .stripe-white { fill: #fff; }

.connect-promo-copy {
  min-width: 0;
  padding-bottom: 36px;
}

.connect-promo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.connect-promo-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(7, 24, 50, 0.28);
}

.connect-promo-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 16px;
  font-weight: var(--weight-ui-strong);
  line-height: 1.4;
}

.connect-promo-chip {
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.connect-promo-panel .nw {
  white-space: nowrap;
}

.connect-promo-panel h2 {
  display: block;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: var(--weight-heading-strong);
  line-height: 1.2;
}

/* Benefit chips: CONNECT.web .chip, outlined in white on the band; .chip-yellow for 完全免費. */
.connect-promo-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.connect-promo-perk {
  margin: 0;
  padding: 4px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: var(--weight-heading-strong);
  line-height: 1.4;
  white-space: nowrap;
}

.connect-promo-perk-free {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.connect-promo-text {
  display: block;
  max-width: 34em;
  margin: 14px 0 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}

.connect-promo-text strong {
  font-weight: var(--weight-heading-strong);
  white-space: nowrap;
}

.connect-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.connect-promo-actions .btn {
  min-height: 48px;
  padding: 0 26px;
  border-radius: 26px;
  font-size: 16px;
  gap: 8px;
}

.connect-promo-cta {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.connect-promo-cta:hover {
  box-shadow: 0 10px 22px rgba(7, 24, 50, 0.28);
}

.connect-promo-actions .btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Visual: phone -> zoom lines -> ledger. Fixed 560x359 box so the SVG lines meet the phone's 本月 card and the ledger edges. */

.connect-promo-visual {
  position: relative;
  align-self: end;
  justify-self: center;
  width: 560px;
  height: 359px;
}

.connect-promo-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 226px;
  height: 359px;
  padding: 8px 8px 0;
  border-radius: 34px 34px 0 0;
  background: #0b1d36;
  box-shadow: 0 18px 44px rgba(7, 24, 50, 0.35);
}

.connect-promo-phone img {
  display: block;
  width: 210px;
  height: 351px;
  border-radius: 26px 26px 0 0;
  object-fit: cover;
  object-position: top;
}

.connect-promo-zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Thin brand-yellow lines that fade from the focus card toward the ledger, over a faint yellow wash. */
.connect-promo-zoom-stop-near {
  stop-color: var(--yellow);
  stop-opacity: 0.95;
}

.connect-promo-zoom-stop-far {
  stop-color: var(--yellow);
  stop-opacity: 0.6;
}

.connect-promo-zoom line {
  stroke: url(#connect-promo-zoom-fade);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.connect-promo-zoom-beam {
  fill: url(#connect-promo-zoom-fade);
  fill-opacity: 0.12;
}

.connect-promo-zoom-focus {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.5;
}

/* Ledger card (illustrative), the zoom target */

.connect-promo-ledger {
  position: absolute;
  top: 44px;
  left: 290px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 270px;
  height: 272px;
  padding: 18px 12px 12px;
  border-radius: 22px;
  background: #eff5fa;
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(7, 24, 50, 0.22);
  font-size: 13px;
  line-height: 1.35;
}

.connect-promo-ledger p {
  display: block;
  margin: 0;
}

.connect-promo-ledger-head {
  padding: 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.connect-promo-ledger-total {
  padding: 6px 8px 12px;
}

.connect-promo-ledger-total b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.connect-promo-ledger-total span {
  color: var(--muted);
}

.connect-promo-ledger ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 16px;
  background: #fff;
}

.connect-promo-ledger li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-variant-numeric: tabular-nums;
}

.connect-promo-ledger li + li {
  border-top: 1px solid var(--line);
}

.connect-promo-ledger li b {
  display: block;
  font-weight: 650;
  white-space: nowrap;
}

.connect-promo-ledger small {
  display: block;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.connect-promo-ledger-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue-700);
}

.connect-promo-ledger-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connect-promo-ledger .connect-promo-ledger-note {
  margin-top: auto;
  padding: 8px 8px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

@media (max-width: 1080px) {
  .connect-promo-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 40px 0;
  }

  .connect-promo-copy {
    padding-bottom: 0;
  }

  .connect-promo-text {
    max-width: 36em;
  }
}

@media (max-width: 720px) {
  .connect-promo-section {
    padding-block: 32px 0;
  }

  .connect-promo-panel {
    padding: 28px 22px 0;
    border-radius: 18px;
    background: linear-gradient(160deg, var(--blue-700) 0%, var(--blue-700) 55%, var(--blue) 100%);
  }

  .connect-promo-art-wide {
    display: none;
  }

  .connect-promo-art-narrow {
    display: block;
  }

  .connect-promo-icon {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }

  .connect-promo-brand {
    margin-bottom: 14px;
  }

  .connect-promo-text {
    font-size: 16px;
  }

  /* Phone on the left, the magnified ledger overlapping its lower right; lines dropped. */
  .connect-promo-visual {
    width: min(100%, 340px);
    height: 300px;
  }

  .connect-promo-phone {
    width: 180px;
    height: 300px;
    padding: 7px 7px 0;
    border-radius: 28px 28px 0 0;
  }

  .connect-promo-phone img {
    width: 166px;
    height: 293px;
    border-radius: 22px 22px 0 0;
  }

  .connect-promo-zoom {
    display: none;
  }

  .connect-promo-ledger {
    top: auto;
    left: auto;
    right: 0;
    bottom: 22px;
    width: 214px;
    height: auto;
    padding: 14px 8px 8px;
    border-radius: 18px;
    font-size: 12px;
  }

  .connect-promo-ledger-head {
    font-size: 15px;
  }

  .connect-promo-ledger-total b {
    font-size: 22px;
  }

  .connect-promo-ledger li {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px 8px 8px;
  }

  .connect-promo-ledger-icon {
    width: 26px;
    height: 26px;
  }

  .connect-promo-ledger small {
    font-size: 11px;
  }

  .connect-promo-ledger .connect-promo-ledger-note {
    margin-top: 0;
  }
}
