/* Kurikara Labs: the homepage (static landing, owner-approved 20 Nov 2026; sections below the hero: H2 · Console,
   owner approved 23 Nov 2026). Loaded after site.css on the homepage only. The hero (copy, buttons, the live attack
   graphic and its log) is unchanged; drawn imagery only (the emblem, canvas linework, the portal drawing), never film stills. */

/* Buttons that are <button> elements match the link buttons. */
button.btn { border: 0; cursor: pointer; }
button.btn.ghost { border: 1px solid var(--line-strong); }
button.btn.ghost:hover { border-color: var(--teal-300); }
.nw { white-space: nowrap; }

/* ---------------------------------------------------------------- landing */
.landing { position: relative; isolation: isolate; padding: var(--section-y) 0 var(--sp-7); overflow: hidden;
  /* H2 · Console (23 Nov 2026): the two path cards left the hero, which now ends under the radar log (no full-screen
     minimum height, no chat-button clearance row). */
  background: radial-gradient(60% 70% at 78% 38%, var(--teal-a12), transparent 70%), linear-gradient(180deg, var(--navy-950), var(--navy-850) 80%); }
.landing > .wrap { width: 100%; }   /* grid items with auto margins shrink to fit; fill the frame like every other section */
.landing::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--teal-a06) 1px, transparent 1px), linear-gradient(90deg, var(--teal-a06) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(80% 80% at 70% 40%, black 30%, transparent 85%); -webkit-mask-image: radial-gradient(80% 80% at 70% 40%, black 30%, transparent 85%); }
.ld-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.ld-copy .eyebrow { color: var(--teal-300); margin-bottom: 22px; }
.ld-h1 { font: var(--fw-h1) var(--fs-4xl)/var(--lh-h1) var(--display); letter-spacing: var(--tr-tight); color: var(--white); max-width: 14ch; }
/* Round-2 fix (21 Nov 2026): the shop owner's line "Fixes applied for you." on the first screen, under the headline. */
.ld-sub { margin-top: 18px; font: 600 var(--fs-xl)/1.3 var(--display); letter-spacing: var(--tr-tight); color: var(--teal-300); }
.ld-sub span { font-weight: 500; color: var(--ink-200); }
.ld-sub + .ld-lede { margin-top: 16px; }
.ld-lede { margin-top: 26px; max-width: 56ch; font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--ink-200); }
.ld-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.ld-facts li { padding: 8px 12px; border-top: 1px solid var(--teal-300); background: color-mix(in srgb, var(--navy-950) 55%, transparent);
  font: 500 var(--fs-sm)/1.2 var(--display); color: var(--ink-50); }   /* T4: short phrases, sans */
.ld-facts li b { color: var(--teal-300); font-weight: 600; }
.ld-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* The defense stage: a live perimeter. Attacks arrive from outside, the edge stops them, the AI core reviews each one. */
.ld-visual { justify-self: center; width: min(100%, 460px); }
.ld-stage { position: relative; aspect-ratio: 1; width: 100%; }
.ld-stage canvas { position: absolute; left: -16%; top: -16%; width: 132%; height: 132%; pointer-events: none; }
.ld-emblem { position: absolute; left: 50%; top: 50%; width: 26.5%; transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 26px var(--teal-a24)); transition: filter var(--dur-slow); }
.ld-emblem.pulse { filter: drop-shadow(0 0 46px color-mix(in srgb, var(--teal-400) 65%, transparent)); transition: filter var(--dur-fast); }
/* Phones and tablets (B4), where the stage is hidden: the emblem at 112 px above the eyebrow, left-aligned, with
   clear space of a quarter of its width below it. Never shown beside the stage, so it appears once per page. */
.ld-mark { display: none; width: 112px; height: auto; margin: 0 0 28px; }
@media (max-width: 1023px) { .ld-mark { display: block; } }
.ld-status { position: relative; margin: 30px 0 0; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--teal-300); }
.ld-status i { width: 7px; height: 7px; border-radius: var(--r-full); background: var(--teal-300); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 var(--teal-a60); } 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--teal-400) 0%, transparent); } }
.ld-log { position: relative; display: grid; gap: 6px; min-height: 70px; margin: 12px 0 0; padding: 0; list-style: none; align-content: start; }
.ld-log li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: baseline; padding: 8px 14px;
  border-left: 2px solid var(--teal-300); background: linear-gradient(90deg, color-mix(in srgb, var(--navy-950) 92%, transparent), color-mix(in srgb, var(--navy-950) 45%, transparent));
  font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); animation: logIn var(--dur-slow) var(--ease-decelerate) both; }
