/* Slice: order (start-your-order, contact, wholesale-pricing, trade-account, line-sheet gate).
   Spec Sheet treatment: hairline rules, mono labels, numbered parts, ledger rows.
   All selectors use new o-* / ef-form classes that only these templates output. */

/* ---------- shared labels ---------- */
.o-label { font: 500 .7rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 8px; }

/* ---------- hero ---------- */
.o-hero .lede { max-width: 62ch; }
.o-hero h1.display { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 22ch; }

/* Terms rail: a single spec row, one fact per cell. */
.o-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 28px 0 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-strong); }
.o-terms > div { padding: 12px 16px 14px 0; display: grid; gap: 4px; align-content: start; }
.o-terms > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.o-terms dt { font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.o-terms dd { margin: 0; font: 600 1rem/1.25 var(--f-display); color: var(--ink); }
@media (max-width: 900px) {
  .o-terms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .o-terms > div:nth-child(3n+1) { padding-left: 0; border-left: 0; }
  .o-terms > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .o-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Two columns: reset the 3-column borders, then rule odd cells and rows 2+. */
  .o-terms > div { padding-right: 12px; }
  .o-terms > div:nth-child(n) { padding-block: 10px 12px; padding-left: 12px; border-left: 1px solid var(--rule); border-top: 0; }
  .o-terms > div:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .o-terms > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .o-terms dd { font-size: .94rem; }
}

/* ---------- layout ---------- */
.o-body { padding-top: clamp(20px, 3vw, 36px); }
.o-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 860px) { .o-grid { grid-template-columns: 1fr; } }
.o-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 861px) { .o-side { position: sticky; top: calc(var(--head-h) + 20px); } }
.o-side .card { box-shadow: none; padding: clamp(18px, 2.4vw, 26px); }
.o-side .h3 { margin: 0 0 4px; }

/* ---------- the form ---------- */
form.ef-form { display: grid; gap: 22px; align-content: start; padding: 0; overflow: hidden; }
form.ef-form > *:not(.hp) { margin-inline: clamp(18px, 3vw, 32px); }
.ef-form-head { margin: 0 !important; padding: 18px clamp(18px, 3vw, 32px) 18px; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.ef-form-ref { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px; font: 500 .68rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ef-form-ref span:first-child { color: var(--accent-ink); }
.ef-form-title { font: 600 clamp(1.3rem, 2.2vw, 1.6rem)/1.15 var(--f-display); letter-spacing: -.015em; margin: 0; }
.ef-form-sub { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); }
.ef-fs { border: 0; padding: 0; margin-block: 0; min-width: 0; }
.ef-fs legend { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 14px; font: 600 .95rem/1.2 var(--f-body); color: var(--ink); width: 100%; }
.ef-fs legend::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.ef-fs-n { font: 500 .7rem/1 var(--f-mono); color: var(--accent-ink); letter-spacing: .06em; padding: 4px 6px; border: 1px solid currentColor; border-radius: 4px; }
.ef-form .input { background: var(--surface); }
.ef-form .input:hover:not(:focus) { border-color: var(--ink-2); }
.ef-form .input.is-ok { border-color: var(--ok); }
.ef-form .err-msg { font-size: .8rem; color: var(--warn); }
.ef-form textarea.input { min-height: 150px; line-height: 1.5; }
#tradeForm .field:has(:required) > span:first-child::after { content: " *"; color: var(--accent-ink); }
.ef-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 0 clamp(20px, 3vw, 30px); border-top: 1px solid var(--rule); }
.ef-form-foot .btn { flex: none; }
.ef-form-foot .hint { flex: 1 1 240px; max-width: 46ch; }
.ef-form .btn[disabled] { opacity: .7; cursor: progress; }
.ef-form .notice[data-out="ok"] { border-color: var(--ok); background: #eef8f4; color: var(--ink); font-weight: 500; padding: 16px 18px 16px 48px; position: relative; }
.ef-form .notice[data-out="ok"]::before { content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ef-form .notice[data-out="ok"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(15, 123, 95, .2); }
@media (max-width: 560px) {
  .ef-form-foot { flex-direction: column; align-items: stretch; }
  .ef-form-foot .btn { width: 100%; justify-content: center; }
  /* In a column, the 240px flex-basis became a 240px-tall blank band. */
  .ef-form-foot .hint { flex: none; }
  .ef-form-ref span:last-child { display: none; }
}

/* ---------- what happens next ---------- */
.o-steps { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: o; display: grid; }
.o-steps li { counter-increment: o; position: relative; display: grid; gap: 3px; padding: 0 0 18px 44px; font-size: .9rem; }
.o-steps li:last-child { padding-bottom: 0; }
.o-steps li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 30px; height: 26px; display: grid; place-items: center; font: 500 .72rem/1 var(--f-mono); color: var(--accent-ink); background: var(--accent-soft); border-radius: 4px; }
.o-steps li::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 4px; border-left: 1px dashed var(--rule-strong); }
.o-steps li:last-child::after { display: none; }
.o-steps b { font-weight: 600; color: var(--ink); }
.o-steps span { color: var(--ink-2); line-height: 1.5; }
.o-who-list { margin: 0 0 8px; font: 600 .98rem/1.45 var(--f-display); color: var(--ink); }
.o-talk .contact-list { margin: 4px 0 0; }

