/* ===========================================================
   RadRobo — the coward's cockpit
   Rad Family Design System v1.0 — "Refuse in Code, Made Visible"
   calm slate · mint goes · indigo connects · amber is the line
   nothing crosses without a human
   =========================================================== */

:root {
  /* ---- NEUTRALS: the Deep Slate ramp (cool, near-black, never pure #000) ---- */
  --slate-950: #07090D;
  --slate-900: #0B0F14;   /* APP BASE */
  --slate-850: #0E131A;
  --slate-800: #11161F;
  --slate-750: #151B25;
  --slate-700: #1A2230;
  --hairline:  #232C3A;
  --hairline-strong: #303B4D;

  /* ---- INK ---- */
  --ink:       #E8EEF6;
  --ink-dim:   #9DAAB8;
  --ink-faint: #7E8C9C;
  --ink-ghost: #3A4453;

  /* ---- THE THREE MEANINGS ---- */
  /* GO / safe / allowed / reversible */
  --mint:       #5EE6B0;
  --mint-deep:  #2BB789;
  --mint-ink:   #04130D;
  --mint-glow:  rgba(94, 230, 176, 0.16);
  --mint-line:  rgba(94, 230, 176, 0.30);

  /* HELD / refused-in-code / human-only / the line (THE SCARCE ACCENT) */
  --amber:      #F2C46B;
  --amber-deep: #D49A2E;
  --amber-ink:  #1B1304;
  --amber-glow: rgba(242, 196, 107, 0.18);
  --amber-line: rgba(242, 196, 107, 0.42);

  /* BRAND / family / links / connective tissue */
  --indigo:      #8B9BFF;
  --indigo-deep: #6470E8;
  --indigo-ink:  #0A0E1F;
  --indigo-glow: rgba(139, 155, 255, 0.16);
  --indigo-line: rgba(139, 155, 255, 0.30);

  /* DANGER — true destructive only. Use almost never. */
  --rose:      #FF7A88;
  --rose-glow: rgba(255, 122, 136, 0.16);

  /* ---- THE ONE SIGNATURE GRADIENT ---- */
  --grad-family: linear-gradient(110deg, var(--mint) 0%, var(--indigo) 100%);
  --grad-held:   linear-gradient(180deg, var(--amber) 0%, var(--amber-deep) 100%);

  /* ---- RADII ---- */
  --r-sm: 10px;   --r-md: 14px;   --r-lg: 18px;   --r-xl: 24px;   --r-pill: 999px;

  /* ---- ELEVATION ---- */
  --e-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 1px 2px rgba(0,0,0,.4);
  --e-2: 0 1px 0 rgba(255,255,255,.05) inset, 0 8px 24px -12px rgba(0,0,0,.6);
  --e-3: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 60px -24px rgba(0,0,0,.7);
  --e-glow-amber: 0 0 0 1px var(--amber-line), 0 0 40px -8px var(--amber-glow);
  --e-glow-mint:  0 0 0 1px var(--mint-line),  0 0 40px -8px var(--mint-glow);

  /* ---- MOTION ---- */
  --ease-go:      cubic-bezier(.22,.61,.36,1);    /* GO — confident ease-out */
  --ease-stop:    cubic-bezier(.7,0,.84,0);       /* STOP — sharp arrest at the line */
  --ease-release: cubic-bezier(.34,1.56,.64,1);   /* RELEASE — spring forward on approval */
  --t-fast: .14s;  --t-base: .28s;  --t-slow: .55s;  --t-freeze: .9s;

  /* ---- TYPE SCALE ---- */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-display: clamp(2.6rem, 6vw, 4.4rem);
  --fs-h2: clamp(1.8rem, 3.6vw, 2.7rem);
  --fs-h3: 1.3rem;
  --fs-lede: clamp(1.05rem, 2.2vw, 1.35rem);
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-eyebrow: .75rem;
  --fs-mono: .8125rem;

  /* ---- SPACING (8px base) ---- */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px;
  --s7:48px; --s8:64px; --s9:96px; --s10:128px;

  /* ---- LAYOUT ---- */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 24px);

  /* ---- legacy aliases (so every existing rule keeps working) ---- */
  --slate:       var(--slate-900);
  --slate-2:     var(--slate-800);
  --panel:       var(--slate-750);
  --panel-2:     var(--slate-700);
  --line:        var(--hairline);
  --green:       var(--mint);
  --green-soft:  var(--mint-glow);
  --amber-soft:  var(--amber-glow);
  --indigo-soft: var(--indigo-glow);
  --red:         var(--rose);
  --radius:      var(--r-lg);
  --ease:        var(--ease-go);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--slate-900);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: "cv11" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint film grain — kills dark-UI banding, adds the "expensive" texture */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- the code voice (the system's secret weapon) ---------- */
.code-voice {
  font-family: var(--font-mono);
  letter-spacing: -.01em;
  font-variant-ligatures: none;
}

/* ---------- ambient background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--indigo-glow) 1px, transparent 1px),
    linear-gradient(90deg, var(--indigo-glow) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed; top: -25%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, var(--indigo-glow), transparent 60%);
  filter: blur(40px);
  animation: glow-drift 16s ease-in-out infinite;
}
@keyframes glow-drift {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%     { transform: translateX(-50%) translateY(22px); opacity: .82; }
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- shared "wow" primitives: The Line · The Valve · refuse-chip ---------- */
@keyframes valve-pulse {
  0%,100% { opacity: .55; box-shadow: var(--e-glow-amber); }
  50%     { opacity: 1;   box-shadow: 0 0 0 1px var(--amber), 0 0 56px -6px var(--amber-glow); }
}
@keyframes line-ignite { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }

.valve {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--amber); box-shadow: var(--e-glow-amber);
  position: relative; flex: none;
}
.valve::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  background: var(--amber); opacity: .5;
}
.refuse-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: 500;
  color: var(--amber); border: 1px solid var(--amber-line);
  background: var(--amber-glow); border-radius: var(--r-pill);
  padding: 7px 14px; margin: 0 0 26px;
}
.refuse-chip .valve { animation: valve-pulse 1.1s var(--ease-go) infinite; }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter);
}
.brand { display: flex; align-items: baseline; gap: 2px; text-decoration: none; font-weight: 850; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.brand-bolt { font-size: 20px; filter: drop-shadow(0 0 8px var(--indigo)); }
.brand-name { letter-spacing: -.02em; }
.brand-tld { color: var(--indigo); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-dim); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color var(--t-fast) var(--ease-go); }
.nav-links a:hover { color: var(--ink); }
.nav-badge {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--amber); border: 1px solid var(--amber-line);
  background: var(--amber-glow); padding: 5px 11px; border-radius: var(--r-pill);
}
@media (max-width: 760px) { .nav-links a, .nav-badge { display: none; } }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter) 70px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s7); align-items: center;
}
@media (max-width: 940px) { .hero { grid-template-columns: 1fr; gap: var(--s6); } }

