/* Order pages (/order/essential, /order/flagship, /order/status): the signed-agreement-gated purchase journey.
   Site tokens, type and buttons from styles.css; nothing here restyles another page. Night ground for the order
   itself, one Paper band for "before you pay". Forge Bright marks the current step only. */

.od { color: var(--steel); }
/* The panels below set display; the hidden attribute must still win (order.js shows and hides them). */
.od [hidden] { display: none !important; }
.od-hero { padding-block: clamp(2.5rem, 7vh, 4.5rem) clamp(1.5rem, 4vh, 2.5rem); }
.od-hero-in { display: grid; gap: 1rem; }
.od-hero-in > * { max-width: 48rem; }
.od-hero h1 { font-size: clamp(2rem, 1.1rem + 3vw, 3.75rem); font-weight: 360; font-optical-sizing: none; font-variation-settings: "opsz" 44; line-height: 1.04; letter-spacing: -0.018em; text-wrap: balance; }
.od-lead { max-width: 38rem; font-size: var(--t-lead); line-height: 1.55; color: var(--text); text-wrap: pretty; }

/* Sandbox label: shown only when the server says it is in test mode */
.od-sandbox { justify-self: start; display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.875rem; border: 1px dashed var(--forge-bright); border-radius: 2px; font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--steel); }
.od-sandbox::before { content: ""; width: 0.1875rem; height: 0.75rem; background: var(--forge-bright); transform: skewX(-30deg); }

