:root {
  --bg: #e6e4df;          /* warm paper */
  --card: #f0eeea;        /* raised paper */
  --term: #eceef2;        /* cool light terminal */
  --text: #1f1f1f;
  --secondary: #6b6b6b;
  --muted: #9e9d9a;
  --accent: #5b8def;      /* soft blue */
  --accent-deep: #3a6fd8;
  --red: #f07167;         /* denied */
  --green: #4a8f5c;       /* allowed */
  --border: #d5d3ce;
  --grid: rgba(0, 0, 0, 0.035);
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 15px/1.65 var(--sans);
  color: var(--secondary);
  background: var(--bg);
}

::selection { background: rgba(91, 141, 239, 0.25); }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

em { font-style: italic; }
strong { color: var(--text); font-weight: 600; }

/* ---------- logo: $ySH — the dollar is the cap S with a spine, waiting caret ---------- */
.logo {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  line-height: 1.02;
  white-space: pre;
  text-align: left;
  flex: none;
}
.logo .ls { color: #7ec88c; }        /* the dollar — pastel green, like the old S */
.logo .ly { color: #96b6dd; }        /* pastel blue   */
.logo .lc {                           /* pastel amber caret — blinks, then rests */
  color: #f0cf8e;
  font-size: 1.5em;                 /* a chunky cell, not a shy glyph */
  line-height: 0;                   /* keep the row height it sits in */
  animation: logo-caret 6s steps(1) infinite;
}
/* three blinks, then solid for ~3.5s — alive, but it lets you read */
@keyframes logo-caret {
  0%   { opacity: 1; }
  7%   { opacity: 0; }
  13%  { opacity: 1; }
  20%  { opacity: 0; }
  27%  { opacity: 1; }
  33%  { opacity: 0; }
  40%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .logo .lc { animation: none; }
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .wm { font-size: 1.1rem; letter-spacing: 0.02em; }
.brand .wm-d { color: #7ec88c; }    /* the prompt dollar, green */
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 1.8rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
}
.hero .logo { font-size: clamp(0.7rem, 2.6vw, 1.15rem); margin: 0 auto 1.5rem; }
.hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.22;
  color: var(--text);
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}
.hero h1 .acc { color: var(--accent); }
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--secondary);
  margin: 0 0 1rem;
}
.lead {
  max-width: 42rem;
  margin: 0 auto 2.2rem;
  font-size: 15px;
}
.hero-ctas { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--text);
}
.btn:hover { background: #000; text-decoration: none !important; }
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--secondary); background: var(--card); }

/* ---------- demo intros ---------- */
.demo-intro {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem 1.4rem;
  text-align: center;
  color: var(--secondary);
  line-height: 1.65;
}
.demo-intro strong { color: var(--text); }
.demo-intro code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--card);
  padding: 0.1em 0.35em;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.demo-intro + .pi-replay { margin-top: 0; }
.pi-replay + .demo-intro { padding-top: 1.6rem; }

/* ---------- session replay widget ---------- */
.pi-replay {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- sections ---------- */

/* ---------- sections ---------- */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3.2rem 0 0; }
section:last-of-type { padding-bottom: 3.5rem; }

h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text);
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.section-lead { max-width: 46rem; margin: 0 0 1.6rem; }

/* ---------- the principle ---------- */
.credo {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.4rem 3.2rem;
  text-align: center;
}
.credo .kicker { margin-bottom: 0.7rem; }
.credo-line .acc { color: var(--accent); }
.credo-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  letter-spacing: -0.01em;
  max-width: 40rem;
  margin: 0 auto 1rem;
  line-height: 1.25;
}
.credo-sub {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--secondary);
}
.credo-sub strong { color: var(--text); }

/* pillars */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
}
.card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.55rem;
}
.card p { margin: 0; font-size: 13.5px; }
.card code, p code, li code, td code, h3 code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--term);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.08em 0.35em;
  color: var(--text);
  white-space: nowrap;
}
.center-note {
  text-align: center;
  max-width: 40rem;
  margin: 2rem auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text);
}

/* phases */
.phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.phase {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
}
.phase-n {
  position: absolute; top: 1.2rem; right: 1.4rem;
  font-family: var(--serif); font-style: italic;
  font-size: 2rem; color: var(--accent);
  opacity: 0.45;
}
.phase h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.15rem; color: var(--text); margin: 0 0 0.6rem;
}
.phase p { margin: 0 0 0.7rem; font-size: 13.5px; }
.phase-punch {
  font-family: var(--serif); font-style: italic;
  color: var(--accent-deep) !important;
  margin: 0.5rem 0 0 !important;
}
.ways {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.way {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
}
.way-n {
  position: absolute; top: 1.2rem; right: 1.4rem;
  font-family: var(--serif); font-style: italic;
  font-size: 2rem; color: var(--accent);
  opacity: 0.45;
}
.way h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.15rem; color: var(--text); margin: 0 0 0.6rem;
}
.way p { margin: 0 0 0.7rem; font-size: 13.5px; }
.way-use {
  font-family: var(--serif); font-style: italic;
  color: var(--accent-deep) !important;
  margin: 0.5rem 0 0 !important;
}
.ways-note {
  font-family: var(--serif); font-style: italic;
  color: var(--secondary);
  margin: 1.1rem 0 0;
  max-width: 46rem;
}
@media (max-width: 720px) { .phases { grid-template-columns: 1fr; } .ways { grid-template-columns: 1fr; } }