/* Facts ledger (contact) */
.o-facts { margin: 14px 0 0; display: grid; }
.o-facts > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: .9rem; }
.o-facts dt { font: 500 .68rem/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.o-facts dd { margin: 0; color: var(--ink); line-height: 1.45; }
.o-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.o-more:hover { text-decoration: underline; }

/* ---------- contact channels ---------- */
.o-channels { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-strong); }
.o-channels li { min-width: 0; }
.o-channels li + li .o-ch { border-left: 1px solid var(--rule); }
.o-ch { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 16px 18px 18px; height: 100%; color: var(--ink); text-decoration: none; transition: background-color .2s var(--ease); }
.o-ch > .icon { grid-row: span 3; color: var(--accent-ink); margin-top: 1px; }
.o-ch-k { font: 500 .66rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.o-ch-v { font: 600 1rem/1.3 var(--f-display); overflow-wrap: anywhere; }
.o-ch-v a, .o-ch-n a { color: inherit; text-decoration: none; }
.o-ch-v a:hover, .o-ch-n a:hover { color: var(--accent-ink); text-decoration: underline; }
.o-ch-addr { font-size: .92rem; font-weight: 500; font-family: var(--f-body); line-height: 1.4; }
.o-ch-n { font-size: .82rem; color: var(--ink-2); }
a.o-ch:hover { background: var(--surface); }
a.o-ch:hover .o-ch-v { color: var(--accent-ink); }
@media (max-width: 980px) {
  .o-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-channels li:nth-child(3) .o-ch { border-left: 0; }
  .o-channels li:nth-child(n+3) .o-ch { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .o-channels { grid-template-columns: 1fr; }
  .o-channels li + li .o-ch { border-left: 0; border-top: 1px solid var(--rule); }
  .o-ch { padding: 14px 0; }
}

/* ---------- pricing hero ---------- */
.o-ph-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .o-ph-grid { grid-template-columns: 1fr; } }
.o-price-hero h1.display { max-width: 16ch; }
.o-price-hero .trade-strip { margin-top: clamp(24px, 3vw, 40px); }

.o-basis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; border-top: 2px solid var(--ink); }
.o-basis-col { padding: 14px 18px 4px 0; }
.o-basis-col + .o-basis-col { padding-left: 18px; border-left: 1px solid var(--rule); }
.o-basis ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .94rem; }
.o-basis li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.o-basis li .icon { flex: none; margin-top: 2px; }
.o-basis .is-in .icon { color: var(--ok); }
.o-basis .is-out .icon { color: var(--accent-ink); }
.o-basis .is-out .o-label { color: var(--ink); }
@media (max-width: 520px) {
  .o-basis { grid-template-columns: 1fr; }
  .o-basis-col + .o-basis-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 10px; }
}

/* The tier ladder: 5 rows, a bar per tier that shortens as the price drops. */
.o-ladder { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.o-ladder figcaption { display: grid; gap: 2px; padding: 16px 20px 14px; border-bottom: 2px solid var(--ink); }
.o-ladder figcaption .o-label { margin: 0; }
.o-ladder-eg { font-size: .86rem; color: var(--ink-2); }
.o-ladder-rows { list-style: none; margin: 0; padding: 0; }
.o-ladder-rows li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--rule); }
.o-ladder-rows li:first-child { border-top: 0; }
.o-ladder-rows li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% - var(--o-step) * 12%); background: linear-gradient(90deg, var(--accent-soft), rgba(232, 238, 252, 0)); pointer-events: none; transform-origin: left; }
.o-ladder-rows li > * { position: relative; }
.o-ladder-t { font: 500 .72rem/1 var(--f-mono); color: var(--accent-ink); letter-spacing: .06em; }
.o-ladder-q { font: 600 1.25rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.o-ladder-p { font: 600 1.05rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.o-ladder-p small { font-size: .72rem; color: var(--ink-2); font-weight: 400; }
.o-ladder-note { margin: 0; padding: 12px 20px 16px; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--ink-2); background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) {
  .o-ladder-rows li::before { animation: o-bar .9s var(--ease) both; animation-delay: calc(var(--o-step) * 80ms + 150ms); }
}
@keyframes o-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- pricing rules ---------- */
.o-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin-top: 8px; }
.o-rule { padding: 18px 20px 20px 0; }
.o-rule + .o-rule { padding-left: 20px; border-left: 1px solid var(--rule); }
.o-rule-n { font: 500 .72rem/1 var(--f-mono); color: var(--accent-ink); }
.o-rule .h3 { margin: 10px 0 8px; font-size: 1.08rem; }
.o-rule p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 1000px) {
  .o-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-rule:nth-child(3) { padding-left: 0; border-left: 0; }
  .o-rule:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .o-rules { grid-template-columns: 1fr; }
  .o-rule + .o-rule { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}
.o-caveat { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; max-width: 92ch; }
.o-caveat p:last-child { margin: 0; font-size: .94rem; color: var(--ink-2); }

/* ---------- line sheet gate ---------- */
.o-gate-cta { margin: 28px 0 0; }
