/* =====================================================================
   Plan cards
   ---------------------------------------------------------------------
   The three-tier plan cards from the pricing page, lifted so the home
   page shows exactly the same tables. Scoped to .plan-cards so nothing
   here leaks into the rest of a page.

   pricing.html still carries its own copy of these rules in its inline
   <style> block, scoped to .pricing-page. Change one, change the other,
   or the two pages start telling different stories about price.
   ===================================================================== */

.plan-cards {
  --ink: #16241b;
  --muted: #5f6f65;
  --paper: #f5f8f5;
  --card: #ffffff;
  --line: #e7ede9;
  --yellow: #f5a623;
  --yellow-soft: #fdf1da;
  --green: #3f6019;
  --green-bright: #8dc63f;
  --green-soft: #eef6d9;
  --shadow: 0 20px 50px rgba(14, 40, 24, .10);
  --radius: 22px;
  color: var(--ink);
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.plan-cards h1, .plan-cards h2, .plan-cards h3 { font-family: "Rubik", sans-serif; }
.plan-cards .button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--green-bright);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(141,198,63,.28);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.plan-cards .button:hover { transform: translateY(-2px); background: var(--green); color: #fff; box-shadow: 0 14px 28px rgba(63,96,25,.28); }
.plan-cards .button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.plan-cards .button.light { background: white; color: var(--ink); border-color: rgba(255,255,255,.45); }
.plan-cards .button.light:hover { background: var(--yellow); }
.plan-cards .button.secondary { border-color: var(--line); background: white; color: var(--ink); box-shadow: none; }
.plan-cards .button.secondary:hover { border-color: var(--green); background: var(--green-soft); }
.plan-cards .founding-offer {
  margin: 0 0 30px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #d8c350;
  border-radius: 18px;
  background: var(--yellow-soft);
}
.plan-cards .founding-offer strong { display: block; margin-bottom: 5px; font-size: 18px; }
.plan-cards .founding-offer p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.plan-cards .founding-offer span { flex: 0 0 auto; color: #7a4200; font-size: 12px; font-weight: 800; }
.plan-cards .billing-control { display: grid; justify-items: end; gap: 7px; }
.plan-cards .billing-control > span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.plan-cards .billing-switch { display: inline-flex; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #edf2ef; box-shadow: 0 12px 28px rgba(141,198,63,.10); }
.plan-cards .billing-switch button { min-width: 108px; padding: 10px 15px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.plan-cards .billing-switch button[aria-pressed="true"] { background: var(--green-bright); color: var(--ink); box-shadow: 0 8px 18px rgba(141,198,63,.32); }
.plan-cards .billing-switch button:focus-visible { outline: 3px solid rgba(63,96,25,.28); outline-offset: 2px; }
.plan-cards .billing-note { min-height: 18px; color: #7a4200 !important; text-transform: none !important; letter-spacing: 0 !important; }
.plan-cards .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan-cards .price-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(20,21,15,.045);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.plan-cards .price-card:hover { border-color: #bfc0b6; box-shadow: 0 20px 42px rgba(20,21,15,.09); transform: translateY(-4px); }
.plan-cards .price-card.featured {
  border-color: var(--yellow);
  background: white;
  box-shadow: var(--shadow);
  transform: translateY(-12px);
}
.plan-cards .price-card.featured:hover { transform: translateY(-16px); }
.plan-cards .price-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--yellow);
}
.plan-cards .card-head { min-height: 232px; }
.plan-cards .plan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-cards .plan-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.plan-cards .plan-name { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.plan-cards .plan-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #a35b00;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.plan-cards .savings-badge { background: var(--yellow); color: var(--ink); }
.plan-cards .plan-for { margin: 9px 0 26px; color: var(--muted); font-size: 13px; font-weight: 600; }
.plan-cards .plan-price { display: flex; align-items: baseline; gap: 7px; margin: 0; }
.plan-cards .plan-price strong { color: #3f6019; font-size: clamp(46px, 4.2vw, 58px); line-height: 1; letter-spacing: -.06em; }
.plan-cards .plan-price span { color: var(--muted); font-size: 14px; }
.plan-cards .price-note { min-height: 40px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.plan-cards .monthly-option {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.plan-cards .plan-promise { margin: 24px 0 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.plan-cards .market-position {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  background: rgba(248,223,105,.16);
  color: #57584f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.plan-cards .feature-list {
  flex: 1;
  margin: 10px 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.plan-cards .included-label {
  margin: 24px 0 0;
  color: #7a4200;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.plan-cards .feature-list li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.45;
}
.plan-cards .feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}
.plan-cards .feature-list strong { font-weight: 800; }
.plan-cards .addons {
  margin: 0 0 24px;
  border: 1px solid #e1d378;
  border-radius: 15px;
  background: #fffbed;
  overflow: hidden;
}
.plan-cards .addons:first-child { border-top: 1px solid #e1d378; }
.plan-cards .addons summary { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.plan-cards .addons summary span { color: #7a4200; font-size: 11px; font-weight: 800; }
.plan-cards .addons summary::after { margin-left: auto; }
.plan-cards .addons[open] summary { border-bottom: 1px solid #e7dfad; background: rgba(255,179,63,.08); }
.plan-cards .addons-body { padding: 4px 18px 16px; }
.plan-cards .addon-row { padding: 12px 0; border-top: 1px solid #e7dfad; }
.plan-cards .addon-row:last-child { padding-bottom: 0; }
.plan-cards .addon-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-cards .addon-title strong { font-size: 13px; }
.plan-cards .addon-title span { color: #7a4200; font-size: 12px; font-weight: 800; white-space: nowrap; }
.plan-cards .addon-row p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.plan-cards .launch-website-callout { margin: 0 0 24px; padding: 17px; border: 1px solid #d3e6ab; border-radius: 15px; background: #f6faec; }
.plan-cards .launch-website-callout strong { display: block; margin-bottom: 5px; font-size: 14px; }
.plan-cards .launch-website-callout p { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.plan-cards .launch-website-callout a { color: #3f6019; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.plan-cards .card-footer { margin-top: auto; }
.plan-cards .setup { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.plan-cards .setup strong { color: var(--ink); }
.plan-cards .price-card .button { width: 100%; }
.plan-cards .price-card.featured .button { border-color: var(--yellow); background: var(--yellow); color: var(--ink); box-shadow: 0 12px 26px rgba(255,180,60,.24); }
.plan-cards .price-card.featured .button:hover { background: #ffa51f; }
.plan-cards summary { cursor: pointer; font-weight: 700; list-style: none; }
.plan-cards summary::-webkit-details-marker { display: none; }
.plan-cards summary::after { content: "+"; float: right; font-size: 22px; font-weight: 400; }
.plan-cards details[open] summary::after { content: "−"; }

@media (max-width: 980px) {
  .plan-cards .pricing-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; gap: 18px; }
  .plan-cards .price-card.featured { transform: none; }
  .plan-cards .price-card.featured:hover { transform: translateY(-4px); }
  .plan-cards .card-head { min-height: 0; }
}
@media (max-width: 720px) {
  .plan-cards .founding-offer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .plan-cards .billing-control { width: 100%; justify-items: stretch; }
  .plan-cards .billing-switch { width: 100%; }
  .plan-cards .billing-switch button { flex: 1; min-width: 0; }
  .plan-cards .price-card { padding: 26px 22px; }
}