.ld-log li:nth-child(2) { opacity: 0.5; }
.ld-log .k { color: var(--amber-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-log .o { color: var(--teal-300); white-space: nowrap; }
@keyframes logIn { from { transform: translateY(-6px); opacity: 0; } }

/* ---------------------------------------------------------------- below the hero: H2 · Console (owner approved, 23 Nov 2026)
   Light and navy sections alternate under the hero, then the teal close. The heading (.head), card (.card), link (.lnk)
   and light surface (.light) are the shared system in assets/css/system.css; only the homepage's own parts are here. */
.home-sec { padding: var(--section-y) 0; }

/* How it works (navy-950 with one teal glow): four steps beside the client portal drawing. */
.home-tour { background: radial-gradient(60% 70% at 80% 40%, var(--teal-a06), transparent 70%), var(--navy-950); }
.tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-7); align-items: start; }
.tour-steps { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.tour-steps li { border: 1px solid transparent; border-radius: var(--r-md); transition: background var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard); }
/* Each step is a tab (owner, 24 Nov 2026: the four steps switch on click). */
.tour-steps .ts-btn { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--sp-4); width: 100%; padding: var(--sp-5); margin: 0; border: 0; border-radius: var(--r-md); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tour-steps .ts-btn:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 2px; }
.tour-steps li:not(.on):hover { background: color-mix(in srgb, var(--navy-825) 55%, transparent); border-color: var(--line); }
.tour-steps li:not(.on):hover .h3 { color: var(--ink-50); }
.tour-steps .ts-t { display: block; min-width: 0; }
.tour-steps .ts-t .h3 { display: block; }
.tour-steps li.on { background: var(--navy-825); border-color: var(--line); box-shadow: var(--edge-hi), inset 3px 0 0 var(--teal-400); }
.ts-n { font: 500 var(--fs-xs)/1.9 var(--mono); letter-spacing: var(--tr-label); color: var(--ink-400); }
.tour-steps li.on .ts-n { color: var(--teal-300); }
.tour-steps .h3 { margin: 0; color: var(--ink-50); }
.tour-steps li:not(.on) .h3 { color: var(--ink-200); }
.tour-steps .ts-d { display: block; margin: var(--sp-1) 0 0; color: var(--ink-200); }

/* The drawing, framed. Markup and primitives as on the /platform/ hero (assets/css/platform.css), scoped here so its
   generic class names (.row, .tile, .chip) touch nothing else on the page. */
.tour-stage { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md);
  background: radial-gradient(120% 140% at 50% 0%, var(--navy-800), var(--navy-850) 90%); box-shadow: var(--e2); }
