/* Command Centre — pages other than home.
   Every colour is a home-page token (dark values below are what the tokens resolve to; cc-theme-light.css
   swaps them for light). Sizes are measured from the live home page (scripts/measure.mjs):
   section card radius 24 / padding 72·60 (≥1200) 40·22 (phone), tile radius 20, pill radius 999,
   page gutters 40 (≥1200) 28 (tablet) 16 (phone), section spacing 144 (≥1200) 110 (phone). */
.cc-page {
  --c-page: var(--token-8f44b47a-634b-4def-8720-7ac2a3116105);
  --c-ink: var(--token-ab6717e0-3cc4-4bf4-b5ee-fb57d718afbc);
  --c-soft: var(--token-3a984b70-365b-47e1-b219-3f56a91c7b66);
  --c-muted: var(--token-07742aa8-0707-41fb-ba00-9b8a3fbd5645);
  --c-dim: var(--token-a031843f-9d49-4f8b-b7be-ca6aede13f14);
  --c-line: var(--token-73097e4a-d64d-4e54-afd0-3caed41b6cac);
  --c-border: var(--token-725ccc2b-475c-46b9-a034-0bb162cb10d3);
  --c-section: var(--token-f168cf2b-c06a-4a41-8b28-5097d5af63ea);
  --c-tile: var(--token-be550bf2-ce29-49a4-b3e0-221bf8deef94);
  --c-panel: var(--token-7e14ad7a-09d4-4394-9dba-5cc5cbf39af0);
  --c-lime: var(--token-8ad7955e-4d17-4ef6-ae65-f419ee3c5c62);
  --c-lime-text: var(--token-8ad7955e-4d17-4ef6-ae65-f419ee3c5c62);
  --c-lime-tint: var(--token-700de6a4-1195-4a29-b392-3706e6f6839c);
  --c-alert: var(--token-a6c1db06-102c-4939-b28b-e9a5b4b4957d);
  --c-alert-tint: var(--token-f8ccefef-990d-4712-8f79-df9a5d4b4a32);
  --c-amber: var(--token-b0f22020-7dc1-4744-bb58-dbb92f2d98d3);
  --c-blue: var(--token-a5604256-8c74-4afb-9682-28fef3ef29c2);
  --f-sans: "Familjen Grotesk", "Familjen Grotesk Placeholder", sans-serif;
  --f-mono: "Martian Mono Variable", "Martian Mono Variable Placeholder", "Martian Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, 0, 1);
  --gutter: 40px;
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 112px;
  color: var(--c-ink);
}
/* Light theme: the home page's rule (handover v4). Bright lime stays a fill behind dark text only (the buttons).
   Lines, dots, data and live figures use the deeper lime #4f9a00 (3.6:1 on white, passes for graphics); text uses olive. */
html[data-theme="light"] .cc-page {
  --c-lime-text: var(--cc-olive);
  --c-lime: #4f9a00;
  --c-lime-tint: rgba(79, 154, 0, .10);
}
@media (min-width: 810px) and (max-width: 1199.98px) { .cc-page { --gutter: 28px; } }
@media (max-width: 809.98px) { .cc-page { --gutter: 16px; padding-top: 96px; } }

.cc-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }
.cc-sec { padding: 144px 0 0; }
.cc-sec:first-child { padding-top: 32px; }
@media (max-width: 809.98px) { .cc-sec { padding-top: 110px; } }

/* Home-page section card (review card): one surface per big section. */
.cc-card {
  position: relative; overflow: hidden; box-sizing: border-box;
  background: var(--c-section); border: 1px solid var(--c-line); border-radius: 24px;
  padding: 72px 60px;
}
@media (min-width: 810px) and (max-width: 1199.98px) { .cc-card { padding: 56px 40px; } }
@media (max-width: 809.98px) { .cc-card { padding: 40px 22px; border-radius: 20px; } }

/* Bento tile. */
.cc-tile { position: relative; overflow: hidden; box-sizing: border-box; background: var(--c-tile); border: 1px solid var(--c-line); border-radius: 20px; }
html[data-theme="light"] .cc-tile, html[data-theme="light"] .cc-card { border-color: #ebebeb; }

/* Text: the framer presets carry font, size and tracking per breakpoint; these only set flow. */
.cc-page .framer-text { margin: 0; }
.cc-h { max-width: 18ch; margin-top: 28px !important; }
.cc-h .cc-quiet { color: var(--c-muted); }
.cc-lead { max-width: 44ch; margin-top: 24px !important; }
.cc-cols { display: grid; gap: 18px; }
.cc-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }
.cc-actions > a { position: relative; width: auto !important; }
.cc-mono { font-family: var(--f-mono); font-size: 10px; line-height: 14px; letter-spacing: .09em; text-transform: uppercase; color: var(--c-muted); }
.cc-body { font-family: var(--f-sans); font-size: 14.5px; line-height: 1.5; color: var(--c-muted); }
.cc-body strong { color: var(--c-ink); font-weight: 500; }
.cc-h3 { font-family: var(--f-sans); font-size: 21px; line-height: 1.15; letter-spacing: -.025em; font-weight: 500; color: var(--c-ink); margin: 0; }

