/* pricing.css */
:root {
  --bg-top: rgb(52, 108, 200);
  --bg-mid: rgb(105, 164, 234);
  --shadow: rgba(0, 0, 0, .28);

  --page-bg: #f7f7f5;
  --surface: #ffffff;
  --border: rgba(15, 23, 42, .10);

  --text: #0f172a;
  --text-muted: rgba(15, 23, 42, .66);
  --text-subtle: rgba(15, 23, 42, .46);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .08), 0 12px 28px rgba(15, 23, 42, .10);
  --shadow-md: 0 2px 10px rgba(15, 23, 42, .10), 0 22px 55px rgba(15, 23, 42, .16);

  --radius-lg: 18px;
  --brand: #2563eb;

  --green-1: rgb(89, 177, 30);
  --green-2: rgb(64, 119, 41);
  --green-text: rgb(42, 90, 47);

  --blue-1: rgb(48, 119, 217);
  --blue-2: rgb(10, 71, 161);

  --gold-1: rgb(199, 148, 31);
  --gold-2: rgb(178, 121, 6);

  --gray-1: rgb(117, 130, 146);
  --gray-2: rgb(66, 86, 104);

  --card-border: rgba(0, 0, 0, .16);
}

* {
  box-sizing: border-box;
}

body.pricing-page {
  height: auto;
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 420px at 50% -200px, rgba(37, 99, 235, .10) 0%, rgba(37, 99, 235, 0) 60%),
    var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pricing-embed {
  color: var(--text);
  background:
    radial-gradient(1100px 420px at 50% -200px, rgba(37, 99, 235, .10) 0%, rgba(37, 99, 235, 0) 60%),
    var(--page-bg);
}

.pricing-embed > .page > .faq-header {
  padding: 58px 18px 10px;
  margin: 0 auto;
}

/* page framing */
.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* HERO */
.hero {
  text-align: center;
  padding: 58px 18px 22px;
  color: var(--text);
}

.hero-top {
  max-width: 980px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--text-muted);
}

.hero-strong {
  font-weight: 800;
}

.hero-url {
  margin-top: 10px;
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-domain {
  font-weight: 900;
}

.hero-underline {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 4px solid rgba(37, 99, 235, .35);
}

.hero-rule {
  width: min(980px, 92vw);
  height: 1px;
  margin: 22px auto 14px;
  background: var(--border);
}

.hero-sub {
  max-width: 860px;
  margin: 2px auto 0;
  color: var(--text-muted);
  font-size: 18px;
}

.hero-bold {
  font-weight: 800;
}

/* BILLING TOGGLE */
.billing {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.billing-toggle {
  width: min(520px, 92vw);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .75);
  box-shadow: var(--shadow-sm);
  border-radius: 999px;
  padding: 4px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.billing-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing-option {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
  white-space: nowrap;
}

.billing-save {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-subtle);
}

#billing-monthly:checked + label,
#billing-annual:checked + label {
  color: #fff;
}

#billing-monthly:checked + label .billing-save,
#billing-annual:checked + label .billing-save {
  color: rgba(255, 255, 255, .88);
}

.billing-thumb {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.22s ease;
}

#billing-annual:checked ~ .billing-thumb {
  transform: translateX(100%);
}

/* PRICING WRAP */
.pricing-wrap {
  padding: 12px 18px 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.pricing {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

/* FAQ */
.faq {
  width: min(920px, 100%);
}

.faq-header {
  text-align: center;
  margin: 8px auto 16px;
}

.faq-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.faq-subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq-item {
  border-top: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: none;
}

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

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

.faq-item summary:hover {
  background: rgba(15, 23, 42, .03);
}

.faq-item summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .18);
  outline-offset: 4px;
  border-radius: 12px;
}

.faq-item summary::after {
  content: "\002B";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .06);
  color: var(--text-muted);
  font-weight: 800;
  flex: 0 0 auto;
}

