/* Ice Lamps — order form
   Dark, cool-toned: the product photos are translucent white/grey PNGs with
   transparent backgrounds, so a near-black ground makes them read as lit
   objects rather than catalogue cut-outs. */

:root {
  --bg:            #080b10;
  --bg-2:          #0d1219;
  --surface:       rgba(255, 255, 255, 0.038);
  --surface-hi:    rgba(255, 255, 255, 0.065);
  /* Non-text contrast: WCAG 1.4.11 wants 3:1 for control boundaries. At 0.085
     alpha these composited to ~1.25:1 against the card, leaving inputs and
     swatches effectively borderless for low-vision users. */
  --border:        rgba(255, 255, 255, 0.24);
  --border-hi:     rgba(255, 255, 255, 0.42);
  --text:          #e9eef6;
  --text-dim:      #a8b3c4;
  /* Was #6b7688 -> 3.77:1 on the card at 12px, below the 4.5:1 AA threshold for
     body text. #8d97a8 clears it while staying visibly secondary. */
  --text-faint:    #8d97a8;
  --accent:        #7dd3fc;
  --accent-deep:   #38bdf8;
  --accent-dim:    rgba(125, 211, 252, 0.13);
  --warm:          #f5c26b;
  --danger:        #ff8a8a;
  --danger-bg:     rgba(255, 138, 138, 0.09);
  --ok:            #6ee7a8;
  --radius:        14px;
  --radius-sm:     9px;
  --shadow:        0 18px 50px rgba(0, 0, 0, 0.5);
  --ring:          0 0 0 2px var(--bg), 0 0 0 4px var(--accent-deep);
  --font:          ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                   "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Keep the fixed mobile total bar from covering whatever the browser just
     scrolled a focused field to. */
  scroll-padding-bottom: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 12% -8%,  rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(880px  520px at 92% 4%,   rgba(125, 211, 252, 0.06), transparent 62%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 46%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 120px;
}

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.22rem;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.brand .spark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 3px rgba(125, 211, 252, 0.6);
  flex: none;
}

/* ---------- layout ---------- */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  /* NOT align-items:start — that shrinks the aside to its card's height, which
     leaves position:sticky no room to travel, so the summary (and the submit
     button inside it) scrolls away as soon as the customer reaches the address
     fields. Stretching the column gives the sticky card the full row to move in. */
  align-items: stretch;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.card > h2 {
  margin: 0 0 4px;
  font-size: 0.79rem;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.card > .sub {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 0.87rem;
}

/* ---------- info box ---------- */

.infobox {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(125, 211, 252, 0.09), transparent 62%),
    var(--surface);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.infobox .wled-logo {
  flex: none;
  width: 116px;
  height: auto;
  margin-top: 2px;
  image-rendering: pixelated; /* it is pixel art - keep the edges crisp */
}

.infobox-text { min-width: 0; }

.infobox h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: none;
}

.infobox p {
  margin: 0 0 10px;
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.infobox a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
  padding-bottom: 1px;
}
.infobox a:hover { border-color: var(--accent); }
.infobox a:focus-visible { box-shadow: var(--ring); border-radius: 3px; }

@media (max-width: 560px) {
  .infobox { flex-direction: column; gap: 13px; }
  .infobox .wled-logo { width: 100px; }
}

/* ---------- remote control ---------- */

.remote-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.remote-shot {
  flex: none;
  width: 74px;
  display: grid;
  place-items: center;
  position: relative;
}

.remote-shot::before {
  content: "";
  position: absolute;
  inset: 14% 8%;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.13), transparent 70%);
  filter: blur(11px);
}