.eyebrow {
  font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--indigo); margin-bottom: 18px;
}
h1 {
  font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.025em;
  font-weight: 850; margin: 0 0 var(--s5);
}
.grad {
  background: var(--grad-family);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-dim); margin: 0 0 16px; max-width: 540px; }
.lede strong, .sub strong { color: var(--ink); }
.sub { font-size: 16px; color: var(--ink-faint); max-width: 520px; margin: 0 0 var(--s5); }

.hero-stats { display: flex; gap: 30px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-mono); font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .14em; margin-top: 2px; }
#stat-held { color: var(--amber); }
#stat-done { color: var(--mint); }

/* ---------- the room (the crown-jewel demo surface) ---------- */
.room-wrap { display: flex; flex-direction: column; gap: 12px; }
.room {
  position: relative; aspect-ratio: 5/4; border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 70% 50% at 50% 92%, var(--indigo-glow), transparent 70%),
    linear-gradient(180deg, var(--slate-750), var(--slate-850));
  border: 1px solid var(--hairline);
  box-shadow: var(--e-3);
  overflow: hidden;
  transition: box-shadow var(--t-slow) var(--ease-go);
}
/* THE FREEZE — ambient wash shifts indigo → amber while a held action waits */
.room::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 80%, var(--amber-glow), transparent 65%);
  opacity: 0; transition: opacity var(--t-freeze) var(--ease-stop);
}
.room:has(.robot.frozen)::before { opacity: 1; }
.room:has(.robot.frozen) { box-shadow: var(--e-3), 0 0 80px -30px var(--amber-glow); }
/* floor line (static hairline) */
.room::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 16%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--hairline) 20%, var(--hairline) 80%, transparent);
}

