/* ==========================================================================
   Steady Scale — Pricing
   Page-local styles. Inherits the Sand & Forest system from styles.css.

   Structural intent: this page is a *rate card*, not a SaaS pricing grid.
   Six identical bordered boxes with checkmark bullets is the generic template
   look DESIGN.md names as the project's primary anti-reference — and on a site
   selling judgment about websites, shipping the default is an argument against
   the product. So: two paired project cards resolved by one wide bundle card,
   then a genuinely comparable three-tier ladder. No check icons anywhere;
   inclusions are ruled rows, the way a printed price list sets them.

   Type sizes here stay on the set already shipping in styles.css
   (.72 / .82 / .95 / 1.0625 / 1.18 / 1.2rem) rather than inventing neighbours
   a reader can't tell apart.
   ========================================================================== */

/* Secondary-page scaffolding (.page-hero, .jump-row, .section--sand2) is
   shared and lives in styles.css. */

.plans-head { max-width: 60ch; margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem); }
.plans-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: .9rem; }
.plans-head .lead { margin: 0; max-width: 58ch; }

/* ==========================================================================
   Plan card — shared by the two Steady Projects cards
   ========================================================================== */
/* Natural heights, not stretched. These two cards hold genuinely different
   amounts of content (the Website Build carries a hosting note and an add-on
   list), and forcing them to match leaves a dead ~150px gap above the Roadmap's
   button. Ragged bottoms read as a printed page; a stretched card with a hole
   in it reads as a bug. */
.plan-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .plan-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.plan:hover { border-color: #D8CDB7; box-shadow: var(--shadow-md); }

.plan__name { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: .35rem; }

/* .voc (the voice-of-customer device) and .ruled-list now live in styles.css
   so every page renders them identically. Only contextual spacing is local. */
.plan .voc { margin-bottom: 1.25rem; }

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.plan__amount {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.35rem);
  line-height: 1;
  color: var(--forest);
  letter-spacing: -.015em;
  /* Prices sit in a row of cards and are scanned down the column, so the
     digits need equal widths — proportional figures make $995 and $1,995
     start at visibly different offsets. */
  font-variant-numeric: tabular-nums;
}
.plan__unit { font-size: .95rem; color: var(--ink-soft); }
/* Minimum-term commitments are a real trade-off, so they get set as legible
   text next to the number rather than tucked into fine print. Chip step. */
.plan__term {
  font-size: .82rem;
  font-weight: 500;
  color: var(--forest);
  background: var(--sage-soft);
  border-radius: 999px;
  padding: .25rem .7rem;
}

.plan__desc { color: var(--ink); margin-bottom: 1.5rem; text-wrap: pretty; }

.includes-label {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .35rem;
}
/* Honest disclosure, designed in rather than buried: charcoal on a sage tint,
   never muted gray. The visitor has to be able to read this one. */
.plan__note {
  margin-top: 1.25rem;
  background: var(--sage-soft);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink);
}
.plan__note b { font-weight: 600; }

/* Add-ons: native disclosure widget — keyboard-operable and zero JS.
   Focus ring rounding comes from the global :focus-visible rule. */
.addons { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.addons summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--forest);
  min-height: 44px; /* touch-target floor — this is the only control on the card */
}
.addons summary::-webkit-details-marker { display: none; }
.addons summary .chev { transition: transform .25s var(--ease); }
.addons[open] summary .chev { transform: rotate(180deg); }
.addons ul { margin-top: .5rem; }
.addons li {
  font-size: .95rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.addons li:last-child { border-bottom: 0; }
.addons li span:last-child { color: var(--forest); font-weight: 600; white-space: nowrap; }

.plan__cta { margin-top: auto; padding-top: 1.75rem; }
.plan__cta .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   The Steady Project Bundle — the sum of the two cards above it
   Deliberately NOT a third peer card: it sits on the sage ground, runs the
   full width, and shows its own arithmetic.
   ========================================================================== */
.bundle {
  margin-top: 1.25rem;
  background: var(--sage-soft);
  border: 1px solid #D3E0D6;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
@media (min-width: 860px) {
  .bundle { grid-template-columns: 1.15fr 1fr; margin-top: 1.5rem; }
}
.bundle h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: .35rem; }
.bundle .voc { margin-bottom: 1rem; }
.bundle__desc { color: var(--ink); max-width: 46ch; text-wrap: pretty; }

/* The arithmetic, shown rather than claimed. */
.bundle__math {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: rgba(253,251,246,.72);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.bundle__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: .95rem;
}
.bundle__row .label { color: var(--ink); }
.bundle__row .val { color: var(--ink-soft); white-space: nowrap; }
.bundle__row--total {
  border-top: 1px solid #CFDDD3;
  margin-top: .35rem;
  padding-top: .7rem;
  align-items: center;
}
.bundle__row--total .label { font-weight: 600; }
.bundle__totalwrap { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.bundle__total {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  line-height: 1;
  color: var(--forest);
  letter-spacing: -.015em;
}
.bundle__save {
  font-size: .95rem;
  font-weight: 600;
  color: var(--forest);
  margin-top: .1rem;
}
.bundle__cta { margin-top: 1.4rem; }

/* ==========================================================================
   Partnerships opener — the one Ground Band on this page
   Carries the agency-retainer comparison already stated in the section copy.
   ========================================================================== */
.tier-band {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: #F4F1EA;
  padding: var(--section-y) 0;
}
.tier-band__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% center;
  opacity: .22;
  z-index: 0;
}
/* Scrim so the copy holds its contrast over the photograph at every width. */
.tier-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(33,56,45,.96) 0%, rgba(33,56,45,.88) 42%, rgba(33,56,45,.62) 100%);
}
.tier-band > .container { position: relative; z-index: 2; }
.tier-band .eyebrow { color: #E4B48F; }
.tier-band .eyebrow::before { background: var(--terracotta); }
.tier-band h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  color: #FFFFFF;
  margin-bottom: 1rem;
  max-width: 20ch;
}
.tier-band p { color: #DAE2DB; font-size: 1.08rem; max-width: 56ch; text-wrap: pretty; }

/* Agency-vs-us, using the real numbers from the section description.
   Translucent containers follow the documented Ground Band recipe:
   rgba(255,255,255,.06) fill on a rgba(255,255,255,.14) border. */
.retainer {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: grid;
  gap: 1px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 44rem;
}
@media (min-width: 620px) { .retainer { grid-template-columns: 1fr 1fr; } }
.retainer > div { background: var(--forest); padding: 1.15rem 1.3rem; }
.retainer .k {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #A9BCB0;
  margin-bottom: .4rem;
}
.retainer .v { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.25; color: #DAE2DB; }
/* Layered over the opaque forest, not substituted for it — a bare translucent
   fill here lets the photograph through and washes out the one cell that has
   to be the most readable on the page. */
.retainer .us {
  background: linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)), var(--forest);
}
.retainer .us .v { color: #FFFFFF; }

/* ==========================================================================
   Partnership tiers — a real ladder, so aligned columns are the right
   affordance. Emphasis on the featured tier is tonal (the house Forest band
   at card scale), not a scale/shadow trick.
   ========================================================================== */
.tier-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
/* Straight to three: an intermediate two-column state orphans the third tier
   and breaks the comparison the columns exist to support.

   Subgrid does the row alignment. These three tiers have naturally uneven
   content — a two-line plan name, descriptions of 2 to 4 lines, lists of 9 to
   11 items — and without it every row below the longest block drifts out of
   register, which defeats the only reason to put them in columns. Subgrid
   keeps name / tagline / price / description / Includes / list / button on
   shared tracks without a stack of brittle min-heights. */
@media (min-width: 940px) {
  .tier-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(7, auto);
    gap: 1.5rem;
  }
}

