/* ============================================================
   Shared page-level styles for the Pricing and Countries pages.
   Reuses the tokens, buttons, cards, header and footer from
   styles.css; this file only adds the inner-page structure.
   ============================================================ */

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue-950);
  color: #fff;
  padding-block: clamp(56px, 7vw, 96px);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 70% at 18% 0%, rgba(21, 73, 154, 0.6) 0%, rgba(4, 16, 31, 0) 62%),
    radial-gradient(70% 80% at 92% 30%, rgba(58, 112, 194, 0.36) 0%, rgba(4, 16, 31, 0) 66%),
    linear-gradient(180deg, #04101f 0%, #061a38 60%, #04101f 100%);
}
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(85% 70% at 30% 0%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(85% 70% at 30% 0%, #000 0%, transparent 76%);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.page-hero__title {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-top: 18px;
  text-wrap: balance;
}
.page-hero__lead {
  margin-top: 18px;
  max-width: 54ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.72);
}
.page-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 6px;
}
.page-hero__aside .btn { align-self: flex-start; }
.page-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.page-hero__facts span { display: inline-flex; align-items: center; gap: 7px; }
.page-hero__facts svg { width: 15px; height: 15px; color: var(--accent); }
.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.crumbs a { color: rgba(255, 255, 255, 0.7); }
.crumbs a:hover { color: #fff; }
.crumbs svg { width: 12px; height: 12px; opacity: 0.6; }

/* ---------- Toolbar (currency / search / filters) ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--n-150);
  box-shadow: var(--sh-2);
  margin-top: -44px;
  position: relative;
  z-index: 5;
}
.toolbar__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.toolbar__label svg { width: 16px; height: 16px; color: var(--blue-600); }
.currency-pills {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-full);
  background: var(--n-50);
  border: 1px solid var(--n-150);
}
.currency-pills button {
  min-width: 62px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--n-600);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.currency-pills button:hover { background: #fff; color: var(--ink); }
.currency-pills button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.toolbar__note { font-size: 12.5px; color: var(--n-500); }


/* inner-page refinements */
body.page .help-fab { bottom: 18px; right: 18px; }
/* CTA sits right under the list; cards stretch to equal height */
.plans .plan > .plan__list--tight { margin-top: 24px; padding-top: 18px; padding-bottom: 0; }

/* ---------- Plan group headings ---------- */
.plan-group__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.plan-group__head h2 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-top: 10px;
}
.plan-group__head p { font-size: 14px; color: var(--muted); max-width: 52ch; margin-top: 8px; }
.plan-group + .plan-group { margin-top: clamp(48px, 5vw, 72px); }

.plans--duo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.plan__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan__type svg { width: 12px; height: 12px; }
.plan__price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan--featured .plan__type { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: var(--accent); }

.plan__save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}
.plan--featured .plan__save { color: #7ee39a; }
.plan__save svg { width: 13px; height: 13px; }

/* ---------- Comparison table ---------- */
.compare {
  background: var(--white);
  border: 1px solid var(--n-150);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.compare__scroll { overflow-x: auto; }
.compare table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare th,
.compare td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--n-150);
  vertical-align: top;
}
.compare thead th {
  background: var(--n-50);
  font-size: 13px;
  font-weight: 600;
  color: var(--n-700);
  white-space: nowrap;
}
.compare thead th:first-child { width: 26%; }
.compare tbody th {
  font-weight: 500;
  color: var(--n-600);
  background: #fff;
}
.compare td { color: var(--n-700); }
.compare tr:last-child td,
.compare tr:last-child th { border-bottom: 0; }
.compare .yes { display: inline-flex; align-items: center; gap: 7px; color: var(--blue-800); font-weight: 500; }
.compare .yes svg { width: 15px; height: 15px; color: var(--blue-600); flex: none; }
.compare .no { color: var(--n-400); }
.compare__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 16px 20px;
  background: var(--n-50);
  font-size: 12.5px;
  color: var(--n-500);
}

