/* ============================================================
   GREENHAT GROUP — pricing surface
   Extends the Survey Sheet system in style.css for
   services/iso-9001-pricing.html. Introduces no new hues,
   shadows, radii or faces: every value below resolves to a
   token already declared in style.css.
   ============================================================ */

/* ===== CENTRED HEADER BLOCK (deep hero ground) ===== */

/* The centred block is shorter than a service-page hero, so the band closes
   earlier: the action should point at the cards, not float above dead ground. */
.service-page .hero--pricing { padding: var(--sec) 0 3.5rem; }

.pricing-hero {
  position: relative;
  z-index: 2;
  max-width: 54rem;
  text-align: center;
}

.pricing-hero .hero-tag { margin-bottom: var(--s-5); }
.pricing-hero .hero-tag .dot { flex-shrink: 0; }

/* A centred two-sentence headline wants a smaller display size than the
   left-aligned service-page hero it inherits from. */
.service-page .pricing-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.service-page .pricing-hero h1 em { white-space: nowrap; }

.pricing-hero .hero-lede {
  max-width: 46ch;
  margin: 0 auto 2.75rem;
  color: var(--soft-inv);
}

.pricing-hero-jump { margin: 0; }

/* The pricing page's primary action is the estimator, so the jump
   carries the site's arrow affordance rather than reading as prose. */
.jump-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--unit-green-bright);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}

.jump-link:hover { color: var(--ink-inv); }
.jump-link .arrow { transition: transform 0.2s ease; }
.jump-link:hover .arrow { transform: translateX(4px); }

/* ===== PLAN CARDS =====
   A plan is a cut of the sheet, same ground and same internal
   spacing across all four. Assured differs by exactly two things:
   the unit-green border and the badge. */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}

/* Rows align across the four cards without magic min-heights. */
@supports (grid-template-rows: subgrid) {
  .plan-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;
  }
}

.plan-card--featured { border: 1.5px solid var(--unit-green); }

.plan-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.8rem;
  padding: 0.3em 0.65em;
  background: var(--unit-green);
  color: var(--surface);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-s);
}

/* Beats .service-page h2, which sizes section headings. */
.service-page .plan-name {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
}

.plan-desc {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.plan-price {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
}

.plan-pre {
  display: block;
  height: 1.6em;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.15rem;
}

.plan-figure {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.plan-unit {
  font-size: 13px;
  color: var(--ink-mute);
  margin-left: 2px;
}

.plan-sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-mute);
}

.plan-cta {
  margin-top: 1.35rem;
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
}

.plan-features {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.plan-features li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.plan-features .tick {
  color: var(--unit-green);
  margin-top: 0.28rem;
}

/* ===== RESPONSIVE =====
   Four up at 1024 and above, two by two at 768, stacked below 640. */

@media (max-width: 1023px) {
  .plan-grid { gap: 1.2rem; }
}

/* Centred holds at 768. Below 640 a centred three-line headline over a
   two-line lede reads worse than a left-aligned block, so it flips there. */
@media (max-width: 639px) {
  .pricing-hero { text-align: left; }
  .pricing-hero .hero-lede { margin-left: 0; }
  .plan-grid { grid-template-columns: 1fr; }

  /* The stage key names both the stage and the standards, so it wraps to two
     lines here. A pill radius on a two-line box reads stretched: take the
     card radius and hang the swatch off the first line instead. */
  .pricing-hero .hero-tag {
    align-items: flex-start;
    border-radius: var(--r-m);
    padding: 9px 14px 9px 9px;
  }
  .pricing-hero .hero-tag .dot { margin-top: 1px; }
}

/* ===== ESTIMATOR =====
   The page's signature interaction, laid out as an instrument bar: the
   three drivers and the add-ons read left to right across one panel, and
   the whole ladder resolves in the row beneath. Controls follow the
   documented input recipe, paper ground inside a surface panel; result
   tiles are cut from the same sheet as the plan cards. */

.est-controls {
  margin-top: 2.5rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
  display: grid;
  /* The fourth track is fixed, not auto: the custom-quote panel hides the
     add-ons, and an auto track would let that resize the three selects
     under the cursor. An instrument's controls hold still. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem 1.8rem;
  align-items: start;
}

.est-controls select {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-s);
  padding: 0.65rem 2.2rem 0.65rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  /* The system's caret, drawn: the same path the mobile nav uses. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2355645B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

/* The documented input recipe is a quiet border shift with no outline.
   Keyboard focus still gets the site's global ring, which that recipe
   predates: a 1px border change is not a sufficient focus indicator. */
.est-controls select:focus {
  outline: none;
  border-color: var(--unit-green);
}

.est-controls select:focus-visible {
  outline: 2px solid var(--unit-green);
  outline-offset: 2px;
}

/* Structural hairline, the same rule the stat and process rows use to
   divide a row into cells. Not a stage key. */
.est-addons {
  margin: 0;
  padding: 0 0 0 1.8rem;
  border: 0;
  border-left: 1px solid var(--hairline);
}

.est-checks { display: grid; gap: 0.65rem; }

.est-addons[hidden] { display: none; }

.est-addons legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.est-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ink-soft);
  cursor: pointer;
}