.tour-art { position: relative; min-width: 0; padding: 10px 0 132px 28px; }
/* The four views share one cell, so the stage keeps the tallest height and never jumps. */
.tour-views { display: grid; }
.tour-view { grid-area: 1 / 1; min-width: 0; transition: opacity var(--dur-slow) var(--ease-standard), visibility var(--dur-slow); }
.tour-view:not(.on) { visibility: hidden; opacity: 0; }
.tour-stage .ui-h.sub, .tour-stage .rows + .ui-h { margin-top: 14px; }
.tour-stage .row.field { background: color-mix(in srgb, var(--navy-950) 55%, transparent); }
.tour-stage .row.field b { font-family: var(--mono); font-weight: 400; }
.tour-stage .sev.ok { background: var(--teal-400); }
.tour-stage .ui { position: relative; background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--e1); color: var(--ink-200); font: 400 var(--fs-sm)/1.4 var(--display); text-align: left; }
.tour-stage .ui-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--navy-950) 55%, transparent); white-space: nowrap; }
.tour-stage .ui-bar .dots { display: flex; gap: 6px; margin-right: 4px; }
.tour-stage .ui-bar .dots i { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--line); }
.tour-stage .ui-bar .t { font: 600 var(--fs-xs)/1 var(--display); color: var(--ink-50); }
.tour-stage .ui-bar .crumb { font: 400 var(--fs-xs)/1 var(--mono); color: var(--ink-400); overflow: hidden; text-overflow: ellipsis; }
.tour-stage .ui-bar .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.tour-stage .ui-body { padding: 14px; }
.tour-stage .ui-main .ui-body { padding: 14px 16px 16px; }
.tour-stage .ui-h { display: flex; align-items: baseline; gap: 10px; font: 600 var(--fs-sm)/1.2 var(--display); color: var(--ink-50); }
.tour-stage .ui-h span { font: 400 var(--fs-xs)/1 var(--display); color: var(--ink-400); }
.tour-stage .ui-split { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.tour-stage .ui-side { padding: 12px 8px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--navy-950) 35%, transparent); display: grid; gap: 2px; align-content: start; }
.tour-stage .ui-side span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; font-size: var(--fs-xs); color: var(--ink-400); }
.tour-stage .ui-side span::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: currentColor; opacity: 0.35; }
.tour-stage .ui-side span.on { background: var(--teal-a12); color: var(--ink-50); }
.tour-stage .rows { display: grid; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tour-stage .row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: color-mix(in srgb, var(--navy-950) 25%, transparent); min-width: 0; }
.tour-stage .row + .row { border-top: 1px solid var(--line); }
.tour-stage .row b { font-weight: 500; color: var(--ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tour-stage .row .end { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.tour-stage .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--r-xs); border: 1px solid var(--line); font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: var(--tr-label); color: var(--ink-200); white-space: nowrap; }
.tour-stage .chip.ok { color: var(--teal-300); border-color: var(--teal-a40); background: var(--teal-a06); }
.tour-stage .chip.risk { color: var(--red-300); border-color: color-mix(in srgb, var(--red-500) 60%, transparent); background: color-mix(in srgb, var(--red-500) 12%, transparent); }
.tour-stage .btn-ui { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font: 500 var(--fs-xs)/1 var(--display); color: var(--ink-50); white-space: nowrap; }
.tour-stage .btn-ui.pri { background: var(--teal-400); border-color: transparent; color: var(--navy-950); }
.tour-stage .sev { width: 8px; height: 8px; border-radius: var(--r-xs); flex: none; background: var(--ink-400); }
.tour-stage .sev.crit { background: var(--red-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-500) 25%, transparent); }
.tour-stage .sev.high { background: var(--red-400); }
.tour-stage .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tour-stage .tile { padding: 10px 11px; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--navy-950) 30%, transparent); min-width: 0; }
.tour-stage .tile .l { display: block; font-size: var(--fs-xs); color: var(--ink-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-stage .tile svg { display: block; width: 100%; height: 30px; margin: 8px 0 6px; overflow: visible; }
.tour-stage .spark { fill: none; stroke: var(--teal-400); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tour-stage .spark.risk { stroke: var(--red-400); }
.tour-stage .ui-float { position: absolute; z-index: 2; box-shadow: var(--e1), 0 0 0 1px var(--teal-a12); }
.tour-stage .f-server { left: 0; bottom: 0; width: min(330px, 52%); }
.tour-stage .tele { display: grid; gap: 8px; padding: 12px 14px; }
.tour-stage .tele-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: var(--fs-xs); }
.tour-stage .tele-row svg { width: 100%; height: 22px; overflow: visible; }
.tour-stage .f-alert { right: 0; bottom: 16px; width: min(290px, 44%); background: linear-gradient(180deg, var(--navy-700), var(--navy-850)); }
.tour-stage .al-top { display: flex; align-items: center; gap: 8px; }
.tour-stage .al-top b { font-weight: 600; color: var(--ink-50); font-size: 13px; }
.tour-stage .al-m { margin: 6px 0 0; font: 400 var(--fs-xs)/1.4 var(--mono); color: var(--ink-400); }
.tour-stage .al-act { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* The film (navy): one panel to /film/ with the chapter list. No stills. */
.home-film { background: var(--navy-900); }

/* The close: the shared teal band (.cta-band.close-full) with the centered row (.close-actions), at 64 px. */
body .cta-band.home-end { padding: var(--sp-8) 0; }

@media (prefers-reduced-motion: reduce) { .film-panel, .fp-play, .tour-view, .tour-steps li { transition: none; } }

/* Reduced motion: final states, nothing drifts or pulses. */
@media (prefers-reduced-motion: reduce) {
  .ld-status i, .ld-log li { animation: none; }
}

/* ---------------------------------------------------------------- narrower screens */
/* Narrower desktops: the portal drops its side menu so the action rows keep their full text (as on /platform/). */
@media (max-width: 1279px) {
  .tour-stage .ui-main .ui-split { grid-template-columns: minmax(0, 1fr); }
  .tour-stage .ui-main .ui-side { display: none; }
}
@media (max-width: 1023px) {
  .ld-grid { grid-template-columns: 1fr; }
  .ld-visual { display: none; }
  .ld-h1 { max-width: 16ch; }
  .tour { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .landing { padding-top: 104px; }
  .ld-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .tour-steps .ts-btn { padding: var(--sp-4); }
  /* Phones: the portal shows its three most serious actions, without the status tiles or floating cards (as on /platform/). */
  .tour-art { padding: 0; }
  .tour-stage .ui-float, .tour-stage .ui-main .ui-bar .crumb, .tour-stage .ui-main .tiles, .tour-stage .ui-main .row:not(.field) .btn-ui, #tour-view-03 .ui-main .row:nth-child(n+4) { display: none; }
  /* Phones: the view sits above the steps, so a tap changes what is on screen; only the active step keeps its line,
     and an inactive view takes no space. */
  .tour-stage { order: -1; }
  .tour-view:not(.on) { display: none; }
  .tour-steps li:not(.on) .ts-d { display: none; }
  .tour-stage .ui-main .row { align-items: flex-start; }
  .tour-stage .ui-main .row .sev { margin-top: 6px; }
  .tour-stage .ui-main .row b { white-space: normal; overflow: visible; }
}

/* ================================================================ homepage v2 (owner, 24 Nov 2026)
   "NO plain flat bgs", "not the same icon sections on every page", "no massive platform mockups", "modern and lively".
   Every section below the hero has a layered ground (gradients, glows, a faint masked grid or contour lines) and its own
   component: the Why bento of live console tiles, the How it works tour at a supporting size, the Solutions index, the
   film panel with an animated edge, the teal close with light. Elements marked [data-reveal] rise in on scroll
   (js/landing.js adds .reveal-on to <html>, then .in per element); without script everything simply shows. */

/* ---------------------------------------------------------------- scroll reveal */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-decelerate), transform .7s var(--ease-decelerate); transition-delay: var(--d, 0s); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- layered light ground (Why, Solutions) */
body .home-sec.light { position: relative; isolation: isolate; overflow: clip;
  background:
    radial-gradient(45% 60% at 0% 0%, color-mix(in srgb, var(--teal-400) 14%, transparent), transparent 70%),
    radial-gradient(40% 55% at 100% 100%, color-mix(in srgb, var(--navy-700) 12%, transparent), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--paper-2)); }
/* The texture: faint topographic contour lines (owner, 24 Nov 2026: "i dont like the dots in the bg...use another
   concept"). /img/bg-contours.svg is a static line drawing used as a mask, so the lines take the teal-ink token here; a
   second, radial mask layer fades them out toward the copy. Same layer as on the company pages (assets/css/company.css).
   The SVG is cached for a year: give a redrawn one a new file name. */
body .home-sec.light::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--teal-ink) 20%, transparent);
  -webkit-mask-image: url(/img/bg-contours.svg), radial-gradient(60% 70% at 85% 20%, black, transparent 75%);
  mask-image: url(/img/bg-contours.svg), radial-gradient(60% 70% at 85% 20%, black, transparent 75%);
  -webkit-mask-size: cover, 100% 100%; mask-size: cover, 100% 100%; -webkit-mask-position: 100% 0, 0 0; mask-position: 100% 0, 0 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-composite: source-in; mask-composite: intersect; }
