/* Merchant page (web/merchants/). Builds on mula.css and night.css (the dark, square theme). */

/* Landing: same photo as the campus page, with a headline because businesses need the pitch. */
.merchants .landing-center { gap: 18px; max-width: 640px; }
.landing-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-night-muted);
}
.merchants .landing h1 {
  line-height: 1.08; font: 700 clamp(34px, 7.4vw, 56px)/1.06 var(--font-display);
  letter-spacing: -0.025em; color: var(--on-night);
  text-wrap: balance;
}
.landing-lead { font-size: 18px; color: var(--on-night-muted); max-width: 34ch; text-wrap: pretty; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.landing-actions .landing-cta { min-width: 230px; }

/* Body */
body.merchants main { max-width: 560px; }
.sections { display: flex; flex-direction: column; gap: 56px; }
.block { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.block:focus { outline: none; }
.block > .btn { align-self: flex-start; width: auto; padding: 0 22px; }
.block .steps { margin-top: 4px; }
.merchants .steps li { color: var(--on-night); }
.merchants .steps li strong { font-weight: 600; }

/* ROI calculator */
.roi { display: flex; flex-direction: column; gap: 18px; }
.roi-result { border-top: 1px solid var(--night-line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; transition: opacity 120ms ease; }
.roi-result.stale { opacity: 0.4; }
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); margin: 0; }
.roi-grid div { background: var(--night); padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.roi-grid dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); }
.roi-grid dd { margin: 0; font: 700 26px/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--on-night); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Checkboxes: square, white when ticked. */
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--on-night); cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none; margin: 1px 0 0; width: 22px; height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55); background: transparent; display: grid; place-content: center; cursor: pointer;
}
.check input::after { content: ""; width: 11px; height: 6px; border: solid var(--night); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--on-night); border-color: var(--on-night); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--on-night); outline-offset: 3px; }
.check input[aria-invalid="true"] { border-color: var(--error-on-night); }

/* The letter: a sheet of paper. */
.letter-wrap { display: flex; flex-direction: column; gap: 8px; }
.letter-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-muted); }
.letter {
  margin: 0; padding: 22px 20px; background: var(--white); color: var(--navy);
  font: 400 14px/1.6 var(--font); white-space: pre-wrap; overflow-wrap: anywhere;
  border-left: 3px solid var(--brand-light);
}
.letter:focus-visible { outline: 2px solid var(--on-night); outline-offset: 3px; }
.signature { font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive !important; font-size: 24px !important; }

body.merchants #step-signed .share-row .btn { width: 100%; }

/* Print: just the signed letter. */
@media print {
  body.night { background: #fff; color: #000; }
  body.night::before, .landing, .skip, .sections > :not(#letter), #letter > :not(#step-signed),
  #step-signed > :not(#signed-letter) { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .letter { border: 0; padding: 0; color: #000; font-size: 12pt; }
}
