/* ==========================================================================
   Inner marketing pages — coordex / city-mapper / tasks / download / pricing /
   changelog / eula / styleguide. Section layout on top of ui.css. Tokens only.
   ========================================================================== */

/* ---- steps (numbered cards) --------------------------------------------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; flex-direction: column; gap: 10px; }
.step .step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-chip);
  background: var(--accent-soft); color: var(--accent2); font-family: var(--font-mono); font-weight: 600; font-size: 14px; }
[data-theme="sw"] .step .step-n { color: var(--text); }
.step h3 { margin-top: 2px; }

/* ---- facts strip -------------------------------------------------------- */
.facts { display: grid; grid-template-columns: 1fr; gap: 12px; border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 6px 20px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { display: flex; align-items: center; gap: 10px; padding: 14px 0; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.02em; color: var(--text2); border-top: 1px solid var(--hairline); }
.facts .fact:first-child, .facts .fact:nth-child(2), .facts .fact:nth-child(3), .facts .fact:nth-child(4) { border-top: 0; }
@media (max-width: 639px) { .facts .fact:not(:first-child) { border-top: 1px solid var(--hairline); } }
.fact .sym { width: 18px; height: 18px; color: var(--accent2); flex-shrink: 0; }
[data-theme="sw"] .fact .sym { color: var(--text2); }

/* ---- note / status bands ------------------------------------------------ */
.note-card h3 { margin-bottom: 10px; }
.status-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.status-band h2 { margin: 8px 0; }
.status-band p { max-width: 46ch; }
.price-chip { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--font-display); font-weight: 700;
  font-size: 26px; color: var(--text); border: 1px solid var(--accent); border-radius: var(--r-ctl); padding: 12px 18px; white-space: nowrap; }
.price-chip .was { font-size: 16px; color: var(--text3); text-decoration: line-through; margin-right: 6px; }
.price-chip .per { font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--text2); }
.sec-lead { max-width: 62ch; font-size: var(--fs-3); line-height: 1.65; color: var(--text2); }
.download-band { text-align: center; padding: 40px 24px; }
.download-band .hero-actions { justify-content: center; margin-top: 20px; }

/* ---- tasks: headliner pair, catalog ------------------------------------- */
.headliner-pair { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
@media (min-width: 720px) { .headliner-pair { grid-template-columns: 1fr 1fr; } }
.headliner-lite { display: flex; align-items: center; gap: 16px; }
.headliner-lite .card-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent2); }
[data-theme="sw"] .headliner-lite .card-title { color: var(--text2); }
.headliner-lite h3 { margin: 2px 0 4px; }
.headliner-lite p { font-size: 14px; }
.task-grid .task-desc { display: block; -webkit-line-clamp: none; overflow: visible; }
.studio-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.studio-band h2 { margin: 8px 0; }
.studio-band p { max-width: 48ch; }

/* ---- download ----------------------------------------------------------- */
.checklist { border: 1px solid var(--hairline); border-radius: var(--r-card); margin: 24px 0; overflow: hidden; max-width: 640px; }
.check-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--hairline); }
.check-line:first-child { border-top: 0; }
.check-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text2); }
.check-v { font-family: var(--font-mono); font-size: 13px; color: var(--text); }
#spec-sha { cursor: pointer; word-break: break-all; }