.robot {
  position: absolute; bottom: 8%; left: 50%; width: 42%;
  transform: translateX(-50%);
  transition: left var(--t-freeze) var(--ease-go), transform var(--t-freeze) var(--ease-go);
  z-index: 2;
}
.robo-shadow { fill: rgba(0,0,0,.35); }

/* idle bob */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.head { animation: bob 3.4s ease-in-out infinite; transform-origin: center; }
.antenna { animation: blink 2.6s ease-in-out infinite; }
@keyframes blink { 0%,90%,100% { opacity: 1; } 95% { opacity: .3; } }

/* reaching arm — GO glides, STOP arrests hard at the line */
.arm-right { transform-origin: 168px 124px; transition: transform var(--t-base) var(--ease-go); }
.robot.reaching .arm-right { transform: rotate(34deg); }
.robot.frozen   .arm-right { transform: rotate(20deg); transition: transform .18s var(--ease-stop); animation: tremor .22s ease-in-out infinite; }
@keyframes tremor { 0%,100% { transform: rotate(20deg); } 50% { transform: rotate(21.4deg); } }
/* RELEASE — on approval the arm springs forward */
.robot.denied .arm-right { transform: rotate(40deg); transition: transform var(--t-slow) var(--ease-release); }

/* chest light states */
.chest { transition: fill var(--t-base) var(--ease-go); }
.robot.frozen .chest { fill: var(--amber); }
.robot.allowed .chest { fill: var(--mint); }
.robot.denied  .chest { fill: var(--mint); }

/* valve glow during freeze — the brand heartbeat */
.valve-glow { transition: opacity var(--t-base); }
.robot.frozen .valve-glow { opacity: 1; animation: valvePulse 1.1s var(--ease-go) infinite; }
@keyframes valvePulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.valve-ring { transition: stroke var(--t-base); }
.robot.frozen .valve-ring { stroke: var(--amber); }
.robot.frozen .valve-cross rect { fill: var(--amber); }

/* mouth mood */
.robot.frozen #mouth { d: path("M96 100 q14 -6 28 0"); } /* concerned */

/* THE LINE — luminous amber refusal boundary, ignites beneath the held object */
.the-line {
  position: absolute; left: 14%; right: 14%; bottom: 16%; z-index: 1;
  height: 2px; background: var(--grad-held); transform-origin: left;
  box-shadow: 0 0 16px var(--amber-glow);
  opacity: 0; transform: scaleX(0); pointer-events: none;
}
.room:has(.robot.frozen) .the-line { animation: line-ignite .4s var(--ease-stop) forwards; }
.the-line-label {
  position: absolute; left: 50%; top: -18px; transform: translateX(-50%);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); white-space: nowrap; opacity: .9;
}