body .home-sol.light { background:
    radial-gradient(50% 70% at 100% 0%, color-mix(in srgb, var(--teal-400) 13%, transparent), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, color-mix(in srgb, var(--navy-700) 10%, transparent), transparent 70%),
    linear-gradient(180deg, var(--paper-2), var(--paper)); }
/* Solutions: the contours over the whole section (faint everywhere, stronger bottom-left). */
body .home-sol.light::before {
  -webkit-mask-image: url(/img/bg-contours.svg), radial-gradient(95% 120% at 12% 88%, black 15%, rgb(0 0 0 / .4) 70%);
  mask-image: url(/img/bg-contours.svg), radial-gradient(95% 120% at 12% 88%, black 15%, rgb(0 0 0 / .4) 70%);
  -webkit-mask-position: 0 100%, 0 0; mask-position: 0 100%, 0 0; }

/* ---------------------------------------------------------------- Why: the bento of live console tiles */
.why-bento { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: var(--sp-5); }
.why-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; overflow: hidden;
  padding: var(--sp-6); border-radius: calc(var(--r-md) + 4px); color: var(--ink-200); text-decoration: none;
  background: radial-gradient(80% 90% at 100% 0%, color-mix(in srgb, var(--teal-400) 16%, transparent), transparent 60%), linear-gradient(160deg, var(--navy-850), var(--navy-950));
  border: 1px solid color-mix(in srgb, var(--teal-400) 18%, var(--navy-800));
  box-shadow: 0 24px 60px -28px color-mix(in srgb, var(--navy-950) 70%, transparent), var(--edge-hi);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard); }
