/* The customer's pages. Dark, mono and teal on purpose: they lead into the designed theatre
   (web/theatre/), and a customer should not feel they have changed products between ticking a
   scope and watching it worked. The values are the theatre's own. */

:root {
  --bg: #030c11; --panel: #071920; --raised: #0a212a; --line: #155663; --line-faint: #0f3540;
  --text: #cfe9f0; --dim: #7fa3b5; --faint: #4a6878;
  --accent: #35e0d0; --accent-hi: #6affe9; --threat: #ff4d5e; --confirm: #ffc857;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* Above every display rule below: a label is a grid, and `hidden` on one is otherwise ignored. */
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
/* On the root, which paints the whole canvas: on the body it stopped where the content did. */
html { background: radial-gradient(1200px 700px at 62% 20%, #0a2029 0%, #05131a 58%, var(--bg) 100%) fixed var(--bg); }
body { color: var(--text); font: 14px/1.6 var(--mono); }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35; z-index: -1;
  background-image: linear-gradient(rgba(21,86,99,.55) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(21,86,99,.55) 1px, transparent 1px);
  background-size: 46px 46px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
::selection { background: rgba(53,224,208,.28); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
       padding: 14px 16px; border-bottom: 1px solid var(--line-faint);
       background: color-mix(in srgb, var(--panel) 85%, transparent); }
.brand { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--dim); }
.brand b { color: var(--accent); font-weight: 700; }
#who { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--dim);
       min-width: 0; }
#who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#who button { white-space: nowrap; padding: 6px 12px; }

main { max-width: 960px; margin: 0 auto; padding: 28px 16px 80px; display: grid; gap: 18px; }
h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: .02em; line-height: 1.3;
     overflow-wrap: anywhere; }
h2 { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .2em;
     text-transform: uppercase; color: var(--accent); }
h3 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }

.panel { background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--line-faint);
         border-radius: 3px; padding: 18px; min-width: 0; }
.panel.done { border-color: var(--line); }
.panel.muted { opacity: .55; }
.step { display: flex; align-items: baseline; gap: 10px; }
.step .n { color: var(--faint); font-size: 11px; letter-spacing: .14em; }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px;
         margin: 0; font-size: 13px; }
.facts dt { color: var(--faint); text-transform: uppercase; font-size: 11px; letter-spacing: .12em;
            padding-top: 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.pill { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
        padding: 2px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--dim);
        white-space: nowrap; }
.pill.live { color: var(--accent); border-color: var(--accent); }
.pill.bad { color: var(--threat); border-color: var(--threat); }
.pill.paid { color: var(--confirm); border-color: var(--confirm); }

button, .button {
  font: 500 13px var(--mono); letter-spacing: .06em; cursor: pointer;
  color: var(--bg); background: var(--accent); border: 1px solid var(--accent);
  border-radius: 2px; padding: 9px 16px; display: inline-block; text-align: center;
}
button:hover, .button:hover { background: var(--accent-hi); color: var(--bg); }
button.quiet, .button.quiet { background: transparent; color: var(--accent); }
button.quiet:hover, .button.quiet:hover { background: rgba(53,224,208,.1); color: var(--accent-hi); }
button.danger { background: transparent; color: var(--threat); border-color: var(--threat); }
button.danger:hover { background: rgba(255,77,94,.12); }
button[disabled] { opacity: .45; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }

