/*
 * The landing v3 (16.10): / (V1, V2 in a dark browser), /start (V5), /go (V4).
 * From the approved prototypes (reports/day_2026-10-15/landing-3flows/proto/p.css),
 * without the prototype panel. Tokens are the incumbent ones (index.html :root).
 *
 * The pages also load site.css (.sn nav, .sf footer) and chat.css (the chat that
 * opens from the doors). chat.css has its own .btn / .box / .send / .cap — so the
 * landing's buttons are .b3, the laptop caption is .sc-cap, and the chat's
 * composer (#ask.box) is a separate element that only shows in chat mode.
 * This file loads BEFORE chat.css: on equal specificity the chat's rules win.
 */

:root {
  --violet: #5b5be8;
  --violet-deep: #4343c9;
  --violet-ink: #3a3ab8;
  --tint: #f0f0fc;
  --vline: #dcdcf8;
  --ink: #18181b;
  --ink-2: #55555e;
  --ink-3: #6b6b74;
  --line: #e7e7ec;
  --line-2: #d8d8e0;
  --paper: #fff;
  --paper-2: #fafafb;
  --ok: #1f9d55;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --wrap: 1184px;
  --gut: 32px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; scrollbar-color: #c9c9da transparent; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  caret-color: var(--violet);
}
::selection { background: var(--violet); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
@media (max-width: 720px) { :root { --gut: 20px; } }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.skip:focus { top: 12px; }

/* The page column. In chat mode chat.css takes .start / .start-in over. */
.start { flex: 1; }
.start-in { width: 100%; }

/* ── Buttons (.btn belongs to the chat) ───── */
.b3 { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 10px; font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; cursor: pointer; border: 1px solid transparent; transition: background .15s, transform .15s, box-shadow .15s, border-color .15s, color .15s; white-space: nowrap; }
.b3 svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b3-main { background: var(--violet); color: #fff; border-color: var(--violet-deep); box-shadow: 0 1px 2px rgba(24,24,27,.12), 0 6px 20px -8px rgba(91,91,232,.55); }
.b3-main:hover { background: var(--violet-deep); transform: translateY(-1px); box-shadow: 0 1px 2px rgba(24,24,27,.12), 0 10px 24px -8px rgba(91,91,232,.6); }
.b3-ink { background: var(--ink); color: #fff; }
.b3-ink:hover { background: #2e2e35; transform: translateY(-1px); }
.b3-line { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(24,24,27,.05); }
.b3-line:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.b3-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.b3:disabled { opacity: .5; cursor: default; transform: none; }

/* ── The question over the doors ─────── */
.q { font-size: clamp(26px, 3vw, 34px); font-weight: 720; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }

/* ── Doors: the three ways in ────────── */
/* A door is a card; its title link covers the card (::after), the examples
   under door 1 are buttons on top of it — no links inside links. */
.doors { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .doors { grid-template-columns: 1fr; } }
.door {
  position: relative; display: flex; flex-direction: column; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(24,24,27,.04), 0 18px 40px -32px rgba(24,24,27,.35);
  transition: border-color .18s, box-shadow .25s var(--ease), transform .25s var(--ease);
  overflow: hidden; cursor: pointer;
}
.door:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(24,24,27,.04), 0 26px 50px -30px rgba(91,91,232,.55); }
.door:active { transform: translateY(0); }
.door:focus-within { border-color: var(--violet); }
.door-art { position: relative; height: 150px; background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.door-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.door-t { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18.5px; font-weight: 680; letter-spacing: -.02em; line-height: 1.25; }
.door-a { color: inherit; }
.door-a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.door-a:focus-visible { outline: none; }
.door-a:focus-visible::after { outline: 2px solid var(--violet); outline-offset: -2px; }
.door-go { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--violet-ink); transition: background .18s, color .18s, transform .25s var(--ease); }
.door-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.door:hover .door-go { background: var(--violet); color: #fff; transform: translateX(2px); }
.door-d { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.door-ex { position: relative; z-index: 2; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.door-ex button { appearance: none; cursor: pointer; font-size: 12.5px; font-weight: 550; color: var(--ink-2); padding: 4px 10px; border-radius: 999px; background: #f4f4f7; border: 1px solid #ececf1; transition: background .15s, color .15s, border-color .15s; }
.door-ex button:hover, .door-ex button[aria-pressed="true"] { background: var(--tint); color: var(--violet-ink); border-color: var(--vline); }

/* door mini-scenes (authored, not icons) */
.scene { position: absolute; inset: 0; display: grid; place-items: center; }
.sc-row { display: flex; align-items: center; gap: 12px; }
.sc-card { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 1px 2px rgba(24,24,27,.05), 0 10px 22px -16px rgba(24,24,27,.35); }
.sc-bubble { font-size: 12px; line-height: 1.35; padding: 8px 11px; max-width: 150px; border-radius: 12px 12px 12px 4px; color: var(--ink); }
.sc-arrow { width: 34px; height: 12px; flex: none; color: var(--violet); }
.sc-arrow path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 4; }
.sc-arrow path + path { stroke-dasharray: none; }
@media (prefers-reduced-motion: no-preference) { .door:hover .sc-arrow path:first-child { animation: dash .9s linear infinite; } @keyframes dash { to { stroke-dashoffset: -14; } } }
.sc-app { width: 112px; padding: 9px 10px 10px; }
.sc-app.is-w { width: 96px; }
.sc-app .bar { display: flex; gap: 3px; margin-bottom: 7px; }
.sc-app .bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.sc-app .ln { height: 6px; border-radius: 3px; background: #ececf2; margin-top: 5px; }
.sc-app .ln.v { background: var(--vline); width: 60%; }
.sc-app .ln.s { width: 70%; }
.sc-app .row { display: flex; gap: 5px; margin-top: 7px; }
.sc-app .row i { flex: 1; height: 22px; border-radius: 5px; background: #f4f4f8; border: 1px solid #ececf2; }
.sc-url { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px rgba(31,157,85,.14); }
.sc-repo { padding: 9px 11px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); display: grid; gap: 6px; }
.sc-repo .r { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.sc-repo .r i { font-style: normal; color: #9a9aa6; }
.sc-repo svg { width: 13px; height: 13px; flex: none; }
.sc-status { position: absolute; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 550; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 8px; }
.sc-status svg { width: 13px; height: 13px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* door 3: the laptop is closed, the agent keeps working on its server */
.sc-away { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 0 0 30px; }
.sc-lap { position: relative; display: grid; justify-items: center; gap: 4px; opacity: .9; }
.sc-lap .lap { width: 68px; height: 47px; }
.sc-lap .sc-cap { font: 500 10px var(--mono); color: var(--ink-3); white-space: nowrap; }
.sc-lap .zz { position: absolute; top: -10px; right: -6px; font: 600 11px var(--mono); color: var(--ink-3); }
.sc-lap .zz i { font-style: normal; display: inline-block; }
.sc-lap .zz i + i { font-size: 9px; transform: translate(1px, -6px); }
@media (prefers-reduced-motion: no-preference) {
  .sc-lap .zz i { animation: zz 2.4s ease-in-out infinite; }
  .sc-lap .zz i + i { animation-delay: .5s; }
  @keyframes zz { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
}
.sc-srv { width: 168px; background: #16161d; border-color: #16161d; color: #c9c9d6; font-family: var(--mono); font-size: 10px; overflow: hidden; }
.sc-srv .h { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-bottom: 1px solid #262632; color: #8a8a9c; }
.sc-srv .h .r { margin-left: auto; }
.sc-srv .led { width: 6px; height: 6px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 0 3px rgba(95,211,141,.18); }
.sc-srv .who { display: flex; align-items: center; gap: 6px; padding: 7px 9px 3px; color: #fff; font: 600 11px var(--sans); }
.sc-srv .who .lg { width: 13px; height: 13px; display: inline-flex; }
.sc-srv .who .lg svg { width: 100%; height: 100%; }
.sc-srv .tl { padding: 2px 9px 8px; line-height: 1.6; }
.sc-srv .tl .mu { color: #77778a; }
.sc-srv .tl .ok { color: #5fd38d; }
@media (prefers-reduced-motion: no-preference) {
  .sc-srv .led { animation: led 1.6s ease-in-out infinite; }
  @keyframes led { 50% { box-shadow: 0 0 0 5px rgba(95,211,141,.05); } }
  .sc-srv .tl div { opacity: 0; animation: tl 6s infinite; }
  .sc-srv .tl div:nth-child(2) { animation-delay: 1.4s; }
  @keyframes tl { 0% { opacity: 0; transform: translateY(3px); } 6%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
}

/* ── "Ask anything" under the doors ──────
   Its own little form: with JS it starts the chat (UnoChat.say), without JS it is
   a GET to the console's Uno AI, like the old home box. */
.ask { margin-top: 18px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: 0 1px 2px rgba(24,24,27,.04); transition: border-color .15s, box-shadow .2s; }
.ask:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px var(--tint); }
.ask .spark { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ask input[type=text] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--ink); height: 40px; }
.ask input[type=text]::placeholder { color: #85858f; }
.ask-go { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--violet); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.ask-go:hover { background: var(--violet-deep); }
.ask-go svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .ask.is-called, .tbox.is-called { animation: called .9s var(--ease); }
  @keyframes called { from { box-shadow: 0 0 0 7px rgba(91,91,232,.3); } }
}

.more { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; font-size: 14.5px; color: var(--ink-2); }
.more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); transition: color .15s; }
.more a:hover { color: var(--violet-ink); }
.more svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.more .sep { width: 1px; height: 16px; background: var(--line-2); }

/* ── The chat's composer (#ask.box): only in chat mode ──
   The same box as the old home page (index.html before 16.10). chat.css adds the
   chat-mode sizes on top; it loads after this file. */
html:not(.is-chat) #ask { display: none; }
.box {
  position: relative; width: 100%;
  background: #fff; border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(24, 24, 27, .05), 0 22px 44px -30px rgba(58, 58, 184, .38);
  transition: border-color .15s, box-shadow .2s;
  text-align: left;
}
.box:hover { border-color: #c8c8d4; }
.box:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px var(--tint), 0 22px 44px -30px rgba(58, 58, 184, .45); }
.box textarea {
  display: block; width: 100%; resize: none;
  border: 0; outline: 0; background: transparent;
  font: inherit; line-height: 1.5; color: var(--ink);
}
.box textarea::placeholder { color: #85858f; }
.send {
  position: absolute; right: 14px; bottom: 14px;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--violet); color: #fff;
  box-shadow: 0 1px 2px rgba(24, 24, 27, .12), 0 8px 18px -8px rgba(91, 91, 232, .7);
  transition: background .15s, transform .15s, box-shadow .15s, color .15s;
}
.send:hover { background: var(--violet-deep); transform: translateY(-1px); }
.send:disabled { background: #f0f0f4; color: #9a9aa6; box-shadow: none; cursor: default; transform: none; }
.send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Phones: the three doors fit the first screens — no mini-scenes, words and examples stay. */
@media (max-width: 720px) {
  .door-art { display: none; }
  .door-body { padding: 15px 16px 16px; }
  .door-t { font-size: 17px; }
  .door-d { font-size: 14px; }
  .doors { gap: 10px; margin-top: 20px; }
  .door-ex { margin-top: 6px; }
  .door-ex button { padding: 6px 11px; }
  .more { gap: 12px 20px; }
  .more .sep { display: none; }
}