.why-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--teal-a06) 1px, transparent 1px), linear-gradient(90deg, var(--teal-a06) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(200deg, black, transparent 60%); mask-image: linear-gradient(200deg, black, transparent 60%); }
.why-tile:hover { transform: translateY(-3px); border-color: var(--teal-a40); box-shadow: 0 32px 70px -30px color-mix(in srgb, var(--teal-400) 35%, transparent), var(--edge-hi); }
.why-tile:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 3px; }
.reveal-on .why-tile[data-reveal].in:hover { transform: translateY(-3px); }
.why-triage { grid-row: 1 / span 2; }
.wt-copy { display: block; position: relative; z-index: 1; }
.wt-n { display: block; margin-bottom: var(--sp-3); font: 500 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); color: var(--teal-300); }
.why-tile .h3 { margin: 0; color: var(--ink-50); }
.wt-p { display: block; margin-top: var(--sp-2); font-size: var(--fs-md); color: var(--ink-200); }
.light .why-tile .lnk { margin-top: var(--sp-4); color: var(--teal-300); }
.wt-viz { position: relative; display: block; min-width: 0; flex: 1 1 auto; }
.why-fix, .why-report { flex-direction: row; align-items: center; }
.why-fix .wt-copy, .why-report .wt-copy { flex: 0 0 46%; }

/* the AI triage feed: rows stream upward under a scan line; each carries its verdict */
.tri { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy-950) 70%, transparent), color-mix(in srgb, var(--navy-900) 80%, transparent)); }
.tri-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font: 600 var(--fs-sm)/1 var(--display); color: var(--ink-50); }
.tri-bar em { margin-left: auto; padding: 4px 8px; border: 1px solid var(--teal-a40); border-radius: var(--r-xs); font: 500 var(--fs-xs)/1 var(--mono); font-style: normal; color: var(--teal-300); }
.tri-dot { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--teal-400); box-shadow: 0 0 0 0 var(--teal-a40); animation: kk-ping 2s var(--ease-standard) infinite; }
.tri-win { position: relative; height: 268px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, black 14%, black 86%, transparent); mask-image: linear-gradient(180deg, transparent, black 14%, black 86%, transparent); }
.tri-rows { display: flex; flex-direction: column; animation: kk-stream 18s linear infinite; }
.tri-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.tri-row b { overflow: hidden; font-weight: 500; color: var(--ink-50); white-space: nowrap; text-overflow: ellipsis; }
.tri-row .sv { width: 8px; height: 8px; border-radius: var(--r-full); }
.sv.crit { background: var(--red-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-500) 25%, transparent); }
.sv.high { background: var(--amber-400); }
.sv.ok { background: var(--teal-400); }
.vd { padding: 4px 8px; border-radius: var(--r-xs); font: 500 var(--fs-xs)/1 var(--mono); font-style: normal; border: 1px solid; }
.vd.esc { color: var(--red-300); border-color: color-mix(in srgb, var(--red-400) 45%, transparent); background: color-mix(in srgb, var(--red-500) 12%, transparent); }
.vd.inv { color: var(--amber-400); border-color: color-mix(in srgb, var(--amber-400) 45%, transparent); }
.vd.ok { color: var(--teal-300); border-color: var(--teal-a40); }
.tri-scan { position: absolute; left: 0; right: 0; top: 0; height: 56px; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--teal-400) 16%, transparent) 70%, var(--teal-a40) 100%); border-bottom: 1px solid var(--teal-a60);
  animation: kk-scan 4.5s var(--ease-standard) infinite; }

/* the fix queue: each bar fills in turn, then "Applied" lights up; the loop restarts */
.fixq { display: grid; gap: 10px; }
.fq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--navy-950) 60%, transparent); }
.fq-row b { font-weight: 600; font-size: var(--fs-sm); color: var(--ink-50); }
.fq-m { grid-row: 2; font: 400 var(--fs-xs)/1 var(--mono); color: var(--ink-400); }
.fq-row em { grid-row: 1 / span 2; grid-column: 2; padding: 4px 8px; border: 1px solid var(--teal-a40); border-radius: var(--r-xs); font: 500 var(--fs-xs)/1 var(--mono); font-style: normal; color: var(--teal-300);
  opacity: .25; animation: kk-applied 9s var(--ease-standard) infinite; }
.fq-bar { grid-column: 1; height: 4px; border-radius: var(--r-full); background: var(--line); overflow: hidden; }
.fq-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-600), var(--teal-300)); transform-origin: left; transform: scaleX(0);
  animation: kk-fill 9s var(--ease-standard) infinite; }
