/* ---------- Pricing v4 (Wei, 2026-11-25; v3 layout kept): five paid plans as one band of joined bricks, one brick
   color per plan, studs on top. Each plan card is a drawn brick (a brick object, so it carries studs;
   site content cards stay flat, DESIGN-RULES.md Cards and Studs). Phone first: a stack of bricks,
   two across from 40rem, then all five joined in one row from 62.5rem (1000px). ---------- */

/* Hero (Wei, 2026-11-26 9:23 PM: "more inviting", one width): a white band under the color bar with
   the title, the lead and the Outage Survivor callout on one 40rem column, one gap between them. No
   dot backgrounds or studs here (checklist 6, Cards and Studs). The Monthly / Annual toggle sits under
   the band, above the plans. */
.pricing-hero { --intro: 40rem; padding: 2.5rem 0 3.25rem; text-align: center; background: var(--white); border-bottom: 1px solid var(--edge); }
.pricing-intro { margin: 0 auto; max-width: 62rem; display: grid; justify-items: center; gap: 1.25rem; }
.pricing-intro h1 { position: relative; margin: 0; padding-bottom: 0.9rem; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; }
.pricing-intro h1::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4.5rem; height: 8px; margin-left: -2.25rem; border-radius: 4px; background: var(--yellow); }
.pricing-intro .lead { margin: 0; max-width: 52rem; line-height: 1.55; text-wrap: pretty; }
.pricing-section { padding-top: 2.25rem; }
.pricing-section .period-row { margin: 0 0 1.75rem; }

/* Brick colors from the palette tokens. Text on each: white on red 5.78:1, blue 6.88:1, green
   5.48:1; navy on yellow 12.14:1, orange 7.93:1 (WCAG AA). */
.plan-essentials { --brick: var(--red); --on: var(--white); }
.plan-growth { --brick: var(--yellow); --on: var(--black); }
.plan-pro { --brick: var(--blue); --on: var(--white); }
.plan-scale { --brick: var(--green); --on: var(--white); }
.plan-enterprise { --brick: var(--orange); --on: var(--black); }

.plan-band { list-style: none; margin: 0 auto; padding: 14px 0 0; max-width: 26rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 26px 20px 22px; border-radius: 8px; background: var(--brick); color: var(--on); }

/* Studs: a row of four on the top edge, front view (the footer stat bricks' shape: flat top, a
   lighter top edge, a darker right side). */
.plan-studs { position: absolute; left: 7%; right: 7%; top: -13px; height: 14px; display: flex; justify-content: space-around; pointer-events: none; }
.plan-studs i { width: 17%; max-width: 44px; height: 100%; border-radius: 4px 4px 0 0; background: var(--brick); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), inset -5px 0 0 rgba(5, 19, 29, 0.14); }

.plan-name { margin: 0; font-size: 1.5rem; line-height: 1.15; color: inherit; }
/* Two lines: the founder (Outage Survivor) price big with "/mo" attached, then the list price struck
   through, big enough to read at a glance (full text color, not faded). Annual: the big number is
   the yearly price a month (whole dollars), "billed $190 annually" under it, then the struck list
   price a month with its yearly total struck on its own line (the comma is for screen readers).
   Never under 14px. */
.plan-price { margin: 0; display: grid; justify-items: start; row-gap: 6px; }
.plan-amount { font-family: var(--font-heading); font-weight: 800; font-size: 3.2rem; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.plan-mo { font-size: 0.42em; font-weight: 800; letter-spacing: 0; }
.plan-was { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; line-height: 1.1; white-space: nowrap; text-decoration-thickness: 2.5px; }
.plan-billed { margin-top: -2px; font-size: 0.95rem; font-weight: 700; line-height: 1.3; }
.plan-was-billed { display: block; margin-top: 2px; font-family: var(--font); font-size: 0.95rem; font-weight: 700; line-height: 1.3; text-decoration-thickness: 2px; }
.plan-tag { align-self: flex-start; max-width: 100%; margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 0.78rem; font-weight: 700; line-height: 1.35; }
.plan-lots { margin: 2px 0 0; padding: 10px 0; border-top: 2px solid rgba(5, 19, 29, 0.18); border-bottom: 2px solid rgba(5, 19, 29, 0.18); font-size: 1rem; }
.plan-lots strong { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; }
.plan-lots-show { display: grid; gap: 2px; }
.plan-lots-show > span { line-height: 1.5; }
.plan-unlimited { white-space: nowrap; }
/* "OR" between the two limits: small and light so the numbers lead; same color as the card text, so
   it keeps the card's contrast. */
.plan-or { margin-left: 2px; font-size: 0.75em; font-weight: 600; letter-spacing: 0.06em; vertical-align: 0.08em; }
.plan-plus { margin: 0 0 -4px; font-size: 0.92rem; font-weight: 800; }
.plan-feats { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; font-weight: 600; }
.plan-feats li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.plan-check { margin-top: 3px; }

.plan-cta { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 14px; border: 2px solid var(--black); border-radius: 999px; background: var(--white); color: var(--black); box-shadow: 0 3px 0 var(--black); font-weight: 800; text-align: center; text-decoration: none; }
.plan-cta:hover { background: var(--black); color: var(--white); }
.plan-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--black); }
.plan-cta:focus-visible { outline: 3px solid var(--on); outline-offset: 3px; }
/* The free trial (15 days, card required): one line above the button; the longer button text may wrap. */
.plan-trial { margin: 0; font-size: 0.88rem; font-weight: 700; line-height: 1.35; }
.plan-cta.plan-cta-trial { white-space: normal; line-height: 1.2; }