.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.6vw, 2rem);
  display: flex;
  flex-direction: column;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.tier:hover { border-color: #D8CDB7; box-shadow: var(--shadow-md); }
.tier__name { font-size: clamp(1.3rem, 2.2vw, 1.5rem); margin-bottom: .35rem; }
.tier .voc { margin-bottom: 1.1rem; }
/* Amount on one line, commitment term on the next — always, in all three
   columns. Left inline, the chip rides up beside the shorter prices and the
   three cards stop lining up. */
.tier .plan__price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
}
.tier .plan__amount { font-size: clamp(1.8rem, 3vw, 2.15rem); }
.tier .plan__term { padding: .25rem .65rem; }
.tier .plan__desc { font-size: .95rem; margin-bottom: 1.4rem; }
.tier .includes li { padding: .6rem 0; }

/* Featured tier — inverted palette, same structure. */
.tier--featured {
  background: var(--forest);
  border-color: var(--forest);
  color: #F4F1EA;
}
.tier--featured:hover { border-color: var(--forest-deep); }
.tier--featured .tier__name { color: #FFFFFF; }
.tier--featured .voc { color: #C7DBCE; }
.tier--featured .plan__price { border-bottom-color: rgba(255,255,255,.14); }
.tier--featured .plan__amount { color: #FFFFFF; }
.tier--featured .plan__unit { color: #DAE2DB; }
.tier--featured .plan__term { background: rgba(255,255,255,.14); color: #F4F1EA; }
.tier--featured .plan__desc { color: #DAE2DB; }
.tier--featured .includes-label { color: #A9BCB0; }
.tier--featured .includes li { border-bottom-color: rgba(255,255,255,.14); color: #EDF1EC; }

.tier__badge {
  position: absolute;
  top: 0;
  right: clamp(1.6rem, 2.6vw, 2rem);
  transform: translateY(-50%);
  background: var(--terracotta);
  color: var(--forest-ink);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .35rem .8rem;
  white-space: nowrap;
}
/* The badge sits on the card's top edge; on stacked mobile that needs clearance. */
.tier--featured { margin-top: .75rem; }

/* Subgrid opt-in. Must come AFTER the .tier base rules above: it overrides
   `display: flex` at equal specificity, so source order is what decides it.
   The badge is position:absolute and so never takes a track. */
@media (min-width: 940px) {
  .tier--featured { margin-top: 0; }
  .tier {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 7;
    row-gap: 0;
  }
  /* The subgrid track already bottoms the button out; auto margin would fight it. */
  .tier .plan__cta { margin-top: 0; }
}

/* ==========================================================================
   Motion — staggered entrance within each group only.
   A single uniform fade applied to every section is the tell; a list that
   arrives in sequence is legitimate. Both are gated on html.has-reveal, so
   no-JS and reduced-motion visitors get fully-visible content either way.
   ========================================================================== */
html.has-reveal .plan-grid .reveal:nth-child(2),
html.has-reveal .tier-grid .reveal:nth-child(2) { transition-delay: .08s; }
html.has-reveal .tier-grid .reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html.has-reveal .plan-grid .reveal,
  html.has-reveal .tier-grid .reveal { transition-delay: 0s; }
  .plan, .tier, .addons summary .chev { transition: none; }
}