/* ---------- Search field ---------- */
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--n-200);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-field:focus-within {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(58, 112, 194, 0.14);
}
.search-field svg { width: 17px; height: 17px; color: var(--n-400); flex: none; }
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
}
.search-field input::placeholder { color: var(--n-400); }

/* ---------- Filter chips ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--r-full);
  border: 1px solid var(--n-200);
  background: #fff;
  color: var(--n-700);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.chip:hover { border-color: var(--blue-300); color: var(--blue-800); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-full);
  background: var(--n-100);
  color: var(--n-600);
  font-size: 11px;
  font-weight: 700;
}
.chip[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* ---------- Country status system ---------- */
.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.st::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.st--ok { background: rgba(18, 128, 92, 0.1); color: #0d6b4c; }
.st--check { background: rgba(21, 73, 154, 0.1); color: var(--blue-700); }
.st--print { background: rgba(229, 154, 0, 0.14); color: #8a5c00; }
.st--no { background: rgba(192, 57, 43, 0.1); color: #a02c20; }
.st--local { background: rgba(90, 102, 121, 0.12); color: var(--n-700); }

/* ---------- Country groups + cards ---------- */
.country-block + .country-block { margin-top: clamp(44px, 5vw, 72px); }
.country-block__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--n-150);
}
.country-block__head h2 {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.country-block__head .st { height: 26px; }
.country-block__head p { font-size: 13px; color: var(--muted); flex-basis: 100%; max-width: 80ch; }

.country-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.country-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #f6fafe 0%, #e9f1fb 100%);
  border: 1px solid #e0e9f4;
  transition: border-color 0.16s ease, box-shadow 0.2s ease, transform 0.2s ease,
              background-color 0.16s ease;
}
.country-card:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eaf2fc 100%);
  border-color: var(--blue-200);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.country-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.country-card__flag {
  position: relative;
  display: block;
  width: 30px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 1px rgba(11, 21, 38, 0.1);
  background: var(--n-100);
}
.country-card__flag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.country-card__flag--none::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, var(--n-150) 0 6px, var(--n-100) 6px 12px);
}
.country-card__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}
.country-card__meta {
  font-size: 10.5px;
  color: var(--n-500);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.country-card__meta i {
  font-style: normal;
  color: var(--n-300);
}
.country-card__go {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  color: var(--n-400);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.2s ease;
}
.country-card:hover .country-card__go {
  background: var(--navy);
  color: #fff;
  transform: translateX(1px);
}
.country-card__go svg { width: 11px; height: 11px; }
.country-card:hover .country-card__go svg { transform: translateX(3px); }

.countries-empty {
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--n-300);
  border-radius: var(--r-lg);
  color: var(--muted);
  font-size: 14.5px;
}
.countries-empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }


.country-card__code {
  display: grid;
  place-items: center;
  width: 30px;
  height: 20px;
  border-radius: 4px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.country-card__count {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--r-full);
  background: var(--n-100);
  color: var(--n-600);
  font-size: 11.5px;
  font-weight: 700;
}

