/* ============================================================
   WorldIDP — Pricing page styles
   Reuses the homepage price-card / validity-toggle / trust /
   FAQ systems from styles.css. Everything here is p- prefixed.
   Brand tokens (--blue-700 …) inherited from styles.css.
   ============================================================ */

.p-page {
  --p-navy-1: #06122c;
  --p-navy-2: #0a1b3d;
  --p-navy-3: #122a63;
  --p-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* reveal primitive */
.p-rise {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--p-ease),
    transform 0.7s var(--p-ease);
  transition-delay: var(--p-d, 0s);
}
.p-rise.is-in { opacity: 1; transform: none; }

/* ============================================================
   HERO — cinematic full-bleed "open road" with a glass price tag
   ============================================================ */
.p-hero {
  position: relative;
  min-height: 82vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  color: #eaf2ff;
  --p-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.p-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% center;
  z-index: -3;
  transform: scale(1.06);
  animation: p-kenburns 20s ease-out forwards;
}
@keyframes p-kenburns { to { transform: scale(1); } }
.p-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(5, 11, 26, 0.5) 0%, rgba(5, 11, 26, 0.18) 28%, rgba(5, 11, 26, 0.5) 64%, rgba(5, 11, 26, 0.95) 100%),
    linear-gradient(90deg, rgba(5, 11, 26, 0.82) 0%, rgba(5, 11, 26, 0.28) 46%, rgba(5, 11, 26, 0.04) 76%);
}
.p-hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(42% 52% at 14% 72%, rgba(21, 144, 255, 0.3), transparent 60%);
  mix-blend-mode: screen;
}
.p-hero-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.8;
  pointer-events: none;
}
.p-hr-line {
  fill: none;
  stroke: url(#pHeroRoute);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 12;
  animation: p-flow 9s linear infinite;
}
@keyframes p-flow { to { stroke-dashoffset: -340; } }

.p-hero-inner {
  position: relative;
  width: var(--container);
  margin-inline: auto;
  padding: 10.5rem 0 3.8rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.p-hero-copy { max-width: 40rem; }
.p-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bfe0ff;
  margin: 0 0 1rem;
  opacity: 0;
  animation: p-rise 0.7s var(--p-ease) 0.05s forwards;
}
.p-hero-kicker .p-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36d27a;
  box-shadow: 0 0 0 0 rgba(54, 210, 122, 0.7);
  animation: p-live 2.4s ease-out infinite;
}
@keyframes p-live {
  0% { box-shadow: 0 0 0 0 rgba(54, 210, 122, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(54, 210, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(54, 210, 122, 0); }
}
.p-hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.2rem);
  letter-spacing: -0.022em;
  line-height: 1.03;
  text-wrap: balance;
  opacity: 0;
  animation: p-rise 0.8s var(--p-ease) 0.16s forwards;
}
.p-hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, #8fc7ff, #d9ecff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.p-hero-sub {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: #c4d6f2;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.18rem);
  line-height: 1.6;
  font-weight: 500;
  opacity: 0;
  animation: p-rise 0.8s var(--p-ease) 0.28s forwards;
}
.p-hero-chips {
  list-style: none;
  margin: 0 0 1.9rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  opacity: 0;
  animation: p-rise 0.8s var(--p-ease) 0.38s forwards;
}
.p-hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(180, 210, 255, 0.28);
  color: #dceaff;
  font-size: 0.84rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.p-hero-chips svg { width: 15px; height: 15px; color: #8fc7ff; flex: none; }
.p-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: p-rise 0.8s var(--p-ease) 0.48s forwards;
}
.p-hero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 2rem;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(135deg, #3a74ff 0%, #2456e6 52%, #1c3da0 100%);
  box-shadow: 0 18px 38px rgba(7, 88, 216, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
  transition: transform 0.22s var(--p-ease), box-shadow 0.22s var(--p-ease);
}
.p-hero-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  animation: p-shine 5s ease-in-out infinite;
}
@keyframes p-shine {
  0%, 60% { left: -130%; }
  85%, 100% { left: 170%; }
}
.p-cta-arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.p-cta-arrow svg { width: 15px; height: 15px; animation: p-bob 1.8s ease-in-out infinite; }
@keyframes p-bob {
  0%, 100% { transform: translateY(-1.5px); }
  50% { transform: translateY(2px); }
}
.p-hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 26px 52px rgba(7, 88, 216, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.p-hero-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.96rem;
  color: #cfe6ff;
}
.p-hero-link span { transition: transform 0.22s var(--p-ease); }
.p-hero-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--p-ease);
}
.p-hero-link:hover::after { transform: scaleX(1); }
.p-hero-link:hover span { transform: translateX(4px); }