.remote-shot img {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.remote-buy {
  flex: 1 1 auto;
  min-width: 0;
}
.remote-buy .cn { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.remote-buy .cp { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 11px; }
.remote-buy .stepper { width: max-content; }

/* ---------- lamp configuration line ---------- */

.line {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.017);
}

.line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.line-no {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.btn-remove {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-faint);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.76rem;
  font-family: inherit;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.btn-remove:hover {
  color: var(--danger);
  border-color: rgba(255, 138, 138, 0.4);
  background: var(--danger-bg);
}

/* ---------- finish swatches ---------- */

.finishes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  border: 0;
  padding: 0;
  margin: 0 0 15px;
}

/* The fieldset is a grid, so its legend is a grid item: without an explicit
   span it would sit in the first column and push a swatch out of the row. */
.finishes legend {
  grid-column: 1 / -1;
  float: none;
  width: 100%;
  padding: 0;
  margin-bottom: 9px;
  font-size: 0.79rem;
  color: var(--text-dim);
}

.swatch { position: relative; }

.swatch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.swatch label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.022), transparent);
  transition: border-color .18s, background .18s, transform .18s;
}

.swatch label:hover { border-color: var(--border-hi); transform: translateY(-1px); }

.swatch input:focus-visible + label { box-shadow: var(--ring); }

.swatch input:checked + label {
  border-color: var(--accent-deep);
  background:
    radial-gradient(70% 55% at 50% 22%, rgba(125, 211, 252, 0.15), transparent 70%),
    var(--accent-dim);
}

.swatch .shot {
  position: relative;
  height: 74px;
  display: grid;
  place-items: center;
  width: 100%;
}

/* the glow behind the lamp; intensifies on selection */
.swatch .shot::before {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 194, 107, 0.26), transparent 68%);
  filter: blur(9px);
  opacity: 0;
  transition: opacity .28s;
}
.swatch input:checked + label .shot::before { opacity: 1; }

.swatch img,
.swatch video {
  position: relative;
  height: 74px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.55));
}

.swatch .nm {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.swatch .ds {
  font-size: 0.69rem;
  line-height: 1.35;
  color: var(--text-faint);
}
.swatch input:checked + label .ds { color: var(--text-dim); }

/* ---------- controls row ---------- */

/* Quantity on its own row, then the addons as a full-width equal-column grid.
   Side by side they wrapped into an L-shape once a third addon appeared. */
.controls { display: block; }

.qty-field { margin-bottom: 13px; }
/* The stepper is a fixed-size control; without this it stretches to the full
   card width now that .controls is a block. */
.qty-field .stepper { width: max-content; }

.qty-field > span,
.field > span,
.field > label > span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.79rem;
  color: var(--text-dim);
}

.field > label { display: block; }

.stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.stepper button {
  width: 34px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 1.05rem;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.stepper button:hover { background: var(--surface-hi); color: var(--text); }
.stepper button:focus-visible { box-shadow: var(--ring); }

.stepper input {
  width: 54px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: center;
  font: 600 0.96rem var(--font);
  padding: 9px 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.stepper:focus-within { border-color: var(--accent-deep); }

/* ---------- addon toggles ---------- */

.addons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

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

.addon { position: relative; min-width: 0; }

.addon input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}

.addon label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.84rem;
  background: rgba(0, 0, 0, 0.16);
  transition: border-color .16s, background .16s;
  height: 100%;
}
.addon label:hover { border-color: var(--border-hi); }
.addon input:focus-visible + label { box-shadow: var(--ring); }

.addon input:checked + label {
  border-color: var(--accent-deep);
  background: var(--accent-dim);
}

.addon .box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-hi);
  border-radius: 5px;
  flex: none;
  display: grid;
  place-items: center;
  transition: background .16s, border-color .16s;
}
.addon input:checked + label .box {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.addon .box svg { opacity: 0; width: 10px; height: 10px; }
.addon input:checked + label .box svg { opacity: 1; }

.addon .tx { display: flex; flex-direction: column; line-height: 1.25; }
.addon .pr { font-size: 0.72rem; color: var(--text-faint); }
.addon input:checked + label .pr { color: var(--accent); }

/* ---------- add-line button ---------- */

.btn-add {
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--border-hi);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  font: 600 0.87rem var(--font);
  cursor: pointer;
  transition: color .16s, border-color .16s, background .16s;
}
.btn-add:hover {
  color: var(--accent);
  border-color: var(--accent-deep);
  background: var(--accent-dim);
}
.btn-add:focus-visible { box-shadow: var(--ring); }
.btn-add[hidden] { display: none !important; }