/* Recommended: Pro, outlined in navy and lifted, still part of the band. */
.plan-pick { box-shadow: 0 0 0 4px var(--black), 0 16px 28px rgba(5, 19, 29, 0.22); z-index: 1; }
.plan-badge { position: absolute; top: 14px; right: 14px; margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--white); color: var(--black); font-size: 0.78rem; font-weight: 800; line-height: 1.35; }

.pricing-note { margin: 10px auto 0; max-width: 62rem; text-align: center; font-size: 0.9rem; color: var(--ink-soft); }
/* Disclaimer (Wei, 2026-11-26 9:21 PM): last in the section, smaller still. */
.pricing-disclaimer { margin-top: 18px; font-size: 0.875rem; line-height: 1.5; }

/* Outage Survivor Pricing (Wei, 2026-11-26): a Yellow callout, once above the band (not on each card),
   navy text 12.14:1. A dazed little bird in a white disc sits on its top edge, the nod to the bird strike
   (original drawing, decorative). */
.pricing-offer { position: relative; margin-top: 1rem; width: 100%; padding: 2.25rem clamp(1rem, 4vw, 2rem) 1.4rem; display: grid; justify-items: center; gap: 0.5rem; border-radius: var(--radius); background: var(--yellow); color: var(--black); text-align: center; }
.pricing-offer-bird { position: absolute; top: -30px; left: 50%; width: 60px; height: 60px; margin-left: -30px; display: grid; place-items: center; border: 2px solid var(--black); border-radius: 50%; background: var(--white); color: var(--black); }
.pricing-offer-bird svg { display: block; }
.pricing-offer-title { margin: 0; font-size: clamp(1.45rem, 4vw, 1.9rem); line-height: 1.15; color: var(--black); }
.pricing-offer-text { margin: 0; font-weight: 600; line-height: 1.5; text-wrap: pretty; }

/* Billing Period: two radios drawn as one segmented pill. CSS only (prices switch with JS off): the
   inputs stay focusable but out of sight, the labels are the 44px tap targets. Monthly is checked
   by default; .plan-periods:has(.period-year:checked) swaps every card to the annual price. Shared
   with the Billing page (billing-views.js). */
.period-row { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; }
.period-toggle { position: relative; margin: 0; padding: 3px; min-width: 0; display: inline-flex; align-items: center; border: 2px solid var(--black); border-radius: 999px; background: var(--white); }
.period-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.period-option { display: inline-flex; align-items: center; justify-content: center; margin: 0; line-height: 1.2; min-width: 6.5rem; min-height: 44px; padding: 6px 18px; border-radius: 999px; color: var(--black); font-weight: 800; cursor: pointer; }
.period-input:checked + .period-option { background: var(--black); color: var(--white); }
.period-input:focus-visible + .period-option { outline: 3px solid var(--blue); outline-offset: 2px; }
.period-save { margin: 0; padding: 3px 10px; border-radius: 999px; background: var(--green); color: var(--white); font-size: 0.82rem; font-weight: 800; line-height: 1.35; }
.plan-price-year { display: none; }
.plan-periods:has(.period-year:checked) .plan-price-month { display: none; }
.plan-periods:has(.period-year:checked) .plan-price-year { display: grid; }

/* Free Sync: a slim white strip under the band, not a sixth card. */
.plan-free-strip { margin: 40px auto 0; max-width: 62rem; padding: 14px 20px; display: grid; gap: 4px; text-align: center; background: var(--white); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.plan-free-strip p { margin: 0; }
.plan-free-name strong { font-family: var(--font-heading); font-weight: 800; }
.plan-free-name span { font-weight: 700; color: var(--green); }
.plan-free { font-size: 0.95rem; font-weight: 400; }
.plan-free-how { font-size: 0.9rem; color: var(--ink-soft); }

@media (min-width: 40rem) {
  .plan-band { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 18px; }
  .plan-enterprise { grid-column: 1 / -1; }
}

/* One joined band from 1000px: no gaps, square inner joints with a seam, rounded ends. Type
   shrinks with the width so every price stays on one line. */
@media (min-width: 62.5rem) {
  .plan-band { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding-top: 30px; }
  .plan-enterprise { grid-column: auto; }
  .plan { padding: 26px clamp(12px, 1.2vw, 22px) 22px; border-radius: 0; box-shadow: inset 3px 0 0 rgba(5, 19, 29, 0.12); }
  .plan:first-child { border-radius: 10px 0 0 10px; box-shadow: none; }
  .plan:last-child { border-radius: 0 10px 10px 0; }
  .plan-pick { margin: -16px 0; padding-top: 42px; padding-bottom: 38px; border-radius: 10px; box-shadow: 0 0 0 4px var(--black), 0 18px 32px rgba(5, 19, 29, 0.25); }
  .plan-name { font-size: clamp(1.2rem, 1.6vw, 1.6rem); }
  .plan-amount { font-size: clamp(2.1rem, 3.1vw, 3.3rem); }
  .plan-was { font-size: clamp(1.2rem, 1.45vw, 1.45rem); }
  .plan-billed, .plan-was-billed { font-size: clamp(0.875rem, 0.95vw, 0.95rem); }
  .plan-tag { padding: 3px 8px; font-size: clamp(0.68rem, 0.8vw, 0.75rem); letter-spacing: -0.01em; }
  .plan-plus { font-size: clamp(0.82rem, 0.95vw, 0.95rem); }
  .plan-lots, .plan-feats { font-size: clamp(0.86rem, 1vw, 1rem); }
  .plan-lots strong { font-size: clamp(0.95rem, 1.15vw, 1.15rem); }
  .plan-cta { padding: 8px 10px; font-size: clamp(0.85rem, 1.05vw, 1rem); white-space: nowrap; }
  .plan-badge { top: 12px; right: 10px; font-size: 0.72rem; }
  .plan-studs i { max-width: 40px; }
}