/* Split: copy on one side, a live figure on the other. */
.cc-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.cc-split.cc-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cc-split.cc-flip > :first-child { order: 2; }
@media (max-width: 1199.98px) { .cc-split, .cc-split.cc-flip { grid-template-columns: 1fr; gap: 40px; } .cc-split.cc-flip > :first-child { order: 0; } }

.cc-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.cc-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.cc-points li > span:first-child { font-family: var(--f-mono); font-size: 10px; line-height: 21px; color: var(--c-muted); }

/* Status chips: lime = built, amber = being tested, dim = planned. Never colour without the word. */
.cc-chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--c-border);
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-soft); white-space: nowrap; }
.cc-chip::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--c-dim); }
.cc-chip[data-s="built"]::before { background: var(--c-lime); box-shadow: 0 0 0 3px var(--c-lime-tint); }
.cc-chip[data-s="testing"]::before { background: var(--c-amber); }
.cc-chip[data-s="planned"]::before { background: transparent; border: 1px solid var(--c-dim); }

/* Live figures share one frame: a tile with a mono caption bar. */
.cc-fig { display: flex; flex-direction: column; min-height: 420px; }
.cc-fig-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--c-line); }
.cc-fig-bar .cc-live { display: inline-flex; align-items: center; gap: 8px; }
.cc-fig-bar .cc-live::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--c-lime); animation: cc-blink 2.4s var(--ease) infinite; }
.cc-fig-body { position: relative; flex: 1; }
.cc-fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cc-pause { all: unset; cursor: pointer; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--c-border); }
.cc-pause:hover { color: var(--c-ink); }
.cc-pause:focus-visible { outline: 2px solid var(--c-lime); outline-offset: 2px; }
@keyframes cc-blink { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

/* Reveal on scroll (same easing as home). Content is visible without JS. */
.cc-js .cc-rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.cc-js .cc-rv.cc-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cc-js .cc-rv { opacity: 1; transform: none; transition: none; }
  .cc-fig-bar .cc-live::before { animation: none; }
}

/* Footer anchor offset under the fixed nav. */
.cc-page [id] { scroll-margin-top: 110px; }
.cc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── /security figures ───────── */
.cc-vault .cc-fig-body { min-height: 520px; cursor: crosshair; }
@media (max-width: 809.98px) { .cc-vault .cc-fig-body { min-height: 360px; } }
.cc-vault::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 100%, var(--c-lime-tint), transparent 70%); opacity: .6; }
html[data-theme="light"] .cc-vault::after { display: none; }
.cc-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--c-line); }
.cc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cc-legend i { width: 8px; height: 8px; border-radius: 999px; display: inline-block; }

/* Approve */
.cc-approve .cc-fig-body { padding: 22px; display: grid; gap: 18px; align-content: start; }
.ap-card { border: 1px solid var(--c-border); border-radius: 16px; padding: 18px; background: var(--c-panel);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.ap-card[data-s="blocked"] { border-color: var(--c-alert); box-shadow: 0 0 0 4px var(--c-alert-tint); transform: translateX(0); animation: ap-shake .42s var(--ease); }
.ap-card[data-s="approved"], .ap-card[data-s="live"] { border-color: var(--c-lime); box-shadow: 0 0 0 4px var(--c-lime-tint); }
@keyframes ap-shake { 20% { transform: translateX(-5px) } 45% { transform: translateX(4px) } 70% { transform: translateX(-2px) } }
.ap-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ap-state { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); transition: color .4s var(--ease); }
.ap-card[data-s="blocked"] .ap-state { color: var(--c-alert); }
.ap-card[data-s="approved"] .ap-state, .ap-card[data-s="live"] .ap-state { color: var(--c-lime-text); }
.ap-title { font-family: var(--f-sans); font-size: 17px; line-height: 1.3; color: var(--c-ink); margin: 10px 0 6px; }
.ap-diff { font-family: var(--f-mono); font-size: 11px; line-height: 1.6; color: var(--c-muted); }
.ap-diff del { color: var(--c-alert); text-decoration: line-through; } .ap-diff ins { color: var(--c-lime-text); text-decoration: none; }
.ap-who { font-family: var(--f-sans); font-size: 13.5px; line-height: 1.45; color: var(--c-soft); margin-top: 12px; min-height: 40px; }
.ap-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; }
.ap-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--c-line);
  opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); color: var(--c-soft); }
.ap-row.ap-in { opacity: 1; transform: none; }
.ap-row:last-child { border-color: var(--c-border); }
.ap-id { color: var(--c-muted); } .ap-act { text-transform: uppercase; letter-spacing: .06em; font-size: 9.5px; }
.ap-h { color: var(--c-muted); white-space: nowrap; } .ap-h i { font-style: normal; color: var(--c-muted); }
.ap-row:last-child .ap-h { color: var(--c-lime-text); }
@media (max-width: 809.98px) { .ap-row { grid-template-columns: 44px 1fr; } .ap-h { grid-column: 1 / -1; } }