.est-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--unit-green);
  cursor: pointer;
}

/* ---- results ---- */

.est-results { display: grid; gap: 1.2rem; }

.est-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.est-tiles[hidden] { display: none; }

.est-tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

/* Matches .form-field label exactly, so the instrument speaks with one
   label voice on both sides. */
.est-tile-name {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.est-tile-value {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-height: 2.3rem;
}

.est-figure {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.est-unit { font-size: 13px; color: var(--ink-mute); }

/* A plan that is not offered for this shape says so, rather than showing
   a number that is not real. */
.est-note {
  align-self: center;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink-mute);
}

.est-foot {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

.est-foot[hidden] { display: none; }

/* ---- custom-quote panel ---- */

.est-custom {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  animation: est-fade 0.15s ease-out;
}

.est-custom[hidden] { display: none; }

.est-custom h3 { margin: 0 0 0.7rem; }

.est-custom p {
  margin: 0 0 1.5rem;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

@keyframes est-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .est-custom { animation: none; }
}

@media (max-width: 1023px) {
  .est-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .est-addons {
    grid-column: 1 / -1;
    padding: 1.2rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
  .est-checks { grid-template-columns: repeat(2, max-content); column-gap: 2rem; }
  .est-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .est-controls { grid-template-columns: 1fr; }
  .est-checks { grid-template-columns: 1fr; }
  .est-tiles { grid-template-columns: 1fr; }
}

/* ===== SCREEN-READER ONLY ===== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===== ADD-ONS ===== */

.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.addon-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}

@supports (grid-template-rows: subgrid) {
  .addon-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
  }
}

.service-page .addon-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  max-width: none;
  color: var(--ink);
}

.addon-price {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--hairline);
}

