/* ============================================================
   Verto Uno — pricing.css
   Pricing-page styles that extend assets/style.css.
   style.css must be loaded first (CSS variables are defined there).
   ============================================================ */

/* ============================================================
   ACTIVE NAV LINK
   ============================================================ */
.nav__link--active {
  color: var(--gold) !important;
}
.nav__links .nav__link--active::after {
  width: 100% !important;
}

/* ============================================================
   PRICING HERO — compact, ~40vh
   ============================================================ */
.pricing-hero {
  position: relative;
  min-height: 40vh;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px var(--pad) 60px;
}

.pricing-hero__waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pricing-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.pricing-hero__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pricing-hero__title {
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.pricing-hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   PLAN LIST — MISSING FEATURE ITEMS
   Higher specificity overrides the checkmark from style.css.
   ============================================================ */
.plan__list li.is-missing {
  opacity: 0.35;
}

.plan__list li.is-missing::before {
  background: var(--muted);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 6L6 18M6 6l12 12" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18 6L6 18M6 6l12 12" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
}

/* ============================================================
   BILLING TOGGLE — monthly / annual switch
   ============================================================ */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.billing-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s;
  user-select: none;
}

.billing-label.is-active {
  color: var(--ink);
  font-weight: 600;
}

.save-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--navy);
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-left: 6px;
  vertical-align: middle;
}

/* Toggle pill button */
.toggle-btn {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.12);
  border: 1px solid rgba(13, 27, 42, 0.15);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}

.toggle-btn.is-annual {
  background: var(--gold);
  border-color: var(--gold);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease-out);
}

.toggle-btn.is-annual .toggle-thumb {
  transform: translateX(22px);
}

/* Hosting card — dynamic price display */
.hosting-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}

.hosting-price__cur {
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
  margin-right: 2px;
}

.hosting-price__num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.hosting-price__num.is-fading { opacity: 0; }

.hosting-price__period {
  font-size: 14px;
  color: var(--muted);
  margin-left: 2px;
}

.plan--featured .hosting-price__period { color: rgba(255, 255, 255, 0.55); }

/* Savings badge (shown only in annual mode) */
.savings-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--navy);
  background: var(--gold);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  transition: opacity 0.2s ease;
}

.savings-badge[hidden] { display: none; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(13, 27, 42, 0.06);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

/* Sticky header */
.comparison-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.comparison-table thead tr { background: var(--navy); }

.comparison-table th {
  padding: 16px 20px;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
}

.comparison-table th:first-child {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  width: 42%;
}

.comparison-table th.col-std { color: var(--gold-soft); }

.comparison-table th.col-prm {
  color: var(--gold);
  border-left: 2px solid var(--gold);
}

.comparison-table td {
  padding: 13px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table td.col-prm {
  border-left: 2px solid rgba(201, 168, 76, 0.25);
}

.comparison-table tbody tr:nth-child(even) { background: rgba(13, 27, 42, 0.025); }
.comparison-table tbody tr:last-child td   { border-bottom: none; }

.comparison-table tbody tr {
  transition: background 0.2s;
}
.comparison-table tbody tr:hover { background: rgba(201, 168, 76, 0.05) !important; }

/* Row entrance animation triggered when .comparison-wrap gets .is-in */
.comparison-table tbody tr {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), background 0.2s;
}

.comparison-wrap.is-in .comparison-table tbody tr { opacity: 1; transform: none; }

.comparison-wrap.is-in .comparison-table tbody tr:nth-child(1)  { transition-delay: 0.03s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(2)  { transition-delay: 0.06s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(3)  { transition-delay: 0.09s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(4)  { transition-delay: 0.12s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(5)  { transition-delay: 0.15s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(6)  { transition-delay: 0.18s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(7)  { transition-delay: 0.21s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(8)  { transition-delay: 0.24s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(9)  { transition-delay: 0.27s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(10) { transition-delay: 0.30s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(11) { transition-delay: 0.33s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(12) { transition-delay: 0.36s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(13) { transition-delay: 0.39s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(14) { transition-delay: 0.42s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(15) { transition-delay: 0.45s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(16) { transition-delay: 0.48s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(17) { transition-delay: 0.51s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(18) { transition-delay: 0.54s; }
.comparison-wrap.is-in .comparison-table tbody tr:nth-child(19) { transition-delay: 0.57s; }

/* Check / cross icons in table cells */
.feat-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  font-weight: 700;
  font-size: 12px;
}

.feat-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.05);
  color: rgba(13, 27, 42, 0.2);
  font-size: 13px;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.3s;
}

.faq__q:hover,
.faq__item.is-open .faq__q { color: var(--gold); }

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  transition: transform 0.35s var(--ease-out);
}

.faq__item.is-open .faq__icon { transform: rotate(180deg); }

/* Smooth height via max-height trick */
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq__item.is-open .faq__a { max-height: 600px; }

.faq__a-inner {
  padding: 0 4px 24px;
}

.faq__a-inner p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.pricing-cta {
  background: var(--navy);
  color: var(--white);
  padding: clamp(80px, 12vh, 120px) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-cta__waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pricing-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}

.pricing-cta__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pricing-cta__title {
  font-size: clamp(26px, 4vw, 52px);
  margin-bottom: 14px;
}

.pricing-cta__sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ============================================================
   SECTION BACKGROUND HELPERS
   ============================================================ */
.section--white  { background: var(--white); }
.section--paper  { background: var(--paper); }
.section--navy   { background: var(--navy); color: var(--white); max-width: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 760px) {
  .billing-toggle-wrap { gap: 10px; }
  .pricing-hero { min-height: 50vh; }
}
