/* home-redesign-20261108 (+ hero-networks-20261108, hero-networks-20261108-p7, hero-networks-20261108-p8, hero-networks-20261108-p9) — homepage sections on the Diva eSIM design system: the hero (banner), Compare, blog cards.
   Tokens come from css/ds.css (--ds-*). Loaded by partials/ds_home_assets.blade.php. */

/* ---------------------------------------------------------------- hero */
.ds-home-hero { position: relative; z-index: 3; overflow: visible; padding: 72px 0 72px; background: linear-gradient(180deg, var(--ds-brand-tint) 0%, var(--ds-surface) 100%); }
.ds-home-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.ds-home-hero__copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ds .ds-home-hero__title { margin: 0; font-family: var(--ds-font-heading); font-weight: 700; font-size: clamp(30px, 3.1vw, 42px); line-height: 1.2; color: var(--ds-brand-deep); letter-spacing: -0.01em; }
.ds .ds-home-hero__title .underline-word svg { bottom: -6px; }
.ds .ds-home-hero__lead { font-size: 17px; line-height: 1.6; color: var(--ds-text-muted); max-width: 540px; }

/* map + pin */
.ds-home-stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ds-home-map { position: relative; width: 100%; aspect-ratio: 1000 / 383; padding: 8px 8px 0; box-sizing: border-box; }
.ds-home-map__img { display: block; width: 100%; height: 100%; opacity: .7; }
.ds-home-pulse { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--ds-brand-accent); transform: translate(-50%, -50%); pointer-events: none; animation: dsh-pulse 2s ease-out infinite; }
.ds-home-pin { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%); z-index: 2; transition: left .6s cubic-bezier(.2, .8, .2, 1), top .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.ds-home-pin.is-drop { animation: dsh-drop .35s ease-out; }
.ds-home-pin__flag { display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; box-sizing: border-box; border: 4px solid var(--ds-surface); background: var(--ds-surface); box-shadow: 0 10px 24px rgba(11, 59, 44, .28); }
.ds-home-pin__flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-home-pin__code { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font: 600 18px/1 var(--ds-font-heading); color: var(--ds-brand-deep); background: var(--ds-brand-tint-strong); }
.ds-home-pin__label { display: block; margin-top: 4px; padding: 4px 10px; border-radius: var(--ds-radius-pill); background: var(--ds-surface); border: 1px solid var(--ds-line); font: 600 12px/1 var(--ds-font-body); color: var(--ds-brand-deep); white-space: nowrap; box-shadow: 0 4px 10px rgba(11, 59, 44, .12); }
.ds-home-pin__tail { display: block; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 12px solid var(--ds-surface); filter: drop-shadow(0 2px 2px rgba(11, 59, 44, .2)); }
@keyframes dsh-pulse { 0% { transform: translate(-50%, -50%) scale(.6); opacity: .8; } 100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; } }
@keyframes dsh-drop { from { transform: translate(-50%, -130%); opacity: 0; } to { transform: translate(-50%, -100%); opacity: 1; } }

/* country pill under the map */
.ds-home-dest { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 10px 12px; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-pill); box-shadow: 0 12px 32px rgba(11, 59, 44, .06); }
.ds-home-dest__who { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.ds-home-dest__name { font: 600 18px/1.2 var(--ds-font-heading); color: var(--ds-text-strong); }
.ds-home-dest__region { font-size: 13px; font-weight: 500; color: var(--ds-text-subtle); }
.ds-home-dest__sep { width: 1px; height: 28px; background: var(--ds-line); flex: none; }
.ds-home-net { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ds-home-net[hidden] { display: none; }
.ds-home-net__ok { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--ds-font-body); color: var(--ds-text); white-space: nowrap; }
.ds-home-net__ok svg { color: var(--ds-brand); }
.ds-home-net__list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ds-home-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; box-sizing: border-box; border-radius: var(--ds-radius-sm); background: var(--ds-brand-tint); border: 1px solid var(--ds-brand-tint-strong); white-space: nowrap; }
.ds-home-chip__name { font: 700 14px/1.1 var(--ds-font-heading); color: var(--ds-brand-deep); }
.ds-home-chip__logo { display: block; width: auto; height: auto; max-height: 24px; max-width: 100px; object-fit: contain; }
.ds-home-chip__tech { font: 700 10px/1 var(--ds-font-body); padding: 4px 6px; border-radius: var(--ds-radius-pill); background: var(--ds-surface); color: var(--ds-brand); }
.ds-home-dest__go { margin-left: 6px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ds-brand); color: var(--ds-on-brand); flex: none; transition: background-color .2s linear; }
.ds-home-dest__go:hover { background: var(--ds-brand-hover); color: var(--ds-on-brand); }
.ds-home-dest__go svg { width: 18px; height: 18px; }