/* ---------- Limitation callout ---------- */
.limits {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 44px);
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--n-150);
  box-shadow: var(--sh-1);
}
.limits h3 {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.limits p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.limits__list { display: grid; gap: 10px; align-content: start; }
.limits__item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--n-50);
  border: 1px solid var(--n-150);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--n-700);
}
.limits__item span:first-child {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 184, 28, 0.18);
  color: #8a5c00;
  font-size: 12px;
  font-weight: 800;
}
.limits__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--n-150);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- FAQ two-column variant ---------- */
.faq-2col {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.faq-2col .faq__grid { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .country-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .page-hero__inner { grid-template-columns: 1fr; align-items: start; }
  .page-hero__aside { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .limits { grid-template-columns: 1fr; }
  .faq-2col { grid-template-columns: 1fr; }
  .plans--duo { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .toolbar { margin-top: -28px; padding: 14px; gap: 12px; }
  .currency-pills { width: 100%; overflow-x: auto; }
  .currency-pills button { flex: 1; min-width: 54px; }
  .search-field { max-width: none; }
  .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare th, .compare td { padding: 14px 14px; }
  .plan-group__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .country-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .country-card { padding: 10px 11px; gap: 7px; }
  .country-card__name { font-size: 12.5px; }
  .country-card .st { font-size: 10px; height: 21px; padding: 0 8px; }
}


/* ---------- desktop width tuning (matches the wider container) ---------- */
@media (min-width: 1025px) {
  .plans--duo { max-width: 1130px; margin-inline: auto; }
  .plan-group__head { max-width: 1130px; margin-inline: auto; }
  .compare__scroll { max-width: 1280px; margin-inline: auto; }
  .faq-2col { max-width: 1180px; margin-inline: auto; }
  .limits { max-width: 1180px; margin-inline: auto; }
  .search-field { max-width: 460px; }
}

/* ============================================================
   Pricing page — plan cards restyled
   Term on top, price underneath, features and CTA below.
   Scoped to .plans--duo so the homepage pricing block keeps its
   earlier three-up treatment.
   ============================================================ */

.plans--duo .plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--n-150);
  box-shadow: 0 1px 2px rgba(7, 26, 61, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.plans--duo .plan:hover {
  transform: translateY(-3px);
  border-color: var(--blue-200);
  box-shadow: 0 20px 44px rgba(7, 26, 61, 0.11);
}

/* featured card */
.plans--duo .plan--featured {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(58, 112, 194, 0.5) 0%, rgba(4, 16, 31, 0) 58%),
    linear-gradient(180deg, #0a2450 0%, #071a3d 58%, #051530 100%);
  box-shadow: 0 26px 56px rgba(7, 26, 61, 0.28);
}
.plans--duo .plan--featured:hover {
  border-color: transparent;
  box-shadow: 0 32px 66px rgba(7, 26, 61, 0.34);
}

/* head: kind chip + big term */
.plans--duo .plan__head { display: grid; gap: 8px; }
.plans--duo .plan__kind {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-full);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plans--duo .plan--featured .plan__kind {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--accent);
}
.plans--duo .plan__term {
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.plans--duo .plan--featured .plan__term { color: #fff; }
.plans--duo .plan__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 30ch;
  min-height: 39px;
}
.plans--duo .plan--featured .plan__desc { color: rgba(255, 255, 255, 0.66); }

/* price under the term */
.plans--duo .plan__priceline {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.plans--duo .plan--featured .plan__priceline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.plans--duo .plan__amount {
  font-size: clamp(36px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
}
.plans--duo .plan--featured .plan__amount { color: #fff; }
.plans--duo .plan__per {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--n-500);
}
.plans--duo .plan__per b {
  display: block;
  font-weight: 600;
  color: var(--n-600);
}
.plans--duo .plan--featured .plan__per { color: rgba(255, 255, 255, 0.6); }
.plans--duo .plan--featured .plan__per b { color: rgba(255, 255, 255, 0.8); }

.plans--duo .plan__save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--success);
}
.plans--duo .plan--featured .plan__save { color: #7ee39a; }
.plans--duo .plan__save svg { width: 13px; height: 13px; }

/* feature list */
.plans--duo .plan__list {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--n-150);
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}
.plans--duo .plan--featured .plan__list { border-top-color: rgba(255, 255, 255, 0.12); }
.plans--duo .plan__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 9px;
  align-items: start;
  line-height: 1.45;
  color: var(--n-700);
}
.plans--duo .plan--featured .plan__list li { color: rgba(255, 255, 255, 0.84); }
.plans--duo .plan__list svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--blue-600);
}
.plans--duo .plan--featured .plan__list svg { color: var(--accent); }