.tearoff-wrap { max-width: 640px; margin: 8px 0 28px; }
.dl-button { display: block; position: relative; text-align: center; padding: 22px 20px; border-radius: var(--r-card);
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  transition: background-color var(--mo-hover) var(--ease-state), box-shadow var(--mo-hover) var(--ease-state), transform var(--mo-press) var(--ease-state); }
.dl-button:hover { background: var(--accent-hover); box-shadow: 0 0 var(--glow-r) var(--glow); transform: translateY(-1px); }
.dl-button[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.dl-button .tearoff-label { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: var(--track-display); text-transform: var(--display-case); }
.dl-button .perf, .dl-button .crop { display: none; }
/* SW tear-off chit */
[data-theme="sw"] .dl-button { background: var(--surface); color: var(--text); border: 1px solid var(--hairline); }
[data-theme="sw"] .dl-button:hover { background: var(--surface2); box-shadow: none; transform: none; }
[data-theme="sw"] .dl-button .tearoff-label { color: var(--grease); }
[data-theme="sw"] .dl-button .perf { display: block; position: absolute; top: -1px; left: 8px; right: 8px; height: 0;
  border-top: 2px dashed var(--border2); }
[data-theme="sw"] .dl-button .crop { display: block; position: absolute; width: 8px; height: 8px; border: 1px solid var(--grease); }
[data-theme="sw"] .dl-button .crop-tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
[data-theme="sw"] .dl-button .crop-tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
[data-theme="sw"] .dl-button .crop-bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
[data-theme="sw"] .dl-button .crop-br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.dl-button.filed { animation: dl-file var(--mo-emph) var(--ease-strike); }
@keyframes dl-file { 50% { transform: translateY(3px) scale(0.99); } }
@media (prefers-reduced-motion: reduce) { .dl-button.filed { animation: none; } }
.dl-log { font-family: var(--font-mono); font-size: 12px; color: var(--green-on); margin-top: 12px; min-height: 1.2em; }
.dl-note { font-size: 13px; color: var(--text2); margin-top: 10px; }
.dl-note a { color: var(--link); border-bottom: 1px solid var(--border2); }

.manifest-block, .guide { max-width: 640px; margin-top: 28px; }
.manifest-head, .guide-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text2); margin-bottom: 12px; }
.spec { border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--hairline); }
.spec-row:first-child { border-top: 0; }
.spec-row .k { font-family: var(--font-mono); font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.04em; }
.spec-row .v { color: var(--text); font-size: 14px; }
.spec-row .v.mono { font-family: var(--font-mono); font-size: 13px; }
.guide-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.dl-tab-btn { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--text2);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; padding: 10px 14px; cursor: pointer; margin-bottom: -1px; }
.dl-tab-btn:hover { color: var(--text); }
.dl-tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.dl-tab-pane { display: none; }
.dl-tab-pane.active { display: block; }
.guide-step-list { display: flex; flex-direction: column; gap: 16px; }
.guide-step-item { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.guide-step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-chip);
  background: var(--accent-soft); color: var(--accent2); font-family: var(--font-mono); font-weight: 600; font-size: 13px; }
[data-theme="sw"] .guide-step-num { color: var(--text); }
.guide-step-content h4 { margin-bottom: 4px; }
.guide-step-content p { font-size: 14px; }
.guide-step-content code, .legal-doc code, .inner-lead code { font-family: var(--font-mono); font-size: 0.9em; color: var(--text); background: var(--surface2); padding: 1px 5px; border-radius: var(--r-micro); border: 1px solid var(--hairline); }
.dl-help { margin-top: 28px; font-size: 14px; color: var(--text2); }
.dl-help a { color: var(--link); border-bottom: 1px solid var(--border2); }

/* ---- pricing ------------------------------------------------------------ */
.price-fine { font-family: var(--font-mono); font-size: 12px; color: var(--text2); margin-top: 20px; max-width: 70ch; line-height: 1.6; }
.meter { height: 8px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--hairline); overflow: hidden; margin: 8px 0 4px; }
.meter .fill { height: 100%; width: 33%; background: var(--accent); border-radius: 999px; }
[data-theme="sw"] .meter { border-radius: 0; }
[data-theme="sw"] .meter .fill { background: var(--grease); border-radius: 0; }
.meter-cap { font-family: var(--font-mono); font-size: 11px; color: var(--text3); }

/* ---- doc TOC ------------------------------------------------------------ */
.doc-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1024px) { .doc-wrap { grid-template-columns: 220px 1fr; align-items: start; } }
.doc-toc { display: none; }
@media (min-width: 1024px) { .doc-toc { display: block; position: sticky; top: 84px; } }
.doc-toc a { display: block; font-size: 13px; color: var(--text2); padding: 5px 0; border-left: 2px solid var(--hairline); padding-left: 12px; }
.doc-toc a:hover { color: var(--text); border-left-color: var(--accent); }

/* ---- styleguide --------------------------------------------------------- */
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.sg-sw { border: 1px solid var(--hairline); border-radius: var(--r-chip); overflow: hidden; font-family: var(--font-mono); font-size: 10px; }
.sg-sw span { display: block; padding: 4px 6px; color: var(--text2); }
.sg-chip { height: 42px; }
.sg-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin: 28px 0 12px; }