.addon-figure {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.addon-unit { font-size: 13px; color: var(--ink-mute); margin-left: 2px; }

.addon-body {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.addon-foot {
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

/* ===== COMPARISON MATRIX =====
   One real table. Below 900px it scrolls inside its own wrapper, so the
   page never scrolls sideways, and the feature column stays pinned while
   the plan columns move. */

.matrix-hint {
  display: none;
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

.matrix-scroll {
  margin-top: 2.2rem;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.matrix-scroll:focus-visible {
  outline: 2px solid var(--unit-green);
  outline-offset: 2px;
}

.matrix {
  border-collapse: collapse;
  width: 100%;
  min-width: 56rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.matrix th,
.matrix td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--hairline);
}

/* No vertical sticky here: the wrapper is a horizontal scrollport, so a
   sticky thead would never engage, and at page level it would collide
   with the site header. The group labels do the wayfinding instead. */
.matrix thead th {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--hairline);
  padding-top: 1rem;
  padding-bottom: 1rem;
  white-space: nowrap;
}

/* Naming the pinned column, so the corner cell is not a blank block once
   the plan columns scroll away under it. */
.matrix-corner {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.matrix thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--paper-deep);
  border-right: 1px solid var(--hairline);
}

.matrix-plan {
  display: block;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.matrix-price {
  display: block;
  margin-top: 2px;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* Group labels carry real taxonomy (the build-manage-extend ladder the
   service page already uses), so they take the mono face. */
.matrix-group th {
  background: var(--paper-deep);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.matrix tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  font-family: var(--f-body);
  font-weight: 700;
  color: var(--ink);
  border-right: 1px solid var(--hairline);
  min-width: 15rem;
}

.matrix-group th[scope="colgroup"] > span {
  position: sticky;
  left: 1rem;
  display: inline-block;
}

.matrix td { color: var(--ink-soft); }

/* A plan that does not carry a line says so quietly, so the eye lands on
   what each plan does do. */
.matrix td.is-off { color: var(--ink-mute); }

.matrix tbody:last-of-type tr:last-child th,
.matrix tbody:last-of-type tr:last-child td { border-bottom: 0; }

/* Four even columns: the feature label and the three plans share the width
   equally instead of sizing to whichever cell has the longest text. */
.matrix { table-layout: fixed; }
.matrix thead th:first-child,
.matrix thead th:not(:first-child) { width: 25%; }
.matrix thead th:not(:first-child) { white-space: normal; }

.matrix-foot {
  margin: 1.4rem 0 0;
  max-width: 70ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-mute);
}

/* ===== NOTES ===== */

.notes {
  margin: 0;
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ===== RESPONSIVE (phase 3) ===== */

@media (max-width: 1023px) {
  .addon-grid { grid-template-columns: 1fr; }
  @supports (grid-template-rows: subgrid) {
    .addon-card { grid-row: span 3; }
  }
}

@media (max-width: 900px) {
  .matrix-hint { display: block; }
}

@media (max-width: 639px) {
  /* The pinned column plus one plan column must fit the viewport, or the
     last plan column can never leave the pinned column's shadow at the
     end-stop. Auto layout hands the surplus to the feature column and
     breaks that, so the columns are sized explicitly here: 168 pinned plus
     150 for a plan column is 318 inside a 333 scrollport. min-width tracks
     the column count, or the surplus stretches them back out of range. */
  .matrix { min-width: 39rem; table-layout: fixed; }
  .matrix tbody th[scope="row"],
  .matrix thead th:first-child { width: 10.5rem; min-width: 0; }
  .matrix thead th:not(:first-child) { width: 9.375rem; white-space: normal; }
  .matrix tbody th[scope="row"] { overflow-wrap: break-word; }
}

/* ===== NUMBERED STEPS =====
   The page is a sequence now: describe, choose, add, compare. The number
   is real information about order, so it takes the mono face. */

.step-key {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ===== ADD-ON PICKER ===== */

.addon-picker {
  margin-top: 2.5rem;
  padding: 1.4rem 1.8rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
}

.addon-picker-label {
  margin: 0 0 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.addon-picker .est-checks {
  grid-template-columns: repeat(3, max-content);
  column-gap: 2.2rem;
  row-gap: 0.7rem;
}

.est-check-price { color: var(--ink-mute); font-size: 0.8rem; margin-left: 0.15rem; }

/* ===== ADD-ON CARDS (four across) ===== */

.addon-grid { grid-template-columns: repeat(4, 1fr); margin-top: 1.4rem; }

.addon-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.addon-avail {
  flex: none;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.plan-foot {
  margin: 1.4rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

.est-custom { margin-top: 1.4rem; }

@media (max-width: 1023px) {
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
  .addon-picker .est-checks { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
  .addon-grid { grid-template-columns: 1fr; }
}

/* ===== PLAN SELECTION =====
   Selecting a plan is the page's second step, so the chosen card holds a
   visible state and the action reads as done rather than available. */

.plan-card.is-selected {
  border: 1.5px solid var(--unit-green);
}

.plan-card.is-selected .plan-cta {
  background: var(--surface);
  border-color: var(--unit-green);
  color: var(--unit-green);
}

.plan-card.is-selected .plan-cta:hover {
  background: var(--paper-deep);
  border-color: var(--unit-green);
}

.plan-card.is-selected .plan-cta .arrow { transform: rotate(90deg); }
.plan-card.is-selected .plan-cta:hover .arrow { transform: rotate(90deg) translateX(3px); }

.plan-cta { font-family: var(--f-body); cursor: pointer; }

.addon-prompt {
  margin: 2.5rem 0 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

.addon-card[hidden], .est-check[hidden], .addon-picker[hidden] { display: none; }

/* ===== EXPANDABLE FEATURE ROWS =====
   A feature that needs explaining carries a plus; the rest do not, so the
   affordance means something rather than decorating every row. */

.matrix-more {
  display: grid;
  grid-template-columns: 11px 1fr;
  gap: 0.55rem;
  align-items: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.matrix-more-icon {
  display: grid;
  place-items: center;
  width: 11px;
  height: 1.4em;
  color: var(--unit-green);
  transition: transform 0.15s ease;
}

.matrix-more[aria-expanded="true"] .matrix-more-icon { transform: rotate(45deg); }

.matrix-more:hover { color: var(--unit-green); }

.matrix-more:focus-visible {
  outline: 2px solid var(--unit-green);
  outline-offset: 2px;
}

/* Keeps the plain rows' text on the same left edge as the expandable ones. */
.matrix-plain {
  display: block;
  padding-left: calc(11px + 0.55rem);
}

.matrix-detail > td {
  padding-top: 0;
  padding-left: calc(1rem + 11px + 0.55rem);
  padding-bottom: 1rem;
  max-width: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-mute);
  background: var(--surface);
}

.matrix-detail[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .matrix-more-icon { transition: none; }
}

/* ===== ADD-ONS INSIDE THE PLAN CARDS ===== */

.plan-addons {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.plan-addons-label {
  margin: 0 0 0.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.plan-addons .est-check { font-size: 0.92rem; align-items: start; }
.plan-addons .est-check input { margin-top: 0.15rem; }
.plan-addons .est-check-price { white-space: nowrap; }

.plan-addons-all {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ===== ONE-OFF | MONTHLY PRICE SPLIT ===== */

.plan-price--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  align-items: start;
}

.price-cell { min-width: 0; }

.plan-price--split .plan-pre {
  height: auto;
  margin-bottom: 0.35rem;
  white-space: nowrap;
}

.plan-price--split .plan-figure {
  font-size: 1.85rem;
  white-space: nowrap;
}

.plan-price--split .plan-sub {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* ===== SERVICE-LINE CHIPS (describe your business) ===== */

.est-lines {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.est-lines-legend {
  padding: 0;
  margin: 0 0 0.8rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.est-lines-hint {
  margin-left: 0.6rem;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

.est-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.est-chip { position: relative; }

.est-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.est-chip span {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--f-body);
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.est-chip span:hover { border-color: var(--ink-soft); color: var(--ink); }

.est-chip input:checked + span {
  background: var(--unit-green);
  border-color: var(--unit-green);
  color: var(--paper);
}

.est-chip input:focus-visible + span {
  outline: 2px solid var(--unit-green);
  outline-offset: 2px;
}

/* ===== ENQUIRY DIALOG (opened by a plan's Get started) ===== */

.enquiry-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(44rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  margin: auto;
}

.enquiry-dialog::backdrop {
  background: rgba(19, 28, 22, 0.55);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.enquiry-inner {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 2rem 2.2rem 2.2rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.enquiry-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.enquiry-close:hover { color: var(--ink); border-color: var(--ink-soft); }
.enquiry-close:focus-visible { outline: 2px solid var(--unit-green); outline-offset: 2px; }

.enquiry-inner .step-key { margin-bottom: 0.6rem; }

.service-page .enquiry-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: none;
  margin: 0 0 0.4rem;
}

.enquiry-inner .cta-meta { margin: 0 0 1.4rem; }

.enquiry-inner .contact-form { gap: 0.9rem; }

.enquiry-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.enquiry-hint {
  margin-left: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-mute);
}

.enquiry-inner textarea {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 639px) {
  .enquiry-fields { grid-template-columns: 1fr; }
  .enquiry-inner { padding: 1.5rem 1.2rem 1.6rem; }
}

/* "+ Other" service line */
.est-chip-btn {
  padding: 0.5rem 0.9rem;
  border: 1px dashed var(--ink-mute);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--f-body);
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
}
.est-chip-btn:hover, .est-chip-btn[aria-expanded="true"] { border-color: var(--unit-green); color: var(--unit-green); }
.est-chip-btn:focus-visible { outline: 2px solid var(--unit-green); outline-offset: 2px; }

.est-other { display: inline-flex; gap: 0.4rem; align-items: center; }
.est-other[hidden] { display: none; }
.est-other input {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  width: 14rem;
  max-width: 60vw;
}
.est-other input:focus { outline: none; border-color: var(--unit-green); }
.est-other-add {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--unit-green);
  border-radius: 999px;
  background: var(--unit-green);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.est-other-add:focus-visible { outline: 2px solid var(--unit-green); outline-offset: 2px; }