.plans--duo .plan__note {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

/* CTA pinned to the bottom */
.plans--duo .plan > .btn {
  margin-top: auto;
  padding-top: 0;
}
.plans--duo .plan > .plan__list { margin-bottom: 22px; }

/* badge */
.plans--duo .plan__flag {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #20170a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(229, 154, 0, 0.3);
}

@media (max-width: 760px) {
  .plans--duo .plan { padding: 22px 20px 20px; border-radius: 20px; }
  .plans--duo .plan__amount { font-size: 36px; }
  .plans--duo .plan__desc { min-height: 0; }
}

/* ============================================================
   Pricing page — two-up plan cards with a duration switch
   Print + Digital on the left (Best Value), Digital Only on the
   right. Cards share one height and mirror the reference layout.
   ============================================================ */

/* ---------- duration switch ---------- */
.term-switch {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  margin: clamp(28px, 3vw, 40px) auto 0;
  padding: 5px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--n-150);
  box-shadow: var(--sh-1);
}
.term-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--n-600);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.term-switch__btn:hover { background: var(--n-100); color: var(--ink); }
.term-switch__btn[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- two-up cards ---------- */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
  margin-top: clamp(30px, 3.4vw, 46px);
  max-width: 820px;
  margin-inline: auto;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  aspect-ratio: 360 / 530;
  background: #fff;
  border: 1px solid var(--n-150);
  box-shadow: 0 10px 30px rgba(7, 26, 61, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(7, 26, 61, 0.12);
}

/* highlighted card: light blue ribbon + blue outline */
.pcard--best {
  border: 2px solid var(--blue-300);
  box-shadow: 0 22px 50px rgba(21, 73, 154, 0.16);
}
.pcard--best:hover { box-shadow: 0 28px 60px rgba(21, 73, 154, 0.22); }
.pcard__badge {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #20170a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(229, 154, 0, 0.28);
}

.pcard__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 50px clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 32px);
}

