/* ============================================================
   TRELLIS STACK · INNER PAGES
   The home page has bespoke sections (hero.css, problem.css,
   flagship.css, grow.css). Everything the other seven pages need
   lives here, built only from tokens.css — no new colours, no new
   type scale. If a value below is not a var(), it is a layout
   number, never a brand decision.
   ============================================================ */

/* ---------- Page hero — the lighter sibling of the home hero ---------- */
.page-hero {
  padding: clamp(7rem, 13vw, 11rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60% 60% at 78% 18%, rgba(166,183,154,0.16) 0%, transparent 70%),
    var(--t-cream);
  border-bottom: 1px solid var(--border);
}
.page-hero--tight { padding-top: clamp(6rem, 10vw, 8.5rem); }
.page-hero__title { margin: 18px 0 0; max-width: 16ch; }
.page-hero__lead { margin-top: 22px; }
.page-hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px;
}

/* ---------- Section heading block ---------- */
.band__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.band__head .t-d1 { margin-top: 14px; }

/* ---------- Feature grid (Ivy) ---------- */
.feature-band { background: var(--t-cream-2); }
.feature-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 26px 28px;
  box-shadow: var(--sh-sm);
}
.feature-card__mark {
  display: block; font-family: var(--font-display);
  font-size: 1.35rem; color: var(--t-rose-ink); margin-bottom: 12px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-2); font-size: var(--t-sm); margin: 0; }

.who__actions { margin-top: 34px; }

/* ---------- Comparison table ---------- */
/* Scroll container, not a squashed table: the four columns cannot fit a
   360px phone, and shrinking them to fit is how a comparison becomes
   unreadable. The wrapper scrolls; the page never does sideways. */
.cmp-table__scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table thead tr { background: var(--t-forest); }
.cmp-table thead th {
  color: var(--on-dark);
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  padding: 16px 18px; text-align: center;
}
.cmp-table thead th.cmp-table__rowhead { text-align: left; }
.cmp-table thead th.cmp-table__ivy {
  font-family: var(--font-display); font-size: 1.05rem;
  letter-spacing: 0; text-transform: none; color: var(--t-blush);
}
.cmp-table tbody th {
  text-align: left; font-weight: 500; font-size: var(--t-sm);
  padding: 15px 18px; color: var(--text);
  border-top: 1px solid var(--border);
}
.cmp-table tbody td {
  text-align: center; padding: 15px 18px;
  border-top: 1px solid var(--border);
}
.cmp-table tbody tr:nth-child(even) { background: var(--t-cream); }
.cmp-table td.cmp-table__ivy { background: rgba(107,127,100,0.07); }
.cmp-table tbody tr:nth-child(even) td.cmp-table__ivy { background: rgba(107,127,100,0.11); }

/* Marks. Colour is a REINFORCEMENT here, never the only signal — each cell
   carries its word, so the table still reads with colour vision differences
   or in print. Inks are the darkened variants; the decorative sage and rose
   do not pass as text on these tints. */
.mark { font-size: var(--t-sm); font-weight: 500; }
.mark--yes { color: #596A54; }  /* sage, darkened for ink */
.mark--ltd { color: var(--t-rose-ink); }
.mark--no  { color: #5F6858; opacity: 0.85; }

.cmp-table__note {
  margin-top: 16px; font-size: var(--t-xs); color: var(--text-2);
}

/* ---------- Callout bands ---------- */
.callout-band { background: var(--t-cream-2); }
.callout__copy .lead { margin-top: 18px; }

/* ---------- Pricing tiers ---------- */
.tiers {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  align-items: start;
}
.tier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 28px 30px;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; height: 100%;
}
.tier--featured {
  border-color: var(--t-sage);
  box-shadow: var(--sh-md);
}
.tier__flag {
  position: absolute; top: -11px; left: 28px;
  background: var(--t-forest); color: var(--on-dark);
  font-size: var(--t-label); font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-pill);
}
.tier__name { margin-bottom: 6px; }
.tier__price {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--text); margin-bottom: 12px;
}
.tier__desc { color: var(--text-2); font-size: var(--t-sm); margin-bottom: 20px; }
.tier__list { display: grid; gap: 10px; margin-bottom: 26px; }
.tier__list li {
  position: relative; padding-left: 24px;
  font-size: var(--t-sm); color: var(--text);
}
.tier__list li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--t-sage-lt); transform: rotate(45deg);
}
.tier__cta { margin-top: auto; align-self: stretch; }

/* ---------- Contact ---------- */
.contact { max-width: 620px; }
.contact__form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2);
}
.field input, .field textarea {
  font: inherit; font-size: var(--t-body);
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--accent); }
.contact__submit { justify-self: start; }
.contact__submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.contact__note { font-size: var(--t-sm); color: var(--text-2); margin: 0; }

/* ---------- Legal ---------- */
/* 22px, not 14px: this follows a .t-d1 title whose descenders overflow their
   line box by ~22px, so at 14px the "y" of "Privacy Policy" sat on this line.
   Same clearance as the base.css heading→copy rule; spelled out here because
   .legal__stamp is not a .lead and so is not covered by that selector. */
.legal__stamp { margin-top: 22px; font-size: var(--t-sm); color: var(--text-2); }
.legal__banner {
  border-left: 3px solid var(--accent);
  background: var(--t-cream-2);
  padding: 16px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--t-sm); color: var(--text); margin-bottom: 36px;
}
.legal__h { margin: 34px 0 10px; }
.legal p { color: var(--text-2); }
.legal__foot { margin-top: 40px; font-size: var(--t-sm); }
.legal a { color: #596A54; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .page-hero { padding-top: clamp(5.5rem, 22vw, 7rem); }
  .page-hero__title { max-width: none; }
}