/* trust cards */
.ds-home-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 48px; }
.ds-home-card { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 24px; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); min-width: 0; }
.ds .ds-home-card .ds-tile--md { width: 48px; height: 48px; }
.ds .ds-home-card .ds-tile--md svg, .ds .ds-home-card .ds-tile--md i { width: 24px; height: 24px; font-size: 24px; }
.ds-home-card__body { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; min-width: 0; }
.ds-home-card__title { font: 600 20px/1.2 var(--ds-font-heading); color: var(--ds-brand-deep); }
.ds-home-card__text { font-size: 14px; color: var(--ds-text-muted); }

/* search */
.ds-home-search { position: relative; z-index: 50; max-width: 880px; margin: 136px auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ds-home-search__title { font: 600 20px/1.3 var(--ds-font-heading); color: var(--ds-brand-deep); text-align: center; }
.ds-home-search__box { position: relative; display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%; min-height: 72px; padding: 8px 8px 8px 10px; background: var(--ds-surface); border: 2px solid var(--ds-brand); border-radius: var(--ds-radius-lg); box-shadow: 0 16px 40px rgba(46, 125, 84, .18); transition: border-color .2s linear, box-shadow .2s linear; }
.ds-home-search__box:focus-within { border-color: var(--ds-brand-hover); box-shadow: 0 0 0 5px rgba(46, 125, 84, .18), 0 16px 40px rgba(46, 125, 84, .18); }
.ds-home-search__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--ds-radius-md); background: var(--ds-brand-tint-strong); color: var(--ds-brand); flex: none; }
.ds-home-search__icon svg { width: 26px; height: 26px; }
.ds-home-search__input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font: 500 18px/1.2 var(--ds-font-body); color: var(--ds-text-strong); padding: 0; box-shadow: none; }
.ds-home-search__input::placeholder { color: var(--ds-text-subtle); }
.ds-home-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ds-home-search__btn { height: 52px; padding: 0 26px; border: 1px solid var(--ds-brand); border-radius: var(--ds-radius-md); background: var(--ds-brand); color: var(--ds-on-brand); font: 600 16px/1 var(--ds-font-body); cursor: pointer; flex: none; transition: background-color .2s linear; }
.ds-home-search__btn:hover { background: var(--ds-brand-hover); }
.ds-home-results { position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; right: 0; max-height: 420px; overflow-y: auto; background: var(--ds-surface); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-md); box-shadow: var(--ds-shadow-menu); padding: 8px; text-align: left; }
.ds-home-results[hidden] { display: none; }
.ds-home-results__group + .ds-home-results__group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ds-line); }
.ds-home-results__label { margin: 0; padding: 8px 12px 4px; font: 700 11px/1.4 var(--ds-font-body); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ds-brand); }
.ds-home-results__empty { margin: 0; padding: 12px; font-size: 14px; color: var(--ds-text-muted); }
.ds-home-result { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; border-radius: var(--ds-radius-sm); color: var(--ds-text-strong); font: 500 15px/1.3 var(--ds-font-body); }
.ds-home-result:hover, .ds-home-result:focus-visible { background: var(--ds-brand-tint); color: var(--ds-text-strong); }
.ds-home-result img, .ds-home-result__dot { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--ds-brand-tint-strong); display: inline-flex; align-items: center; justify-content: center; font: 600 10px/1 var(--ds-font-heading); color: var(--ds-brand-deep); }
.ds-home-result--region img, .ds-home-result--global img { border-radius: var(--ds-radius-sm); }
.ds-home-result__name { flex: 1; min-width: 0; }
.ds-home-result__sub { font-size: 13px; color: var(--ds-text-muted); white-space: nowrap; }

