/* Wave 2 · shared components + footer: touch, press, hover and keyboard states.
   Motion is transform/opacity only. Hover is gated to (hover:hover) so nothing
   sticks after a tap. Press feedback (.is-press, set by 20-footer.js) is reserved
   for things that actually do something: tier rows. Static spec cells and step
   lists get a hover accent for reading, never a lift that implies a link.
   Button press scale lives in 20-system.css (.btn:active) and is not repeated here. */

/* ---------- section head: rule draws in once revealed ---------- */
.section-head .eyebrow::after { transform-origin: left center; transition: transform .7s var(--ease, cubic-bezier(.2,.7,.2,1)); }
.section-head[data-ef-head]:not(.is-in) .eyebrow::after { transform: scaleX(0); }

/* ---------- trade strip: a reading accent on hover (cells are not links) ---------- */
.trade-strip > div { position: relative; isolation: isolate; }
.trade-strip > div::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease, ease);
}
@media (hover: hover) {
  .trade-strip > div:hover::before { transform: scaleX(1); }
}

/* ---------- price tiers: tap a row, or its tier button, to price that tier ---------- */
.pricing .tiers tbody tr { transition: background-color .2s; }
.pricing.is-pickable .tiers tbody tr { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pricing.is-pickable .tiers tbody tr.is-press { background: var(--accent-soft); }
.pricing .tier-pick {
  appearance: none; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--accent-ink);
  font: 600 .74rem/1 var(--f-mono); letter-spacing: .04em; font-variant-numeric: tabular-nums;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border-radius: 4px; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .15s;
}
.pricing .tiers tr.on .tier-pick { background: var(--accent); border-color: var(--accent); color: #fff; }
.pricing .tier-pick:active { transform: scale(.94); }
.pricing .tier-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { .pricing .tier-pick:hover { border-color: var(--accent); } }
.pricing .tier-tip { margin: 10px 2px 0; font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
/* The tip is a third grid child: keep it under the table and the calculator in the side column. */
@media (min-width: 901px) {
  .pricing.is-pickable .tier-tip { grid-column: 1; grid-row: 2; margin-top: -10px; }
  .pricing.is-pickable > .calc { grid-column: 2; grid-row: 1 / span 2; }
}
.pricing .calc-out b { display: inline-block; }
.pricing .calc-out b.is-bump { animation: efBump .32s var(--ease, ease); }
@keyframes efBump { 0% { transform: translateY(0); opacity: 1; } 40% { transform: translateY(-3px); opacity: .55; } 100% { transform: translateY(0); opacity: 1; } }

/* ---------- process steps and 4-step lists: hover accent only ---------- */
.process .dot { transition: background-color .2s; }
.steps4 li { transition: border-color .2s; }
@media (hover: hover) {
  .process li:hover .dot { background: var(--accent); }
  .steps4 li:hover { border-color: var(--accent); }
}

/* ---------- CTA band ---------- */
.cta-meta a { display: inline-block; padding-block: 4px; }

/* ---------- footer links ---------- */
.foot ul a { display: inline-flex; align-items: center; min-height: 32px; transition: color .2s, transform .25s var(--ease, ease); }
@media (hover: hover) { .foot-col ul a:hover { transform: translateX(3px); } }
.foot ul a:active { opacity: .7; }
/* 44px targets on touch. Selector is one step stronger than 20-system.css (.foot ul a, 40px),
   which loads after this file. */
@media (pointer: coarse) {
  .foot .foot-grid ul a, .foot .foot-base a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- footer: copy email ---------- */
.foot-contact li:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.foot-copy {
  appearance: none; margin-left: 6px; min-height: 32px; min-width: 44px; padding: 0 10px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: #d9e1ee;
  font: 500 .64rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: border-color .2s, color .2s, transform .12s;
}
.foot-copy:active { transform: scale(.94); }
.foot-copy.is-done { border-color: #9db6ff; color: #fff; }
@media (hover: hover) { .foot-copy:hover { border-color: #9db6ff; color: #fff; } }
@media (pointer: coarse) { .foot-copy { min-height: 44px; } }

/* ---------- footer: back to top ---------- */
.foot-top { white-space: nowrap; }
.foot-top span { display: inline-block; transition: transform .25s var(--ease, ease); }
@media (hover: hover) { .foot-top:hover span { transform: translateY(-3px); } }

/* ---------- footer: certification badges ---------- */
.cert-badges a { transition: border-color .2s, transform .25s var(--ease, ease); }
.cert-badges a:active { transform: scale(.97); }
@media (hover: hover) { .cert-badges-foot a:hover { transform: translateY(-2px); } }

/* ---------- footer: phone accordion for the link columns (only once JS builds the toggles) ---------- */
.foot-toggle {
  appearance: none; width: 100%; min-height: 48px; margin: 0; padding: 0; border: 0; background: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.foot-toggle:active { opacity: .75; }
.foot-toggle i { position: relative; width: 12px; height: 12px; flex: none; }
.foot-toggle i::before, .foot-toggle i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transition: transform .3s var(--ease, ease); }
.foot-toggle i::after { transform: rotate(90deg); }
.foot-toggle[aria-expanded="true"] i::after { transform: rotate(0deg); }
.foot-toggle .foot-n { margin-left: auto; color: #8fa3c2; font-variant-numeric: tabular-nums; opacity: .8; }
.foot-col.has-toggle .foot-h { padding-bottom: 0; margin-bottom: 0; }
.foot-col.has-toggle ul { padding: 6px 0 14px; }
.foot-col.has-toggle.is-shut ul { display: none; }
.foot-col.has-toggle:not(.is-shut) ul { animation: efFootIn .3s var(--ease, ease); }
@keyframes efFootIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .foot-grid { row-gap: 0; }
  .foot-grid > .foot-brand { padding-bottom: 24px; }
  .foot-grid > div:last-child { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .section-head .eyebrow::after, .trade-strip > div::before, .foot ul a, .foot-top span, .cert-badges a,
  .foot-toggle i::before, .foot-toggle i::after, .pricing .tier-pick, .foot-copy { transition: none; }
  .section-head[data-ef-head]:not(.is-in) .eyebrow::after { transform: none; }
  .foot-col.has-toggle:not(.is-shut) ul, .pricing .calc-out b.is-bump { animation: none; }
  .foot-col ul a:hover, .foot-top:hover span, .cert-badges-foot a:hover, .cert-badges a:active { transform: none; }
}
