:root {
  --bg: var(--ark-surface, #DCD5CD);
  --bg-2: var(--ark-highlight, #EFECE8);
  --ink: var(--ark-ink, #221E1B);
  --mut: var(--ark-muted, #5E5954);
  --gold: var(--ark-accent, #A0502C);
  --line: var(--ark-glass-border, #221E1B29);
  --shadow: var(--ark-shadow, #B0AAA4);
  --highlight: var(--ark-highlight, #EFECE8);
  --glass: var(--ark-glass-bg, #221E1B14);
  --fg: var(--ink);
  --card: var(--glass);
  --acc: var(--gold);
}
body { margin: 0; font: clamp(15px, 1.6vw, 17px)/1.5 "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif; background: radial-gradient(1200px 600px at 10% -10%, var(--bg-2), transparent 50%), var(--bg); color: var(--ink); }
#cursor { position: fixed; left: 0; top: 0; width: 280px; height: 280px; margin: -140px 0 0 -140px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 35%, transparent), transparent 68%); z-index: 1; }
header, .site-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 18px; position: sticky; top: 0; z-index: 2; }
h1 { font-size: clamp(1.4rem, 3vw, 2.6rem); margin: 0; font-weight: 500; letter-spacing: -.03em; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .cta, select { padding: 8px 14px; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); box-shadow: 6px 6px 14px var(--shadow), -6px -6px 14px var(--highlight); }
button:active, .cta:active { box-shadow: inset 4px 4px 10px var(--shadow), inset -4px -4px 10px var(--highlight); }
.glass, .card, aside, dialog, #gate form { background: var(--glass); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(28, 22, 14, .08); }
.secret { position: relative; display: block; }
.secret input { width: 100%; padding-right: 2.8rem; box-sizing: border-box; }
.eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 2.1rem; height: 2.1rem; padding: 0; border-radius: 999px; box-shadow: none; }
.eye::before { content: ""; display: block; width: 14px; height: 8px; margin: auto; border: 2px solid currentColor; border-radius: 10px / 7px; }
.eye[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 2px solid currentColor; transform: rotate(-20deg); }
.hero { min-height: 70vh; display: grid; align-content: center; gap: 16px; padding: clamp(24px, 6vw, 80px); }
.eyebrow { letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-size: .78rem; }
.feature { padding: 22px; }
#features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0 clamp(16px, 4vw, 48px) 48px; }
.refs { padding-left: 1.1rem; }
.site-nav .brand-lockup, .brand-lockup { display: flex; gap: 8px; align-items: center; text-decoration: none; }
.brand-mark {
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: currentColor;
  color: inherit;
  -webkit-mask: url("/logo.svg") center / contain no-repeat;
  mask: url("/logo.svg") center / contain no-repeat;
}
.brand-mark-lg { width: 48px; height: 48px; flex-basis: 48px; }
header .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
.theme-families { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.theme-family {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--glass); color: inherit; text-align: left; cursor: pointer;
}
.theme-family[aria-pressed="true"], .theme-mode[aria-pressed="true"] { outline: 2px solid var(--gold); outline-offset: 2px; }
.theme-swatch { display: grid; grid-template-columns: 1fr 14px 1fr; height: 48px; border-radius: 10px; overflow: hidden; }
.theme-swatch span { display: block; }
.theme-modes { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.theme-mode { cursor: pointer; }
.theme-preview {
  margin: 8px 0 16px; padding: 16px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line);
  display: flex; gap: 12px; align-items: center;
}
.check { display: flex; gap: 8px; align-items: center; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  #cursor { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 16px; padding: 16px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; }
.col { background: color-mix(in srgb, var(--fg) 6%, transparent); border-radius: 8px; padding: 8px; min-height: 220px; }
.col h3 { margin: 4px 0 8px; font-size: 12px; text-transform: uppercase; color: var(--mut); }
.card { padding: 8px; margin: 0 0 8px; cursor: grab; }
.card.dragging { opacity: .35; pointer-events: none; }
.card small, .mut { color: var(--mut); }
.p-urgent { border-left: 3px solid #c0392b; }
.p-high { border-left: 3px solid #e67e22; }
aside, dialog, #gate form { padding: 12px; }
#gate { min-height: 100vh; display: grid; place-items: center; }
#gate form { display: grid; gap: 8px; width: min(420px, 92vw); }
#agent-log, #notification-list { white-space: pre-wrap; max-height: 240px; overflow: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 4px 6px; vertical-align: top; }
label { display: grid; gap: 4px; }
input, textarea, select { padding: 6px; }
form input, form textarea { width: 100%; box-sizing: border-box; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
footer.legal, .site-foot { padding: 12px 16px 24px; color: var(--mut); font-size: 12px; }
.site-foot { display: flex; gap: 12px; flex-wrap: wrap; }
.sticky-cta { display: none; }
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 6; padding: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; max-width: calc(100vw - 24px); }
#loading { position: sticky; top: 0; z-index: 4; margin: 0; padding: 6px 16px; background: var(--gold); color: var(--bg); }
button[aria-busy="true"] { opacity: .55; cursor: progress; }
.field-error { color: #a33; margin: 0; }
@media (max-width: 1024px) {
  .hero { min-height: auto; }
}
@media (max-width: 900px) {
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5; text-align: center; }
  .cookie-banner { bottom: 72px; }
  body.marketing { padding-bottom: 72px; }
}
#flash, #gate-error { color: #a33; min-height: 1em; padding: 0 16px; }
svg.chart { width: 100%; height: 160px; background: var(--card); border: 1px solid var(--line); }
@media (max-width: 900px) { .layout, .board { grid-template-columns: 1fr; } }
@media (max-width: 390px) { .site-nav, header { padding-left: 10px; padding-right: 10px; } }
