/* ============================================================
   KONFORMISTA: Suite theme for every page but the landing one. CONCEPT ONLY.
   Loaded after website/assets/site.css by the drafts that website-concepts/build_drafts.py
   writes: site.css keeps the layout, this sheet turns it into the grading suite of
   website-concepts/suite.html (neutral dark surround, Urbanist at 200, Instrument Serif
   italics, mono for timecode and labels, pill buttons, a light per finishing system).
   ============================================================ */

html.suite {
  /* the suite: neutral, nothing tinted */
  --ground: #0e0f10;
  --panel: #17181b;
  --raised: #1d1e22;
  --sunk: #121315;
  --inset: #22232a;
  --ink: #ecebe6;
  --ink-dim: #a3a199;
  --ink-mut: #8d8b83;
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.16);
  --line-dash: rgba(255, 255, 255, 0.24);
  --line-mut: rgba(255, 255, 255, 0.32);
  /* gold is the light: links, the playhead, the one main action */
  --gold: #e6bf68;
  --gold-hi: #f0cf85;
  --gold-fill: #d4a84a;
  --gold-fill-hi: #e6bf68;
  --gold-ink: #1a1408;
  --gold-line: rgba(212, 168, 74, 0.45);
  --gold-soft: rgba(212, 168, 74, 0.12);
  --night: #070708;
  --night-text: #ecebe6;
  --night-dim: #a3a199;
  --night-line: rgba(255, 255, 255, 0.08);
  --night-dash: rgba(255, 255, 255, 0.2);
  /* the app's severities, as they read on a dark screen */
  --sv-error: #e5555f;
  --sv-warning: #e8892c;
  --sv-review: #e3d050;
  --sv-rebuilt: #3b9fc9;
  --sv-info: #4fa05f;
  --sv-place: #a98be6;

  /* the names suite-timeline.css draws with */
  --suite-2: #141517;
  --dim: var(--ink-dim);
  --mut: var(--ink-mut);

  --serif: 'Instrument Serif', Georgia, serif;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --grid-dot: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
  --sys-a: var(--gold-hi);
  --sys-b: var(--gold-fill);
  color-scheme: dark;
}
html.suite body[data-sys="resolve"] { --sys-a: var(--resolve-a); --sys-b: var(--resolve-b); }
html.suite body[data-sys="baselight"] { --sys-a: var(--baselight-a); --sys-b: var(--baselight-b); }
html.suite body[data-sys="flame"] { --sys-a: var(--flame-a); --sys-b: var(--flame-b); }

/* film grain, as on the landing page */
html.suite body::after {
  content: ''; position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: no-preference) {
  html.suite body::after { animation: suite-grain .6s steps(5) infinite; }
}
@keyframes suite-grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- type ---------- */
.suite .display, .suite .h1 { font-weight: 200; letter-spacing: -0.032em; }
.suite .display--route { font-size: clamp(44px, 6.2vw, 96px); line-height: 0.98; }
.suite .display em, .suite .h2 em, .suite .r-sec h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--sys-a), var(--sys-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}
.suite .h2, .suite .r-sec h2, .suite .doc-section h2, .suite .cta-band .h2 { font-weight: 200; letter-spacing: -0.025em; }
.suite .h2 { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.02; }
.suite .r-sec h2 { font-size: clamp(30px, 3.2vw, 46px); }
.suite .eyebrow {
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; color: var(--ink-dim);
  display: flex; align-items: center; gap: 10px;
}
.suite .eyebrow::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 3px 3px 50% 50%; background: var(--sys-b); }
.suite .lead, .suite .section-lead, .suite .r-lead { color: var(--ink-dim); }
.suite code, .suite .mono { color: var(--ink); }