.faq-item[open] summary {
  background: rgba(15, 23, 42, .03);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-body {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.faq-support {
  margin-top: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.faq-support a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.faq-support a:hover {
  text-decoration: underline;
}

/* CARD */
.card {
  position: relative;
}

.card:hover .card-surface {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-surface {
  position: relative;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}

/* PLAN THEMING */
.plan {
  --accent: var(--brand);
  --accent-weak: rgba(37, 99, 235, .12);
  --accent-text: #1d4ed8;
}

.plan-free {
  --accent: #16a34a;
  --accent-weak: rgba(22, 163, 74, .12);
  --accent-text: #166534;
}

.plan-pro {
  --accent: #2563eb;
  --accent-weak: rgba(37, 99, 235, .12);
  --accent-text: #1d4ed8;
}

.plan-premium {
  --accent: #d97706;
  --accent-weak: rgba(217, 119, 6, .14);
  --accent-text: #92400e;
}

.plan-business {
  --accent: #475569;
  --accent-weak: rgba(71, 85, 105, .12);
  --accent-text: #334155;
}

.plan-pro .card-surface {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, .22);
}

.plan-title {
  position: relative;
  text-align: left;
  padding: 18px 18px 14px;
}

.plan-title.plain {
  background: rgba(15, 23, 42, .03);
  border-bottom: 1px solid var(--border);
}

.plan-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 10px;
}

.plan-subtitle {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  color: var(--text-muted);
}

/* colored headers */
.plan-title.colored {
  background: var(--accent-weak);
  border-bottom: 1px solid var(--border);
  border-top: 6px solid var(--accent);
}

.plan-title.colored .plan-name {
  margin-top: 10px;
}

.ribbon {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--accent-text);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: none;
  text-shadow: none;
}

.plan-pro .ribbon {
  background: var(--accent);
  color: #fff;
  border: none;
}

/* BODY */
.card-body {
  padding: 18px 18px 18px;
  color: var(--text);
  min-height: 540px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.spacer {
  flex: 1;
}

.price {
  text-align: left;
  padding: 12px 0 8px;
  min-height: 84px;
}

.price-main {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 6px;
  color: var(--text);
}

.currency {
  font-weight: 800;
  font-size: 18px;
  color: var(--text-muted);
}

.amount {
  font-weight: 900;
  font-size: 48px;
  letter-spacing: -0.03em;
}

.plan-free .amount {
  color: var(--accent-text);
}

.per {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-sub {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 2px;
}

.price-sub.ghost {
  opacity: 0;
}

.biz-subtitle {
  text-align: left;
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  margin: 0;
  padding: 12px 0 8px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* FEATURES */
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.feature-intro {
  margin: 2px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.3;
}

.features li:last-child {
  border-bottom: none;
}

.features li::before {
  content: "\2713";
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
  color: var(--accent);
  justify-self: center;
}

.features-green li::before,
.features-blue li::before,
.features-gold li::before,
.features-gray li::before {
  color: var(--accent);
}

.feature-text {
  display: block;
}

.feature-title {
  font-weight: 700;
}

.feature-sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
}

.feature-label {
  font-weight: 800;
  color: rgba(0, 0, 0, .55);
}

.linkish {
  color: var(--accent-text);
}

/* BUTTONS */
.btn {
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: var(--accent);
  box-shadow: none;
  text-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  filter: brightness(0.98);
}

.btn:focus-visible {
  outline: 3px solid var(--accent-weak);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn.clicked {
  filter: brightness(0.95);
}

.btn-mid {
  width: 72%;
  margin: 4px auto 0;
  padding: 10px 10px;
  font-size: 16px;
}

.btn-wide {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
}

.btn-green {
  background: var(--accent);
}

.btn-blue {
  background: var(--accent);
}

.btn-gold {
  background: var(--accent);
}

.btn-gray {
  background: var(--accent);
}

/* subtle glossy bottom like the screenshot */
.card-surface::after {
  content: none;
}

/* responsiveness */
@media (max-width: 1100px) {
  .pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-body {
    min-height: 520px;
  }
}

@media (max-width: 620px) {
  .hero-top {
    font-size: 16px;
  }

  .hero-url {
    font-size: 40px;
  }

  .billing-option {
    font-size: 13px;
    padding: 10px 10px;
  }

  .billing-save {
    display: none;
  }

  .pricing {
    grid-template-columns: 1fr;
  }

  .faq-title {
    font-size: 22px;
  }

  .faq-item summary {
    padding: 14px 14px;
  }

  .faq-body {
    padding: 0 14px 14px;
  }
}
