/* status.allow.pub: a sibling of allow.pub's pastel blueprint look.
   Colors and controls follow allow.pub's web/src/styles.css. */
@font-face { font-family: 'Space Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/static/space-grotesk.woff2) format('woff2-variations'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(/static/ibm-plex-mono.woff2) format('woff2'); }

:root {
  --paper: #f4f9fe;
  --paper-2: #e9f3fc;
  --sky-100: #dcecfa;
  --sky-200: #c4def5;
  --sky-300: #a2c9ec;
  --sky-400: #79aee0;
  --sky-500: #4f8fcc;
  --sky-600: #30679f;
  --ink: #1b3456;
  --ink-soft: #4f6a8c;
  --line: #cfe0f1;
  --surface: #ffffff;
  --lilac: #d1cdf3;
  --lilac-ink: #6f67b6;
  --radius: 14px;
  --extrude: 5px 5px 0 var(--sky-200);
  --extrude-sm: 3px 3px 0 var(--sky-200);
  --display: 'Space Grotesk Variable', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: var(--display);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='55.43' height='32'%3E%3Cpath d='M0 0L55.43 32M0 32L55.43 0' stroke='%23d8e8f6' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-attachment: fixed;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: var(--sky-600); }
.muted { color: var(--ink-soft); }
.small-text { font-size: 0.86rem; }
.mono { font-family: var(--mono); font-size: 0.9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky-500); margin-bottom: 6px; }
.eyebrow::before { content: ''; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 8px; }

/* Controls: buttons are slabs that press down. */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.92rem;
  padding: 8px 15px; border-radius: 10px; border: 1.5px solid var(--sky-300);
  background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
  box-shadow: 0 3px 0 var(--sky-300);
  transition: transform 0.08s, box-shadow 0.08s, background 0.12s;
}
button:hover, .button:hover { background: var(--paper-2); }
button:active, .button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sky-300); }
button:focus-visible, .button:focus-visible, input:focus-visible, a:focus-visible { outline: 2.5px solid var(--sky-400); outline-offset: 2px; }
button.primary, .button.primary { background: var(--sky-500); border-color: var(--sky-600); color: #fff; box-shadow: 0 3px 0 var(--sky-600); }
button.primary:hover, .button.primary:hover { background: #4485c3; }
button.primary:active, .button.primary:active { box-shadow: 0 1px 0 var(--sky-600); }
button.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-soft); }
button.ghost:hover { background: var(--sky-100); color: var(--ink); }
.button.big { padding: 12px 22px; font-size: 1rem; border-radius: 12px; }
input {
  font: inherit; width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color 0.12s;
}
input::placeholder { color: #9ab0c8; }
input:hover { border-color: var(--sky-300); }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }

.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--extrude); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.pill { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: var(--sky-100); color: var(--sky-600); border: 1px solid var(--sky-200); }
.pill.agent { background: #f1f0fc; color: var(--lilac-ink); border-color: var(--lilac); }
.avatar { border-radius: 10px; object-fit: cover; display: block; flex-shrink: 0; border: 1.5px solid var(--sky-200); box-shadow: var(--extrude-sm); }
.iso-cube, .agent-glyph, .logo-mark { flex-shrink: 0; display: block; overflow: visible; }
.banner { max-width: 760px; margin: 0 auto 18px; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; background: #eef6fe; border: 1.5px solid var(--sky-200); }

/* Scenes */
.scene { display: block; width: 100%; height: auto; overflow: visible; }
.flow { animation: flow 1.4s linear infinite; }
.bob { animation: bob 3.6s ease-in-out infinite; }
.bob.d1 { animation-delay: -1.2s; }
.bob.d2 { animation-delay: -2.4s; }
.blink { animation: blink 2.8s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes blink { 50% { fill: #ffffff; } }
@media (prefers-reduced-motion: reduce) { .flow, .bob, .blink { animation: none; } }

/* Layout */
.page { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.nav { display: flex; align-items: center; gap: 16px; padding: 22px 0 26px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-actions form { margin: 0; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.logo .dot { color: var(--sky-500); }
.who-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--sky-200); box-shadow: 2px 2px 0 var(--sky-200); font-size: 0.86rem; font-weight: 600; }
.who-chip .avatar { border-radius: 999px; box-shadow: none; border-width: 1px; }
.footer { padding: 48px 0 40px; text-align: center; }

/* Signed out */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 24px 0 56px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.02; }
.hl { background: linear-gradient(transparent 62%, var(--lilac) 62%); padding: 0 4px; }
.lede { font-size: 1.08rem; color: var(--ink-soft); margin-top: 18px; max-width: 500px; }
.hero-cta { margin-top: 28px; }
.hero-art { position: relative; }
.hero-art::before { content: ''; position: absolute; inset: 8% 2% 4% 6%; background: radial-gradient(closest-side, #d3e8fb, transparent); z-index: -1; }
.hero-art .scene { max-height: 340px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step-num { font-family: var(--mono); font-size: 0.75rem; color: var(--sky-500); }

/* Signed in */
.home { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.whoami { display: flex; align-items: center; gap: 18px; background: linear-gradient(160deg, #ffffff 0%, #eaf4fd 100%); }
.whoami .grow { flex: 1; min-width: 0; }
.whoami h1 { font-size: 1.5rem; }
.whoami p { margin-top: 4px; }
.compose-row { display: flex; gap: 10px; }
.compose-row button { white-space: nowrap; }
.timeline { display: flex; flex-direction: column; gap: 14px; }
.current { position: relative; overflow: hidden; padding: 26px 26px 20px; }
.current::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--sky-300); }
.current-text { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin: 4px 0 14px; overflow-wrap: anywhere; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 0.84rem; color: var(--ink-soft); }
.byline strong { color: var(--lilac-ink); }
.dot-sep { color: var(--sky-300); }
.previous-title { margin-top: 10px; }
.previous { list-style: none; margin: 0; padding: 4px 20px; }
.previous li { padding: 13px 0; border-bottom: 1.5px dashed var(--line); display: flex; flex-direction: column; gap: 5px; }
.previous li:last-child { border-bottom: none; }
.previous li p { overflow-wrap: anywhere; }
.empty { padding: 24px 26px; border: 1.5px dashed var(--sky-300); border-radius: var(--radius); background: rgba(255, 255, 255, 0.7); }
.agents { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; background: linear-gradient(160deg, #f8f7fe, #eef5fd); }
.agents-head { display: flex; align-items: center; gap: 14px; }
.agents-head p { margin-top: 4px; }
pre.code { margin: 0; padding: 14px 16px; background: var(--ink); color: #d8e8f8; border-radius: 12px; font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; white-space: pre-wrap; word-break: break-all; box-shadow: 5px 5px 0 var(--sky-300); }
.code-label { display: block; color: var(--sky-300); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }

.error-page { max-width: 560px; margin: 40px auto; }
.error-page h1 { font-size: 1.3rem; line-height: 1.35; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .page { padding: 0 16px; }
  .who-chip { padding: 4px; }
  .who-chip span { display: none; }
  .compose-row { flex-direction: column; }
}