/* ---------- buttons ---------- */
.suite .btn { border-radius: 999px; padding: 0 24px; }
.suite .btn--sm { padding: 0 18px; }
.suite .btn--gold:hover { box-shadow: 0 10px 30px -10px rgba(212, 168, 74, 0.6); }
.suite .btn--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-hi); }
.suite .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.35); }
.suite .btn--dark { background: var(--ink); color: #111; }
.suite .btn--dark:hover { background: #fff; color: #111; }
.suite .tag { border-color: color-mix(in oklab, var(--sys-a) 55%, transparent); color: var(--sys-a); }

/* ---------- header and footer ---------- */
.suite .site-header { background: rgba(14, 15, 16, 0.82); border-bottom-color: var(--line); }
.suite.js .site-header:not(.is-scrolled):not(.is-open) { background: rgba(14, 15, 16, 0); }
.suite .site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9); }
.suite .brand .word { font-weight: 300; letter-spacing: 0.16em; color: var(--gold-hi); }
.suite .nav-link { color: var(--ink-dim); }
.suite .nav-link:hover { color: var(--ink); }
.suite .nav-link[aria-current="page"], .suite .nav-item.is-current > .nav-link { color: var(--ink); border-bottom-color: var(--gold-fill); }
.suite .systems-menu { background: #16171a; border-color: var(--line-hi); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.suite .sm-item:hover { background: rgba(255, 255, 255, 0.04); }
.suite .sm-card { background: rgba(255, 255, 255, 0.04); }
@media (max-width: 960px) {
  .suite .site-nav { background: var(--ground); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.9); }
}
.suite .site-footer { background: #0a0b0c; border-top: 1px solid var(--line); }
.suite .foot-col a { color: var(--ink-dim); }
.suite .foot-col a:hover { color: var(--ink); }
.suite .foot-head { font-family: var(--mono); letter-spacing: 0.12em; }

/* ---------- surfaces ---------- */
.suite .section--panel { background: var(--sunk); border-color: var(--line); }
.suite .band--night { background: var(--night); }
.suite .card, .suite .panel-card, .suite .form-card, .suite .dl-platform, .suite .glance,
.suite .table-box, .suite .compare-box, .suite .route-card, .suite .callout {
  background: var(--panel); border-color: var(--line);
}
.suite .window, .suite .shot-frame { border-color: var(--line-hi); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1); }
.suite input[type="email"], .suite input[type="text"] { background: rgba(255, 255, 255, 0.04); border-color: var(--line-hi); color: var(--ink); }
.suite .choice-item { background: rgba(255, 255, 255, 0.03); }
.suite .choice-item:has(input:checked) { background: var(--gold-soft); }
.suite .dl-item { background: rgba(255, 255, 255, 0.03); transition: border-color .2s ease, transform .2s var(--ease-out); }
.suite .dl-item:hover { transform: translateX(2px); }
.suite .dl-os { font-weight: 200; font-size: 40px; letter-spacing: -0.02em; }
.suite .doc-section code { background: rgba(255, 255, 255, 0.06); }
.suite .callout { border-left-color: var(--gold-fill); }
.suite .callout .k { font-family: var(--mono); letter-spacing: 0.12em; }
.suite .crumbs a, .suite .crumbs li + li::before { color: var(--ink-mut); }
.suite .dot--carried { background: var(--ink); }
.suite .dot--stand-in { border-color: var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }

/* ---------- route pages: the head is lit in the system's own colour ---------- */
.suite .route-head { position: relative; overflow: hidden; padding-bottom: 104px; }
.suite .route-head::before, .suite .route-head::after { content: ''; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.suite .route-head::before {
  width: 60%; height: 120%; left: -15%; bottom: -70%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--sys-b) 50%, transparent), transparent);
}
.suite .route-head::after {
  width: 45%; height: 90%; right: -8%; top: -45%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--sys-a) 22%, transparent), transparent);
}
.suite .route-head > .wrap { position: relative; z-index: 1; }
.suite .glance { background: rgba(23, 24, 27, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.suite .glance dt { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mut); }
.suite .toc a.is-active::before { background: var(--sys-b); }
.suite .rows dt { font-weight: 500; }
.suite .send-steps li::before { border-color: color-mix(in oklab, var(--sys-a) 50%, transparent); color: var(--sys-a); }
.suite .route-card { transition: transform .25s var(--ease-out), border-color .25s ease; }
.suite .route-card:hover { transform: translateY(-3px); }
.suite .route-card-title { font-weight: 200; font-size: 30px; }
.suite a.route-card[href*="resolve"] .route-card-title { --sys-a: var(--resolve-a); --sys-b: var(--resolve-b); }
.suite a.route-card[href*="baselight"] .route-card-title { --sys-a: var(--baselight-a); --sys-b: var(--baselight-b); }
.suite a.route-card[href*="flame"] .route-card-title { --sys-a: var(--flame-a); --sys-b: var(--flame-b); }
.suite a.route-card[href*="compare"] .route-card-title { --sys-a: var(--gold-hi); --sys-b: var(--gold-fill); }
.suite .route-card-title {
  background: linear-gradient(100deg, var(--sys-a), var(--sys-b)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.suite .route-card-title .tag { -webkit-text-fill-color: currentColor; }

/* the rebuild drawing that takes the "screenshot to come" slot */
.suite .rebuild { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-hi); background: var(--suite-2, #141517); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1); }
.suite .rebuild-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); font: 500 12px var(--mono); color: var(--ink-dim); }
.suite .rebuild-head b { font: 600 14px var(--sans); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.suite .rebuild-head b::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--sys-a); }
.suite .rebuild-says { margin: 18px auto 0; max-width: 860px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--night-dim); }
.suite .rebuild-says b { color: var(--night-text); }
.suite .rebuild + .shot-frame, .suite .rebuild ~ .shot-frame { margin-top: 40px; }

