/* Commotion: styles this site adds to the company's Direction A stylesheet (site.css, an
   unchanged copy). Prefix cm-. Loaded after site.css. Tokens are the company's, unchanged. */

/* ── header and footer: fewer links than the company site ───────────── */
@media (min-width: 981px) { .foot__cols { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.foot__by { font-size: 13px; color: var(--fg3); }
.foot__col .foot__by a:not(.brand) { color: var(--link); display: inline; min-height: 0; font-size: inherit; text-decoration: none; }
.foot__col .foot__by a:not(.brand):hover { text-decoration: underline; }



/* ── small illustrations inside feature cards ───────────────────────── */
.cm-pic { width: 100%; max-width: 330px; }
/* every card's picture area is one height, so the text below starts on one line across a row */
.feats .feat__pic { position: relative; height: 230px; min-height: 0; }
.feats .feat__pic .cm-shot img { max-height: 184px; object-fit: contain; }
.cm-illus { position: absolute; right: 12px; bottom: 9px; font: 10.5px var(--mono); letter-spacing: .04em; color: var(--fg3); }
.cm-miss { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: end; font: 11.5px var(--mono); color: var(--fg2); }
.cm-miss i { display: block; height: 34px; border-bottom: 1.5px solid var(--fg3); background: linear-gradient(var(--c3), var(--c3)) no-repeat; }
.cm-miss i.s1 { background-size: 7% 100%; background-position: 46% 100%; }
.cm-miss i.s10 { background-size: 17% 47%; background-position: 48% 100%; }
.cm-miss i.s60 { background-size: 100% 18%; background-position: 0 100%; }
.mini-table .bad { color: #a05a00; font-weight: 500; }
.mini-table .ok { color: var(--accent); }
.tools .root { color: #a05a00; font-weight: 500; }

/* ── where the tools you own stop: need, today, Commotion ───────────── */
.cm-gap { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cm-gap th, .cm-gap td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.cm-gap tr:last-child > * { border-bottom: 0; }
.cm-gap thead th { font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--fg3); background: #fbfcfd; }
.cm-gap tbody th { font: 700 16px var(--display); width: 28%; }
.cm-gap td { color: var(--fg2); width: 36%; }
.cm-gap td:last-child { color: var(--fg); font-weight: 500; background: var(--accent-soft); }
.cm-gap thead th:last-child { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 640px) {
  .cm-gap, .cm-gap tbody, .cm-gap tr, .cm-gap th, .cm-gap td { display: block; width: auto; }
  .cm-gap tbody th, .cm-gap td { width: auto; }
  .cm-gap thead { display: none; }
  .cm-gap tbody th { border-bottom: 0; padding-bottom: 4px; }
  .cm-gap td { padding-block: 8px; border-bottom: 0; }
  .cm-gap td::before { content: attr(data-l); display: block; font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--fg3); margin-bottom: 2px; }
  .cm-gap td:last-child { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .cm-gap tr:last-child td:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .cm-reel3 .reel__l { white-space: normal; }
}

/* ── inner pages ────────────────────────────────────────────────────── */
/* a row of steps (how it works, the trial) */
.cm-steps { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.cm-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: cm-step; }
.cm-steps--3 ol { grid-template-columns: 1fr 1.6fr 1fr; }
.cm-steps li { counter-increment: cm-step; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--fg2); min-width: 0; }
.cm-steps li::before { content: counter(cm-step, decimal-leading-zero); display: block; font: 500 12px var(--mono); color: var(--accent); margin-bottom: 6px; }
.cm-steps li b { display: block; font: 700 17px var(--display); color: var(--fg); }
.cm-steps li.cm-steps__out { border-color: var(--accent); background: var(--accent-soft); }
.cm-steps p { display: grid; grid-template-columns: 4fr 1fr; gap: 12px; margin-top: 10px; font: 11.5px var(--mono); color: var(--fg3); text-transform: uppercase; letter-spacing: .06em; }
.cm-steps p span { border-top: 1.5px solid var(--line); padding-top: 8px; text-align: center; }
/* the four levels and the three cases */
.cm-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cm-hot { border-color: var(--c3); }
.cm-hot .co-card__n { color: #a05a00; }
.cm-cases .tools { max-width: none; }
.cm-stats .stat span { font-size: 14.5px; line-height: 1.5; }
.cm-gapabove { margin-top: 22px; }
.cm-404 { padding-bottom: 110px; }
.mc-table td a { color: var(--accent); font-weight: 600; text-decoration: none; }
/* the sign-up placeholder */
.cm-form { display: grid; gap: 16px; max-width: 460px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.cm-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.cm-form input { font: 15px var(--sans); padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); width: 100%; }
.cm-form button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.cm-form .fine { margin: 0; }
@media (max-width: 880px) {
  .cm-steps ol, .cm-steps--3 ol { grid-template-columns: minmax(0, 1fr); }
  .cm-steps p { display: none; }
  .cm-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-cases { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .cm-four { grid-template-columns: minmax(0, 1fr); } }


/* the lowercase wordmark has almost no ascenders, so it is set larger than the company's to read at the nav's size */
/* the name is larger than the menu words, so on a shared baseline its letters sit visibly higher; 2px down centres the lowercase of both */
.nav .brand { font-size: 23px; letter-spacing: -0.035em; position: relative; top: 2px; }
.foot .brand { font-size: 20px; }
.nav .btn { white-space: nowrap; }
@media (max-width: 480px) { .nav .brand { font-size: 20px; } .nav__in { gap: 14px; } }
/* the Product menu holds three columns here, not the company's four */
.nav__drop { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
/* where you are (#5): an accent line under the link to this page, and under Product when the page sits in its menu */
.nav__link[aria-current="page"], .nav__link.is-current,
.nav__dcol a[aria-current="page"], .nav__panel a[aria-current="page"]:not(.btn) { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.nav__link[aria-current="page"], .nav__link.is-current { text-underline-offset: 8px; }
.nav__dcol a[aria-current="page"], .nav__panel a[aria-current="page"]:not(.btn) { text-underline-offset: 5px; }
/* the arrow on a nav link that opens another site in a new tab (#6) */
.cm-ext { width: 10px; height: 10px; flex: none; }
.nav__panel .cm-ext { margin-left: 6px; }
/* wordmark, links and button share one text baseline (centring them put the larger wordmark's baseline lower) */
.nav__in { align-items: baseline; padding-top: 13px; }

/* ── real screen grabs of the product (light theme, captured at double resolution) ── */
.cm-reel3 .reel__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* the three panels share one grid cell, so the section is as tall as its tallest picture and the page does not move when the reel turns */
.cm-reel3 { display: grid; grid-template-columns: minmax(0, 1fr); }
.cm-reel3 .reel__p { grid-row: 2; grid-column: 1; }
.cm-reel3 .reel__p[data-on="false"] { display: block; visibility: hidden; }
/* A screenshot is white on a white or tinted page, so every one keeps its border. The shadow means
   "this is the product, lifted off the page" and is kept for the one lead picture of a view: the home
   hero, the full product screen, and the deck player. Pictures read in sequence as evidence (the reel,
   the incident page, a comparison page, a card) stay flat. */
.cm-shot { margin: 0; max-width: 470px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cm-shot--screen { box-shadow: 0 30px 60px -30px rgba(13,17,23,.35); }
.cm-shot img { display: block; width: 100%; height: auto; }
.cm-shot + .cm-shot { margin-top: 18px; }
/* Home: the video sits above the screenshot in one section, at the same width. */
.cm-shot video { display: block; width: 100%; height: auto; background: #fff; }
.cm-shot--video + .cm-shot--screen { margin-top: 32px; }
/* When the video ends it steps aside: the screenshot takes its place with a replay button on top (app.js). */
.cm-intro { position: relative; }
#example { padding-bottom: 30px; }
.cm-intro[data-ended] .cm-shot--video { display: none; }
/* One slot: until the video ends, the screenshot and its caption are not shown. */
.cm-intro:not([data-ended]) .cm-shot--screen:not(.cm-shot--video), .cm-intro:not([data-ended]) + .note { display: none; }
.cm-intro[data-ended] .cm-shot--video + .cm-shot--screen { margin-top: 0; }
.cm-intro__again, .cm-intro__again:hover { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(13,17,23,.5); }
.cm-intro__again[hidden] { display: none; }
.cm-shot--hero { max-width: none; }
.cm-shot--wide { max-width: 940px; }
.cm-shot--screen { max-width: none; border-radius: 16px; }
.feat__pic .cm-shot { border-radius: 10px; max-width: 440px; width: 100%; }
@media (max-width: 760px) {
  /* wide grabs keep a readable size and scroll sideways inside their own frame */
  .cm-shot--wide, .cm-shot--screen { overflow-x: auto; }
  .cm-shot--wide img { width: 760px; max-width: none; }
  .cm-shot--screen img { width: 980px; max-width: none; }
}
.cm-fine--above { margin: 0 0 18px; }

/* ── the node's cost, drawn to scale. Two segments on the left stand as tall as the boxes on the right.
   Squares: areas 233 to 2.9, so sides 9 to 1. Bar: 5 ms of 1,000 ms is 0.5% of its width. ── */
.cm-light { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: stretch; }
.cm-light > * { min-width: 0; }
.cm-light__segs { display: grid; grid-template-rows: auto 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cm-seg { margin: 0; background: var(--bg); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.cm-seg__tag { font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--fg3); }
.cm-seg figcaption { font-size: 14px; color: var(--fg2); margin-top: auto; }
.cm-light__sq { display: flex; align-items: flex-end; gap: 28px; }
.cm-light__big { flex: none; width: 153px; height: 153px; border: 1px solid #cdd3db; background: #eceef2; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cm-light__big b, .cm-light__small b, .cm-sec__ends b { font: 800 26px/1 var(--display); letter-spacing: -0.03em; }
.cm-light__big b { color: var(--fg); }
.cm-light__big span, .cm-light__small span { font-size: 13px; color: var(--fg2); margin-top: 7px; line-height: 1.35; }
.cm-light__small { display: flex; flex-direction: column; }
.cm-light__small b, .cm-sec__ends b { color: var(--accent); }
.cm-light__small i { display: block; width: 17px; height: 17px; background: var(--accent); border-radius: 2px; margin-top: 10px; }
.cm-sec__bar { height: 30px; border: 1px solid #cdd3db; background: #eceef2; border-radius: 6px; overflow: hidden; }
.cm-sec__bar i { display: block; width: 0.5%; min-width: 2px; height: 100%; background: var(--accent); }
.cm-sec__ends { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--fg2); }
.cm-sec__ends b { margin-right: 6px; }
.cm-light__figs { grid-template-columns: 1fr; }
.cm-light__figs .stat { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; }
.cm-light__figs .stat b { font-size: clamp(28px, 3vw, 36px); }
.cm-light__figs .stat.cm-light__lead { background: var(--accent-soft); padding: 26px 24px; }
.cm-light__figs .stat.cm-light__lead b { color: var(--accent); font-size: clamp(44px, 5vw, 60px); }
.cm-light__figs .stat.cm-light__lead span { color: var(--fg); font-weight: 500; font-size: 15px; }
@media (max-width: 880px) { .cm-light { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cm-light__sq { gap: 16px; } .cm-seg { padding: 20px; } }

/* three cards in one row (comparison pages) */
@media (min-width: 881px) { .feats.cm-feats3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cm-shot--mid { max-width: 640px; margin-top: 22px; }

/* ── /intro/: the invitation deck, played slide by slide (assets/intro-deck.jsx) ──
   Without scripts the list below is the page: each slide, its title and its note, in order. */
.cm-deck__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; max-width: 980px; }
.cm-deck__list h3 { font: 700 20px var(--display); margin: 14px 0 6px; }
.cm-deck__note { color: var(--fg2); max-width: 68ch; }
.cm-deck__fig { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #10212b; }
.cm-deck__fig img { display: block; width: 100%; height: auto; }
.cm-deck__fig--shot { background: #fff; }
/* sized so the slide, its controls and its note fit one screen */
.cm-deck { scroll-margin-top: 78px; }
.cm-deck__player { max-width: min(1040px, max(520px, calc((100svh - 350px) * 1.7778))); margin: 0 auto; outline: none; }
.cm-deck__bars { display: flex; gap: 4px; margin-bottom: 12px; }
.cm-deck__bar { flex: 1; height: 16px; padding: 6px 0; border: 0; background: none; cursor: pointer; min-width: 0; }
.cm-deck__bar::before, .cm-deck__bar i { content: ""; display: block; height: 4px; border-radius: 2px; }
.cm-deck__bar::before { background: #d5dae1; }
.cm-deck__bar[data-done="true"]::before { background: var(--accent); }
.cm-deck__bar i { margin-top: -4px; background: var(--accent); width: 0; }
.cm-deck__bar[aria-selected="true"] i { width: 100%; transform-origin: left; animation: cm-deck-bar 12s linear forwards; }
.cm-deck__player[data-run="false"] .cm-deck__bar i { animation-play-state: paused; }
.cm-deck__bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes cm-deck-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cm-deck__stage { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #10212b; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(13,17,23,.35); touch-action: pan-y; }
.cm-deck__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.cm-deck__slide[data-on="true"] { opacity: 1; }
.cm-deck__slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.cm-deck__slide--shot { background: #eef1f4; padding: 2.5%; }
.cm-deck__slide--shot img { object-fit: contain; border-radius: 8px; }
.cm-deck__slide[data-on="true"] img { animation: cm-deck-push 16s ease-out forwards; }
.cm-deck__player[data-run="false"] .cm-deck__slide img { animation-play-state: paused; }
@keyframes cm-deck-push { from { transform: scale(1); } to { transform: scale(1.035); } }
.cm-deck__edge { position: absolute; top: 0; bottom: 0; width: 18%; border: 0; background: none; cursor: pointer; padding: 0; }
.cm-deck__edge--prev { left: 0; } .cm-deck__edge--next { right: 0; }
.cm-deck__edge[disabled] { cursor: default; }
.cm-deck__edge:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.cm-deck__ctl { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.cm-deck__btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: 600 14px var(--sans); cursor: pointer; }
.cm-deck__btn--play { min-width: 104px; }
.cm-deck__btn[disabled] { opacity: .4; cursor: default; }
.cm-deck__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-deck__count { margin-left: auto; font: 12.5px var(--mono); color: var(--fg3); letter-spacing: .03em; }
.cm-deck__say { margin-top: 18px; min-height: 9.5em; animation: cm-deck-in .5s ease both; }
.cm-deck__say h3 { font: 700 clamp(20px, 2.2vw, 26px) var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.cm-deck__say p { font-size: 17px; line-height: 1.6; color: var(--fg2); max-width: 70ch; }
@keyframes cm-deck-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .cm-deck__bars { gap: 2px; } .cm-deck__say { min-height: 13em; } .cm-deck__count { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .cm-deck__slide, .cm-deck__slide[data-on="true"] img, .cm-deck__say { transition: none; animation: none; } }

/* ── /terms/ and /privacy/ (#15): one readable column, numbered clauses ── */
.cm-legal { max-width: 46em; }
.cm-legal__toc { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; margin-bottom: 18px; }
.cm-legal__toc a { color: var(--fg2); text-decoration: none; }
.cm-legal__toc a:hover { color: var(--accent); }
.cm-legal__sec { margin-top: 44px; scroll-margin-top: 84px; }
.cm-legal__sec h2 { font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.cm-legal__sec h2 span { color: var(--accent); margin-right: 12px; }
.cm-legal__sec p { margin-top: 12px; color: var(--fg2); line-height: 1.6; scroll-margin-top: 84px; }
.cm-legal__n { color: var(--fg); font-weight: 600; margin-right: 6px; }
.cm-legal__open { background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; padding: 2px 7px; border-radius: 5px; }
.cm-legal__t { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.cm-legal__t th, .cm-legal__t td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--fg2); }
.cm-legal__t th { color: var(--fg); font-weight: 600; }
@media (max-width: 560px) { .cm-legal__t thead { display: none; } .cm-legal__t td { display: block; border: 0; padding: 4px 0; } .cm-legal__t td::before { content: attr(data-l) ": "; color: var(--fg); font-weight: 600; } .cm-legal__t tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); } }

/* the contact band at the end of home: the company's band, left-aligned inside the centred closing section */
.cm-reach { margin: 56px auto 0; max-width: 860px; text-align: left; }

/* the footer heading that links to the comparisons hub keeps the heading's look */
.foot__h a { color: inherit; font: inherit; text-decoration: none; padding: 0; }
.foot__h a:hover { color: var(--accent); }

/* ── /guides/ (#16): the legal pages' reading column, with commands ── */
.cm-guide pre { margin-top: 14px; padding: 14px 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; white-space: pre; word-break: normal; font: 14px/1.5 var(--mono); color: var(--fg); }
.cm-guide p code { font: 0.92em var(--mono); background: var(--bg2); padding: 1px 5px; border-radius: 4px; color: var(--fg); }
.cm-guide .fine { margin-top: 36px; }
.cm-guide .cm-legal__toc { margin-top: 18px; }
.cm-feats2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .cm-feats2 { grid-template-columns: minmax(0, 1fr); } }

/* ── links: a link blue; underlined in running text (rule below), on hover elsewhere. The blue is the lightest that
   still meets AA contrast on the white and tinted backgrounds. Chips and the legal contents row keep their own look. ── */
:root { --link: #0b6bcb; }
main :not(.mc-next):not(.cm-legal__toc) > a:not(.btn):not(.pill) { color: var(--link); text-decoration: none; }
main :not(.mc-next):not(.cm-legal__toc) > a:not(.btn):not(.pill):hover { text-decoration: underline; }

/* ── contrast (PageSpeed, 3 Dec 2026): small grey and accent text darkened to meet AA ── */
.note, .mini-table th, .cm-illus { color: var(--fg2); }
.pill span, .mini-table .ok { color: #076a6a; }
