/* ==========================================================================
   Pricing section. Built to the spec in pricingsectionspec.md:
   three monthly tiers, middle one featured, setup fee in its own band below.
   ========================================================================== */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px 28px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -14px rgba(161, 98, 10, .28);
  border-color: rgba(217, 119, 6, .4);
}

.plan-featured {
  border-color: var(--gold-deep);
  border-width: 2px;
  box-shadow: 0 20px 46px -16px rgba(161, 98, 10, .4);
}

/* Real text, never an image — it has to be readable and selectable. */
.plan-badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-900);
  background: var(--grad-3);
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 6px 18px rgba(240, 180, 41, .45);
}

.plan-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.plan-featured .plan-eyebrow { margin-top: 6px; }

/* The size gap between amount and unit is what makes the price read as small. */
.plan-cost { display: flex; align-items: baseline; gap: 4px; margin-bottom: 14px; }
.plan-cost .amount {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 52px; line-height: 1;
  letter-spacing: -.035em;
  color: var(--ink);
}
.plan-cost .unit { font-size: 15px; color: var(--ink-dim); }

.plan-desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-bottom: 24px; }

.plan-list { list-style: none; padding: 0; display: grid; gap: 11px; margin-bottom: 28px; }
.plan-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.5;
  color: var(--ink-soft);
}
.plan-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 1px;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1620A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* Bottom-aligned so all three buttons sit on one line whatever the list length. */
.plan-cta { margin-top: auto; align-self: stretch; }

/* ----------------------------------------------------------- setup band */
.setup-band {
  margin-top: 40px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px;
}
.setup-intro h2 { font-size: 26px; line-height: 1.15; color: var(--ink); margin-bottom: 12px; }
.setup-intro p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; max-width: 62ch; }

.setup-options { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.setup-option {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 24px;
}
.setup-label {
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 8px;
}
.setup-price {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 36px; line-height: 1;
  letter-spacing: -.03em; color: var(--ink);
  margin-bottom: 10px;
}
.setup-text { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.setup-guarantee {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.setup-guarantee .icn { width: 20px; height: 20px; color: var(--accent-ink); margin-top: 1px; }

/* --------------------------------------------------------- price notes */
.price-notes {
  list-style: none; padding: 0;
  margin: 32px auto 0;
  max-width: 68ch;
  display: grid; gap: 8px;
  font-size: 13.5px; line-height: 1.6;
  color: var(--ink-dim);
}
.price-notes li { display: flex; gap: 9px; }
.price-notes li::before { content: "—"; color: var(--rule); flex-shrink: 0; }

/* ------------------------------------------------------------ responsive */

/* <640px: one column, and the tier we most want sold goes first. */
@media (max-width: 639px) {
  .plan-featured { order: -1; }
}

/* 640–1023px: two columns, featured card on its own row above. */
@media (min-width: 640px) and (max-width: 1023px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-featured { grid-column: 1 / -1; order: -1; }
  .setup-options { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .setup-band { padding: 44px 48px; }
  .setup-intro h2 { font-size: 30px; }
}

/* ≥1024px: three columns, featured card lifted. */
@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .setup-options { grid-template-columns: 1fr 1fr; gap: 24px; }
  .plan-featured { transform: scale(1.04); z-index: 2; }
  .plan-featured:hover { transform: scale(1.04) translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .plan-card:hover { transform: none; }
  .plan-featured:hover { transform: none; }
  @media (min-width: 1024px) {
    .plan-featured, .plan-featured:hover { transform: scale(1.04); }
  }
}
