/* Sky Accounting — pricing page */

/* Hero */
.pricing-hero {
  position: relative;
  padding: 182px 0 68px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(650px 150px at 50% -50px, rgba(0, 195, 255, .30) 0%, rgba(0, 195, 255, .24) 45%, rgba(0, 195, 255, 0) 100%),
    radial-gradient(1300px 230px at 50% 130px, rgba(0, 195, 255, .18) 0%, rgba(0, 195, 255, .12) 45%, rgba(0, 195, 255, 0) 100%),
    #fff;
}
.pricing-hero h1 {
  width: min(950px, 100%);
  margin: 0 auto 47px;
  font-family: Montserrat, sans-serif;
  font-size: 50px;
  font-weight: 800;
  line-height: 54px;
  color: var(--ink);
}
.pricing-hero .hero-accent { color: var(--cyan); }
.pricing-hero p {
  width: min(656px, 100%);
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 24px;
}

/* All-Inclusive dark section */
.pricing-inclusive {
  padding: 87px 0 74px;
  background: #0b111f;
}
.pricing-inclusive h2 {
  width: min(700px, 100%);
  margin: 0 auto 48px;
  font-family: Montserrat, sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 49px;
}
.inclusive-accent { color: var(--cyan); }
.inclusive-grid {
  width: min(934px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
}
.inclusive-card {
  box-sizing: border-box;
  min-height: 314px;
  padding: 35px 35px 12px;
  border: 1px solid #858994;
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  transition: transform .35s var(--ease), border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .inclusive-card:hover {
    border-color: var(--cyan);
    background: rgba(0, 195, 255, .08);
    transform: translateY(-8px);
    box-shadow: 0 0 0 1px rgba(0, 195, 255, .5), 0 24px 58px rgba(0, 96, 150, .5);
  }
}
.inclusive-card:focus-visible {
  border-color: var(--cyan);
  background: rgba(0, 195, 255, .08);
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px rgba(0, 195, 255, .5), 0 24px 58px rgba(0, 96, 150, .5);
}
.inclusive-card img {
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  padding: 13px;
  border: 1px solid var(--cyan);
  border-radius: 12px;
  object-fit: contain;
}
.inclusive-card h3 {
  margin: 26px 0 16px;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 800;
  line-height: 22px;
}
.inclusive-card p {
  margin: 0;
  color: #b9c6d3;
  font-size: 13px;
  line-height: 16px;
}
.inclusive-cta { margin-top: 40px; }

/* Plans section */
.pricing-plans {
  position: relative;
  padding: 90px 0 139px;
  background: #fff url("../images/pricing-bg.png") center / cover no-repeat;
}
.pricing-plans h2 {
  margin: 0 0 30px;
  font-family: Montserrat, sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 44px;
  text-align: center;
}
.plans-body { text-align: center; }

/* Billing toggle (semantic radios, CSS-only) */
.billing-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.billing-toggle {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  width: 250px;
  height: 44px;
  padding: 4px;
  margin: 0 auto 89px;
  overflow: hidden;
  border-radius: 10px;
  background: #0b111f;
}
.billing-toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}
.billing-save {
  color: var(--cyan-deep);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
#billing-monthly:checked ~ .billing-toggle label[for="billing-yearly"],
#billing-yearly:checked ~ .billing-toggle label[for="billing-monthly"] {
  color: var(--ink);
  background: #fff;
}
#billing-monthly:focus-visible ~ .billing-toggle label[for="billing-monthly"],
#billing-yearly:focus-visible ~ .billing-toggle label[for="billing-yearly"] {
  box-shadow: inset 0 0 0 2px var(--cyan);
}

/* Plan cards */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  text-align: left;
}
.plan-card {
  min-height: 626px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 39px 35px 40px;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(8, 19, 33, .05);
  transition: border-color .35s ease, box-shadow .35s ease;
}
.plan-card.featured {
  padding: 39px 35px 40px;
}
.plan-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 13px;
  white-space: nowrap;
}
.plan-name {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  line-height: 26px;
}
.plan-desc {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 16px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
}
.plan-amount {
  font-family: Montserrat, sans-serif;
  font-size: 39px;
  font-weight: 800;
  line-height: 1;
}
.plan-period {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}
.plan-saving {
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #e4e7ec;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  line-height: 14px;
}
.plan-price,
.plan-saving {
  transition: opacity .18s ease, transform .18s var(--ease);
}
.plans-body.prices-changing .plan-price,
.plans-body.prices-changing .plan-saving {
  opacity: 0;
  transform: translateY(6px);
}
.plan-features {
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 1;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  line-height: 16px;
}
.plan-features li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0f7ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10.5l3.4 3.4L15 6.5' stroke='%2300c3ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.plan-card .button {
  margin: 0 auto;
  padding: 13px 26px;
  border-radius: 10px;
}

/* Enterprise (dark) card */
.plan-card.dark {
  background: #0b111f;
  border-color: #0b111f;
  color: #fff;
}
.plan-card.dark .plan-desc { color: #aab8ca; }
.plan-card.dark .plan-amount { color: #fff; }
.plan-card.dark .plan-saving { border-color: rgba(255, 255, 255, .14); }
.plan-card.dark .plan-features li { color: #d5e0e9; }
.plan-card.dark .plan-features li::before { background-color: rgba(0, 195, 255, .1); }

.plan-card:hover,
.plan-card:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(0, 195, 255, .45), 0 24px 52px rgba(0, 105, 160, .28);
}

/* Responsive */
@media (max-width: 1100px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 900px) {
  .pricing-hero { padding: 150px 0 64px; }
  .pricing-hero h1 { font-size: 36px; line-height: 42px; }
  .pricing-inclusive { padding: 72px 0 68px; }
  .pricing-inclusive h2 { margin-bottom: 42px; font-size: 27px; line-height: 38px; }
  .inclusive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .inclusive-card { min-height: 0; }
  .pricing-plans { padding: 76px 0 84px; }
  .pricing-plans h2 { font-size: 27px; line-height: 34px; }
}

@media (max-width: 650px) {
  .pricing-hero { padding: 122px 0 52px; }
  .pricing-hero h1 { font-size: 28px; line-height: 34px; }
  .pricing-hero h1 br { display: none; }
  .pricing-inclusive { padding: 60px 0 56px; }
  .inclusive-grid { grid-template-columns: 1fr; }
  .inclusive-cta { margin-top: 36px; }
  .pricing-plans { padding: 64px 0 72px; }
  .billing-toggle { width: min(250px, 100%); margin-bottom: 34px; }
  .plan-grid { grid-template-columns: 1fr; gap: 22px; max-width: 420px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .inclusive-card:hover,
  .inclusive-card:focus-visible {
    transform: none;
  }
}