/* the chore object */
.chore-target {
  position: absolute; z-index: 2;
  font-size: 30px; line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
  opacity: 0; transition: opacity var(--t-base);
  bottom: 20%; left: 50%; transform: translateX(-50%);
}
.chore-target.show { opacity: 1; }
.room:has(.robot.frozen) .chore-target.show { filter: drop-shadow(0 0 12px var(--amber-glow)) drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.chore-target.zip { animation: zipBy 1.1s var(--ease-go) forwards; }
@keyframes zipBy {
  0%   { left: -12%; opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { left: 112%; opacity: 0; }
}

/* speech bubble */
.bubble {
  position: absolute; top: 18px; right: 18px; left: 18px; z-index: 3;
  background: rgba(14,19,26,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 14px 16px; box-shadow: var(--e-2);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.bubble.alert { border-color: var(--amber-line); box-shadow: var(--e-glow-amber); }
.bubble-narration { font-size: 15px; color: var(--ink); font-weight: 500; }
.bubble.alert .bubble-narration { display: none; }

.bubble-plan { display: flex; flex-direction: column; gap: 8px; }
.plan-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--amber); }
.plan-text { font-size: 16px; font-weight: 700; color: var(--ink); }
.plan-actions { display: flex; gap: 10px; margin-top: 4px; }
.btn-allow, .btn-nope {
  flex: 1; padding: 11px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px;
  cursor: pointer; border: 1px solid transparent; transition: transform var(--t-fast) var(--ease-go), filter var(--t-fast);
}
/* ALLOW — mint solid, the human's "yes, proceed" tap (RELEASE) */
.btn-allow { background: var(--mint); color: var(--mint-ink); }
/* HELD/DENY — refusal is a quiet outline, never a happy filled click */
.btn-nope  { background: transparent; color: var(--amber); border-color: var(--amber-line); }
.btn-allow:hover, .btn-nope:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-allow:active, .btn-nope:active { transform: translateY(0); }
.btn-allow:focus-visible, .btn-nope:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.plan-foot { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); text-align: center; }

.room-caption { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); text-align: center; letter-spacing: -.01em; }

/* ---------- generic section ---------- */
section { scroll-margin-top: 80px; }
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.section-head h2 { font-size: var(--fs-h2); letter-spacing: -.02em; font-weight: 800; line-height: 1.08; margin: 0 0 10px; }
.section-head p { color: var(--ink-dim); font-size: 16.5px; max-width: 560px; margin: 0 auto; }
.section-head em { color: var(--amber); font-style: normal; }
.section-head code { font-family: var(--font-mono); }

/* ---------- restraint feed ---------- */
.feed-section { padding: var(--s10) 0; }
.feed-viewport {
  margin: 36px auto 0; max-width: var(--maxw); height: 360px; overflow: hidden;
  position: relative; padding: 0 var(--gutter);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.feed-track { list-style: none; margin: 0; padding: 0; animation: scrollUp 38s linear infinite; }
.feed-viewport:hover .feed-track { animation-play-state: paused; }
@keyframes scrollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.feed-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; margin-bottom: 10px;
  background: linear-gradient(180deg, var(--slate-750), var(--slate-800));
  border: 1px solid var(--hairline); border-left: 2px solid var(--mint-line);
  border-radius: var(--r-md); box-shadow: var(--e-1);
  font-size: 15.5px;
}
.feed-item .pip { color: var(--mint); font-size: 10px; }
.feed-item .ts { margin-left: auto; color: var(--ink-faint); font-size: 12px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- note / quarantine ---------- */
.note-section { padding: 30px 0 var(--s9); }
.note-grid {
  max-width: var(--maxw); margin: 36px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: stretch;
}
@media (max-width: 820px) { .note-grid { grid-template-columns: 1fr; } }

.note-card {
  background: linear-gradient(180deg, var(--slate-750), var(--slate-800));
  border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--e-2);
}
.note-label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--ink-dim); margin-bottom: 8px; text-transform: uppercase; }
#noteInput, #paasInput, .paas-try input {
  width: 100%; background: var(--slate-950); border: 1px solid var(--hairline);
  color: var(--ink); border-radius: var(--r-md); padding: 14px; font-size: 15px;
  font-family: inherit; resize: vertical;
  transition: border-color var(--t-fast) var(--ease-go), box-shadow var(--t-fast);
}
#noteInput:focus, #paasInput:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-glow); }
.note-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.note-hint { font-size: 12.5px; color: var(--ink-faint); }