.fq-row:nth-child(2) .fq-bar i, .fq-row:nth-child(2) em { animation-delay: 1.2s; }
.fq-row:nth-child(3) .fq-bar i, .fq-row:nth-child(3) em { animation-delay: 2.4s; }

/* the monthly report: two pages, the front one floating */
.rep { position: relative; display: block; height: 190px; }
.rep img { position: absolute; top: 0; width: 128px; height: auto; border-radius: 6px; box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--black) 70%, transparent); }
.rep-back { right: 64px; transform: rotate(-8deg) translateY(12px); opacity: .55; filter: saturate(.6); }
.rep-front { right: 8px; transform: rotate(5deg); }   /* static (owner, 24 Nov 2026: "take away animation for the report") */

/* ---------------------------------------------------------------- How it works: layered navy, the drawing at a supporting size */
.home-tour { position: relative; isolation: isolate; overflow: clip;
  background: radial-gradient(45% 60% at 85% 45%, color-mix(in srgb, var(--teal-400) 14%, transparent), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, var(--teal-400) 7%, transparent), transparent 70%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.home-tour::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--teal-a06) 1px, transparent 1px), linear-gradient(90deg, var(--teal-a06) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(55% 70% at 80% 50%, black 20%, transparent 80%); mask-image: radial-gradient(55% 70% at 80% 50%, black 20%, transparent 80%); }
@media (min-width: 1024px) { .tour { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; } }
.tour-stage { box-shadow: var(--e2), 0 0 0 1px var(--teal-a12), 0 40px 90px -40px color-mix(in srgb, var(--teal-400) 40%, transparent); }
.tour-stage .tour-views { zoom: .9; }

/* ---------------------------------------------------------------- Solutions: the editorial index */
.sol-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--paper-line-strong); }
.sol-list li { border-bottom: 1px solid var(--paper-line-strong); }
.sol-row { position: relative; isolation: isolate; display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 4fr) auto; gap: var(--sp-5); align-items: center;
  padding: var(--sp-6) var(--sp-5); color: var(--paper-ink); text-decoration: none; overflow: hidden; }
.sol-row::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, color-mix(in srgb, var(--teal-400) 18%, transparent), color-mix(in srgb, var(--teal-400) 4%, transparent) 70%, transparent);
  transition: transform .5s var(--ease-decelerate); }
.sol-row:hover::before, .sol-row:focus-visible::before { transform: scaleX(1); }
.sol-row:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: -2px; }
.sr-n { font: 500 var(--fs-sm)/1 var(--mono); letter-spacing: var(--tr-label); color: var(--paper-ink-2); transition: color var(--dur-base) var(--ease-standard); }
.sr-h { font: 600 var(--fs-3xl)/1.05 var(--display); letter-spacing: var(--tr-tight); color: var(--paper-ink); transition: transform .5s var(--ease-decelerate); }
.sr-p { font-size: var(--fs-lg); color: var(--paper-ink-2); }
.sr-go { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: 600; color: var(--teal-ink); white-space: nowrap; }
.sr-go i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--paper-line-strong); border-radius: var(--r-full); font-style: normal;
  transition: background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard), transform .5s var(--ease-decelerate), border-color var(--dur-base); }
.sol-row:hover .sr-n, .sol-row:focus-visible .sr-n { color: var(--teal-ink); }
.sol-row:hover .sr-h, .sol-row:focus-visible .sr-h { transform: translateX(8px); }
.sol-row:hover .sr-go i, .sol-row:focus-visible .sr-go i { background: var(--teal-400); border-color: var(--teal-400); color: var(--navy-950); transform: translateX(4px); }
.home-sol .lnk-row { margin-top: var(--sp-6); }
/* How it works: the drawing framed evenly (owner, 24 Nov 2026: "the platform mockups need to be framed better. they
   arent centered now and padding isnt equal"). The stage has the same padding on all four sides; the drawing sits
   centered inside it, and the floating cards hang from its lower corners inside that padding, never past the edge. */
.home-tour .tour-stage { padding: var(--sp-6); display: grid; place-items: center; }
.home-tour .tour-views { width: 100%; }
.home-tour .tour-art { padding: 0 0 142px; }   /* the floating cards hang below the tiles, never over them */
.home-tour .tour-view { align-self: center; }   /* shorter views sit in the middle of the shared cell: equal space above and below */
.home-tour .tour-stage .f-server { left: 0; bottom: 0; }
.home-tour .tour-stage .f-alert { right: 0; bottom: 0; }
@media (max-width: 767px) { .home-tour .tour-stage { padding: var(--sp-4); } .home-tour .tour-art { padding: 0; } }

