:root {
  color-scheme: light;
  --bg: #eef2f7;
  --ink: #101623;
  --muted: #596579;
  --subtle: #7a8597;
  --line: #d5dce7;
  --panel: #ffffff;
  --panel-2: #f9fbfd;
  --accent: #0e8a70;
  --accent-dark: #08624f;
  --accent-soft: #e3f6f0;
  --blue: #2658d9;
  --blue-soft: #eaf0ff;
  --shadow: 0 18px 50px rgba(16, 22, 35, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0) 300px),
    var(--bg);
}

a { color: inherit; }

.preview-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.preview-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.preview-brand strong,
.preview-meta strong {
  display: block;
  font-size: 14px;
}

.preview-brand small,
.preview-meta span {
  display: block;
  margin-top: 2px;
  color: var(--subtle);
  font-size: 12px;
}

.preview-nav {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
}

.preview-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.preview-nav a[aria-current="page"],
.preview-nav a:hover {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 3px 14px rgba(16, 22, 35, 0.08);
}

.preview-meta {
  justify-self: end;
  max-width: 360px;
  text-align: right;
}

.page-shell,
.preview-index {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

section {
  margin: 18px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

.page-hero,
.preview-index__hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 46px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 26%, rgba(42, 181, 146, 0.34), transparent 30%),
    linear-gradient(135deg, #101623 0%, #132d3f 52%, #0f6c5a 100%);
  border: 0;
  box-shadow: var(--shadow);
}

.page-hero::after,
.preview-index__hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
}

.destination-hero--image {
  background:
    linear-gradient(90deg, rgba(16, 22, 35, 0.88), rgba(16, 22, 35, 0.48) 56%, rgba(16, 22, 35, 0.2)),
    var(--hero-image),
    linear-gradient(135deg, #101623 0%, #132d3f 52%, #0f6c5a 100%);
  background-size: cover;
  background-position: center;
}

.operator-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: center;
}

.operator-hero__body,
.destination-hero > * {
  position: relative;
  z-index: 1;
}

.operator-hero__logo {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 180px;
  height: 132px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  background: #fff;
}

.operator-hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-hero .eyebrow,
.preview-index__hero .eyebrow {
  color: #85f2d5;
}

