/* munito's pages. The values copy the brand tokens (munitoai/brand tokens/tokens.css) and the
   product theme (brand guidelines/product.md): ink accent, violet for focus and munito, square corners. */
:root {
  --bg: #f0eef3; --fg: #211629; --muted: #655b6d;
  --surface: #f8f7fa; --surface-2: #e9e5ee; --border: #d6cedf; --separator: #e0dae7;
  --accent-bg: #211629; --accent-fg: #f0eef3; --focus: #702cf6;
  --violet: #702cf6; --lime: #d7fa4a; --on-lime: #211629; --success: #17c964; --danger: #f31260;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --width: min(1180px, calc(100vw - 48px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141019; --fg: #f0eef3; --muted: #9d93a8;
    --surface: #1b1622; --surface-2: #221c2a; --border: #3a3047; --separator: #2a2333;
    --accent-bg: #f0eef3; --accent-fg: #141019; --focus: #9a68fa;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 16px/1.5 var(--sans); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wordmark { display: inline-flex; }
.wordmark img { display: block; image-rendering: pixelated; }

/* Controls: ink on paper, paper on night. Violet never fills a control. */
.button, .brand-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 1px solid var(--accent-bg); border-radius: 0;
  background: var(--accent-bg); color: var(--accent-fg); font: 500 15px/1 var(--sans);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button.quiet { background: transparent; color: var(--fg); border-color: var(--border); }
.button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.brand-button { min-height: 48px; padding: 0 22px; font-size: 16px; position: relative; overflow: hidden; isolation: isolate; }
.brand-button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform 320ms steps(8);
}
.brand-button:hover, .brand-button:focus-visible { color: var(--on-lime); border-color: var(--lime); }
.brand-button:hover::before, .brand-button:focus-visible::before { transform: scaleX(1); }
.quiet-link { color: var(--muted); text-decoration: none; font-size: 15px; }
.quiet-link:hover { color: var(--fg); }
input[type="tel"], input[name="code"], input:not([type]) {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 0;
  background: var(--surface); color: var(--fg); font: 16px var(--sans);
}
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.notice, .error { margin: 0 0 24px; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); }
.error { border-color: var(--danger); }

/* The landing page: one hero between the header and the footer. */
header.site, footer.site {
  width: var(--width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
}
header.site { height: 72px; }
footer.site { height: 64px; color: var(--muted); font: 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.hero {
  width: var(--width); margin: 0 auto; min-height: calc(100svh - 136px);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 40px;
}
.eyebrow {
  width: fit-content; margin: 0 0 24px -5px; padding: 3px 4px 2px 5px; background: var(--lime); color: var(--on-lime);
  font: 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.hero h1 { margin: 0; font-size: clamp(46px, 5.6vw, 92px); font-weight: 500; line-height: 1.02; letter-spacing: -0.065em; }
.hero h1 span { display: block; }
.lede { max-width: 420px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; letter-spacing: -0.015em; }
.actions { display: flex; align-items: center; gap: 22px; margin-top: 32px; }
.channels { margin: 26px 0 0; color: var(--muted); font: 12px var(--mono); letter-spacing: 0.04em; }
.note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.art { position: relative; margin: 0; display: grid; grid-template-columns: 0.8fr 1fr; align-items: center; gap: 28px; }
.cube { position: relative; width: 100%; aspect-ratio: 372 / 396.8; animation: bob 4s ease-in-out infinite; }
.cube img { position: absolute; inset: 0; width: 100%; opacity: 0; }
.cube .s-think { width: 108.2%; margin: -2.67% 0 0 -4.09%; }
.cube[data-state="idle"] .s-idle, .cube[data-state="blink"] .s-blink,
.cube[data-state="think"] .s-think, .cube[data-state="happy"] .s-happy { opacity: 1; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.phone { border: 1px solid var(--border); background: var(--surface); min-height: 440px; display: flex; flex-direction: column; }
.phone-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--separator); }
.phone-head img { image-rendering: pixelated; }
.phone-head b { display: block; font-size: 14px; font-weight: 500; }
.phone-head small { display: block; color: var(--muted); font: 11px var(--mono); }
.thread { list-style: none; margin: 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: flex-end; }
.msg { position: relative; max-width: 82%; padding: 9px 12px; font-size: 15px; line-height: 1.35; animation: pop 220ms ease-out; }
.msg.in { align-self: flex-start; background: var(--surface-2); }
.msg.out { align-self: flex-end; background: var(--accent-bg); color: var(--accent-fg); }
.msg.typing { display: flex; gap: 4px; padding: 12px; }
.msg.typing i { width: 7px; height: 7px; background: var(--muted); animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.15s; }
.msg.typing i:nth-child(3) { animation-delay: 0.3s; }
.tapback {
  position: absolute; top: -12px; left: -12px; width: 24px; height: 24px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--border); color: var(--violet); font-size: 13px; animation: pop 220ms ease-out;
}
@keyframes pop { from { transform: scale(0.92); opacity: 0; } }
@keyframes dot { 50% { opacity: 0.25; } }

/* Sign-in: the wordmark and the form, nothing else. */
.auth { width: min(400px, calc(100vw - 32px)); margin: 0 auto; padding: 18vh 0 48px; display: grid; gap: 18px; }
.auth h1 { margin: 26px 0 0; font-size: 32px; font-weight: 500; letter-spacing: -0.04em; }
.auth p { margin: 0; }
.auth form { display: grid; gap: 14px; margin-top: 8px; }

/* The workspace: a quiet console page. */
.app { width: var(--width); margin: 0 auto; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; padding: 40px 0 80px; }
.app aside { position: sticky; top: 40px; align-self: start; display: grid; gap: 28px; }
.app nav { display: grid; gap: 8px; }
.app nav a, .nav-button { color: var(--muted); text-decoration: none; font: 15px var(--sans); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.app nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-underline-offset: 5px; }
.app main { max-width: 860px; }
.app section { margin-bottom: 64px; }
.app h2 { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -0.04em; }
.app section > p.muted { margin: 4px 0 18px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fg); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 14px 4px; border-bottom: 1px solid var(--separator); }
.row b { display: block; font-weight: 500; }
.row span { color: var(--muted); font-size: 15px; }
.row .mono { color: var(--muted); }
.row-actions { display: flex; align-items: center; gap: 12px; }
.row-actions form { margin: 0; }
.status { font: 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.status.on { color: var(--success); }
.inline { display: flex; gap: 10px; align-items: center; margin: 0 0 18px; flex-wrap: wrap; }
.inline input[type="tel"] { max-width: 260px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 15px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 24px 0 48px; }
  .art { grid-template-columns: 1fr; }
  .cube { width: 46%; margin: 0 auto; }
  .app { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .app aside { position: static; }
  .row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
