:root {
  --ink: #1d1b2e; --muted: #5f5b75; --paper: #fbf9f4; --card: #ffffff; --line: #e8e4da;
  --primary: #3f3d8f; --accent: #e2603f; --soft: #f1eee6; --ok: #1f7a4d; --bad: #b3261e;
  --radius: 14px; --shadow: 0 10px 30px rgba(40, 30, 80, .08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #ecebf5; --muted: #a9a5bf; --paper: #13121a; --card: #1c1b26; --line: #2d2b3b; --soft: #1f1d2b; --primary: #8f8cf0; --accent: #f08a6c; --shadow: 0 10px 30px rgba(0,0,0,.35); }
}
:root[data-theme="dark"] { --ink: #ecebf5; --muted: #a9a5bf; --paper: #13121a; --card: #1c1b26; --line: #2d2b3b; --soft: #1f1d2b; --primary: #8f8cf0; --accent: #f08a6c; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; transition: padding-right .25s ease; }
body.agent-open { padding-right: 440px; }
a { color: var(--primary); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px; z-index: 10; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header.site { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.logo { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.logo em { font-style: normal; font-weight: 500; color: var(--muted); }
.mark { width: 22px; height: 22px; border-radius: 6px; background: conic-gradient(var(--primary) 0 25%, var(--accent) 0 50%, #2f8f6b 0 75%, #c99a2e 0); }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn:hover { filter: brightness(1.05); }
.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; color: var(--accent); font-weight: 700; margin: 0 0 8px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.02em; }
.lede { font-size: 18px; color: var(--muted); max-width: 560px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.fine { font-size: 13.5px; color: var(--muted); }
.hero-art { position: relative; height: 320px; }
.sheet { position: absolute; border-radius: 10px; box-shadow: var(--shadow); }
.s1 { inset: 20px 90px 60px 20px; background: repeating-linear-gradient(45deg, var(--accent) 0 14px, #f3a17f 14px 28px); transform: rotate(-6deg); }
.s2 { inset: 60px 30px 30px 110px; background: radial-gradient(circle at 30% 30%, #fff 0 18%, transparent 19%), var(--primary); transform: rotate(5deg); }
.s3 { width: 120px; height: 72px; left: 40px; bottom: 10px; background: var(--card); border: 1px solid var(--line); transform: rotate(-3deg); }
.stamp { position: absolute; right: 10px; top: 0; width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-content: center; text-align: center; font-weight: 800; transform: rotate(12deg); background: var(--paper); line-height: 1.1; }
.stamp small { font-weight: 500; font-size: 10px; }
.block { padding: 56px 20px; }
.head h2 { font-size: 30px; margin: 0 0 4px; letter-spacing: -.01em; }
.head p { color: var(--muted); margin: 0 0 22px; }
.grid { display: grid; gap: 18px; }
.products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .3s, transform .3s; }
.product h3 { margin: 8px 0 0; font-size: 18px; } .product p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.product dl { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; font-size: 14px; margin: 8px 0; } .product dt { color: var(--muted); } .product dd { margin: 0; font-weight: 600; }
.swatch { height: 70px; border-radius: 10px; background: color-mix(in srgb, var(--hue) 16%, var(--card)); position: relative; overflow: hidden; }
.swatch span { position: absolute; border-radius: 6px; background: var(--hue); }
.swatch span:nth-child(1) { width: 46%; height: 60%; left: 10%; top: 20%; transform: rotate(-5deg); }
.swatch span:nth-child(2) { width: 30%; height: 44%; left: 52%; top: 30%; opacity: .55; transform: rotate(7deg); }
.swatch span:nth-child(3) { width: 14px; height: 14px; right: 10%; top: 14%; border-radius: 50%; background: var(--accent); }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 100% { box-shadow: none; } 20% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 60%, transparent), var(--shadow); transform: translateY(-2px); } }
.band { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.dark { background: #1d1b2e; color: #ecebf5; border: 0; } .band.dark .head p, .band.dark .fine { color: #b9b5d0; }
.band.dark code { background: #2a2840; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: grid; gap: 6px; align-content: end; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); }
.check input { width: auto; }
.receipt { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; margin-top: 74px; }
.receipt h3 { margin: 0 0 10px; } .receipt table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.receipt td { padding: 6px 0; border-bottom: 1px solid var(--line); } .receipt td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.receipt .total td { font-weight: 800; font-size: 17px; border-bottom: 0; padding-top: 10px; }
.warn { color: var(--bad); } .eco { color: var(--ok); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.seg button { border: 0; background: var(--card); color: var(--muted); padding: 8px 14px; font: inherit; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.slots { display: grid; gap: 10px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; }
.time { display: inline-block; font-size: 13px; background: var(--soft); border-radius: 999px; padding: 2px 9px; margin: 2px 4px 2px 0; }
.requests { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.requests li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.requests .empty { color: var(--muted); }
.pill { font-size: 12px; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.facts { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fact { display: grid; gap: 2px; padding: 16px; border-radius: 12px; background: #262439; color: #ecebf5; text-decoration: none; border: 1px solid #34314d; }
.fact strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; } .fact span { color: #b9b5d0; font-size: 14px; }
.fact:hover { border-color: #8f8cf0; }
.foot { padding: 28px 20px 90px; color: var(--muted); font-size: 14px; }
/* Inspector and kit pages */
.doc h2 { margin-top: 36px; } .doc pre { background: #1d1b2e; color: #ecebf5; padding: 14px 16px; border-radius: 12px; overflow: auto; font-size: 13.5px; line-height: 1.5; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.inspect-form { display: flex; gap: 10px; flex-wrap: wrap; } .inspect-form input { flex: 1; min-width: 220px; }
.checks-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.checks-list li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14.5px; overflow-wrap: anywhere; }
.st { font-weight: 800; font-size: 12px; border-radius: 6px; padding: 1px 7px; margin-right: 6px; }
.st.pass { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.st.warn { background: #fff1d6; color: #8a5300; } .st.fail { background: #fde3e1; color: var(--bad); }
.score { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.net-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.net-card h3 { margin: 0 0 6px; } .agents { display: grid; gap: 6px; padding: 0; list-style: none; }
.agents li { font-size: 14.5px; } .agents code { font-weight: 700; }
.samples button { margin: 4px 6px 4px 0; }
@media (max-width: 1180px) { body.agent-open { padding-right: 0; } }
@media (max-width: 860px) {
  .hero-grid, .two { grid-template-columns: 1fr; } .hero-art { height: 220px; }
  nav a:not(:nth-child(-n+3)) { display: none; } .receipt { position: static; margin-top: 0; }
}
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } nav a { margin-left: 12px; } .logo em { display: none; } }