h1, h2, h3, p { letter-spacing: 0; }
h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
}
h2 { margin: 0 0 14px; font-size: 29px; line-height: 1.16; }
h3 { margin: 24px 0 8px; font-size: 19px; }
p, li { color: var(--muted); line-height: 1.64; }
.page-hero p,
.preview-index__hero p { color: rgba(255,255,255,0.82); }
.lede {
  max-width: 840px;
  font-size: 19px;
  color: #344054;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.stat-card {
  min-height: 104px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.page-hero .stat-card {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.stat-card strong { display: block; font-size: 25px; line-height: 1.14; }
.stat-card span,
.stat-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.page-hero .stat-card span,
.page-hero .stat-card small { color: rgba(255,255,255,0.76); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}

.operator-card,
.destination-card,
.plan-card {
  display: flex;
  min-height: 106px;
  gap: 15px;
  align-items: center;
  padding: 16px;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(16, 22, 35, 0.04);
}

.operator-card:hover,
.destination-card:hover,
.plan-card:hover {
  border-color: rgba(14, 138, 112, 0.38);
  transform: translateY(-1px);
}

.operator-card__logo {
  display: grid;
  place-items: center;
  width: 74px;
  height: 54px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  flex: 0 0 auto;
}

.operator-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.operator-card__body,
.destination-card__body {
  display: grid;
  gap: 8px;
}

.operator-card strong,
.destination-card strong,
.plan-card strong {
  color: var(--ink);
  font-size: 16px;
}

.destination-card__flag {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-soft);
  font-size: 28px;
  flex: 0 0 auto;
}

.service-badge {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.plan-card {
  align-items: flex-start;
  flex-direction: column;
}

.plan-card__price {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 900;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.review-grid > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.preview-index__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.preview-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

.preview-button--secondary {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.32);
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: #344054;
  font-size: 13px;
  text-transform: uppercase;
}
td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
code {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}
.comparison-section {
  border-color: rgba(10, 166, 142, 0.28);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.comparison-matrix {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  overflow: visible;
}

.comparison-matrix__header,
.comparison-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(150px, 210px) minmax(150px, 210px);
  gap: 22px;
  align-items: stretch;
}

.comparison-copy {
  align-self: center;
}

.comparison-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.comparison-plan {
  display: grid;
  place-items: center;
  align-content: end;
  min-height: 150px;
  padding: 26px 0 0;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.comparison-plan strong {
  display: block;
  padding: 0 18px;
  font-size: 24px;
  line-height: 1.1;
}

.comparison-plan__logo {
  display: block;
  width: min(160px, 82%);
  max-height: 44px;
  object-fit: contain;
}

.comparison-plan span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 26px;
  padding: 10px 14px;
  border-radius: 0;
  color: #fff;
  font-size: 17px;
  letter-spacing: 0;
  font-weight: 950;
  text-transform: uppercase;
}

.comparison-plan--local {
  background: #fff;
}

.comparison-plan--local span {
  background: #fb6b70;
}

.comparison-plan--encryptsim {
  background:
    radial-gradient(circle at 70% 10%, rgba(16, 163, 127, 0.16), transparent 42%),
    #fff;
}

.comparison-plan--encryptsim span {
  background: #0db889;
}

.comparison-row {
  min-height: 72px;
  padding: 10px 8px;
  border-radius: 12px;
  background: #f3f6fa;
}

.comparison-row:nth-child(even) {
  background: #fff;
}

.comparison-feature,
.comparison-cell {
  display: flex;
  align-items: center;
}

.comparison-feature {
  position: relative;
  gap: 9px;
  padding: 0 16px;
}

.comparison-feature strong {
  font-size: 17px;
  line-height: 1.25;
}

.comparison-help {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid #cdd5e0;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: help;
}

.comparison-tooltip {
  position: absolute;
  left: 16px;
  top: calc(100% - 2px);
  z-index: 5;
  display: grid;
  gap: 8px;
  width: min(430px, calc(100vw - 70px));
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.comparison-tooltip b {
  color: var(--ink);
}

.comparison-feature:hover .comparison-tooltip,
.comparison-feature:focus-within .comparison-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.comparison-cell {
  justify-content: center;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 900;
  cursor: help;
}

.comparison-cell__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.comparison-cell--bad {
  color: #8f1d2a;
}

.comparison-cell--good {
  color: #064e3b;
}

.comparison-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.comparison-cell--bad .comparison-icon {
  background: #fb686e;
}

.comparison-cell--good .comparison-icon {
  background: #0db889;
}
.sim-registration-table {
  margin: 18px 0;
}
.sim-registration-table table {
  border: 1px solid var(--line);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.sim-registration-table th {
  width: 280px;
  color: var(--ink);
  text-transform: none;
  background: #f8fafc;
}
.sim-registration-table td {
  font-weight: 800;
}

.phone-brand-section {
  overflow: hidden;
}

.phone-brand-section__intro {
  max-width: 760px;
}

.phone-brand-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  margin-top: 22px;
}

.phone-brand-chart {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(14, 138, 112, 0.08), rgba(255,255,255,0) 46%),
    linear-gradient(145deg, #ffffff, #f7fafc);
}

.phone-brand-chart svg {
  width: min(300px, 82vw);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 28px rgba(16, 22, 35, 0.16));
}

.phone-brand-chart__slice {
  opacity: 0;
  transform: scale(0.001);
  transform-origin: 50px 50px;
  transform-box: fill-box;
  transition:
    opacity 420ms ease,
    transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1),
    filter 160ms ease;
  transition-delay: calc(var(--slice-index) * 95ms);
}

@keyframes phone-brand-slice-pop {
  0% {
    transform: translate(0, 0) scale(1);
  }
  64% {
    transform: translate(var(--slice-pop-overshoot-x), var(--slice-pop-overshoot-y)) scale(1.09);
  }
  100% {
    transform: translate(var(--slice-pop-x), var(--slice-pop-y)) scale(1.065);
  }
}

.phone-brand-layout.is-visible .phone-brand-chart__slice {
  opacity: 0.96 !important;
  transform: scale(1) !important;
}

.phone-brand-chart__slice:hover,
.phone-brand-chart__slice.is-active {
  filter: brightness(1.08) saturate(1.08);
  opacity: 1;
  cursor: pointer;
  animation: phone-brand-slice-pop 280ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  transform: translate(var(--slice-pop-x), var(--slice-pop-y)) scale(1.065) !important;
}

.phone-brand-chart__slice:focus {
  outline: none;
  filter: brightness(1.08) saturate(1.08);
  animation: phone-brand-slice-pop 280ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  transform: translate(var(--slice-pop-x), var(--slice-pop-y)) scale(1.065) !important;
}

.phone-brand-popup {
  position: absolute;
  z-index: 4;
  max-width: 180px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #101623;
  background: #fff;
  font: 800 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(16, 22, 35, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%);
  transition: opacity 120ms ease;
  white-space: nowrap;
}

.phone-brand-popup[aria-hidden="false"] {
  opacity: 1;
}

.phone-brand-chart__center {
  fill: #fff;
  stroke: rgba(16, 22, 35, 0.08);
  stroke-width: 1.5;
}

.phone-brand-panel {
  display: grid;
  gap: 18px;
}

.phone-brand-legend {
  display: grid;
  gap: 10px;
}

.phone-brand-legend__item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.phone-brand-legend__item:hover,
.phone-brand-legend__item:focus,
.phone-brand-legend__item.is-active {
  border-color: var(--brand-color);
  background: color-mix(in srgb, var(--brand-color) 7%, #ffffff);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-color) 18%, rgba(16, 22, 35, 0.08));
  outline: none;
  transform: translateY(-1px);
}

.phone-brand-legend__item span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--brand-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-color) 15%, transparent);
}