/* ---------------------------------------------------------------- the film: layered navy, animated edge, pulsing play, chapter timeline */
.home-film { position: relative; isolation: isolate; overflow: clip;
  background: radial-gradient(50% 80% at 50% 0%, color-mix(in srgb, var(--teal-400) 12%, transparent), transparent 70%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.home-film::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--teal-a06) 1px, transparent 1px), linear-gradient(90deg, var(--teal-a06) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 50%, black 10%, transparent 75%); mask-image: radial-gradient(60% 80% at 50% 50%, black 10%, transparent 75%); }
.film-panel { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; padding: var(--sp-7);
  border: 1px solid transparent; border-radius: calc(var(--r-md) + 6px); color: inherit; text-decoration: none;
  background: radial-gradient(70% 120% at 0% 50%, color-mix(in srgb, var(--teal-400) 14%, transparent), transparent 60%) padding-box,
    linear-gradient(160deg, var(--navy-825), var(--navy-900)) padding-box;
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--teal-400) 45%, transparent); }
/* The animated edge (performance, 25 Nov 2026): the same turning conic light in the 1 px border, now turned by the GPU.
   It was a conic-gradient border layer whose angle animated, which repainted the whole panel and its 80 px shadow on
   every display frame. .fp-edge covers the panel's border box and is masked to its 1 px border ring (outer and inner
   radius as before); inside it a square wider than the panel's diagonal carries the same conic gradient, centred on
   the panel, and rotates. It paints above the copy, but only in the ring, where the copy never reaches; z-index: 1
   paints it after the page's other content, so the browser keeps that content in its usual layers. The section
   (.home-film, overflow: clip) clips the square. */
.fp-edge { position: absolute; z-index: 1; inset: -1px; border: 1px solid transparent; border-radius: calc(var(--r-md) + 6px); pointer-events: none; container-type: size;
  -webkit-mask: linear-gradient(black 0 0) padding-box, linear-gradient(black 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(black 0 0) padding-box exclude, linear-gradient(black 0 0); }
.fp-edge::before { content: ''; position: absolute; left: 50%; top: 50%; width: calc(100cqw + 100cqh); aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(var(--teal-a12), var(--teal-300) 12%, var(--teal-a12) 25%, var(--teal-a12) 60%, var(--teal-400) 72%, var(--teal-a12) 85%);
  animation: kk-edge 8s linear infinite; }
.film-panel:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 4px; }
.fp-play { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-full); background: var(--teal-400); color: var(--navy-950);
  transition: transform var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard); }
.fp-play::before, .fp-play::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--teal-300); animation: kk-ring 2.8s var(--ease-decelerate) infinite; }
.fp-play::after { animation-delay: 1.4s; }
.film-panel:hover .fp-play { transform: scale(1.06); background: var(--teal-300); }
.fp-play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.fp-copy { display: block; min-width: 0; }
.fp-copy .eyebrow { display: block; margin-bottom: var(--sp-3); }
.fp-copy .h2 { margin: 0; color: var(--ink-50); }
.fp-copy .lede { display: block; margin-top: var(--sp-3); max-width: 46ch; color: var(--ink-200); }
.fp-ch { position: relative; display: grid; gap: 0; margin: 0; padding: 0 0 0 22px; list-style: none; }
.fp-ch::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, var(--teal-a60), var(--line)); }
.fp-ch li { position: relative; display: flex; gap: var(--sp-3); align-items: baseline; padding: 7px 0; color: var(--ink-50); font-weight: 500; }
.fp-ch li::before { content: ''; position: absolute; left: -21px; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: var(--r-full); border: 1px solid var(--teal-a60); background: var(--navy-900); }
.fp-ch li span { font: 500 var(--fs-xs)/1 var(--mono); color: var(--teal-300); }
/* The chapters light up one after another, like a playlist (owner, 24 Nov 2026: the travelling glint "doesnt mix
   well...try something else"): each title brightens and its marker fills teal for 1.5 s, six chapters per 9 s cycle. */
.fp-ch li { color: var(--ink-200); animation: kk-chap 9s var(--ease-standard) infinite; }
.fp-ch li::before { animation: kk-chap-dot 9s var(--ease-standard) infinite; }
.fp-ch li:nth-child(2), .fp-ch li:nth-child(2)::before { animation-delay: 1.5s; }
.fp-ch li:nth-child(3), .fp-ch li:nth-child(3)::before { animation-delay: 3s; }
.fp-ch li:nth-child(4), .fp-ch li:nth-child(4)::before { animation-delay: 4.5s; }
.fp-ch li:nth-child(5), .fp-ch li:nth-child(5)::before { animation-delay: 6s; }
.fp-ch li:nth-child(6), .fp-ch li:nth-child(6)::before { animation-delay: 7.5s; }
@keyframes kk-chap { 0%, 18%, 100% { color: var(--ink-200); } 3%, 15% { color: var(--white); } }
@keyframes kk-chap-dot { 0%, 18%, 100% { background: var(--navy-900); border-color: var(--teal-a60); box-shadow: none; }
  3%, 15% { background: var(--teal-400); border-color: var(--teal-300); box-shadow: 0 0 0 4px var(--teal-a24); } }