/* PRIMARY — the family gradient. The main affordance. */
.btn-primary {
  background: var(--grad-family);
  color: var(--indigo-ink); border: none; border-radius: var(--r-md); padding: 12px 20px;
  font-weight: 700; font-size: 14.5px; cursor: pointer;
  transition: transform var(--t-fast) var(--ease-go), filter var(--t-fast);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* the QUARANTINE jar — a deliberately mechanical object (heavier border allowed) */
.jar-wrap { display: flex; align-items: center; justify-content: center; }
.jar {
  width: 100%; max-width: 280px; min-height: 280px; border-radius: 0 0 var(--r-xl) var(--r-xl);
  border: 2px solid var(--hairline-strong); border-top: none; position: relative;
  background: linear-gradient(180deg, var(--indigo-glow), var(--amber-glow));
  display: flex; flex-direction: column; padding: 18px 14px 16px; gap: 8px;
  box-shadow: inset 0 0 40px rgba(139,155,255,.06);
}
.jar-lid {
  position: absolute; top: -14px; left: -6px; right: -6px; height: 14px;
  background: var(--slate-700); border: 2px solid var(--hairline-strong); border-radius: 8px 8px 4px 4px;
}
.jar-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: .25em; color: var(--amber);
  text-align: center; opacity: .85;
}
.jar-contents { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 220px; }
.jar-empty { color: var(--ink-faint); font-size: 13px; text-align: center; margin: auto; font-style: italic; }
.quarantined {
  background: var(--amber-glow); border: 1px solid var(--amber-line);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; color: #F4DCAE;
  animation: dropIn .5s var(--ease-stop);
}
.quarantined .q-tag { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--amber); font-weight: 500; margin-top: 4px; }
.quarantined .q-text { color: #F6E6C8; word-break: break-word; }
.accepted-note {
  background: var(--mint-glow); border: 1px solid var(--mint-line);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; color: #BDF3D9;
  animation: dropIn .5s var(--ease-go);
  transition: opacity var(--t-slow);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- lever (the destructive control — rose, rare, serious) ---------- */
.lever-section { padding: 30px 0 var(--s9); }
.lever-stage { max-width: 520px; margin: 40px auto 0; text-align: center; }
.lever-housing {
  background: linear-gradient(180deg, var(--slate-750), var(--slate-800));
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 30px; display: inline-flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: var(--e-2);
}
.lever-slot {
  width: 90px; height: 150px; background: var(--slate-950); border: 2px solid var(--hairline-strong);
  border-radius: var(--r-md); position: relative; display: flex; align-items: flex-start; justify-content: center;
  box-shadow: inset 0 0 30px rgba(0,0,0,.6);
}
.lever {
  position: relative; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; padding: 0; margin-top: 8px;
  transform-origin: bottom center; transition: transform var(--t-slow) var(--ease-go);
}
.lever-stick { width: 8px; height: 86px; background: linear-gradient(180deg, #4a5568, #2b3240); border-radius: 4px; order: 2; }
.lever-knob {
  width: 64px; height: 64px; border-radius: 50%; order: 1;
  background: radial-gradient(circle at 35% 30%, #FFA9B2, var(--rose) 60%, #C8323F);
  color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -4px var(--rose-glow), inset 0 -3px 6px rgba(0,0,0,.3);
}
.lever.pulled { transform: rotate(58deg) translateY(6px); }
.lever:hover { transform: rotate(8deg); }
.lever.pulled:hover { transform: rotate(58deg) translateY(6px); }
.lever:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; border-radius: var(--r-sm); }
.lever-plate { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--ink-faint); font-weight: 500; }
.lever-readout {
  margin-top: 20px; font-size: 15px; color: var(--ink-dim); min-height: 48px;
  transition: color var(--t-base);
}
.lever-readout.punch { color: var(--ink); font-weight: 600; }
.lever-readout .big { display: block; font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px; letter-spacing: .04em; }

/* ---------- paas (the "refused in code" proof — code wells) ---------- */
.paas-section { padding: 30px 0 var(--s9); }
.paas-grid {
  max-width: var(--maxw); margin: 40px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 820px) { .paas-grid { grid-template-columns: 1fr; } }
.paas-card {
  background: linear-gradient(180deg, var(--slate-750), var(--slate-800));
  border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--e-2);
  transition: transform var(--t-fast) var(--ease-go), border-color var(--t-fast);
}
.paas-card:hover { transform: translateY(-3px); border-color: var(--hairline-strong); }
.paas-card-head { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.paas-card-head code { font-family: var(--font-mono); background: var(--slate-950); padding: 4px 9px; border-radius: 7px; color: var(--indigo); font-size: 13px; }
.paas-card-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.for-show { margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .06em; color: var(--amber); background: var(--amber-glow); border: 1px solid var(--amber-line); padding: 3px 9px; border-radius: var(--r-pill); }
.paas-blurb { font-size: 14.5px; color: var(--ink-dim); margin: 0 0 16px; }
.paas-blurb code, .paas-bullets code { font-family: var(--font-mono); background: var(--slate-950); padding: 1px 6px; border-radius: 5px; color: var(--ink); font-size: 13px; }
.paas-try { display: flex; gap: 10px; margin-bottom: 12px; }
.paas-try input { flex: 1; }
.paas-out {
  background: var(--slate-950); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 16px; font-family: var(--font-mono); font-size: var(--fs-mono);
  color: var(--mint); white-space: pre-wrap; word-break: break-word; margin: 0; min-height: 96px;
  line-height: 1.55; letter-spacing: -.01em;
}
.paas-out .k { color: var(--indigo); }       /* keys = indigo */
.paas-out .held { color: var(--amber); }      /* held values = amber */
.paas-bullets { margin: 0 0 16px; padding-left: 18px; color: var(--ink-dim); font-size: 14.5px; }
.paas-bullets li { margin-bottom: 7px; }
.paas-bullets strong { color: var(--ink); }
.ghost-link { display: inline-block; color: var(--indigo); text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px dashed var(--indigo-line); padding-bottom: 2px; transition: filter var(--t-fast); }
.ghost-link:hover { filter: brightness(1.2); }
.ghost-link code { font-family: var(--font-mono); background: none; color: inherit; }

/* ---------- family line ---------- */
.family-line { max-width: 880px; margin: 20px auto; padding: var(--s8) var(--gutter); text-align: center; }
.five-surfaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.five-surfaces span { color: var(--ink-dim); }
.five-surfaces .hot { color: var(--amber); }
.five-tag { font-size: 22px; font-weight: 800; letter-spacing: -.02em; background: var(--grad-family); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hairline); margin-top: 30px; padding: var(--s8) var(--gutter) 40px; background: linear-gradient(180deg, transparent, var(--slate-950)); }
.footer-top { max-width: var(--maxw); margin: 0 auto; }
.footer-brand { font-size: 22px; font-weight: 850; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; letter-spacing: -.02em; }
.dream-pill { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--indigo); background: var(--indigo-glow); border: 1px solid var(--indigo-line); padding: 4px 11px; border-radius: var(--r-pill); text-transform: uppercase; }
.footer-honest { max-width: 720px; color: var(--ink-dim); font-size: 15px; }
.footer-honest em { color: var(--ink); font-style: italic; }
.footer-fam { max-width: var(--maxw); margin: 30px auto 0; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.fam-label { font-size: 13px; color: var(--ink-faint); }
.footer-fam a { color: var(--indigo); text-decoration: none; font-weight: 700; transition: filter var(--t-fast); }
.footer-fam a:hover { filter: brightness(1.18); }
.footer-fam .fam-self { color: var(--ink); border-bottom: 2px solid var(--indigo); padding-bottom: 1px; }
.footer-bottom { max-width: var(--maxw); margin: 26px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.footer-coward { font-style: italic; }