/* ---------- cones ---------- */

.cones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }

@media (max-width: 560px) {
  .cones { grid-template-columns: 1fr; }
  .cone-row { display: flex; align-items: center; justify-content: space-between; }
}

.cone-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px;
  text-align: center;
  background: rgba(0, 0, 0, 0.16);
}

.cone-row .cn {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.cone-row .cp {
  font-size: 0.73rem;
  color: var(--text-faint);
  margin-bottom: 9px;
}
.cone-row .stepper { margin: 0 auto; width: max-content; }

/* ---------- text fields ---------- */

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

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

.field.wide { grid-column: 1 / -1; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  font: 400 0.93rem var(--font);
  transition: border-color .16s, background .16s;
}

.field textarea { resize: vertical; min-height: 82px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:hover, .field select:hover, .field textarea:hover {
  border-color: var(--border-hi);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  background: rgba(0, 0, 0, 0.4);
}

.field .opt { color: var(--text-faint); font-weight: 400; }

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.field select option { background: var(--bg-2); color: var(--text); }

/* address sub-grid: street takes the room, number stays narrow */
.addr-line { display: grid; grid-template-columns: 1fr 88px; gap: 13px; grid-column: 1 / -1; }
.zip-line  { display: grid; grid-template-columns: 116px 1fr; gap: 13px; grid-column: 1 / -1; }

/* ---------- delivery method ---------- */

.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 15px; }
@media (max-width: 480px) { .methods { grid-template-columns: 1fr; } }

.method { position: relative; }
.method input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

.method label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.16);
  transition: border-color .16s, background .16s;
}
.method label:hover { border-color: var(--border-hi); }
.method input:focus-visible + label { box-shadow: var(--ring); }
.method input:checked + label { border-color: var(--accent-deep); background: var(--accent-dim); }

.method .mt { font-weight: 600; font-size: 0.9rem; }
.method .mp { font-size: 0.76rem; color: var(--text-faint); }
.method input:checked + label .mp { color: var(--accent); }

/* The address block is toggled by JS, but must also work without it: :has()
   keys the reveal off the radio itself, so a no-JS customer who picks "Versand"
   sees the address fields immediately instead of hitting a validation loop they
   cannot escape. JS still sets [hidden] for browsers without :has(). */
#addr-block[hidden] { display: none !important; }

@supports selector(:has(*)) {
  #addr-block[hidden] { display: none !important; }
  body:has(#m_ship:checked) #addr-block[hidden] { display: contents !important; }
  body:has(#m_pickup:checked) #addr-block { display: none !important; }
}

/* Inline field-level error, tied to its input via aria-describedby. */
.field-err {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--danger);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
  background: rgba(255, 138, 138, 0.07);
}

.errors:focus { outline: none; box-shadow: var(--ring); }

.hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 9px 0 0;
}

/* ---------- consent + submit ---------- */

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 4px 0 16px;
  font-size: 0.83rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1.5;
}
.consent input { margin: 3px 0 0; accent-color: var(--accent-deep); width: 16px; height: 16px; flex: none; }