/* ---------- compare: each column in its system's light ---------- */
.suite .compare thead th { background: var(--panel); }
.suite .compare thead th:nth-child(2) { --sys-a: var(--resolve-a); --sys-b: var(--resolve-b); }
.suite .compare thead th:nth-child(3) { --sys-a: var(--baselight-a); --sys-b: var(--baselight-b); }
.suite .compare thead th:nth-child(4) { --sys-a: var(--flame-a); --sys-b: var(--flame-b); }
.suite .compare .c-name { font-family: var(--display); font-weight: 300; font-size: 22px; }
.suite .compare thead th .c-name { background: linear-gradient(100deg, var(--sys-a), var(--sys-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.suite .compare thead th .c-name .tag { -webkit-text-fill-color: currentColor; color: var(--sys-a); }
.suite .compare tbody td:nth-child(2) { --sys-a: var(--resolve-a); --sys-b: var(--resolve-b); }
.suite .compare tbody td:nth-child(3) { --sys-a: var(--baselight-a); --sys-b: var(--baselight-b); }
.suite .compare tbody td:nth-child(4) { --sys-a: var(--flame-a); --sys-b: var(--flame-b); }
.suite .compare td .dot--carried { background: linear-gradient(135deg, var(--sys-a), var(--sys-b)); }
.suite .compare td .dot--stand-in { border-color: var(--sys-a); background: linear-gradient(90deg, var(--sys-a) 50%, transparent 50%); }
.suite .compare tr.group th { background: var(--sunk); font-family: var(--mono); letter-spacing: 0.12em; }
.suite .compare tbody th[scope="row"] { background: var(--raised); }
.suite .compare tbody tr:hover td, .suite .compare tbody tr:hover th[scope="row"] { background: rgba(255, 255, 255, 0.025); }
.suite .from-pill { background: var(--ink); color: #111; }
.suite .section-tabs { background: var(--sunk); }

/* ---------- docs ---------- */
.suite .doc-nav .grp { font-family: var(--mono); letter-spacing: 0.12em; }
.suite .doc-nav a.active { border-left-color: var(--gold-fill); }
.suite .page-head h1 { font-weight: 200; }

/* ---------- the closing band sits on the node canvas ---------- */
.suite .cta-band .h2 { font-size: clamp(36px, 4.4vw, 64px); }

/* ---------- the draft badge ---------- */
.draft-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 1000; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border-radius: 999px; background: rgba(20, 21, 23, 0.9); border: 1px solid var(--line-hi);
  font: 600 12px var(--sans); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.draft-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-fill); }
.draft-badge:hover { color: var(--ink); border-color: var(--gold-line); }

/* The Products menu: the Systems menu's look, one list and a card */
.suite .products-menu { width: min(620px, calc(100vw - 2 * var(--gutter))); grid-template-columns: minmax(0, 1fr) 220px; }
.suite .products-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.suite .sm-item[aria-current="page"] .sm-name { color: var(--gold-hi); }
html:not(.js) .nav-item--products:hover .products-menu,
html:not(.js) .nav-item--products:focus-within .products-menu { display: grid; }
@media (max-width: 960px) { .suite .products-menu { width: auto; grid-template-columns: minmax(0, 1fr); } }