/* nots (honest limits) */
.nots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.not {
  border-top: 2px solid var(--border);
  padding-top: 0.9rem;
}
.not:hover { border-top-color: var(--accent); }
.not h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.05rem; color: var(--text); margin: 0 0 0.4rem;
}
.not p { margin: 0; font-size: 13px; }

/* plain list */
ul.plain { padding: 0; list-style: none; max-width: 46rem; }
ul.plain li {
  padding: 0.7rem 0 0.7rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
ul.plain li:last-child { border-bottom: none; }
ul.plain li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--accent);
}
ul.plain strong { color: var(--text); }

/* get-involved */
.involve {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.involve .card a.learn {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-deep);
}

/* ---------- doc page ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.5rem 3.5rem; }
.doc h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 2.4rem; color: var(--text);
  margin: 0 0 0.6rem; letter-spacing: -0.01em;
}
.doc h2 {
  font-size: 1.45rem;
  margin: 2.8rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.doc .step {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.3rem;
}
.doc p { max-width: 46rem; }
.doc pre {
  background: var(--term);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
  max-width: 52rem;
}
.doc pre .c { color: var(--muted); }
.doc pre .p { color: var(--accent-deep); font-weight: 700; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.footer a { color: var(--secondary); }
.footer a:hover { color: var(--text); }
.footer .fin {
  font-family: var(--serif); font-style: italic;
  color: var(--muted);
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- sy watch demo (usage) ---------- */
.wd-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.4rem auto;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  height: 430px;          /* fixed window: rows arriving never resize it */
  max-width: 760px;       /* fixed width too: a browser window, not a banner */
  display: flex;
  flex-direction: column;
}
.wd-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.wd-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;       /* rows keep their natural height; extras clip */
}
.wd-chrome {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px;
  background: var(--term);
  border-bottom: 1px solid var(--border);
}
.wd-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.wd-url {
  font-family: var(--mono); font-size: 11px; color: var(--secondary);
  margin-left: 8px; background: var(--card);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 8px;
}
.wd-note { margin-left: auto; font-size: 10.5px; color: var(--muted); font-style: italic; font-family: var(--serif); }
.wd-body { font-family: var(--mono); font-size: 11.5px; }
.wd-head {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-bottom: 1px solid var(--border);
}
.wd-brand { font-family: var(--serif); font-size: 13px; font-weight: 600; color: var(--text); }
.wd-brand b { color: var(--green); font-family: var(--mono); }
.wd-pill { font-size: 10px; border: 1px solid var(--green); color: var(--green); border-radius: 8px; padding: 0 6px; }
.wd-count { margin-left: auto; color: #9a7b2d; font-size: 10.5px; }
.wd-count:empty { display: none; }
.wd-theme { color: var(--muted); }
.wd-pending { background: #f8ecc9; border-bottom: 1px solid #e0cd96; padding: 5px 12px 6px; }
.wd-phead { font-family: var(--serif); font-style: italic; font-size: 11px; color: #9a7b2d; margin-bottom: 3px; }
.wd-prow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; }
.wd-prow .wd-pid { color: #9a7b2d; }
.wd-prow .wd-pargv { color: var(--text); }
.wd-copy {
  font-size: 10px; border: 1px solid #b8963e; color: #7a5f1e;
  border-radius: 5px; padding: 0 7px; background: rgba(255,255,255,0.5);
}
.wd-toolbar {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-bottom: 1px solid var(--border);
}
.wd-search {
  font-size: 10.5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 1px 8px; background: var(--bg); min-width: 150px;
}
.wd-chip { font-size: 10px; border: 1px solid var(--border); color: var(--muted); border-radius: 9px; padding: 0 7px; }
.wd-chip.on.g { color: var(--green); border-color: var(--green); }
.wd-chip.on.r { color: var(--red);   border-color: var(--red); }
.wd-chip.on.a { color: #9a7b2d; border-color: #b8963e; }
.wd-chip.on.b { color: var(--accent-deep); border-color: var(--accent); }
.wd-table { border-collapse: collapse; width: 100%; }
.wd-table th {
  text-align: left; font-weight: 500; font-size: 10px;
  color: var(--muted); letter-spacing: 0.06em;
  padding: 4px 8px; border-bottom: 1px solid var(--border);
  background: var(--card);
}
.wd-table td { padding: 3px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.wd-table td.wd-argv { white-space: normal; word-break: break-all; max-width: 42ch; }
.wd-table td.wd-ts { color: var(--muted); }
.wd-table td.wd-host { color: var(--accent-deep); }
.wd-table td.wd-key { color: var(--secondary); }
.wd-table td.wd-exit { color: var(--muted); text-align: right; }
.wd-table tr.wd-new td { animation: wd-arrive 1.4s ease; }
@keyframes wd-arrive { from { background: #e1e9f8; } }
.wd-badge {
  display: inline-block; font-size: 10px; padding: 0 7px;
  border-radius: 9px; border: 1px solid transparent;
}
.wd-b-allow   { color: var(--green); border-color: var(--green); background: #dff0e2; }
.wd-b-deny    { color: var(--red);   border-color: var(--red);   background: #f8e2e0; }
.wd-b-request { color: #9a7b2d; border-color: #b8963e; background: #f8ecc9; animation: wd-pulse 1.5s ease infinite; }
.wd-b-approve { color: var(--green); border-color: var(--green); background: #dff0e2; }
.wd-b-result  { color: var(--accent-deep); border-color: var(--accent); background: #e1e9f8; }
.wd-b-priv    { color: #9a7b2d; border-color: #b8963e; margin-left: 3px; }
@keyframes wd-pulse { 50% { opacity: 0.55; } }
@keyframes wd-blink { 50% { opacity: 0; } }
.wd-ok { color: #7ec88c; }
@media (prefers-reduced-motion: reduce) {
  .wd-table tr.wd-new td, .wd-b-request, .wd-here { animation: none; }
}

/* ---------- callout (usage: anti-solitaire note) ---------- */
.callout {
  border: 1px solid #b8963e;
  border-left: 3px solid #b8963e;
  border-radius: 8px;
  background: #f8ecc9;
  padding: 14px 18px;
  margin: 1.6rem 0;
}
.callout h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-family: var(--serif);
}
.callout h3 code { font-size: 13px; }
.callout ol { margin: 8px 0 2px 0; padding-left: 20px; }
.callout li { margin-bottom: 8px; }
.callout li:last-child { margin-bottom: 0; }
.callout p { margin: 0; }
.wd-copy.dim { border-color: var(--border); color: var(--muted); }

/* usage STEP 8 — in-web ceremony modal */
.wd-here {
  border: 1px solid #7a9a4e;
  background: #dcecc4;
  color: #3f6b2e;
  border-radius: 5px;
  padding: 1px 7px;
  font-weight: 600;
  animation: wd-pulse 1.5s ease infinite;
}
@keyframes wd-pulse { 50% { box-shadow: 0 0 0 3px rgba(122, 154, 78, 0.25); } }
.wd-modal {
  position: absolute;
  inset: 0;
  background: rgba(17, 21, 28, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.wd-modal[hidden] { display: none; }
.wd-modal-box {
  background: var(--card);
  border: 1px solid #b8963e;
  border-radius: 8px;
  max-width: 82%;
  width: 460px;
  padding: 14px 18px 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.wd-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.wd-modal-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  color: #a4741c;
}
.wd-modal-meta { font-family: var(--mono); font-size: 10.5px; color: var(--secondary); text-align: right; }
.wd-modal-label { font-family: var(--sans); font-size: 11px; color: var(--secondary); margin-bottom: 5px; }
.wd-modal-argv {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 9px;
  word-break: break-all;
}
.wd-modal-note { font-size: 11.5px; font-style: italic; color: var(--secondary); margin-bottom: 7px; }
.wd-modal-input {
  font-family: var(--mono);
  font-size: 12.5px;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1.5px solid #8a8a86;
  border-radius: 5px;
  background: #fffdf8;
  color: inherit;
}
.wd-modal-state {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--secondary);
  border-top: 1px solid var(--border);
  padding-top: 9px;
  margin-top: 10px;
  min-height: 15px;
}

/* ceremony feature section (index) */
.ceremony-feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.cfeat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.cfeat h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 0.5rem 0;
  color: var(--ink, #1f1f1f);
}
.cfeat p { font-size: 13.5px; line-height: 1.55; margin: 0; }

.demo-cap {
  max-width: 46rem;
  margin: 0.7rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--muted);
}

.beta-note {                          /* feature-beta disclaimer, inline */
  display: block;
  color: var(--muted);
  font-style: italic;
  font-size: 0.85em;
  margin-bottom: 0.5rem;
}

/* bash-compatibility spectrum table (usage STEP 6) */
table.spectrum { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 0.92em; }
table.spectrum th, table.spectrum td {
  padding: 6px 9px; border: 1px solid var(--border); text-align: left;
  vertical-align: top;
}
table.spectrum thead th { background: var(--bg-inset, #f6f6f4); font-weight: 600; }
table.spectrum tbody th { white-space: nowrap; font-weight: 600; }
table.spectrum td { white-space: normal; }
table.spectrum td code { word-break: break-all; }