.btn-submit {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #04202e;
  font: 700 0.99rem var(--font);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: filter .16s, transform .12s;
  box-shadow: 0 8px 26px rgba(56, 189, 248, 0.22);
}
.btn-submit:hover { filter: brightness(1.07); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:focus-visible { box-shadow: var(--ring), 0 8px 26px rgba(56, 189, 248, 0.22); }
.btn-submit[disabled] {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(.65);
  box-shadow: none;
}
.btn-submit[disabled]:hover { filter: grayscale(.65); }

.consent-hint {
  margin: 9px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  color: var(--warm);
}
.consent-hint[hidden] { display: none !important; }

.legal {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.5;
}

/* Available to screen readers, invisible on screen. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* honeypot — must be unreachable for humans but not display:none, which some
   bots specifically skip */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- summary ---------- */

.summary { position: sticky; top: 18px; }

.sum-rows { margin: 0 0 4px; }

.sum-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.87rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.sum-line:last-child { border-bottom: 0; }
.sum-line .lbl { color: var(--text-dim); min-width: 0; }
.sum-line .val { font-variant-numeric: tabular-nums; white-space: nowrap; }

.sum-line.dim .lbl, .sum-line.dim .val { color: var(--text-faint); font-size: 0.8rem; }
.sum-line.disc .lbl, .sum-line.disc .val { color: var(--ok); }

.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 13px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hi);
}
.sum-total .lbl { font-size: 0.79rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-dim); }
.sum-total .val { font-size: 1.52rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.nudge {
  margin-top: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.79rem;
  line-height: 1.45;
  background: var(--accent-dim);
  border: 1px solid rgba(125, 211, 252, 0.22);
  color: var(--accent);
}
.nudge.reached { background: rgba(110, 231, 168, 0.1); border-color: rgba(110, 231, 168, 0.25); color: var(--ok); }
.nudge.warn { background: rgba(245, 194, 107, 0.1); border-color: rgba(245, 194, 107, 0.3); color: var(--warm); }
.nudge[hidden] { display: none !important; }

.tiers {
  margin-top: 13px;
  font-size: 0.74rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.empty { color: var(--text-faint); font-size: 0.85rem; padding: 6px 0 2px; }

/* ---------- errors ---------- */

.errors {
  border: 1px solid rgba(255, 138, 138, 0.35);
  background: var(--danger-bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.errors h2 { margin: 0 0 8px; font-size: 0.93rem; color: var(--danger); }
.errors ul { margin: 0; padding-left: 19px; color: var(--text); font-size: 0.87rem; }
.errors li { margin: 3px 0; }

/* ---------- success ---------- */

.done { max-width: 600px; margin: 44px auto 0; text-align: center; }

.done .mark {
  width: 58px; height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(110, 231, 168, 0.12);
  border: 1px solid rgba(110, 231, 168, 0.32);
}

.done h1 { margin: 0 0 10px; font-size: 1.6rem; letter-spacing: -0.02em; }
.done > p { color: var(--text-dim); margin: 0 auto 22px; max-width: 46ch; }

.refbox {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 26px;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 26px;
}
.refbox .rl { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.refbox .rv { font-size: 1.24rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }

.done .card { text-align: left; }

.backlink {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-hi);
  padding-bottom: 2px;
}
.backlink:hover { color: var(--accent); border-color: var(--accent-deep); }

.warnbox {
  margin-top: 20px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 194, 107, 0.3);
  background: rgba(245, 194, 107, 0.08);
  color: var(--warm);
  font-size: 0.8rem;
  text-align: left;
  line-height: 1.5;
}

/* ---------- footer ---------- */

.foot {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.79rem;
  color: var(--text-faint);
}
.foot a { color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ---------- mobile sticky total ---------- */

.mobile-total {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 11px 20px calc(11px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 11, 16, 0.93);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  border-top: 1px solid var(--border-hi);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.mobile-total .ml { font-size: 0.73rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-dim); }
.mobile-total .mv { font-size: 1.24rem; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .mobile-total { display: flex; }
  .grecaptcha-badge { bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important; }
  .wrap { padding-bottom: 96px; }
  .summary { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .swatch label:hover { transform: none; }
}

/* Note under the per-lamp addon row. */
.addons-note {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-faint);
}

/* ============================================================
   Site theme (2026-11-21): matches the triplight.net start page
   (home.css). Only overrides look; layout logic, field contrast
   and every class the script uses stay as above.
   ============================================================ */

:root {
  --bg:          #0d0f17;
  --bg-2:        #0d0f17;
  --card-solid:  #151824;
  --edge:        #252a3a;
  --surface:     #151824;
  --surface-hi:  #1c2030;
  --text:        #eef1f7;
  --text-dim:    #b4bccb;
  --accent:      #38bdf8;
  --accent-deep: #38bdf8;
  --accent-dim:  rgba(56, 189, 248, 0.12);
  --pink:        #e879f9;
  --green:       #4ade80;
  --radius:      18px;
  --radius-sm:   12px;
  --font:        system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background:
    radial-gradient(circle at 0% 30%, rgba(168, 85, 247, .13), transparent 40rem),
    radial-gradient(circle at 100% 70%, rgba(34, 197, 94, .10), transparent 40rem),
    var(--bg);
  background-attachment: fixed;
}

.wrap { padding-top: 60px; }

/* the same top bar as the start page */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 60px;
  padding: 0 24px; flex-wrap: nowrap;
  background: rgba(13, 15, 23, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top .brand { font-weight: 800; letter-spacing: .18em; font-size: .95rem; text-decoration: none; color: var(--text); gap: 0; }
.sitenav { display: flex; align-items: center; gap: 4px; }
.sitenav a { text-decoration: none; color: var(--text-faint); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.sitenav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.sitenav a.nav-cta { color: #0d0f17; background: var(--accent); margin-left: 6px; }
.sitenav a:focus-visible, .top .brand:focus-visible { box-shadow: var(--ring); outline: none; }

/* page heading */
.pagehead { padding: 46px 0 28px; max-width: 44rem; }
.pagehead .eyebrow { margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.pagehead h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.pagehead h1 .flow {
  background: linear-gradient(90deg, var(--accent), var(--pink), #fb923c, var(--green), var(--accent));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: tl-hue 10s linear infinite;
}
@keyframes tl-hue { to { background-position: 300% 0; } }
.pagehead p { margin: 14px 0 0; color: var(--text-dim); font-size: 1.05rem; }

/* cards: solid like the start page, no blur (cheaper on phones) */
.card, .infobox {
  background: var(--card-solid);
  border-color: var(--edge);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.card > h2 { color: var(--accent); }
.infobox { background: linear-gradient(120deg, rgba(168, 85, 247, .16), rgba(56, 189, 248, .10) 55%, rgba(34, 197, 94, .12)), var(--card-solid); }

/* selected choices glow in the site colours */
.swatch input:checked + label,
.addon input:checked + label,
.method input:checked + label {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(56, 189, 248, .16), rgba(168, 85, 247, .10));
}

/* summary card picks up the order banner look */
.summary {
  top: 78px;
  background: linear-gradient(160deg, rgba(168, 85, 247, .20), rgba(56, 189, 248, .12) 50%, rgba(34, 197, 94, .14)), var(--card-solid);
  border-color: rgba(255, 255, 255, .12);
}

/* buttons: pills like the start page */
.btn-submit {
  border-radius: 999px;
  background: var(--accent);
  color: #0d0f17;
  box-shadow: 0 10px 30px -12px rgba(56, 189, 248, .9);
}
.btn-submit:hover { filter: none; background: #7dd3fc; }
.btn-add, .backlink, .btn-remove { border-radius: 999px; }
.btn-add:hover, .backlink:hover { border-color: var(--pink); color: var(--text); }

/* thank-you page */
.done { margin-top: 70px; }

.mobile-total { background: rgba(13, 15, 23, .95); backdrop-filter: none; -webkit-backdrop-filter: none; }

.foot { border-top-color: var(--edge); font-size: .9rem; gap: 22px; }

@media (max-width: 640px) {
  .top { padding: 0 16px; }
  .sitenav a:not(.nav-cta) { display: none; }
  .pagehead { padding: 30px 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pagehead h1 .flow { animation: none; }
}

/* phones: the summary isn't sticky there, and .fx-hover makes it position:relative,
   so the desktop sticky offset (top: 78px) would push it down onto the footer */
@media (max-width: 900px) { .summary { top: 0; } }