.od-body { padding-block: 0 clamp(3rem, 8vh, 5rem); }
.od-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 60em) { .od-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .od-grid .od-summary { order: 2; position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* Plan summary card */
.od-summary { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #2E2F33; border-radius: 22px; background: linear-gradient(180deg, #17181C, #121316); font-stretch: 104%; }
.od-plan { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.od-price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.75rem; font-variant-numeric: tabular-nums; }
.od-amount { font-family: var(--serif); font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem); font-weight: 420; line-height: 1.12; color: #fff; }
.od-per { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--muted); }
.od-usage { margin-top: 0.25rem; font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; color: var(--steel); }
.od-facts { display: grid; gap: 0; margin: 1.25rem 0 0; border-top: 1px solid #26272B; }
.od-facts > div { display: grid; gap: 0.25rem; padding-block: 0.875rem; border-bottom: 1px solid #26272B; }
.od-facts dt { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.od-facts dd { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.5; color: var(--text); }
.od-facts dd strong { color: var(--steel); font-weight: 650; }
.od-switch { margin-top: 1rem; font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); }
.od-switch a { color: var(--steel); }

/* Steps */
.od-steps { display: grid; gap: 0.5rem; margin-bottom: 1.75rem; counter-reset: none; }
@media (min-width: 40em) { .od-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; } }
.od-steps li { display: grid; gap: 0.375rem; padding-top: 0.75rem; border-top: 2px solid var(--line-strong); font-family: var(--sans); font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
.od-steps li[aria-current="step"] { border-top-color: var(--forge-bright); color: var(--steel); }
.od-steps li.is-done { border-top-color: var(--steel); color: var(--text); }
.od-n { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; color: inherit; }
.od-steps li[aria-current="step"] .od-n { color: var(--forge-bright); }

/* Form */
.od-form { display: grid; gap: 1.5rem; }
.od-form fieldset { display: grid; gap: 1rem; margin: 0; padding: 0; border: 0; }
.od-form legend { margin-bottom: 0.25rem; padding: 0; font-family: var(--sans); font-size: 1.125rem; font-weight: 650; color: var(--steel); }
.od-hint { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.od-field { display: grid; gap: 0.375rem; font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--steel); }
.od-field small { font-weight: 400; color: var(--muted); }
.od-two { display: grid; gap: 1rem; }
@media (min-width: 40em) { .od-two { grid-template-columns: 1fr 1fr; } }
.od-field input, .od-field textarea {
  width: 100%; min-height: 3rem; padding: 0.75rem 0.875rem; border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--surface); color: var(--steel); font: 400 1rem/1.4 var(--sans); font-stretch: 104%;
}
.od-field textarea { min-height: 6rem; resize: vertical; }
.od-field input:focus-visible, .od-field textarea:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; border-color: var(--steel); }
.od-field input[aria-invalid="true"], .od-field textarea[aria-invalid="true"] { border-color: var(--forge-bright); }
.od-check { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; font-family: var(--sans); font-size: 1rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.od-check input { width: 1.25rem; height: 1.25rem; margin: 0.125rem 0 0; accent-color: var(--forge-bright); }
.od-check input[aria-invalid="true"] { outline: 2px solid var(--forge-bright); outline-offset: 2px; }
.od-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.od-form .btn-cta[disabled], .od-panel .btn-cta[disabled] { opacity: 0.6; cursor: progress; }
/* Long labels (the TEST fixture's) may wrap on a phone instead of widening the page. */
.od-main .btn-cta { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 0.75rem; }
.od-fine { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.od-fine a, .od-panel a:not(.btn-cta) { color: var(--steel); }
.od-error { padding: 0.875rem 1rem; border-left: 3px solid var(--forge-bright); background: rgba(242, 96, 28, 0.08); font-family: var(--sans); font-size: 1rem; line-height: 1.5; color: var(--steel); }

/* Status page panels */
.od-panel { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #2E2F33; border-radius: 18px; background: #141518; font-family: var(--sans); }
.od-panel h2 { font-family: var(--sans); font-size: 1.25rem; font-weight: 650; line-height: 1.3; color: var(--steel); }
.od-panel p { font-size: 1rem; line-height: 1.55; color: var(--text); }
.od-panel .od-note { font-size: 0.9375rem; color: var(--muted); }
.od-tag { justify-self: start; padding: 0.25rem 0.5rem; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.od-fixture { display: grid; gap: 0.875rem; padding: 1rem; border: 1px dashed var(--forge-bright); border-radius: 12px; }
.od-fixture h3 { font-size: 0.875rem; font-weight: 650; letter-spacing: 0.08em; color: var(--steel); }
.od-esign { display: grid; gap: 0.875rem; padding: 1rem; border: 1px solid var(--line-strong); border-radius: 12px; }
.od-progress { display: grid; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.od-progress li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.5rem; font-size: 1rem; line-height: 1.4; color: var(--muted); }
.od-progress li::before { content: ""; width: 0.75rem; height: 0.75rem; margin: 0.3rem 0 0 0.375rem; border: 2px solid var(--line-strong); border-radius: 50%; }
.od-progress li.is-done { color: var(--text); }
.od-progress li.is-done::before { border-color: var(--steel); background: var(--steel); }
.od-timeline { display: grid; gap: 0; margin-top: 1.5rem; }
.od-timeline li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.75rem; padding-block: 0.625rem; font-family: var(--sans); font-size: 1rem; line-height: 1.4; color: var(--muted); }
.od-timeline li::before { content: ""; width: 0.75rem; height: 0.75rem; margin: 0.3rem 0 0 0.375rem; border: 2px solid var(--line-strong); border-radius: 50%; }
.od-timeline li.is-done { color: var(--text); }
.od-timeline li.is-done::before { border-color: var(--steel); background: var(--steel); }
.od-timeline li[aria-current="step"] { color: var(--steel); font-weight: 600; }
.od-timeline li[aria-current="step"]::before { border-color: var(--forge-bright); background: var(--forge-bright); }
.od-ref { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* Before you pay (Paper) */
.od-terms.paper { padding-block: var(--sp-section); }
.od-h2 { font-family: var(--serif); font-size: var(--t-section-caps); font-weight: 350; font-optical-sizing: none; font-variation-settings: "opsz" 40; line-height: 1.1; letter-spacing: -0.012em; color: var(--ink); }
.od-points { display: grid; gap: 1.5rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(1.75rem, 4vh, 2.75rem); }
@media (min-width: 52em) { .od-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.od-points li { padding-top: 1.125rem; border-top: 1px solid var(--line-strong); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--text); font-stretch: 104%; }
.od-points strong { display: block; margin-bottom: 0.25rem; color: var(--ink); font-weight: 650; }
.od-points a { color: var(--ink); }

.od-noscript { padding: 1rem; border: 1px solid var(--line-strong); border-radius: 12px; font-family: var(--sans); color: var(--text); }

/* Mobile pass (Oct 24, RC3): the agreement acknowledgment reads as a control on a phone (the whole label already
   toggles it). */
@media (max-width: 47.99em) {
  .od-check { grid-template-columns: 1.5rem 1fr; padding-block: 0.25rem; }
  .od-check input { width: 1.5rem; height: 1.5rem; margin-top: 0; }
}