/* ---------------------------------------------------------------- the close: teal band with light */
body .cta-band.cta-band.home-end { overflow: clip;
  background: radial-gradient(50% 120% at 50% 0%, color-mix(in srgb, var(--teal-400) 26%, transparent), transparent 70%),
    radial-gradient(30% 80% at 0% 100%, color-mix(in srgb, var(--teal-400) 14%, transparent), transparent 70%),
    radial-gradient(30% 80% at 100% 100%, color-mix(in srgb, var(--teal-400) 14%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--teal-400) 8%, var(--navy-850)), color-mix(in srgb, var(--teal-400) 14%, var(--navy-900))); }
body .cta-band.cta-band.home-end::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--teal-a06) 1px, transparent 1px), linear-gradient(90deg, var(--teal-a06) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(50% 90% at 50% 0%, black, transparent 80%); mask-image: radial-gradient(50% 90% at 50% 0%, black, transparent 80%); }

/* ---------------------------------------------------------------- motion */
@keyframes kk-stream { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes kk-scan { 0% { transform: translateY(-60px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(280px); opacity: 0; } }
@keyframes kk-ping { 0% { box-shadow: 0 0 0 0 var(--teal-a60); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes kk-fill { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes kk-applied { 0%, 28% { opacity: .25; background: transparent; } 34%, 85% { opacity: 1; background: var(--teal-a12); } 100% { opacity: .25; } }
@keyframes kk-edge { to { transform: rotate(360deg); } }
@keyframes kk-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .why-bento { grid-template-columns: minmax(0, 1fr); }
  .why-triage { grid-row: auto; }
  .sol-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .sr-p { grid-column: 2; grid-row: 2; }
  .sr-go { grid-column: 3; grid-row: 1 / span 2; }
  .sr-go { font-size: 0; gap: 0; }
  .sr-go i { font-size: var(--fs-md); }
  .film-panel { grid-template-columns: auto minmax(0, 1fr); }
  .fp-ch { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); }
  .fp-ch::before,   .tour-stage .tour-views { zoom: .9; }
}
@media (max-width: 767px) {
  .why-tile { padding: var(--sp-5); }
  .why-fix, .why-report { flex-direction: column; align-items: stretch; }
  .why-fix .wt-copy, .why-report .wt-copy { flex: none; }
  .rep { height: 170px; max-width: 280px; margin-inline: auto; width: 100%; }
  .sol-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--sp-3) var(--sp-4); padding: var(--sp-5) var(--sp-2); }
  .sr-h { font-size: var(--fs-2xl); }
  .sr-p { font-size: var(--fs-md); }
  .sr-go i { width: 36px; height: 36px; }
  .film-panel { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-5); }
  .fp-play { width: 52px; height: 52px; }
  .fp-ch { grid-template-columns: minmax(0, 1fr); }
  .tour-stage .tour-views { zoom: 1; }
}

/* ---- Copy round, 25 Nov 2026 (owner: "i want the answers i chose...fix if it cut off"): the chosen labels in the
   product drawings wrap to a second line instead of being cut with an ellipsis, and tab rows wrap. Same fonts, colors
   and spacing; no text is shortened. ---- */
.ui-row > *, .ui-top .t, .ui-file, .ui-meta > *, .ui-tile .k, .ui-tile .ui-sub, .ui-row .ui-chip, .ui-body > .ui-chip,
.row b, .row .m, .d-tr b, .d-tr .m, .sg-log b, .rp-stats span, .rp-s, .i-ph .crumb, .ctx-feed li, .i-files li span,
.ev-list li > span:nth-child(2), .hit span, .ui-bar .crumb, .tile .l, .tri-row b, .cl-row b, .cl-crumb {
  white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; min-width: 0; }
.ui-tabs, .cb-tabs { flex-wrap: wrap; row-gap: 8px; }
.cb-tabs span { white-space: normal; }
.ui-row .ui-chip, .ui-body > .ui-chip { max-width: 100%; }
.ld-log .k { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; }