/* Mask: stays a dark terminal in both themes, like the home page replay */
.cc-mask { background: #0b0c0a; border-color: #1e2126; }
.cc-mask .cc-fig-bar { border-color: #1e2126; } .cc-mask .cc-mono, .cc-mask .cc-pause { color: #7c8288; border-color: #2a2f35; }
.cc-mask .cc-fig-body { padding: 18px 20px 22px; }
.mk-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-family: var(--f-mono); font-size: 11px; line-height: 1.55; color: #b9bec2; }
.mk-lines li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; animation: mk-in .6s var(--ease) both; }
@keyframes mk-in { from { opacity: 0; transform: translateY(6px); filter: blur(2px) } to { opacity: 1; transform: none; filter: none } }
.mk-t { color: #7c8288; }
.mk-s { font-weight: 400; color: #ff4d2e; background: rgba(255, 77, 46, .12); border-radius: 4px; padding: 0 3px; }
.mk-m { font-weight: 400; color: #c6ff3d; background: rgba(198, 255, 61, .1); border-radius: 4px; padding: 0 3px; animation: mk-flash .9s var(--ease); }
@keyframes mk-flash { from { background: rgba(198, 255, 61, .45) } }
.mk-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid #1e2126; }
.mk-foot .cc-mono { color: #7c8288; }
.mk-reveal { all: unset; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #7c8288; border: 1px dashed #2a2f35; border-radius: 999px; padding: 5px 10px; cursor: not-allowed; }

/* Ship */
.cc-ship .cc-fig-body { padding: 26px 22px; display: grid; gap: 26px; }
.sh-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; position: relative; }
.sh-step { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; padding-top: 2px; }
.sh-step::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--c-line); }
.sh-step:first-child::before { display: none; }
.sh-step::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--c-lime); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.sh-step:first-child::after { display: none; }
.sh-step[data-s="done"]::after, .sh-step[data-s="now"]::after, .sh-step[data-s="bad"]::after { transform: scaleX(1); }
.sh-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--c-border); background: var(--c-tile); transition: all .5s var(--ease); }
.sh-step[data-s="done"] .sh-dot { background: var(--c-lime); border-color: var(--c-lime); }
.sh-step[data-s="now"] .sh-dot { border-color: var(--c-lime); box-shadow: 0 0 0 6px var(--c-lime-tint); transform: scale(1.12); }
.sh-step[data-s="bad"] .sh-dot { border-color: var(--c-alert); background: var(--c-alert); box-shadow: 0 0 0 6px var(--c-alert-tint); }
.sh-step b { font-family: var(--f-mono); font-weight: 400; font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--c-muted); transition: color .4s; }
.sh-step[data-s="now"] b, .sh-step[data-s="done"] b { color: var(--c-ink); } .sh-step[data-s="bad"] b { color: var(--c-alert); }
.sh-note { font-family: var(--f-sans); font-size: 15px; line-height: 1.45; color: var(--c-soft); min-height: 44px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--c-line); transition: border-color .4s, color .4s; }
.sh-note[data-s="bad"] { border-color: var(--c-alert); color: var(--c-ink); } .sh-note[data-s="ok"] { border-color: var(--c-lime); }
@media (max-width: 809.98px) {
  .sh-track { grid-template-columns: 1fr; gap: 12px; }
  .sh-step { grid-template-columns: 20px 1fr; justify-items: start; text-align: left; align-items: center; }
  .sh-step::before, .sh-step::after { display: none; }
}

/* Proof board */
.cc-board { width: 100%; border-collapse: collapse; margin-top: 36px; }
.cc-board th { text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); padding: 0 12px 12px 0; border-bottom: 1px solid var(--c-border); }
.cc-board td { vertical-align: top; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--c-line); font-family: var(--f-sans); font-size: 14.5px; line-height: 1.45; color: var(--c-muted); }
.cc-board td:first-child { color: var(--c-ink); font-size: 15.5px; width: 34%; }
.cc-board td:last-child { width: 1%; white-space: nowrap; padding-right: 0; }
.cc-board tr { transition: background-color .3s; } .cc-board tbody tr:hover { background: var(--c-lime-tint); }
@media (max-width: 809.98px) {
  .cc-board thead { display: none; } .cc-board tr { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .cc-board td { border: 0; padding: 0; width: auto !important; }
}
.cc-asof { margin-top: 18px; }

/* FAQ: native details, animated marker */
.cc-faq { border-top: 1px solid var(--c-line); }
.cc-faq details { border-bottom: 1px solid var(--c-line); }
.cc-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; }
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary:focus-visible { outline: 2px solid var(--c-lime); outline-offset: 4px; border-radius: 4px; }
.cc-faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.cc-faq summary i::before, .cc-faq summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: var(--c-muted); transition: transform .45s var(--ease), background-color .3s; }
.cc-faq summary i::after { transform: rotate(90deg); }
.cc-faq details[open] summary i::after { transform: rotate(0); }
.cc-faq details[open] summary i::before { background: var(--c-lime-text); }
.cc-faq details > p { margin: 0; padding: 0 32px 22px 0; max-width: 62ch; }
.cc-faq details[open] > p { animation: mk-in .5s var(--ease) both; }