/* head: artwork + title */
.pcard__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.pcard__art {
  display: grid;
  place-items: center;
  width: 82px;
  height: 104px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #eaf2fc 0%, #d8e7f8 100%);
  border: 1px solid var(--blue-100);
  flex: none;
}
.pcard__art img { width: 100%; height: 100%; object-fit: cover; }
.pcard__art svg { width: 34px; height: 34px; color: var(--blue-500); }
.pcard__art--digital { background: linear-gradient(160deg, #f2f6fd 0%, #e2ecfa 100%); }

.pcard__title {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.pcard__format {
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-full);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pcard--best .pcard__format {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.pcard__sub {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* price */
.pcard__price {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: clamp(20px, 2.2vw, 28px);
  padding-bottom: 4px;
}
.pcard__amount {
  font-size: clamp(40px, 4vw, 54px);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.pcard__price-meta {
  display: block;
  padding-bottom: 4px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--n-500);
}
.pcard__price-meta b { display: block; font-weight: 600; color: var(--n-700); }

/* CTA */
.pcard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  margin-top: 20px;
  border-radius: var(--r-full);
  background: var(--blue-600);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(21, 73, 154, 0.26);
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.pcard__cta:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(21, 73, 154, 0.32);
}
.pcard__cta--accent {
  background: var(--accent);
  color: #20170a;
  box-shadow: 0 10px 24px rgba(229, 154, 0, 0.3);
}
.pcard__cta--accent:hover {
  background: #ffc745;
  box-shadow: 0 14px 30px rgba(229, 154, 0, 0.36);
}
.pcard__cta svg { width: 17px; height: 17px; }

/* feature list */
.pcard__list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--n-700);
}
.pcard__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.pcard__list svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  box-sizing: content-box;
}
.pcard__list li.is-no { color: var(--n-500); }
.pcard__list li.is-no svg {
  background: var(--n-100);
  color: var(--n-400);
}

@media (max-width: 900px) {
  .pcard-grid { grid-template-columns: 1fr; gap: 20px; max-width: 560px; }
  .pcard { aspect-ratio: auto; }
  .pcard__head { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .pcard__art { width: 68px; height: 86px; border-radius: 12px; }
  .pcard__title { font-size: 19px; }
  .pcard__amount { font-size: 38px; }
  .term-switch { width: 100%; max-width: 460px; }
}
@media (max-width: 480px) {
  .pcard__body { padding: 46px 18px 22px; }
  .pcard__badge { top: 12px; right: 12px; height: 24px; font-size: 10px; }
  .pcard__head { grid-template-columns: 1fr; }
  .pcard__art { width: 100%; height: 92px; }
  .pcard__art img { object-fit: cover; }
  .term-switch__btn span { font-size: 14px; }
  .term-switch__btn small { font-size: 10px; }
}


/* pricing page: the currency bar sits under the heading, not over a hero */
.toolbar--inline { margin-top: 30px; }

/* card note + list tone (homepage-style content) */
.pcard__note {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--n-600);
}

/* ============================================================
   Country detail pages — /country/<slug>.html
   ============================================================ */

.cpage-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 3vw, 44px) 0 clamp(52px, 5vw, 80px);
  background: var(--navy);
  color: #fff;
}
.cpage-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 90% at 85% 8%, rgba(21, 73, 154, 0.55) 0%, rgba(4, 16, 31, 0) 62%),
    radial-gradient(70% 80% at 10% 90%, rgba(21, 73, 154, 0.32) 0%, rgba(4, 16, 31, 0) 60%),
    linear-gradient(160deg, #04101f 0%, #061a38 55%, #0a2450 100%);
}
.cpage-hero .crumbs { margin-bottom: clamp(24px, 3vw, 38px); }
.cpage-hero__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 2.6vw, 38px);
  align-items: center;
}
.cpage-hero__flag {
  width: 96px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  flex: none;
}
.cpage-hero__flag img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cpage__flag-fallback { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; }
.cpage-hero__title {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
}
.cpage-hero__lead {
  margin-top: 12px;
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.cpage-hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.cpage-hero__badges .st {
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
.cpage-hero__badges .st--ok::before { background: #4ade80; }
.cpage-hero__badges .st--check::before { background: #7cb8f2; }
.cpage-hero__badges .st--print::before { background: var(--accent); }
.cpage-hero__badges .st--no::before { background: #f87171; }
.cpage-hero__badges .st--local::before { background: rgba(255, 255, 255, 0.6); }
.cpage-hero__badges .st::before { background: currentColor; }
.cpage__fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
}
.cpage__fact b { color: #fff; font-weight: 600; }
.cpage-hero__cta {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  flex: none;
}
.cpage-hero__cta .btn { white-space: nowrap; }

/* two column body */
.cpage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.cpage__lead {
  margin-top: 16px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--n-700);
  max-width: 58ch;
}
.cpage__text {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}
.cpage__callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--n-700);
}
.cpage__callout svg { width: 17px; height: 17px; color: var(--blue-600); flex: none; margin-top: 1px; }

.cpage-aside { display: grid; gap: 16px; }
.cpage-card {
  padding: 22px 22px 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--n-150);
  box-shadow: 0 1px 2px rgba(7, 26, 61, 0.04);
}
.cpage-card--soft { background: var(--n-50); box-shadow: none; }
.cpage-card__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--n-500);
}
.cpage-card__facts { display: grid; gap: 12px; margin-top: 16px; }
.cpage-card__facts span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--n-600);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--n-150);
}
.cpage-card__facts span:last-child { border-bottom: 0; padding-bottom: 0; }
.cpage-card__facts b { color: var(--ink); font-weight: 600; }
.cpage-card__text { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.cpage-card .link-arrow { margin-top: 14px; }

/* rules list */
.cpage-rules {
  display: grid;
  gap: 0;
  margin-top: clamp(26px, 3vw, 40px);
  max-width: 1080px;
}
.cpage-rules--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  max-width: 1180px;
}
.cpage__row {
  display: grid;
  grid-template-columns: minmax(160px, 0.5fr) minmax(0, 1.5fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--n-150);
  align-items: baseline;
}
.cpage-rules--two .cpage__row { grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.4fr); gap: 18px; }
.cpage__row dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cpage__row dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* attractions */
.cpage-attr {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.cpage__muted { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* related */
.cpage-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 22px 0 8px;
  border-top: 1px solid var(--n-150);
}
.cpage-related__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n-400);
}
.cpage-related__links { display: flex; flex-wrap: wrap; gap: 8px; }
.cpage__rel {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--n-150);
  font-size: 13px;
  color: var(--n-700);
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.cpage__rel:hover { border-color: var(--blue-300); color: var(--blue-800); background: var(--blue-50); }

