/* The Weard demo index. Brand tokens only. No script runs here: the diagram switches with radio buttons. */
:root { color-scheme: dark; --identity: var(--mint); --guard: var(--sky-300); --line: var(--border-default); --muted: var(--text-secondary); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(52rem 26rem at 12% -6rem, var(--tint-mint), transparent 70%), radial-gradient(46rem 24rem at 92% -4rem, rgba(125, 211, 252, .07), transparent 70%), var(--bg-base); color: var(--text-primary); font-family: var(--font-sans); font-size: 15px; line-height: 1.55; }
a { color: inherit; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; border-bottom: 1px solid var(--line); }
.bar a.out { color: var(--muted); font-size: 13.5px; text-decoration: none; }
.bar a.out:hover { color: var(--text-primary); }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 32px 64px; display: grid; gap: 40px; }
main > * { min-width: 0; }
.intro h1 { margin: 0 0 12px; max-width: 18em; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; }
.intro p { margin: 0; max-width: 60ch; color: var(--muted); font-size: 17px; }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product { --c: var(--identity); display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); border-top: 2px solid var(--c); border-radius: var(--radius-card); background: var(--bg-surface-1); box-shadow: var(--shadow-card); }
.product.guard { --c: var(--guard); }
.product .pi { width: 26px; height: 26px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product .tag { font-size: 14.5px; }
.product h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: var(--c); }
.product .q { margin: 0; color: var(--text-primary); font-size: 20px; font-weight: 500; line-height: 1.35; }
.product p { margin: 0; color: var(--muted); }
.product ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.product li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; }
.product li::before { content: ''; width: 5px; height: 5px; margin-top: 8px; border-radius: 50%; background: var(--c); }
.product .go { margin-top: auto; padding-top: 10px; display: grid; gap: 8px; justify-items: start; }
.btn { display: inline-block; padding: 11px 18px; border-radius: var(--radius-control); font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--on-mint); background: var(--grad-mint); transition: filter .15s; }
.guard .btn { background: var(--guard); }
.btn:hover { filter: brightness(1.08); }
a:focus-visible { outline: 2px solid var(--mint-bright); outline-offset: 3px; border-radius: 4px; }

.how { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg-surface-1); box-shadow: var(--shadow-card); }
.how > * { min-width: 0; }
.how h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.how > p { margin: 0; max-width: 72ch; color: var(--muted); }
.how input { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: inline-flex; flex-wrap: wrap; width: fit-content; max-width: 100%; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-base); }
.seg label { padding: 7px 14px; border-radius: 7px; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.seg label:hover { color: var(--text-primary); }
#m-identity:checked ~ .seg [for='m-identity'], #m-guard:checked ~ .seg [for='m-guard'], #m-both:checked ~ .seg [for='m-both'] { color: var(--text-primary); background: var(--bg-surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
#m-identity:focus-visible ~ .seg [for='m-identity'], #m-guard:focus-visible ~ .seg [for='m-guard'], #m-both:focus-visible ~ .seg [for='m-both'] { outline: 2px solid var(--mint-bright); outline-offset: 2px; }

.dg > svg { display: block; width: 100%; height: auto; }
.dg .tall { display: none; }
.dg .n > rect { fill: var(--bg-base); stroke: var(--line-strong); }
.dg .n, .dg .e, .dg .st { transition: opacity .3s; }
.dg .n .t { fill: var(--text-primary); font-size: 14px; font-weight: 600; }
.dg .n .s { fill: var(--muted); font-size: 11.5px; }
.dg .n.identity > rect { stroke: var(--identity); stroke-width: 1.5; fill: var(--tint-mint); }
.dg .n.identity .t { fill: var(--mint-bright); }
.dg .n.guard > rect { stroke: var(--guard); stroke-width: 1.5; fill: rgba(125, 211, 252, .05); }
.dg .n.guard .t { fill: var(--guard); }
.dg .e polyline { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.dg .e polygon { fill: var(--muted); }
.dg .e text { fill: var(--muted); font-size: 11px; }
.dg .e.stop polyline { stroke: var(--status-bad); } .dg .e.stop polygon { fill: var(--status-bad); }
.dg .st { font-size: 11.5px; font-weight: 600; }
.dg .st.sent { fill: var(--status-warn); } .dg .st.stopped { fill: var(--status-bad); }

/* What each choice leaves out. */
#m-identity:checked ~ .dg .x-identity, #m-guard:checked ~ .dg .x-guard, #m-both:checked ~ .dg .x-both { opacity: .14; }
#m-identity:checked ~ .dg .e.x-identity, #m-guard:checked ~ .dg .e.x-guard, #m-both:checked ~ .dg .e.x-both,
#m-identity:checked ~ .dg .st.x-identity, #m-guard:checked ~ .dg .st.x-guard, #m-both:checked ~ .dg .st.x-both { opacity: 0; }
.cap { display: none; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-base); }
#m-identity:checked ~ .caps .c-identity, #m-guard:checked ~ .caps .c-guard, #m-both:checked ~ .caps .c-both { display: block; }
.cap b { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 600; }
.cap span { color: var(--muted); font-size: 14px; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 16px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .dg .n, .dg .e, .dg .st, .seg label, .btn { transition: none; } }
@media (max-width: 760px) {
  .bar, footer { padding-left: 16px; padding-right: 16px; }
  main { padding: 36px 16px 44px; gap: 28px; }
  .products { grid-template-columns: minmax(0, 1fr); }
  .product, .how { padding: 18px; }
  .dg .wide { display: none; } .dg .tall { display: block; }
  .seg { width: 100%; } .seg label { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 7px 8px; }
}