/* frosted-glass price tag — the hero signature */
.p-price-tag {
  position: relative;
  flex: none;
  width: 238px;
  padding: 1.5rem 1.6rem 1.4rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 70px rgba(4, 10, 26, 0.5);
  backdrop-filter: blur(16px) saturate(140%);
  color: #fff;
  overflow: hidden;
  opacity: 0;
  animation: p-tag 0.9s var(--p-ease) 0.55s forwards;
}
.p-price-tag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 90% 0%, rgba(126, 192, 255, 0.35), transparent 55%);
  pointer-events: none;
}
.p-price-tag-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #bfe0ff; }
.p-price-tag-amount { display: flex; align-items: flex-start; gap: 0.15rem; margin: 0.35rem 0 0.3rem; line-height: 1; }
.p-price-tag-amount i { font-style: normal; font-size: 1.3rem; font-weight: 700; margin-top: 0.4rem; color: #cfe6ff; }
.p-price-tag-amount b { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.p-price-tag-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.86rem; color: #dceaff; font-weight: 600; }
.p-price-tag-meta .p-dotsm { width: 6px; height: 6px; border-radius: 50%; background: #36d27a; flex: none; }
.p-price-tag-foot { display: block; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.82rem; color: #aec5e6; }
.p-price-tag-foot b { color: #fff; font-weight: 700; }
@keyframes p-tag { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: none; } }

@keyframes p-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .p-hero-img { animation: none; transform: none; }
  .p-hr-line, .p-hero-kicker .p-dot { animation: none; }
  .p-hero-kicker, .p-hero h1, .p-hero-sub, .p-hero-chips, .p-hero-actions, .p-price-tag { animation: none; opacity: 1; }
  .p-hero-cta::after, .p-cta-arrow svg { animation: none; }
  .p-hero-cta::after { display: none; }
}
@media (max-width: 860px) {
  .p-hero-inner { justify-content: flex-start; }
  .p-price-tag { width: 100%; max-width: 238px; }
}
@media (max-width: 680px) {
  .p-hero { min-height: auto; }
  .p-hero-inner { padding: 8.5rem 0 2.6rem; gap: 1.8rem; }
  .p-hero-img { object-position: 62% center; }
}


/* ============================================================
   PRICING (cards reused from styles.css) — wrapper spacing only
   ============================================================ */
.p-plans {
  position: relative;
  padding: clamp(8px, 2vw, 22px) 0 8px;
}
/* slim helper line under the toggle */
.p-plans-note {
  width: var(--container);
  margin: 14px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.p-plans-note b { color: var(--blue-700); font-weight: 800; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.p-compare-wrap {
  width: min(960px, var(--container));
  margin: clamp(56px, 7vw, 92px) auto 0;
}
.p-head { text-align: center; margin-bottom: 30px; }
.p-head .section-kicker-blue { margin-inline: auto; }
.p-head h2 {
  margin: 12px auto 0;
  max-width: 22ch;
  color: var(--blue-950);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.08;
}
.p-head h2 span {
  background: linear-gradient(120deg, var(--blue-700), var(--blue-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-head p { margin: 14px auto 0; max-width: 52ch; color: var(--muted); line-height: 1.6; }

.p-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 26px 64px rgba(10, 27, 61, 0.1);
  border: 1px solid rgba(36, 86, 230, 0.1);
  backdrop-filter: blur(14px);
}
.p-compare th,
.p-compare td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(16, 26, 51, 0.07);
}
.p-compare thead th {
  background: linear-gradient(180deg, rgba(36, 86, 230, 0.05), transparent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-800);
}
.p-compare tbody th {
  font-weight: 700;
  color: var(--blue-950);
  font-size: 0.96rem;
}
.p-compare td { text-align: center; width: 22%; }
.p-compare thead th:nth-child(2),
.p-compare thead th:nth-child(3) { text-align: center; }
.p-compare .p-col-feat { width: 36%; }

/* the highlighted (Digital) column */
.p-compare .p-hl {
  position: relative;
  background: linear-gradient(180deg, rgba(36, 86, 230, 0.07), rgba(79, 134, 255, 0.03));
}
.p-compare thead .p-hl {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
}
.p-col-name { display: block; font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; text-transform: none; }
.p-col-price { display: block; margin-top: 2px; font-size: 0.78rem; font-weight: 700; opacity: 0.8; letter-spacing: 0; text-transform: none; }
.p-compare tbody tr:last-child th,
.p-compare tbody tr:last-child td { border-bottom: 0; }
.p-compare tbody tr { transition: background 0.2s; }
.p-compare tbody tr:hover { background: rgba(36, 86, 230, 0.025); }

.p-yes,
.p-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.p-yes { color: #fff; background: linear-gradient(140deg, var(--blue-700), var(--blue-500)); }
.p-yes svg { width: 15px; height: 15px; }
.p-no { color: #9aa6bd; background: rgba(16, 26, 51, 0.06); font-weight: 800; }
.p-cell-txt { font-size: 0.9rem; font-weight: 700; color: var(--blue-900); }

/* ============================================================
   GUARANTEES BAND
   ============================================================ */
.p-guard {
  width: var(--container);
  margin: clamp(56px, 7vw, 92px) auto 0;
}
.p-guard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.p-guard-card {
  padding: 26px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(36, 86, 230, 0.1);
  box-shadow: 0 16px 40px rgba(10, 27, 61, 0.07);
  transition: transform 0.35s var(--p-ease), box-shadow 0.35s var(--p-ease);
}
.p-guard-card:hover { transform: translateY(-5px); box-shadow: 0 26px 56px rgba(36, 86, 230, 0.14); }
.p-guard-ic {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 16px;
  border-radius: 15px; color: #fff;
  background: linear-gradient(140deg, var(--blue-800), var(--blue-500));
  box-shadow: 0 12px 26px rgba(7, 88, 216, 0.28);
}
.p-guard-ic svg { width: 25px; height: 25px; }
.p-guard-card h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; color: var(--blue-950); }
.p-guard-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* ============================================================
   CTA BAND (cinematic, cars.webp)
   ============================================================ */
.p-cta {
  position: relative;
  width: var(--container);
  margin: clamp(56px, 7vw, 96px) auto;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.p-cta-img {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%;
}
.p-cta-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(96deg, rgba(6, 18, 44, 0.92) 0%, rgba(8, 24, 58, 0.74) 40%, rgba(10, 27, 61, 0.12) 100%);
}
.p-cta-inner { max-width: 560px; color: #fff; }
.p-cta-inner h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: #fff;
}
.p-cta-inner h2 em {
  font-style: normal;
  background: linear-gradient(120deg, #9fc8ff, #e7f2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-cta-inner p { margin: 0 0 24px; max-width: 46ch; color: rgba(226, 237, 255, 0.85); line-height: 1.6; font-size: 1.04rem; }
.p-cta-btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 900; color: var(--blue-900);
  background: linear-gradient(135deg, #ffffff, #dcebff);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, gap 0.2s;
}
.p-cta-btn:hover { transform: translateY(-2px); gap: 13px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34); }
.p-cta-btn svg { width: 19px; height: 19px; }

/* ============================================================
   FAQ (reuses .faq-item styling from styles.css)
   ============================================================ */
.p-faq {
  width: min(820px, var(--container));
  margin: clamp(56px, 7vw, 92px) auto;
  text-align: center;
}
.p-faq .section-kicker-blue { margin-inline: auto; }
.p-faq h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--blue-950);
}
.p-faq-lead { margin: 0 auto 28px; max-width: 50ch; color: var(--muted); line-height: 1.6; }
.p-faq-list { text-align: left; display: grid; gap: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .p-guard-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .p-hero { margin-top: 104px; }
  /* compact comparison: hide the secondary column header label text size */
  .p-compare th, .p-compare td { padding: 13px 12px; }
  .p-compare tbody th { font-size: 0.88rem; }
  .p-col-name { font-size: 0.9rem; }
  .p-col-price { font-size: 0.7rem; }
  .p-compare .p-col-feat { width: 44%; }
}
@media (max-width: 560px) {
  .p-guard-grid { grid-template-columns: 1fr; }
  .p-cta { margin-block: 44px; border-radius: 22px; }
  .p-cta-veil { background: linear-gradient(180deg, rgba(6,18,44,.86), rgba(8,24,58,.7)); }
  .p-compare { font-size: 0.92rem; }
  .p-yes, .p-no { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .p-rise { opacity: 1; transform: none; transition: none; }
  .p-car, .p-flag-ring { animation: none !important; }
}