/* ---------------------------------------------------------------- compare */
.ds-compare .section-heading { margin-bottom: 40px; }
.ds-compare__scroll { width: 100%; overflow-x: auto; }
.ds-compare__box { border: 1px solid var(--ds-line); border-radius: var(--ds-radius-lg); background: var(--ds-surface); overflow: hidden; min-width: 980px; }
.ds-compare__table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; font-size: 14px; }
.ds-compare__c0 { width: 20%; }
.ds-compare__c1 { width: 22%; }
.ds-compare__table th, .ds-compare__table td { padding: 18px 20px; vertical-align: top; text-align: left; border: 0; border-top: 1px solid var(--ds-line); border-left: 1px solid var(--ds-line); line-height: 1.5; background: var(--ds-surface); }
.ds-compare__table th:first-child, .ds-compare__table td:first-child { border-left: 0; }
.ds-compare__table thead th { border-top: 0; vertical-align: bottom; background: var(--ds-surface-muted); padding: 22px 20px; }
.ds-compare__feature-head { font: 700 12px/1.4 var(--ds-font-body); letter-spacing: 2px; text-transform: uppercase; color: var(--ds-text-muted); }
.ds-compare__table tbody th { font: 600 15px/1.5 var(--ds-font-body); color: var(--ds-text-strong); }
.ds-compare__who { display: flex; align-items: center; gap: 12px; }
.ds-compare__tile { width: 44px; height: 44px; border-radius: var(--ds-radius-sm); background: var(--ds-surface); border: 1px solid var(--ds-line); color: var(--ds-text-muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ds-compare__tile svg { width: 24px; height: 24px; }
.ds-compare__names { display: flex; flex-direction: column; gap: 2px; }
.ds-compare__name { font: 600 20px/1.2 var(--ds-font-heading); color: var(--ds-text-strong); }
.ds-compare__desc { font-size: 13px; font-weight: 500; color: var(--ds-text-muted); }
.ds-compare__badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 7px 12px; border-radius: var(--ds-radius-pill); background: var(--ds-surface); color: var(--ds-brand); font: 700 12px/1 var(--ds-font-body); letter-spacing: .06em; text-transform: uppercase; }
.ds-compare__badge svg { width: 12px; height: 12px; }
/* the Diva eSIM column */
.ds-compare__table thead th.is-you { background: var(--ds-brand-deep); color: var(--ds-on-brand); border-left: 2px solid var(--ds-brand-accent); border-right: 2px solid var(--ds-brand-accent); }
.ds-compare__table thead th.is-you .ds-compare__name, .ds-compare__table thead th.is-you .ds-compare__desc { color: var(--ds-on-brand); }
.ds-compare__table thead th.is-you .ds-compare__tile { background: var(--ds-surface); border-color: var(--ds-surface); color: var(--ds-brand-deep); width: 48px; height: 48px; border-radius: 10px; }
.ds-compare__table thead th.is-you .ds-compare__name { font-size: 22px; }
.ds-compare__table td.is-you { background: var(--ds-brand-tint-strong); border-top-color: #d7efe2; border-left: 2px solid var(--ds-brand-accent); border-right: 2px solid var(--ds-brand-accent); }
.ds-compare__table td.is-you + td { border-left: 0; }
.ds-compare__table thead th.is-you + th { border-left: 0; }
.ds-compare__table td.is-you .ds-compare__cell { color: var(--ds-brand-deep); font-weight: 600; }
.ds-compare__cell { display: flex; align-items: flex-start; gap: 10px; color: var(--ds-text); }
.ds-compare__mark { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ds-compare__mark svg { width: 14px; height: 14px; }
.ds-compare__mark--yes { background: var(--ds-brand); color: var(--ds-on-brand); }
.ds-compare__mark--partly { background: #fff4e5; color: #b45309; }
.ds-compare__mark--no { background: #fef2f2; color: #dc3545; }
.ds-compare__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.ds-compare__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 14px; color: var(--ds-text-muted); }
.ds-compare__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.ds-compare__legend .ds-compare__mark { width: 22px; height: 22px; }
.ds-compare__legend .ds-compare__mark svg { width: 12px; height: 12px; }
.ds-compare__note { color: var(--ds-text-subtle); }
.ds-compare__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ds .ds-btn--primary { background: var(--ds-brand); color: var(--ds-on-brand); border: 1px solid var(--ds-brand); }
.ds .ds-btn--primary:hover { background: var(--ds-brand-hover); border-color: var(--ds-brand-hover); color: var(--ds-on-brand); }
.ds .ds-btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- blog cards on the homepage */
.ds-home-blog .dvb-grid { margin-top: 8px; }
.ds-home-blog__more { display: flex; justify-content: center; margin-top: 32px; }

/* ---------------------------------------------------------------- breakpoints (Bootstrap widths) */
@media (min-width: 768px) {
    .ds-home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .ds-home-hero { padding: 88px 0 80px; }
    .ds-home-hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 12fr); gap: 40px; }
}
@media (max-width: 991px) {
    .ds-home-hero__copy { text-align: center; align-items: center; }
    .ds-home-dest { flex-wrap: wrap; justify-content: center; border-radius: var(--ds-radius-lg); padding: 14px 16px; row-gap: 10px; }
    .ds-home-dest__sep { display: none; }
    .ds-home-dest__who { width: 100%; justify-content: center; white-space: normal; }
    .ds-home-pin__flag { width: 52px; height: 52px; border-width: 3px; }
}
@media (max-width: 767px) {
    .ds-home-hero { padding: 48px 0 56px; }
    .ds-home-card { justify-content: flex-start; padding: 14px 16px; }
    .ds-home-search { margin-top: 56px; }
    .ds-home-search__box { min-height: 60px; padding: 6px 6px 6px 8px; gap: 8px; }
    .ds-home-search__icon { width: 44px; height: 44px; }
    .ds-home-search__input { font-size: 16px; }
    .ds-home-search__btn { height: 44px; padding: 0 16px; font-size: 14px; }
    .ds-home-result__sub { display: none; }
    .ds-compare__foot { flex-direction: column; align-items: stretch; }
    .ds-compare__actions .ds-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .ds-home-pulse { animation: none; opacity: .5; }
    .ds-home-pin { transition: none; }
}
