/*
 * CCS Uptime — public landing page theme (www-2 "Depth" build)
 *
 * Loaded after the shared www-2 styles when BRAND_STYLE_VARIANT=ccs, so every
 * rule is scoped to html.brand-variant--ccs. The page stays on the Ink ground
 * www-2 is built around; this file replaces the luminous glass vocabulary with
 * CCS's hard-edged industrial one (CCS_BrandGuidelines.pdf):
 *
 *   palette   Code Red #D91A21 + Ink #000000 primary, Steel #777C7E secondary,
 *             Maroon #670000 only as a small accent (hover), never a field;
 *   logo      the white-text lockup on Ink, clear space, no shadow/glow/outline;
 *   type      Typoline Expanded is licensed and not supplied — heavy condensed
 *             uppercase sans stands in for headlines; Helvetica Neue for body;
 *             no monospace accents;
 *   geometry  straight rules, 2–4 px corners, one diagonal cut, flat Code Red
 *             buttons with white uppercase labels, no blur, no orbs, no sheens;
 *   assets    the Wave, halftone, brushed texture and photography are NOT
 *             reproduced (not supplied); the only gradient is the approved
 *             Code Red → Ink field, used once, behind the hero.
 *
 * It overrides www-2 through its tokens (colour, radius, fonts, shadows) and a
 * small set of component rules; it never repaints body/headings for a light
 * page — see the www-2 README on theme contracts.
 */

html.brand-variant--ccs {
  --ccs-code-red: #D91A21;
  --ccs-ink: #000000;
  --ccs-steel: #777C7E;
  --ccs-steel-tint: #D4D6D7;
  --ccs-maroon: #670000;
  --ccs-white: #FFFFFF;

  /* type */
  --font-display: "Helvetica Neue Condensed Bold", "HelveticaNeue-CondensedBold", "Arial Narrow",
                  "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --font-accent: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --font-mono: "Courier New", Courier, monospace;

  /* the www-2 colour tokens, remapped to the approved palette */
  --brand: var(--ccs-code-red);
  --brand-deep: var(--ccs-maroon);
  --brand-soft: #F2F2F2;                 /* small "accent" text reads white on Ink; red is for marks */
  --ground: var(--ccs-ink);
  --ground-deep: var(--ccs-ink);
  --ground-lift: #0E0E0E;
  --on-dark: var(--ccs-white);
  --on-dark-soft: #E4E4E4;
  --on-dark-faint: var(--ccs-steel-tint);
  --heading: var(--ccs-white);
  --white: var(--ccs-white);
  --edge: #3A3D3E;
  --edge-strong: var(--ccs-steel);
  --glass-tint: #0E0E0E;
  --glass-body: #0E0E0E;

  /* geometry */
  --r-sm: 2px; --r-md: 3px; --r-lg: 4px; --r-xl: 4px;
  --shadow: none;
  --shadow-deep: none;
  --micro: 120ms;
  --ease: ease-out;
}

/* ---- ground: flat Ink, no orbs, no ambient gradient ---- */
html.brand-variant--ccs .ambient { background: var(--ccs-ink); }
html.brand-variant--ccs .orb { display: none; }

html.brand-variant--ccs body {
  font-weight: 400;
  color: var(--on-dark-soft);
}

/* ---- headlines: heavy, tight, uppercase — the Typoline stand-in ---- */
html.brand-variant--ccs h1,
html.brand-variant--ccs h2,
html.brand-variant--ccs h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -.01em;
  text-transform: uppercase;
  line-height: 1.02;
}
html.brand-variant--ccs .joincard h3,
html.brand-variant--ccs .ddtitle { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 700; }

html.brand-variant--ccs ::selection { background: var(--ccs-code-red); color: var(--ccs-white); }
html.brand-variant--ccs :focus-visible { outline: 2px solid var(--ccs-code-red); outline-offset: 3px; border-radius: 1px; }
html.brand-variant--ccs a { color: var(--ccs-white); text-decoration: underline; text-decoration-color: var(--ccs-code-red); text-decoration-thickness: 2px; }
html.brand-variant--ccs a:hover { color: var(--ccs-code-red); }