form, .fields { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 12px; color: var(--dim); }
input[type=text], input[type=email], textarea, select {
  font: 13px var(--mono); color: var(--text); background: var(--raised);
  border: 1px solid var(--line); border-radius: 2px; padding: 9px 10px; width: 100%;
}
input[type=file] { font: 12px var(--mono); color: var(--dim); }
textarea { min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
.hint { font-size: 11.5px; color: var(--faint); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
legend { font-size: 12px; color: var(--dim); margin-bottom: 6px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer;
          border: 1px solid var(--line-faint); border-radius: 2px; background: var(--raised);
          color: var(--text); font-size: 13px; }
.choice:has(input:checked) { border-color: var(--accent); }
.choice input { margin: 3px 0 0; accent-color: var(--accent); }
.choice small { display: block; color: var(--faint); font-size: 11.5px; }

.error { color: var(--threat); border: 1px solid color-mix(in srgb, var(--threat) 50%, transparent);
         background: rgba(255,77,94,.07); padding: 10px 12px; border-radius: 2px; font-size: 13px;
         overflow-wrap: anywhere; }
.notice { color: var(--confirm); border: 1px solid color-mix(in srgb, var(--confirm) 45%, transparent);
          background: rgba(255,200,87,.06); padding: 10px 12px; border-radius: 2px; font-size: 13px; }

/* Runs */
.runs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.runs a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center;
          padding: 12px 14px; border: 1px solid var(--line-faint); border-radius: 2px;
          background: var(--raised); color: var(--text); }
.runs a:hover { border-color: var(--accent); color: var(--text); }
.runs .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runs .meta { grid-column: 1 / -1; font-size: 11.5px; color: var(--faint);
              overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The offer. Two speeds of reader: the rows are read at a glance and ticked in a click, and
   everything a curious customer might want is behind a disclosure, set as a scope of work. */
.lede { color: var(--dim); margin-bottom: 12px; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
             margin-top: 18px; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font-size: 12px; white-space: nowrap;
              letter-spacing: .04em; }
button.link:hover { background: none; color: var(--accent-hi); text-decoration: underline; }
.sections { display: grid; gap: 8px; margin: 10px 0 12px; }
.section { border: 1px solid var(--line-faint); border-radius: 2px; background: var(--raised); min-width: 0; }
.section:has(input:checked) { border-color: var(--line); }
.section .pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px;
                 padding: 12px 14px 4px; cursor: pointer; color: var(--text); font-size: 13px; }
.section .pick:has(input[disabled]) { cursor: default; }
.section input { margin: 3px 0 0; accent-color: var(--accent); width: 16px; height: 16px; }
.section .body { display: grid; gap: 3px; min-width: 0; }
.section .title { font-weight: 700; font-size: 14px; line-height: 1.4; }
.section .headline { color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.tag { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
       border: 1px solid var(--line-faint); border-radius: 2px; padding: 0 6px; }
.section .more { padding: 0 14px 10px 42px; }
details > summary { cursor: pointer; color: var(--faint); font-size: 11.5px; letter-spacing: .08em;
                    width: max-content; max-width: 100%; }
details > summary:hover { color: var(--accent); }
details[open] > summary { color: var(--dim); margin-bottom: 8px; }
details.aside { margin-top: 12px; }

/* A disclosed description reads as a document, not a note: a proportional face, measured lines,
   full sentences. The page's mono is right for labels, paths and numbers, and makes a paragraph
   read as a terminal's notes. */
.formal { font: 14px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
          color: var(--text); max-width: 72ch; display: grid; gap: 0; }
.formal h4 { margin: 10px 0 4px; font: 500 11px var(--mono); letter-spacing: .16em;
             text-transform: uppercase; color: var(--accent); }
.formal h4:first-child { margin-top: 0; }
.formal p { margin: 0 0 8px; }
.formal ul { margin: 0 0 8px; padding-left: 20px; }
.formal li { margin-bottom: 5px; line-height: 1.6; }
.formal dl { margin: 4px 0 0; display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
             gap: 8px 18px; }
.formal dt { color: var(--text); font-weight: 500; }
.formal dd { margin: 0; color: var(--dim); overflow-wrap: anywhere; }
.formal code { font: 11.5px var(--mono); color: var(--faint); overflow-wrap: anywhere; }

.tally { margin: 0; font-size: 12.5px; color: var(--accent); }
.tally.partial { color: var(--confirm); }

.caps { margin: 14px 0 4px; display: grid; gap: 8px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 8px;
            border: 1px solid var(--line-faint); border-radius: 2px; background: var(--raised);
            font-size: 12px; }
.chips .mark { font-weight: 700; font-size: 13px; width: 12px; text-align: center; }
.chips .ok .mark { color: var(--accent); }
.chips .bad { border-color: color-mix(in srgb, var(--threat) 45%, transparent); }
.chips .bad .mark, .chips .bad .label { color: var(--threat); }
.chips .none .mark, .chips .none .label { color: var(--faint); }
/* A cross's reason is the point of it: always shown, never cut. */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--dim); }
.reasons b { color: var(--threat); font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.price { border: 1px solid var(--line-faint); border-radius: 2px; background: var(--raised);
         padding: 14px; display: grid; gap: 8px; align-content: start; }
.price .amount { font-size: 20px; font-weight: 700; color: var(--text); }
.price .amount.unknown { font-size: 13px; font-weight: 400; color: var(--faint); }

.terms { background: var(--raised); border: 1px solid var(--line-faint); border-radius: 2px;
         padding: 14px 16px; font-size: 13px; color: var(--dim); max-height: 360px; overflow: auto; }
.terms ul { margin: 0 0 10px; padding-left: 18px; }
.terms li { margin-bottom: 6px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text); }
.agree input { margin: 4px 0 0; accent-color: var(--accent); }

.watch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
         border-color: var(--accent); }
.watch .button { font-size: 14px; padding: 12px 20px; }
.blink::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
                 background: var(--accent); margin-right: 8px; vertical-align: 1px;
                 animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .blink::before { animation: none; } }

@media (max-width: 600px) {
  main { padding-top: 18px; }
  h1 { font-size: 18px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { padding-top: 6px; }
  .section .more { padding-left: 14px; }
  .formal dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .formal dd { margin-bottom: 8px; }
}