.phone-brand-legend__item strong {
  font-size: 14px;
}

.phone-brand-legend__item em {
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}

.popular-esim-devices {
  padding: 18px;
  border: 1px solid rgba(38, 88, 217, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.popular-esim-devices h3 {
  margin: 0 0 8px;
}

.popular-esim-devices p {
  margin-top: 0;
}

.popular-esim-devices__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.popular-esim-device-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}

.popular-esim-device-card strong {
  font-size: 14px;
}

.popular-esim-device-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.faq-accordion {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-right: 6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item__body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}

.faq-item__body p {
  margin: 14px 0 0;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 860px) {
  .preview-bar {
    position: static;
    grid-template-columns: 1fr;
  }
  .preview-nav,
  .preview-meta {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .preview-index {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }
  section,
  .page-hero,
  .preview-index__hero {
    padding: 21px;
  }
  .operator-hero {
    grid-template-columns: 1fr;
  }
  .operator-hero__logo {
    width: 150px;
    height: 110px;
  }
  h1 {
    font-size: 38px;
  }
  .comparison-matrix {
    gap: 10px;
  }
  .comparison-matrix__header {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .comparison-copy {
    grid-column: 1 / -1;
  }
  .comparison-copy p {
    font-size: 15px;
    line-height: 1.55;
  }
  .comparison-plan {
    min-height: 116px;
    padding-top: 18px;
    border-radius: 13px;
  }
  .comparison-plan strong {
    padding: 0 10px;
    font-size: 18px;
  }
  .comparison-plan span {
    min-height: 40px;
    margin-top: 18px;
    font-size: 13px;
  }
  .comparison-row {
    grid-template-columns: minmax(0, 1fr) 58px 58px;
    gap: 8px;
    min-height: 66px;
    padding: 9px;
  }
  .comparison-feature {
    padding: 0 4px;
  }
  .comparison-feature strong {
    font-size: 14px;
  }
  .comparison-help {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
  .comparison-tooltip {
    left: 0;
    width: min(360px, calc(100vw - 46px));
  }
  .comparison-cell {
    min-height: 50px;
    padding: 4px;
  }
  .comparison-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 29px;
  }
  .phone-brand-layout,
  .popular-esim-devices__grid {
    grid-template-columns: 1fr;
  }
  .phone-brand-chart {
    min-height: 280px;
  }
}