/* ---- header: Ink bar, Code Red rule, white-text lockup with clear space ---- */
html.brand-variant--ccs header {
  padding: 0;
  background: var(--ccs-ink);
  border-bottom: 4px solid var(--ccs-code-red);
}
html.brand-variant--ccs .navbar {
  width: min(1320px, 100%);
  padding: 14px max(24px, env(safe-area-inset-right)) 14px max(24px, env(safe-area-inset-left));
  gap: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.brand-variant--ccs .lockup { text-decoration: none; padding: 6px 0; }
html.brand-variant--ccs .lockup-art { height: 44px; max-width: min(280px, 46vw); }
html.brand-variant--ccs .navlinks { gap: 6px; }
html.brand-variant--ccs .navlinks a {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font: 700 13px/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ccs-steel-tint);
}
html.brand-variant--ccs .navlinks a:hover { background: transparent; color: var(--ccs-white); border-bottom-color: var(--ccs-code-red); }
html.brand-variant--ccs header.dimmed .navlinks { opacity: .5; }

/* ---- buttons: flat Code Red blocks, white uppercase labels, square corners ---- */
html.brand-variant--ccs .btn {
  border-radius: 2px;
  font: 700 14px/1 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
html.brand-variant--ccs .btn-primary {
  color: var(--ccs-white);
  background: var(--ccs-code-red);
  box-shadow: none;
}
html.brand-variant--ccs .btn-primary:hover { color: var(--ccs-white); background: var(--ccs-maroon); transform: none; box-shadow: none; }
html.brand-variant--ccs .btn-primary svg { stroke: var(--ccs-white); }
html.brand-variant--ccs .shimmer,
html.brand-variant--ccs .deck-sheen { display: none; }
html.brand-variant--ccs .btn-ghost { border: 2px solid var(--ccs-white); color: var(--ccs-white); background: transparent; }
html.brand-variant--ccs .btn-ghost:hover { border-color: var(--ccs-code-red); color: var(--ccs-code-red); }
html.brand-variant--ccs .loginbtn { border: 2px solid var(--ccs-white); color: var(--ccs-white); font: 700 13px/1 var(--font-body); }
html.brand-variant--ccs .loginbtn:hover,
html.brand-variant--ccs .loginbtn.open { border-color: var(--ccs-code-red); color: var(--ccs-code-red); }

/* ---- sign-in panel ---- */
html.brand-variant--ccs .dropdown {
  border: 1px solid var(--ccs-steel);
  border-top: 4px solid var(--ccs-code-red);
  border-radius: 2px;
  background: #0E0E0E;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .6);
}
html.brand-variant--ccs input {
  border: 1px solid var(--ccs-steel);
  border-radius: 2px;
  background: var(--ccs-ink);
  color: var(--ccs-white);
}
html.brand-variant--ccs input:focus { border-color: var(--ccs-code-red); box-shadow: 0 0 0 3px rgba(217, 26, 33, .28); }
html.brand-variant--ccs input::placeholder { color: var(--ccs-steel); }
html.brand-variant--ccs label { color: var(--ccs-steel-tint); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
html.brand-variant--ccs .dropdown button[type=submit],
html.brand-variant--ccs .joincard button[type=submit] {
  border-radius: 2px;
  background: var(--ccs-code-red);
  color: var(--ccs-white);
  font: 700 15px/1 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}
html.brand-variant--ccs .dropdown button[type=submit]:hover,
html.brand-variant--ccs .joincard button[type=submit]:hover { background: var(--ccs-maroon); }
html.brand-variant--ccs .ghostbtn { color: var(--ccs-steel-tint); text-decoration: underline; text-decoration-color: var(--ccs-code-red); }
html.brand-variant--ccs .ghostbtn:hover { color: var(--ccs-white); }
html.brand-variant--ccs #lchoices button { border: 1px solid var(--ccs-steel); border-radius: 2px; color: var(--ccs-white); }
html.brand-variant--ccs #lchoices button:hover { border-color: var(--ccs-code-red); }
html.brand-variant--ccs .result { font-family: var(--font-body); color: var(--ccs-steel-tint); }
html.brand-variant--ccs .result.ok { color: var(--ccs-white); }
html.brand-variant--ccs .result.err { color: #FF7A7A; }
html.brand-variant--ccs .backdrop { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.brand-variant--ccs .backdrop.open { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---- hero: the one approved gradient field (Code Red → Ink) with a diagonal
   cut, trimmed to the page column like the header (Chris 2026-09-02), white
   headline, Code Red accent word — no orbs, no glow ---- */
html.brand-variant--ccs .hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
html.brand-variant--ccs .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(112deg, var(--ccs-code-red) 0%, #8E0F14 22%, #2A0405 48%, var(--ccs-ink) 70%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
  pointer-events: none;
}
html.brand-variant--ccs .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  /* the Steel diagonal that follows the cut — a single straight rule */
  background: linear-gradient(to top left, transparent 49.6%, var(--ccs-steel) 49.6%, var(--ccs-steel) 50.1%, transparent 50.1%);
  clip-path: polygon(0 77%, 100% 55%, 100% 78%, 0 100%);
  opacity: .45;
  pointer-events: none;
}
html.brand-variant--ccs .badge {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 0;
  background: rgba(0, 0, 0, .35);
}
html.brand-variant--ccs .badge span { font: 700 12px/1 var(--font-accent); letter-spacing: .12em; color: var(--ccs-white); }
html.brand-variant--ccs .badge svg { display: none; }
html.brand-variant--ccs .hero h1 { font-weight: 800; max-width: 14ch; color: var(--ccs-white); text-shadow: none; }
html.brand-variant--ccs .hero h1 .accent,
html.brand-variant--ccs .convert h2 .accent {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--ccs-code-red);
  color: var(--ccs-code-red);
  font-weight: 800;
}
html.brand-variant--ccs .lede { color: var(--ccs-white); font-weight: 400; }
html.brand-variant--ccs .cta-note { font: 700 12px/1 var(--font-accent); letter-spacing: .06em; text-transform: uppercase; color: var(--ccs-steel-tint); }

/* ---- product deck / screenshots (when media is enabled): flat frames ---- */
html.brand-variant--ccs .deck { perspective: none; }
html.brand-variant--ccs .deck-item { transform: none !important; animation: none !important; }
html.brand-variant--ccs .deck-frame,
html.brand-variant--ccs .shot-canvas,
html.brand-variant--ccs .phone-canvas {
  border: 1px solid var(--ccs-steel);
  border-top: 4px solid var(--ccs-code-red);
  border-radius: 2px;
  background: #0E0E0E;
  box-shadow: none;
}
html.brand-variant--ccs .deck-frame img,
html.brand-variant--ccs .shot-canvas img,
html.brand-variant--ccs .phone-canvas img { border-radius: 1px; }

/* ---- section furniture ---- */
html.brand-variant--ccs .eyebrow,
html.brand-variant--ccs .promise strong,
html.brand-variant--ccs .perspective-nav small {
  font: 700 13px/1 var(--font-accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ccs-code-red);
}
html.brand-variant--ccs .eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--ccs-code-red);
}
html.brand-variant--ccs .sectionlead,
html.brand-variant--ccs .story-copy p,
html.brand-variant--ccs .assistant-copy p,
html.brand-variant--ccs .connect-card p,
html.brand-variant--ccs .deploy p,
html.brand-variant--ccs .convert-copy p,
html.brand-variant--ccs .faq details p { font-weight: 400; color: var(--on-dark-soft); }

html.brand-variant--ccs .glass {
  border: 1px solid var(--edge);
  border-radius: 2px;
  background: #0E0E0E;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
html.brand-variant--ccs .promise { padding: 0; border-top: 4px solid var(--ccs-code-red); }
html.brand-variant--ccs .promise > div + div { border-left-color: var(--edge); }
html.brand-variant--ccs .promise span { color: var(--ccs-white); font-weight: 400; }

html.brand-variant--ccs .perspective-nav a {
  border: 1px solid var(--edge);
  border-left: 4px solid var(--ccs-code-red);
  border-radius: 2px;
  background: #0E0E0E;
  text-decoration: none;
}
html.brand-variant--ccs .perspective-nav a:hover { border-color: var(--ccs-steel); border-left-color: var(--ccs-code-red); background: #161616; }
html.brand-variant--ccs .perspective-nav strong { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0; }

html.brand-variant--ccs .story-points li::before { top: .55em; width: 9px; height: 9px; border-radius: 0; background: var(--ccs-code-red); }
html.brand-variant--ccs .story-points li { color: var(--ccs-white); font-weight: 400; }
html.brand-variant--ccs figcaption { font-family: var(--font-body); color: var(--ccs-steel-tint); }
html.brand-variant--ccs figcaption b { color: var(--ccs-white); font-weight: 700; }

html.brand-variant--ccs .quote-card { border-left: 4px solid var(--ccs-code-red); }
html.brand-variant--ccs .quote-card p:first-child { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: 1.15; }

/* ---- assistant console ---- */
html.brand-variant--ccs .console { border-top: 4px solid var(--ccs-code-red); }
html.brand-variant--ccs .steps div { border: 1px solid var(--edge); border-radius: 2px; background: var(--ccs-ink); }
html.brand-variant--ccs .steps span { font: 400 13.5px/1.4 var(--font-body); color: var(--ccs-white); }
html.brand-variant--ccs .steps svg { stroke: var(--ccs-code-red); }
html.brand-variant--ccs .action-chips span {
  border: 1px solid var(--ccs-steel);
  border-radius: 2px;
  font: 700 12px/1 var(--font-accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ccs-white);
}
html.brand-variant--ccs .action-chips span.lead { border-color: var(--ccs-code-red); background: var(--ccs-code-red); color: var(--ccs-white); }

/* ---- connectivity ---- */
html.brand-variant--ccs .connect-card { border-top: 4px solid var(--ccs-code-red); }
html.brand-variant--ccs .source-group { border: 1px solid var(--edge); border-radius: 2px; background: var(--ccs-ink); }
html.brand-variant--ccs .source-group strong { color: var(--ccs-white); font-weight: 700; }
html.brand-variant--ccs .chips span {
  border: 1px solid var(--ccs-steel);
  border-radius: 2px;
  font: 700 11.5px/1 var(--font-accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ccs-steel-tint);
}
html.brand-variant--ccs .deploy { border-top: 4px solid var(--ccs-code-red); }
html.brand-variant--ccs .deploy b,
html.brand-variant--ccs .convert-copy b { color: var(--ccs-white); font-weight: 700; }

/* ---- conversion ---- */
html.brand-variant--ccs .convert { border: 1px solid var(--edge); border-top: 6px solid var(--ccs-code-red); border-radius: 2px; background: #0E0E0E; }
html.brand-variant--ccs .convert h2 { font-weight: 800; }
html.brand-variant--ccs .price-row span,
html.brand-variant--ccs .price-note,
html.brand-variant--ccs .hint,
html.brand-variant--ccs .avail { font: 400 12.5px/1.5 var(--font-body); color: var(--ccs-steel-tint); }
html.brand-variant--ccs .avail.ok { color: var(--ccs-white); }
html.brand-variant--ccs .avail.bad { color: #FF7A7A; }
html.brand-variant--ccs .joincard { border: 1px solid var(--ccs-steel); border-radius: 2px; background: var(--ccs-ink); }
html.brand-variant--ccs .slugrow .dom { color: var(--ccs-steel-tint); }

/* ---- faq + footer ---- */
html.brand-variant--ccs .faq { border-top: 1px solid var(--ccs-steel); }
html.brand-variant--ccs .faq details { border-bottom-color: var(--edge); }
html.brand-variant--ccs .faq summary { font-weight: 700; }
html.brand-variant--ccs .faq summary::before { font-family: var(--font-body); font-weight: 700; color: var(--ccs-code-red); }

html.brand-variant--ccs footer { border-top: 4px solid var(--ccs-code-red); }
html.brand-variant--ccs footer span { color: var(--ccs-steel-tint); }
html.brand-variant--ccs footer nav a {
  font: 700 12px/1 var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ccs-white);
}
html.brand-variant--ccs footer nav a:hover { color: var(--ccs-code-red); }

html.brand-variant--ccs .skip { border-radius: 0; background: var(--ccs-code-red); color: var(--ccs-white); }

/* ---- small screens ---- */
@media (max-width: 700px) {
  html.brand-variant--ccs .navbar { padding: 10px 12px 10px 16px; gap: 10px; }
  /* the lockup is the flex item that gives way; the image must shrink with it
     instead of sliding under the buttons */
  html.brand-variant--ccs .lockup { min-width: 0; flex: 0 1 auto; display: flex; align-items: center; }
  html.brand-variant--ccs .lockup-art { width: auto; height: auto; max-height: 36px; max-width: 100%; }
  html.brand-variant--ccs header .btn { min-height: 40px; padding: 0 14px; font-size: 12.5px; }
  /* the band is the hero box, so the copy needs its own inset from the band edge */
  html.brand-variant--ccs .hero { padding-inline: 20px; padding-top: 44px; padding-bottom: 44px; }
  html.brand-variant--ccs .badge { max-width: 100%; }
  html.brand-variant--ccs .badge span { white-space: normal; line-height: 1.35; }
  html.brand-variant--ccs .hero::before { clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  html.brand-variant--ccs .hero::after { clip-path: polygon(0 85%, 100% 71%, 100% 86%, 0 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html.brand-variant--ccs * { transition-duration: 0ms !important; }
}