@media (max-width: 1080px) {
  .cpage-hero__inner { grid-template-columns: auto minmax(0, 1fr); }
  .cpage-hero__cta { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; }
  .cpage-grid { grid-template-columns: 1fr; }
  .cpage-attr { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cpage-hero__inner { grid-template-columns: 1fr; }
  .cpage-hero__flag { width: 64px; height: 44px; }
  .cpage-hero__cta { grid-auto-flow: row; }
  .cpage-hero__cta .btn { width: 100%; }
  .cpage-rules--two { grid-template-columns: 1fr; gap: 0; }
  .cpage__row { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
}

/* ---- highlights: horizontal photo cards ---- */
.cpage-sights { margin-top: clamp(26px, 3vw, 40px); }
.cpage__attr-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sight {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--n-150);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.sight:hover {
  transform: translateY(-3px);
  border-color: var(--blue-200);
  box-shadow: 0 18px 36px rgba(7, 26, 61, 0.1);
}
.sight__media {
  position: relative;
  display: block;
  height: 100%;
  min-height: 150px;
  background: linear-gradient(135deg, #e8f1fb 0%, #d3e4f7 100%);
  overflow: hidden;
}
.sight__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sight__media.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8f1fb 0%, #d3e4f7 100%);
}
.sight__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px 16px;
  min-width: 0;
}
.sight__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
}
.sight__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.sight__title a { color: inherit; }
.sight__title a:hover { color: var(--blue-700); }
.sight__kind {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: var(--r-full);
  background: var(--n-100);
  color: var(--n-600);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sight__kind--heritage { background: rgba(229, 154, 0, 0.14); color: #8a5c00; }
.sight__kind--nature { background: rgba(18, 128, 92, 0.12); color: #0d6b4c; }
.sight__kind--beach { background: rgba(21, 73, 154, 0.1); color: var(--blue-700); }
.sight__kind--museum { background: rgba(124, 58, 237, 0.1); color: #5b21b6; }
.sight__kind--city { background: var(--n-100); color: var(--n-600); }
.sight__kind--landmark { background: rgba(192, 57, 43, 0.1); color: #a02c20; }
.sight__text {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.5;
  color: var(--muted);
}
.sight__credit {
  margin-top: auto;
  padding-top: 4px;
  font-size: 10px;
  color: var(--n-400);
}
.sight__credit a { color: var(--n-500); text-decoration: underline; text-underline-offset: 2px; }
.sight__credit a:hover { color: var(--blue-700); }

.cpage__callout--note {
  background: #fdf6e8;
  border-color: #f2dfb8;
}
.cpage__callout--note svg { color: #b07d1a; }

@media (max-width: 900px) {
  .cpage__attr-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sight { grid-template-columns: 1fr; }
  .sight__media { aspect-ratio: 16 / 9; min-height: 0; }
}

.sight__media--empty { display: grid; place-items: center; }
.sight__media--empty svg { width: 30px; height: 30px; color: rgba(21, 73, 154, 0.35); }
