/* Light only, on purpose. */
:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #6b6b66;
  --faint: #9a9a94;
  --line: #e6e6e1;
  --hover: #f4f4f0;
  --accent: #3d5a80;
  --accent-soft: #e8edf3;
  --shadow: 0 1px 3px rgba(30,30,20,.04), 0 8px 28px rgba(30,30,20,.05);
  /* How long a page takes to slide to the next, and how it eases (decision 32). */
  --slide: .35s;
  --slide-ease: cubic-bezier(.32,.72,0,1);
  /* The AI's own colours, the same on every company (decision 23). */
  --ai-blue: #6387d9;
  --ai-violet: #7c74d9;
  --ai-lilac: #b099ef;
  --ai-mix: linear-gradient(60deg, var(--ai-blue) 0%, var(--ai-violet) 45%, var(--ai-lilac) 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* The page's colour is painted by the landscape behind it (decision 66), not by the body. */
body {
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 920px; margin: 0 auto; padding: 48px 24px 80px; }

/* ---------- shared ---------- */
h1 { font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 12px; letter-spacing: .02em; }
/* Every company page has the same soft blue (--h-*); a logo and a cover can take another of HUES, set inline. */
.monogram {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--h-bg, var(--accent-soft)); color: var(--i-fg, var(--h-fg, var(--accent)));
  font-weight: 600; font-size: 14px;
}
/* Over a logo the letters go white with a shadow, to read on any picture, unless their colour was picked. */
.monogram.has-image {
  background-image: var(--img); background-size: cover; background-position: center;
  color: var(--i-fg, #fff); text-shadow: var(--i-shadow, 0 1px 3px rgba(0,0,0,.45));
}

/* ---------- list page: "Hello" header + "Big & airy" list, picked from 11 proposals each ---------- */
/* No search box (decision 67): the list starts where the box did, 20px under the question, over the foot of the
   mountains, which go on behind it. */
.list-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; padding-top: 14px; }
.list-head + .panel { position: relative; z-index: 1; }
/* 14px in from the right, so the mountains' slope ends before the list's round corner instead of showing past it. */
.list-head .scene { right: 14px; }
.list-head h1 { position: relative; z-index: 1; font-size: 30px; letter-spacing: -.02em; }

/* ---------- the home page's sky: "The sky greets you", picked from 3 proposals (decision 27) ----------
   The Andes on the right of the header, and the greeting in a handwritten italic next to the sun. Day: a pale sun
   high up. Evening: an orange sun low down, rosy mountains. Night: a moon (a circle with a bite taken out),
   bluer mountains. */
.scene { position: absolute; z-index: 0; right: 0; top: -20px; width: 72%; height: 120px; pointer-events: none; }
.cordillera { display: block; width: 100%; height: 100%; }
.cordillera-sun { fill: #f6d9a8; }
/* The bite is a mask, so the sky behind the moon shows through it (decision 66). */
.cordillera-moon-cut { fill: #000; }
.cordillera-far { fill: #dfe6f0; }
.cordillera-snow { fill: #fff; }
.cordillera-near { fill: #c9d5e6; }
.greeting {
  position: absolute; right: calc(22.2% + 44px); top: 4px; margin: 0; white-space: nowrap;
  font: italic 600 26px/1 "Snell Roundhand", "Segoe Script", "Bradley Hand", cursive; color: #b9772a;
}
[data-part="evening"] .scene { background: radial-gradient(260px 120px at 78% 75%, rgba(244,166,110,.22), transparent 70%); }
[data-part="evening"] .cordillera-sun { fill: #f4a66e; }
[data-part="evening"] .cordillera-far { fill: #ead9e3; }
[data-part="evening"] .cordillera-near { fill: #d6c3d8; }
[data-part="evening"] .greeting { color: #c0603a; }
[data-part="night"] .cordillera-sun { fill: #e6e9f2; }
[data-part="night"] .cordillera-far { fill: #cfd6e6; }
[data-part="night"] .cordillera-near { fill: #b3bfd6; }
[data-part="night"] .greeting { color: #4f5b85; }
/* Over the night sky behind every page (decision 66), the greeting is light like the moon. It follows the sky, not
   its own hour: the sky turns to night with the sun. */
body:has(.landscape[data-sky="night"]) .greeting { color: #eef1fb; text-shadow: 0 1px 8px rgba(25, 35, 80, .35); }
/* The welcome (decision 56). The sun is a character: it starts as the usual one, seen from behind, turns round (its
   face slides in, sunglasses on), rises and grows, takes the glasses off, tilts its face and smiles slowly. Its
   bubbles come out under it. The steps are classes the welcome controller puts on the header; without it, only the
   first bubble. Transforms are written with the origin at 0 0 in the drawing's own units: the body starts at the
   usual sun's place and size (700,58, r26, or 700,82 at dusk) and ends at 750,44, r46. The bubbles float over the
   page, which doesn't move for them. */
/* Until the sun is back in its place, nothing but the bubbles can be clicked: not even your menu, which sits above
   everything else. */
.welcome-shield { position: fixed; inset: 0; z-index: 70; }
/* 3 seconds after the sun points at the frequent questions, those and the bubble's × are the only way out. */
.is-armed .welcome-shield { z-index: 50; }
.is-armed :is(.me-btn, .me-menu .me-item:not([href="/faq"])) { pointer-events: none; }
.welcome[data-bubble="point"] .welcome-close { display: none; }
.is-armed .welcome[data-bubble="point"] .welcome-close { display: block; }
[data-controller~="welcome"] .cordillera { overflow: visible; }
.sun-buddy, .sun-buddy-body { transform-box: view-box; transform-origin: 0 0; }
.sun-buddy { transition: transform 1.4s cubic-bezier(.45, 0, .3, 1), opacity .6s; }
.is-returning .sun-buddy { transition-duration: 2.2s; }
.sun-buddy-body { transform: translate(254.35px, 31.39px) scale(.5652); transition: transform 1.9s cubic-bezier(.35, 0, .25, 1); }
.is-returning .sun-buddy-body { transition-duration: 2.2s; }
[data-part="evening"] .sun-buddy-body { transform: translate(254.35px, 55.39px) scale(.5652); }
.is-up .sun-buddy-body { transform: none; }
/* Only the face tilts, the circle stays put. */
.sun-buddy-look { transform-box: fill-box; transform-origin: center; transition: transform 1.2s ease-in-out; }
.is-tilted .sun-buddy-look { transform: rotate(-14deg); transition-duration: .9s; }
/* It starts and ends with the colour of the hour's own sun (or moon), and is the day's sun while it's up. */
.sun-buddy-face { fill: #f6d9a8; transition: fill 1.9s; }
[data-part="evening"] .sun-buddy-face { fill: #f4a66e; }
[data-part="night"] .sun-buddy-face { fill: #e6e9f2; }
.is-up .sun-buddy-face { fill: #f6d9a8; }
.sun-buddy-features { transform: translateX(96px); transition: transform 2.6s ease-in-out; }
.is-turned .sun-buddy-features { transform: none; }
.sun-buddy-eyes { fill: #5b3a1e; transform-box: fill-box; transform-origin: center; animation: sun-blink 4.5s infinite 12s; }
.sun-buddy-smile {
  fill: none; stroke: #8a5a2b; stroke-width: 3.5; stroke-linecap: round;
  transform-box: fill-box; transform-origin: center top; transform: scaleY(.08); transition: transform 2.8s ease-in-out;
}
.is-smiling .sun-buddy-smile { transform: none; }
.sun-buddy-glasses { fill: #2b2b33; stroke: #2b2b33; stroke-width: 3; stroke-linecap: round;
  transform-box: fill-box; transform-origin: center; transition: transform 1.4s ease-in-out, opacity 1.4s ease-in-out; }
.is-unglassed .sun-buddy-glasses { transform: translate(40px, -60px) rotate(25deg); opacity: 0; }
.sun-buddy-arms {
  fill: #ecb862; stroke: #ecb862; stroke-width: 6; stroke-linecap: round; opacity: 0;
  transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform 1s ease-out, opacity .3s;
}
.sun-buddy-arms path { fill: none; }
.is-reaching .sun-buddy-arms { opacity: 1; transform: none; }
.is-away .scene { z-index: 3; }
.is-down .sun-buddy-ground { display: none; }
.is-done .sun-buddy { opacity: 0; transition: opacity .8s; }
[data-controller~="welcome"]:not(.is-done) :is(.cordillera-sun, .cordillera-moon-cut) { opacity: 0; }
.cordillera-sun, .cordillera-moon-cut { transition: opacity .8s; }
@keyframes sun-blink { 0%, 94%, 100% { transform: none; } 97% { transform: scaleY(.1); } }

.welcome {
  display: none; position: absolute; z-index: 71; right: 16px; top: 92px; width: 380px; padding: 12px 34px 12px 16px;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow), 0 0 0 1px var(--line);
  font-size: 14px; line-height: 1.45; transform-origin: 70% 0; animation: welcome-pop .35s cubic-bezier(.3, 1.4, .5, 1);
}
.welcome::before {
  content: ""; position: absolute; top: -7px; right: 89px; width: 14px; height: 14px; background: var(--surface);
  transform: rotate(45deg); box-shadow: -1px -1px 0 var(--line);
}
.welcome[data-bubble="ask"], [data-showing="ask"] .welcome[data-bubble="ask"], [data-showing="tease"] .welcome[data-bubble="tease"],
[data-showing="point"] .welcome[data-bubble="point"] { display: block; }
[data-showing]:not([data-showing="ask"]) .welcome[data-bubble="ask"] { display: none; }
.welcome[data-bubble="tease"] { width: auto; }
.welcome[data-bubble="point"] { width: 300px; }
.welcome p { margin: 0; }
/* Your answers under the sun's question, on the right as in a chat: your circle, as in the menu, and a bubble out
   of it, its tip on the right. */
.welcome-replies { position: absolute; top: calc(100% + 14px); right: 0; display: grid; gap: 10px; justify-items: end; }
.welcome-reply {
  display: flex; flex-direction: row-reverse; align-items: center; gap: 14px;
  animation: welcome-pop .35s cubic-bezier(.3, 1.4, .5, 1) both; transform-origin: 100% 50%;
}
.welcome-reply:nth-child(1) { animation-delay: .7s; }
.welcome-reply:nth-child(2) { animation-delay: 1s; }
.welcome .welcome-say {
  position: relative; display: block; padding: 9px 16px; border: 0; border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--line); font: inherit; font-size: 14px; font-weight: 400; color: var(--text);
  white-space: nowrap; cursor: pointer;
}
.welcome-say::before {
  content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: inherit; transform: rotate(45deg); box-shadow: 1px -1px 0 var(--line);
}
.welcome .welcome-say:hover { background: var(--hover); text-decoration: none; }
.welcome a { color: var(--accent); font-weight: 600; }
.welcome a:hover { text-decoration: underline; }
.welcome-close {
  position: absolute; top: 6px; right: 6px; border: 0; background: none; cursor: pointer; color: var(--faint);
  font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 99px;
}
.welcome-close:hover { background: var(--hover); color: var(--muted); }
.welcome-close:focus-visible { outline: 3px solid var(--accent-soft); }
@keyframes welcome-pop { from { opacity: 0; transform: scale(.7); } }
@media (max-width: 560px) {
  .welcome { left: 0; right: 0; width: auto; }
  .welcome::before { right: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .sun-buddy, .sun-buddy-body, .sun-buddy-look, .sun-buddy-features, .sun-buddy-smile, .sun-buddy-glasses,
  .sun-buddy-arms, .welcome, .welcome-reply { transition: none; animation: none; }
  .sun-buddy-eyes { animation: none; }
}
/* ---------- the Andes at the foot of every page: "Cordillera al pie", picked from 10 proposals (decision 66) ----------
   Fixed behind everything (z-index -1, under the page's own boxes and text), and it paints the page's colour. Two pale
   ranges in the hour's colours, as the home page's sky; mist drifts between them, and every 3 to 7 minutes a condor
   circles up a thermal over the far range (condor.css, and the landscape controller). */
.landscape {
  position: fixed; z-index: -1; inset: 0; pointer-events: none; background: var(--bg);
}
/* "Cielo arriba", picked from 10 proposals: a tint that fades out halfway down the page, always on the move between
   two colours of the time of day in Mendoza (`Sky`), a minute each way. Dawn and dusk, from an hour before sunrise or
   sunset to an hour after: between a rosy red and a faint orange. Day: a sky blue that leans to white. Night: a night
   blue, never dark, with stars that twinkle. */
@property --landscape-sky { syntax: "<color>"; inherits: false; initial-value: #e2eaf6; }
.landscape { --sky-a: #e2eaf6; --sky-b: #eef2f8; }
.landscape:is([data-sky="dawn"], [data-sky="dusk"]) { --sky-a: #f5d3da; --sky-b: #f8dcc4; }
.landscape[data-sky="night"] { --sky-a: #334c94; --sky-b: #4d5ba8; }
.landscape-sky {
  position: absolute; inset: 0 0 auto; height: 65vh;
  background: linear-gradient(to bottom, var(--landscape-sky), transparent);
  animation: landscape-sky 60s ease-in-out infinite alternate;
}
.landscape[data-sky="night"] .landscape-sky {
  background: linear-gradient(to bottom, var(--landscape-sky), color-mix(in srgb, var(--landscape-sky) 45%, transparent) 45%, transparent);
}
@keyframes landscape-sky { from { --landscape-sky: var(--sky-a); } to { --landscape-sky: var(--sky-b); } }
.landscape-stars { display: none; position: absolute; inset: 0; mask-image: linear-gradient(to bottom, #000 30%, transparent 85%); }
.landscape[data-sky="night"] .landscape-stars { display: block; }
.landscape-stars i {
  position: absolute; left: var(--x); top: var(--y); width: 2px; height: 2px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, .7);
  animation: landscape-twinkle var(--t) ease-in-out var(--d) infinite;
}
/* A few bigger ones flash a cross of light at the top of their twinkle. */
.landscape-stars i.is-bright { width: 3px; height: 3px; }
.landscape-stars i.is-bright::before, .landscape-stars i.is-bright::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 1px; margin: -.5px 0 0 -7.5px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, .9), transparent);
}
.landscape-stars i.is-bright::after { transform: rotate(90deg); }
@keyframes landscape-twinkle {
  0%, 100% { opacity: .25; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.15); }
}
/* Now and then a shooting star (the landscape controller sends it): a streak of light that crosses the top of the
   night sky in a second, at one steady speed; only its light comes and goes. */
.landscape-shooting {
  position: absolute; width: 120px; height: 1.5px; border-radius: 1px; opacity: 0; rotate: var(--angle);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, .95));
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .8));
  animation: landscape-shooting 1s linear forwards;
}
@keyframes landscape-shooting {
  0% { translate: 0 0; opacity: 0; }
  15%, 65% { opacity: 1; }
  100% { translate: calc(340px * cos(var(--angle))) calc(340px * sin(var(--angle))); opacity: 0; }
}
.landscape-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 150px; overflow: visible; }
.landscape-hills * { transform-box: view-box; transform-origin: 0 0; }
.landscape-far { fill: #e8ecf2; }
.landscape-near { fill: #dfe5ee; }
.landscape[data-part="evening"] .landscape-far { fill: #f1e5ea; }
.landscape[data-part="evening"] .landscape-near { fill: #e8dbe5; }
.landscape[data-part="night"] .landscape-far { fill: #dfe4ef; }
.landscape[data-part="night"] .landscape-near { fill: #d4dbe9; }
.landscape-mist { fill: #fff; opacity: .85; filter: blur(8px); animation: landscape-mist 70s linear infinite; }
.landscape-mist + .landscape-mist { opacity: .7; animation-duration: 95s; animation-delay: -50s; }
@keyframes landscape-mist { from { transform: translateX(-300px); } to { transform: translateX(1900px); } }
/* The condor and its flight are in condor.css, generated by script/condor.py. */
/* The hunt, a secret for one user (decision 69, the landscape controller): near the flying condor the pointer is a red
   sight, a click fires a flash, and a condor shot down falls in a shower of grey and pale feathers. */
.is-aiming { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cg stroke='%23fff' stroke-width='3.6'%3E%3Ccircle cx='16' cy='16' r='10'/%3E%3Cpath d='M16 2v8M16 22v8M2 16h8M22 16h8'/%3E%3C/g%3E%3Cg stroke='%23c62828' stroke-width='1.6'%3E%3Ccircle cx='16' cy='16' r='10'/%3E%3Cpath d='M16 2v8M16 22v8M2 16h8M22 16h8'/%3E%3C/g%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='1.8' fill='%23c62828'/%3E%3C/svg%3E") 16 16, crosshair; }
.landscape-flash {
  position: fixed; z-index: 90; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, #ffd36b 30%, rgba(255, 140, 40, .55) 52%, transparent 70%);
  animation: landscape-flash .22s ease-out forwards;
}
@keyframes landscape-flash { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.landscape-feather {
  position: absolute; width: 5px; height: 17px; margin: -8px 0 0 -2px; border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
  background: #7c8597; pointer-events: none; animation: landscape-feather var(--t) cubic-bezier(.3, .2, .6, 1) forwards;
}
.landscape-feather.is-pale { background: #e9ebee; }
@keyframes landscape-feather {
  0% { transform: translate(0, 0) rotate(var(--from)); opacity: 1; }
  35% { transform: translate(calc(var(--dx) * .6), calc(var(--dy) * .25)) rotate(calc(var(--from) + var(--turn) * .4)); }
  65% { transform: translate(calc(var(--dx) * .85), calc(var(--dy) * .6)) rotate(calc(var(--from) + var(--turn) * .7)); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--from) + var(--turn))); opacity: 0; }
}
@media (max-width: 560px) { .landscape-hills { height: 110px; } }
@media (prefers-reduced-motion: reduce) { .landscape-sky, .landscape-stars i, .landscape-mist { animation: none; } }

.panel { background: var(--surface); border-radius: 24px; padding: 10px; box-shadow: var(--shadow); }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid; grid-template-columns: 56px 1fr auto 16px;
  align-items: center; gap: 18px; padding: 18px; border-radius: 16px;
  transition: background .15s;
}
.rows li + li .row { box-shadow: inset 0 1px 0 #f0f0eb; }
.rows li .row:hover { background: var(--hover); box-shadow: none; }
.row .monogram { width: 56px; height: 56px; border-radius: 18px; font-size: 18px; }
.row-name { font-size: 18px; font-weight: 600; }
.row-sub { font-size: 14px; color: var(--muted); }
.pill { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.chev { color: var(--faint); }
.empty { padding: 32px; text-align: center; color: var(--muted); }

/* ---------- you: "Avatar, top right", picked from 10 proposals ----------
   Your initials in a circle at the top right of the home page, across from "Hi there 👋". Clicking it opens a small
   menu: who you are, Settings, Log out. Your picture takes the place of your initials once you upload one. */
.list-head { position: relative; }
.me { position: absolute; top: -8px; right: 0; z-index: 60; }
.me-btn { all: unset; box-sizing: border-box; display: inline-flex; cursor: pointer; border-radius: 999px; }
.me-btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
/* Off the home page it closes every page's top row, after that page's own buttons ("Far right", picked from 10
   proposals). The back pill takes the slack, so the rest stay together on the right. */
.page-top .me { position: relative; top: auto; right: auto; flex: none; }
.page-top > .back:first-child { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.page-top :is(.back, .add-card, .btn) { white-space: nowrap; }
.me-av {
  flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  transition: box-shadow .15s;
}
.me-btn:hover > .me-av, .me-btn[aria-expanded="true"] > .me-av { box-shadow: 0 0 0 4px var(--hover); }
.me-av.has-image { background: var(--img) center / cover; color: transparent; }
.me-av-lg { width: 40px; height: 40px; font-size: 14px; }
/* Under the avatar, right edges lined up. */
.me-menu {
  position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: 248px; padding: 6px; background: var(--surface); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(30,30,20,.12), 0 1px 3px rgba(30,30,20,.06); animation: me-in .14s ease-out;
}
.me-menu[hidden] { display: none; }
@keyframes me-in { from { opacity: 0; transform: translateY(-4px); } }
.me-who { display: flex; align-items: center; gap: 12px; padding: 10px 10px 8px; min-width: 0; }
.me-who > div { min-width: 0; }
.me-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.me-mail { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.me-hr { border: 0; height: 1px; background: #f0f0eb; margin: 6px 4px; }
.me-item {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--text); cursor: pointer;
}
.me-item .t-ico { color: var(--muted); }
.me-item:hover, .me-item:focus-visible { background: var(--hover); }
/* the settings page: who you are, changing your picture, and Log out */
.settings { --h-fg: var(--accent); --h-bg: var(--accent-soft); }
.settings h1 { margin-bottom: 24px; }
.settings .section + .section { margin-top: 16px; }
.settings .section { padding: 26px 32px 28px; }
.settings .section .me-who { padding: 0; gap: 20px; }
.settings .section .me-av-lg { width: 72px; height: 72px; font-size: 24px; }
.settings .section .me-name { font-size: 17px; }
.settings .section .me-mail { font-size: 14px; }
.settings .section .avatar { flex: none; border-radius: 999px; background: none; }
.settings .section .avatar .edit-badge { width: 26px; height: 26px; right: -2px; bottom: -2px; }
.settings .section .avatar .edit-badge svg { width: 11px; height: 11px; }
.settings .preview-logo { background-color: var(--h-bg); }
.settings-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid #f0f0eb; }
.settings-foot .btn .t-ico { width: 16px; height: 16px; color: var(--muted); }

/* ---------- company page: "Cover" profile, picked from 10 proposals ---------- */
.company { display: flex; flex-direction: column; --h-bg: #e2ebfa; --h-fg: #2f5aa8; --h-tint: #f3f7fd; }
/* Top row: back link, and "+ Add a card" across from it ("Top right", picked from 10 proposals). */
.page-top { display: flex; justify-content: flex-start; align-items: center; gap: 12px; margin-bottom: 32px; }
.back, .add-card {
  font: inherit; font-size: 14px; color: var(--muted); padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface); box-shadow: 0 1px 2px rgba(30,30,20,.06); transition: color .15s, box-shadow .15s;
}
.back:hover, .add-card:hover { color: var(--text); box-shadow: 0 3px 10px rgba(30,30,20,.08); }
.add-card:focus-visible { outline: 3px solid var(--h-bg); outline-offset: 1px; }

.profile { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
/* The cover shows the company's image once it has loaded (--img + .has-image); until then, or without one,
   a soft blend of its colours ("Blend", picked from 11 proposals). Clicking it opens the image editor. */
.cover {
  all: unset; box-sizing: border-box; display: block; width: 100%; position: relative; cursor: pointer;
  height: 130px; background-color: var(--h-bg); background-size: cover; background-position: center;
  background-image: linear-gradient(120deg, var(--h-bg) 10%, var(--h-bg2) 90%);
}
.cover.has-image { background-image: var(--img); }
.cover:focus-visible { outline: 2px solid var(--h-fg); outline-offset: -4px; }
.profile-body { display: flex; flex-direction: column; padding: 0 32px 26px; }
.co-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 6px; }
.co-head > div { padding-top: 8px; }
/* Half on the cover, half below it. Clicking it opens the image editor. */
.co-head .monogram {
  width: 104px; height: 104px; border-radius: 999px; font-size: 34px; margin-top: -52px;
  background-color: var(--h-tint); box-shadow: 0 0 0 5px var(--surface);
}
.avatar { border: 0; padding: 0; font-family: inherit; position: relative; cursor: pointer; }
.avatar:focus-visible { outline: 2px solid var(--h-fg); outline-offset: 3px; }
.ico { width: 18px; height: 18px; flex: none; }
.co-head h1 { font-size: 32px; }
.updated { margin: 2px 0 0; font-size: 13px; color: var(--faint); }
.tagline { font-size: 17px; margin: 6px 0 4px; }
.summary { margin: 0 0 14px; color: var(--muted); max-width: 560px; white-space: pre-line; }
.site {
  align-self: flex-start; font-size: 14px; color: var(--h-fg); background: var(--h-bg);
  border-radius: 999px; padding: 5px 14px;
}
.site:hover { filter: brightness(.97); }
.site.badge:hover { filter: none; }

/* Editing the profile (asked for directly, no options round): on hover, a small pencil on the cover, on the logo
   circle, and in the text's top-right corner, which opens a form for the details. Always shown on touch screens. */
.profile-body { position: relative; }
.edit-badge {
  position: absolute; display: grid; place-items: center; border-radius: 999px; pointer-events: none;
  background: rgba(255,255,255,.92); color: var(--text); box-shadow: 0 2px 8px rgba(30,30,20,.16);
  opacity: 0; transition: opacity .15s;
}
.edit-badge svg { width: 14px; height: 14px; }
.cover .edit-badge { top: 12px; right: 14px; width: 32px; height: 32px; }
.avatar .edit-badge { right: 0; bottom: 0; width: 28px; height: 28px; }
.avatar .edit-badge svg { width: 12px; height: 12px; }
.cover:hover .edit-badge, .cover:focus-visible .edit-badge,
.avatar:hover .edit-badge, .avatar:focus-visible .edit-badge { opacity: 1; }
.profile-edit { top: 14px; right: 16px; }
/* The logo circle sits inside the text block, so hovering it must not show the text's pencil. */
.profile-body:hover:not(:has(.avatar:hover)) .profile-edit { opacity: 1; }
@media (hover: none) { .edit-badge { opacity: 1; } }

/* the details form */
.form { display: grid; grid-template-columns: 96px 1fr; gap: 14px 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.form textarea { resize: none; field-sizing: content; min-height: 3.2em; line-height: 1.5; }
.form :is(input, textarea) {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid #e1e1da;
  border-radius: 12px; padding: 9px 12px; outline: none; min-width: 0; box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: border-color .15s, box-shadow .15s;
}
.form :is(input, textarea):hover { border-color: #cfcfc6; }
.form :is(input, textarea):focus { border-color: var(--h-fg); box-shadow: 0 0 0 3px var(--h-bg); }

.card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.section { padding: 22px 32px; position: relative; }
.section-edit {
  all: unset; box-sizing: border-box; position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px;
  color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s;
}
.section-edit svg { width: 16px; height: 16px; }
.section:hover .section-edit, .section-edit:focus-visible { opacity: 1; }
.section-edit:hover { background: var(--h-bg); color: var(--h-fg); }
.section-edit:focus-visible { outline: 3px solid var(--h-bg); }
@media (hover: none) { .section-edit { opacity: 1; } }
.section h2 { font-size: 16px; color: var(--text); margin: 0 0 10px; }
.section p { margin: 0; line-height: 1.6; }

.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.people .monogram { width: 36px; height: 36px; font-size: 13px; border-radius: 999px; }
.person-role { font-size: 13px; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 8px 0; }
.timeline li + li { border-top: 1px solid #f0f0eb; }
.when { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }

.notes { white-space: pre-line; color: var(--text); }

/* ---------- new card page ----------
   A card is a name plus parts, and each part has a type (Text, List, To-dos, People, Dates, Links, Numbers, Documents, Places,
   Pictures). The card takes the page's whole width, as on its own page; a part is added from the + above any part, which
   shows on hover, or the one after the last ("Insert between parts", picked from 10 proposals, decision 46). Parts drag
   into any order by their grip. */
.t-ico { width: 18px; height: 18px; flex: none; }
.page-top .btn { padding: 8px 18px; }
.builder { position: relative; }
/* The menu of types, under the + that opened it. */
.insert-menu {
  position: absolute; z-index: 60; left: 0; right: 0; width: fit-content; margin: 0 auto; display: grid; gap: 2px; padding: 6px;
  grid-template-columns: repeat(3, 160px); background: var(--surface); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(30,30,20,.12), 0 1px 3px rgba(30,30,20,.06); animation: me-in .14s ease-out;
}
.insert-menu[hidden] { display: none; }
.insert-menu form { display: contents; }
.type-pick {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 5px 12px 5px 5px; border-radius: 13px; font-size: 14px; transition: background .15s;
}
.type-pick:hover { background: var(--hover); }
.type-pick:focus-visible { outline: 3px solid var(--h-bg); }
.type-tile {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--h-tint); color: var(--h-fg); transition: background .15s;
}
.type-pick:hover .type-tile { background: var(--h-bg); }
.card-name {
  all: unset; box-sizing: border-box; display: block; width: 100%; font-size: 20px; font-weight: 600;
  letter-spacing: -.01em; color: var(--text);
}
.builder input::placeholder, .builder textarea::placeholder { color: var(--faint); opacity: 1; }
.parts { display: grid; gap: 14px; margin-top: 12px; }

/* The + that adds a part: a thin line with a round + in the middle, in the gap above a part, showing on hover; after
   the last part it's always there. Hovering it doesn't light up the part under it. */
.part-insert { position: absolute; z-index: 3; left: 26px; right: 12px; top: -18px; height: 22px; }
.part-insert::before {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; border-radius: 2px; background: var(--h-bg);
  opacity: 0; transition: opacity .15s;
}
.part-insert-btn {
  all: unset; box-sizing: border-box; position: absolute; left: 50%; top: -2px; transform: translateX(-50%); display: grid;
  place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--surface); color: var(--h-fg);
  box-shadow: 0 0 0 1px var(--line); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s;
}
.part-insert-btn .t-ico { width: 16px; height: 16px; }
.part-insert-btn:hover { background: var(--h-tint); }
.part-insert-btn:focus-visible { outline: 3px solid var(--h-bg); }
.part-insert:is(:hover, .open, :has(:focus-visible))::before, .part-insert:is(:hover, .open, :has(:focus-visible)) .part-insert-btn,
.part-insert-last::before, .part-insert-last .part-insert-btn { opacity: 1; }
.part-insert-last { position: relative; left: auto; right: auto; top: auto; margin: 14px 0 0; }
.part:has(.part-insert:hover) { background: var(--surface); }
.part:has(.part-insert:hover) :is(.part-grip, .part-remove) { opacity: 0; }

/* One part. The grip on its left drags it; the × on its right removes it. Both show on hover. */
.part {
  position: relative; padding: 8px 44px 8px 26px; margin: 0 -12px 0 -26px; border-radius: 14px;
  background: var(--surface); transition: background .15s, box-shadow .15s, transform .2s ease;
}
.part:hover, .part:focus-within { background: #fafaf7; }
.part.dragging {
  z-index: 2; transition: background .15s, box-shadow .15s; background: var(--surface);
  box-shadow: 0 12px 32px rgba(30,30,20,.14), 0 0 0 2px var(--h-bg);
}
.part-grip, .part-remove {
  all: unset; box-sizing: border-box; position: absolute; display: grid; place-items: center;
  color: var(--faint); opacity: 0; transition: opacity .15s, background .15s, color .15s;
}
.part-grip { left: 3px; top: 8px; width: 20px; height: 28px; border-radius: 7px; cursor: grab; touch-action: none; }
.part-remove { right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 999px; cursor: pointer; }
.part-grip .t-ico, .part-remove .t-ico { width: 16px; height: 16px; }
.part:hover :is(.part-grip, .part-remove), .part:has(:focus-visible) :is(.part-grip, .part-remove), .part.dragging .part-grip { opacity: 1; }
.part-grip:hover, .part-remove:hover { background: var(--hover); color: var(--text); }
.part-grip:focus-visible, .part-remove:focus-visible { outline: 3px solid var(--h-bg); }
.part.dragging .part-grip { cursor: grabbing; }
html.dragging-part, html.dragging-part * { cursor: grabbing !important; user-select: none; }
@media (hover: none) { .part-grip, .part-remove { opacity: 1; } }
.part-text {
  all: unset; box-sizing: border-box; display: block; width: 100%; field-sizing: content; min-height: 1.6em;
  line-height: 1.6; white-space: pre-wrap; color: var(--text);
}
.line { display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--faint); }
.line input:not([type=checkbox]) { all: unset; box-sizing: border-box; flex: 1; min-width: 0; color: var(--text); line-height: 1.6; }
.line-av + input { flex: 0 1 auto !important; field-sizing: content; min-width: 7ch; }
.line input.line-role { color: var(--muted); font-size: 14px; }
.line input.line-when { flex: none; width: 110px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.line input.line-num { flex: none; width: 84px; font-size: 20px; font-weight: 600; }
.line input[type=checkbox] { margin: 0; width: 16px; height: 16px; accent-color: var(--h-fg); flex: none; }
.line .t-ico { width: 16px; height: 16px; }
.line-dot { width: 5px; height: 5px; margin: 0 5px; border-radius: 99px; background: var(--muted); flex: none; }
.line .line-av { width: 30px; height: 30px; font-size: 12px; border-radius: 999px; }
.pics.dropping { outline: 2px dashed var(--h-fg); outline-offset: 6px; border-radius: 12px; }
/* A picture or a video takes the card's whole width, at its own proportions (decision 44); a smaller one keeps its
   size, never stretched, centred. A tall one stops at most of the screen's height. */
.media { display: grid; gap: 10px; justify-items: center; }
.media img, .media video { display: block; max-width: 100%; height: auto; max-height: 80vh; border-radius: 14px; }
.media .pic-open { all: unset; display: block; max-width: 100%; cursor: zoom-in; border-radius: 14px; }
.media .pic-open:focus-visible { outline: 3px solid var(--h-bg); outline-offset: 2px; }
.pics-add {
  all: unset; box-sizing: border-box; cursor: pointer; width: 84px; height: 84px; border-radius: 12px;
  display: grid; place-items: center; background: var(--bg); color: var(--faint); transition: background .15s, color .15s;
}
.pics-add:hover { background: var(--h-tint); color: var(--h-fg); }
.pics-add:focus-visible { outline: 3px solid var(--h-bg); }

/* A saved card on the company page. */
.card-part + .card-part { margin-top: 14px; }
.card-list { margin: 0; padding-left: 20px; line-height: 1.7; }
.card-todo { list-style: none; margin: 0; padding: 0; }
.card-todo li { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.card-todo span { width: 14px; height: 14px; border-radius: 5px; box-shadow: inset 0 0 0 1.6px var(--faint); flex: none; }
.card-todo .done { color: var(--faint); text-decoration: line-through; }
.card-todo .done span { background: var(--h-fg); box-shadow: none; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; }
/* Wide columns, so amounts like $1.814.993,95 fit on one line. */
.card-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 20px; }
.card-nums b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.card-nums span { font-size: 13px; color: var(--muted); }
/* Documents and Places, and pictures that open big in the modal with an optional caption. They came with the
   real companies (see seed/CAMBIOS.md). */
.card-docs, .card-places { list-style: none; margin: 0; padding: 0; }
.card-docs li + li, .card-places li + li { border-top: 1px solid #f0f0eb; }
.card-docs a, .card-places li { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: inherit; text-decoration: none; }
.card-docs a:hover .doc-name, .card-places a:hover { color: var(--h-fg); }
.doc-tile {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--h-tint); color: var(--h-fg); font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
.doc-tile .t-ico { width: 17px; height: 17px; }
.doc-kind, .place-note { font-size: 13px; color: var(--muted); }
.card-places a { color: inherit; text-decoration: none; }
.pic-big { display: block; max-width: 100%; max-height: calc(100vh - 180px); margin: 0 auto; border-radius: 12px; }
.docs { display: grid; gap: 6px; }
.docs .doc-row { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.docs .pics-add { width: 36px; height: 36px; border-radius: 10px; }
.card-new { animation: card-new 2.4s ease-out; }

/* A green toast at the foot of the page, centred clear of the assistant's corner: it rises, stays a few seconds and goes on
   its own, for a card just published (decision 65). */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 28px; display: flex; align-items: center; gap: 8px; margin: 0;
  padding: 10px 16px 10px 13px; border-radius: 999px; background: #e3f3e8; color: #1d6b3d; font-size: 14px; font-weight: 500;
  box-shadow: inset 0 0 0 1px #c6e6d1, 0 8px 28px rgba(30,30,20,.1); white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 0);
  animation: toast 4.2s ease-out both;
}
/* The hunt's toast (decision 69) is hell's: dark red, a little longer, and it wraps a long sentence. */
.toast.is-condor { max-width: calc(100vw - 40px); background: #3b1210; color: #ffd7c4; white-space: normal; text-align: center;
  box-shadow: inset 0 0 0 1px #6e2018, 0 8px 28px rgba(60, 10, 0, .3); animation-duration: 6s; }
.toast .t-ico { box-sizing: content-box; width: 13px; height: 13px; padding: 3px; border-radius: 999px; background: #2e8b57;
  color: #fff; stroke-width: 2.6; }
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, 12px); }
  8%, 85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes toast { 0% { opacity: 0; } 4%, 88% { opacity: 1; } 100% { opacity: 0; } }
}
@keyframes card-new { from { box-shadow: var(--shadow), 0 0 0 3px var(--h-bg); } }

/* ---------- the AI's text field (shared/_ai_field): "Fainter shimmer", picked from 5 rounds of proposals ----------
   The gradient sparkle badge, a pale blue-to-lilac tint fading out from it, and a faint sheen crossing it every
   6 seconds. The organization's search and the card form's instructions both use it. */
.ai-field {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-start; gap: 6px;
  padding: 6px; border: 1px solid #e1e1da; border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
  background: linear-gradient(90deg, #edf1fc 0%, #f5f0fe 28%, var(--surface) 60%); transition: border-color .15s, box-shadow .3s;
}
.ai-field:focus-within { border-color: var(--ai-violet); }
.ai-field::before {
  content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(176,153,239,.11) 45%, rgba(99,135,217,.07) 60%, transparent 100%);
  transform: translateX(-110%); animation: ai-field-sheen 6s ease-in-out infinite;
}
@keyframes ai-field-sheen { 0% { transform: translateX(-110%); } 40%, 100% { transform: translateX(240%); } }
.ai-field-badge {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--ai-mix);
}
.ai-field-badge .t-ico { width: 18px; height: 18px; stroke: #fff; fill: #fff; }
/* The text is a one-row textarea that grows with what's in it, up to five lines, like the words while the
   microphone listens, so a long dictation keeps its size when it ends. */
.ai-field textarea {
  all: unset; box-sizing: border-box; display: block; flex: 1; min-width: 0; padding: 6px; font-size: 15px; line-height: 1.5;
  color: var(--text); field-sizing: content; max-height: calc(7.5em + 12px); overflow-y: auto; resize: none;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.ai-field textarea::placeholder { color: var(--faint); opacity: 1; }
/* While the assistant works on it, the sheen speeds up, the badge breathes and its sparkle turns into a spinner. */
.ai-field.working { border-color: #d6cff6; box-shadow: 0 0 0 4px rgba(176,153,239,.12); }
.ai-field.working::before { animation-duration: 1.8s; }
.ai-field.working .ai-field-badge { animation: ai-field-breathe 1.2s ease-in-out infinite; }
/* What was sent stays in it, muted, until the answer comes. */
.ai-field.working textarea { color: var(--muted); }
.ai-field-spin {
  display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: ai-spin .8s linear infinite;
}
.ai-field.working .ai-field-badge .t-ico { display: none; }
.ai-field.working .ai-field-spin { display: block; }
/* Its × while it works, in the microphone's place: the same round button, to stop it. */
.ai-field-stop {
  all: unset; box-sizing: border-box; flex: none; cursor: pointer; display: none; place-items: center;
  width: 36px; height: 36px; border-radius: 999px; background: #f3f0fe; color: var(--ai-violet); transition: background .15s;
}
.ai-field.working .ai-field-stop { display: grid; }
.ai-field.working .ai-field-mic { display: none; }
.ai-field-stop:hover { background: #e6e1fb; }
.ai-field-stop:focus-visible { outline: 3px solid #e6e1fb; outline-offset: 1px; }
.ai-field-stop .t-ico { width: 18px; height: 18px; stroke-width: 2.2; }
@keyframes ai-field-breathe { 50% { box-shadow: 0 0 0 6px rgba(176,153,239,.22); } }
@media (prefers-reduced-motion: reduce) { .ai-field::before, .ai-field-badge, .ai-field-spin { animation: none !important; } }
/* The microphone at its end ("Words arrive in colour", picked from 10 proposals, decision 28): a click turns it into a
   stop with a small wave beside it, and what's heard is written in the field as it's said, each word arriving in
   the AI's gradient and settling into plain text. */
.ai-field-mic {
  all: unset; box-sizing: border-box; flex: none; cursor: pointer; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px; background: #f3f0fe; color: var(--ai-violet);
  transition: background .15s, color .15s, opacity .15s;
}
.ai-field-mic[hidden] { display: none; }
.ai-field-mic:hover { background: #e6e1fb; }
.ai-field-mic:focus-visible { outline: 3px solid #e6e1fb; outline-offset: 1px; }
.ai-field-mic .t-ico { width: 18px; height: 18px; }
.ai-field-mic .t-ico:last-child { display: none; }
.ai-field.working .ai-field-mic { opacity: .45; pointer-events: none; }
.ai-field-live {
  display: none; flex: 1; min-width: 0; flex-direction: column; justify-content: flex-end; overflow: hidden;
  max-height: 7.5em; margin: 6px 0; padding: 0 6px; font-size: 15px; line-height: 1.5; color: var(--text);
}
/* A long dictation wraps and the field grows a line at a time, up to five; past that the oldest line goes up out of
   view ("The field grows", picked from 5 proposals). The badge, the wave and the stop stay on the first line. */
.ai-field-words { display: flex; flex: none; flex-wrap: wrap; }
.ai-field-words i {
  flex: none; margin-right: .28em; font-style: normal;
  background: var(--ai-mix); -webkit-background-clip: text; background-clip: text;
}
.ai-field-words i:last-child { margin-right: 0; }
.ai-field-words i.new { animation: ai-field-word 1.4s ease-out; }
@keyframes ai-field-word {
  0% { color: transparent; opacity: 0; transform: translateY(3px); }
  20% { color: transparent; opacity: 1; transform: none; }
  60% { color: transparent; }
  100% { color: var(--text); }
}
.ai-field-mini-wave { display: none; flex: none; align-items: center; gap: 3px; height: 36px; padding: 8px 0; margin-right: 4px; }
.ai-field-mini-wave i {
  width: 3px; height: 100%; border-radius: 3px; background: var(--ai-mix); transform: scaleY(.3);
  animation: ai-field-wave 1s ease-in-out infinite;
}
.ai-field-mini-wave i:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; }
.ai-field-mini-wave i:nth-child(3) { animation-delay: -.6s; }
.ai-field-mini-wave i:nth-child(4) { animation-delay: -.15s; animation-duration: 1.3s; }
.ai-field-mini-wave i:nth-child(5) { animation-delay: -.45s; animation-duration: .9s; }
@keyframes ai-field-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
/* Once the microphone's sound comes in, the bars follow it instead of the animation. */
.ai-field-mini-wave.metered i { animation: none; transition: transform 70ms linear; }
.ai-field-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ai-field.listening { border-color: var(--ai-violet); }
.ai-field.listening textarea { display: none; }
.ai-field.listening .ai-field-live, .ai-field.listening .ai-field-mini-wave { display: flex; }
.ai-field.listening .ai-field-mic { background: var(--ai-mix); color: #fff; animation: ai-field-pulse 1.4s ease-out infinite; }
.ai-field.listening .ai-field-mic .t-ico:first-child { display: none; }
.ai-field.listening .ai-field-mic .t-ico:last-child { display: block; }
@keyframes ai-field-pulse { from { box-shadow: 0 0 0 0 rgba(124,116,217,.4); } to { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) {
  .ai-field-mini-wave i { animation: none; transform: scaleY(.6); }
  .ai-field-words i.new { animation: none; }
  .ai-field.listening .ai-field-mic { animation: none; }
}

/* ---------- entries on the company page: "Find", picked from 10 proposals ----------
   Every card on a company is an entry. They're rows (an icon for the first part's type, the name, a line of it,
   when it changed) under a box that narrows them down. Clicking a row opens the entry's show page. Rows drag into
   any order: with the mouse from anywhere on the row, on touch by the grip, and with ↑ ↓ on the focused grip. */
.entries { margin-top: 20px; }
.entries .search-form { margin-bottom: 14px; }
/* While Claude searches the box is locked, and shows it ("The text shimmers" with "A bar along the edge", picked
   from 5 proposals, decision 30): what was sent turns grey with the AI's violet sweeping through it, the microphone
   steps aside, and a thin bar in the AI's gradient runs along the field's bottom edge. */
.search-form .ai-field.working, .search-form .ai-field.working textarea { cursor: progress; }
.search-form .ai-field.working .ai-field-mic { display: none; }
.search-form .ai-field.working textarea {
  color: transparent; -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #b9b9b0 0%, #b9b9b0 35%, var(--ai-violet) 50%, #b9b9b0 65%, #b9b9b0 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; animation: search-shimmer 1.8s linear infinite;
}
@keyframes search-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.search-form .ai-field.working::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ai-blue), var(--ai-violet), var(--ai-lilac)) no-repeat -60% 0 / 35% 100%, #ece8fb;
  animation: search-bar 1.3s ease-in-out infinite;
}
@keyframes search-bar { from { background-position: -60% 0, 0 0; } to { background-position: 160% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .search-form .ai-field.working textarea { animation: none; background-position: 50% 0; }
  .search-form .ai-field.working::after { animation: none; background-size: 100% 100%; background-position: 0 0; }
}
.entry-list {
  list-style: none; margin: 0; padding: 10px; position: relative;
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow);
}
.entry {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 14px; align-items: center; gap: 16px;
  padding: 14px 18px 14px 26px; border-radius: 16px; transition: transform .2s ease, background .15s, box-shadow .15s;
}
.entry + .entry { box-shadow: inset 0 1px 0 #f0f0eb; }
.entry[hidden] { display: none; }
.entry:hover, .entry:hover + .entry { box-shadow: none; }
.entry:hover { background: var(--hover); }
.entry-tile {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--h-tint); color: var(--h-fg);
}
.entry-main { display: flex; flex-direction: column; min-width: 0; }
.entry-link { font-size: 16px; font-weight: 600; outline: none; }
/* The link covers the whole row. */
.entry-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.entry:has(.entry-link:focus-visible) { outline: 3px solid var(--h-bg); outline-offset: 2px; }
/* A card's kind (decision 47): its icon in its colour in the row's tile, and its name in a soft pill of its colour,
   beside the title in the list and above it on the form, where it opens the kinds. */
.entry-tile { background: color-mix(in srgb, var(--kind) 13%, white); color: var(--kind); }
.entry-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.entry-title .entry-link { display: flex; align-items: center; gap: 10px; min-width: 0; }
.entry-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kind-pill {
  flex: none; font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap; padding: 3px 10px; border-radius: 999px;
  color: var(--kind); background: color-mix(in srgb, var(--kind) 13%, white);
}
.kind-picker { position: relative; margin-bottom: 8px; }
.kind-button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; color: var(--kind); background: color-mix(in srgb, var(--kind) 13%, white); }
.kind-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--kind) 25%, white); }
.kind-button .t-ico { width: 13px; height: 13px; margin-right: -3px; opacity: .7; }
.kind-menu { left: 0; right: auto; width: 226px; }
.kind-option .t-ico { color: var(--kind); }
.kind-option[aria-checked="true"] { color: var(--kind); font-weight: 600; background: color-mix(in srgb, var(--kind) 13%, white); }
/* What goes in a kind (decision 72): a dark tooltip under its pill, after a moment on it, so running the pointer down
   the list doesn't flash one per row; in the form's menu, beside each kind, at once, to help pick. Above the row's
   link, which covers the row, so the pill can be pointed at; still inside it, so a click opens the card. */
.kind-pill, .kind-button, .kind-option { position: relative; }
.entry-link .kind-pill { z-index: 2; }
.entry-link .kind-pill:hover { z-index: 4; }
.kind-tip {
  position: absolute; z-index: 70; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); width: max-content;
  max-width: 250px; padding: 8px 11px; border-radius: 10px; background: var(--text); color: var(--surface);
  font-size: 13px; font-weight: 400; line-height: 1.4; letter-spacing: 0; white-space: normal; text-align: left;
  box-shadow: var(--shadow); pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .12s, visibility .12s;
}
.kind-tip::after { content: ""; position: absolute; left: 50%; bottom: 100%; margin-left: -6px; border: 6px solid transparent;
  border-bottom-color: var(--text); }
:is(.kind-pill, .kind-button):is(:hover, :focus-visible) > .kind-tip { visibility: visible; opacity: 1; transition-delay: .35s; }
.kind-button[aria-expanded="true"] > .kind-tip { display: none; }
.kind-option .kind-tip { top: 50%; left: calc(100% + 16px); transform: translateY(-50%); }
.kind-option .kind-tip::after { left: auto; right: 100%; bottom: auto; top: 50%; margin: -6px 0 0; border-color: transparent;
  border-right-color: var(--text); }
.kind-option:is(:hover, :focus-visible) > .kind-tip { visibility: visible; opacity: 1; }
@media (max-width: 640px) { .kind-option .kind-tip { display: none; } }
.entry-peek { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-when { font-size: 13px; color: var(--faint); white-space: nowrap; }
.entry .chev { font-size: 20px; line-height: 1; }
.entry-grip {
  all: unset; box-sizing: border-box; position: absolute; z-index: 2; left: 3px; top: calc(50% - 14px);
  display: grid; place-items: center; width: 20px; height: 28px; border-radius: 7px; color: var(--faint);
  cursor: grab; touch-action: none; opacity: 0; transition: opacity .15s, background .15s, color .15s;
}
.entry-grip .t-ico { width: 16px; height: 16px; }
.entry:hover .entry-grip, .entry:has(:focus-visible) .entry-grip, .entry.dragging .entry-grip { opacity: 1; }
.entry-grip:hover { background: var(--hover); color: var(--text); }
.entry-grip:focus-visible { outline: 3px solid var(--h-bg); }
@media (hover: none) { .entry-grip { opacity: 1; } }
.entry-list .entry.dragging {
  z-index: 3; transition: background .15s, box-shadow .15s; background: var(--surface);
  box-shadow: 0 12px 32px rgba(30,30,20,.14), 0 0 0 2px var(--h-bg);
}
.entries-none { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); margin: 0; }
.entry-list[hidden] { display: none; }

/* ---------- an entry's show page ---------- */
.show .section { padding: 30px 40px 36px; }
/* Its kind as in the list (decision 72): the icon's tile on the left of the title and the update under it, and the
   kind's name after the title, in the form's pill. */
.show-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.show-head .entry-tile { flex: none; }
.show-head-main { min-width: 0; }
.show-title { display: flex; align-items: center; gap: 12px; }
.show-title h2 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.kind-tag { font-size: 13px; outline: none; cursor: default; }
.kind-tag:focus-visible { outline: 3px solid color-mix(in srgb, var(--kind) 25%, white); }
.show .section p.show-updated { margin: 2px 0 0; }
.show .card-part + .card-part { margin-top: 24px; }
/* A card's "Editar", with its pencil, just before you. */
.show-edit { display: inline-flex; align-items: center; gap: 6px; }
.show-edit svg { width: 15px; height: 15px; }
/* An unpublished card, which only its creator sees (decision 54): a quiet word after its kind in the list and after
   "Actualizada" on its page, and "Publicar" in the page's top row, in the page's soft blue. */
.unpublished { flex: none; font-size: 12px; font-weight: 500; color: var(--faint); white-space: nowrap; }
.show-updated .unpublished { font-size: inherit; }
.add-card.publish { background: var(--h-bg); color: var(--h-fg); font-weight: 500; }
.add-card.publish:hover { color: var(--h-fg); filter: brightness(.97); }
/* A card's history, from the clock before "Editar": its versions on the left, the one picked as it was on the right. */
.page-top .card-more .t-ico { width: 18px; height: 18px; }
.versions { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px; max-height: min(560px, 100dvh - 200px); }
.version-list { list-style: none; margin: 0; padding: 0; overflow: auto; }
.version-row {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%;
  padding: 9px 12px; border-radius: 12px; cursor: pointer; transition: background .15s;
}
.version-row:hover { background: var(--hover); }
.version-row[aria-pressed="true"] { background: var(--h-tint); }
.version-row:focus-visible { outline: 3px solid var(--h-bg); outline-offset: -3px; }
.version-when { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.version-title { grid-column: 1 / -1; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-now { grid-row: 1; grid-column: 2; font-size: 12px; color: var(--h-fg); }
.version-panes { overflow: auto; min-width: 0; }
.version-pane { padding: 22px 26px; box-shadow: none; background: #fafaf7; }
.version-pane > h3 { margin: 0 0 16px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.version-pane p { margin: 0; line-height: 1.6; }
.version-pane .notes { color: var(--text); }
@media (max-width: 560px) {
  .versions { grid-template-columns: 1fr; max-height: none; }
  .version-list { max-height: 180px; }
}
/* The form's history, before its menu: when the card was last saved, undo and redo in one pill, and the floppy disk. */
.history { display: flex; align-items: center; gap: 10px; }
/* On a phone the form's top row doesn't fit in one line: back and the buttons stay in the first, and the history (the
   time, undo and redo, the disk) goes under them on the right, with room on its left for its note. */
@media (max-width: 560px) {
  .page-top:has(.history) { flex-wrap: wrap; }
  .page-top:has(.history)::after { content: ""; order: 1; flex-basis: 100%; }
  .page-top:has(.history) > .history { order: 2; margin: 12px 0 0 auto; }
}
.saved-at { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.undo-redo {
  display: inline-flex; align-items: stretch; height: 36px; border-radius: 999px; overflow: hidden; flex: none;
  background: var(--surface); box-shadow: 0 1px 2px rgba(30,30,20,.06); transition: box-shadow .15s;
}
.undo-redo:not(:has(button:enabled)) { box-shadow: none; }
.undo-redo form { display: contents; }
.undo-redo button {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 11px; cursor: pointer;
  color: var(--muted); transition: color .15s, background .15s, opacity .15s;
}
.undo-redo form:first-child button { padding-left: 13px; }
.undo-redo form + form button { padding-right: 13px; border-left: 1px solid #f0f0eb; }
.undo-redo button:hover:not(:disabled) { color: var(--text); background: var(--hover); }
.undo-redo button:focus-visible { outline: 3px solid var(--h-bg); outline-offset: -3px; }
.undo-redo button:disabled { opacity: .4; cursor: default; }
.undo-redo .t-ico { width: 16px; height: 16px; }
/* The form's three dots, a white circle like the pill beside it, opening the card's menu (the avatar's, smaller). */
.card-menu { position: relative; flex: none; }

/* A new card's "Publicar" in the form's top row: one soft-blue pill, "Publicar | ?", whose "?" says what a borrador
   is in a tooltip (decision 65), on hover or on focus, which a tap gives too. Before it, "Guardada 16:24 · Borrador". */
.saved-at .unpublished { font-size: inherit; }
.card-publication { display: contents; }
.card-publication form { display: contents; }
.publish-split { position: relative; flex: none; display: inline-flex; align-items: stretch; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(30,30,20,.06); }
.publish-split .add-card.publish { border-radius: 999px 0 0 999px; padding-right: 12px; box-shadow: none; }
.publish-help { position: relative; flex: none; display: grid; place-items: center; width: 34px; border-radius: 0 999px 999px 0;
  background: var(--h-bg); color: var(--h-fg); border-left: 1px solid rgba(255,255,255,.85); cursor: help; outline: none; }
.publish-help .t-ico { width: 17px; height: 17px; opacity: .75; transition: opacity .15s; }
.publish-help:is(:hover, :focus) .t-ico { opacity: 1; }
.publish-help:focus-visible { outline: 3px solid var(--h-bg); outline-offset: 1px; }
.publish-tip {
  position: absolute; z-index: 70; top: calc(100% + 10px); right: -8px; width: 260px; display: none; padding: 9px 12px;
  border-radius: 10px; background: var(--text); color: var(--surface); font-size: 13.5px; line-height: 1.4;
  text-align: left; cursor: default; box-shadow: var(--shadow);
}
.publish-tip::after { content: ""; position: absolute; right: 16px; bottom: 100%; border: 6px solid transparent; border-bottom-color: var(--text); }
.publish-help:is(:hover, :focus) .publish-tip { display: block; }
.card-more {
  all: unset; box-sizing: border-box; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px;
  cursor: pointer; color: var(--muted); background: var(--surface); box-shadow: 0 1px 2px rgba(30,30,20,.06);
  transition: color .15s, box-shadow .15s;
}
.card-more:hover, .card-more[aria-expanded="true"] { color: var(--text); box-shadow: 0 3px 10px rgba(30,30,20,.08); }
.card-more:focus-visible { outline: 3px solid var(--h-bg); outline-offset: 1px; }
.card-menu .me-menu { width: 240px; }
.history form:has(.card-save) { display: contents; }
.card-save .t-ico { width: 17px; height: 17px; }
/* While it saves, the disk turns into a spinner (Turbo marks the form busy). */
.history form[aria-busy="true"] .card-save .t-ico { display: none; }
.history form[aria-busy="true"] .card-save::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--h-fg);
  animation: ai-spin .8s linear infinite;
}
/* "Guardado automáticamente" or "Guardado", by the time, right after a save: it shows, then fades within seconds. It
   floats to the left of the time, so nothing moves when it goes. */
.history { position: relative; }
.saved-note {
  position: absolute; right: calc(100% + 10px); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 13px; color: var(--h-fg); pointer-events: none; animation: saved-note 3s ease-in forwards;
}
.saved-note .t-ico { width: 14px; height: 14px; }
@keyframes saved-note { 0% { opacity: 0; transform: translateX(4px); } 8%, 60% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .saved-note { animation: saved-note-still 3s forwards; } }
@keyframes saved-note-still { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.card-menu form, .card-view { display: contents; }
.me-item.danger, .me-item.danger .t-ico { color: #b3261e; }

/* Under a card, a quiet note offers the assistant's proposal (decision 63), between the card and the page's footer.
   On a card taller than the window it floats at the window's foot until the card's end scrolls into view, and then
   rests under it. It's a non-modal dialog that × closes without JavaScript, until the page is opened again. It says
   so while a proposal waits. */
.offer {
  position: sticky; bottom: 16px; z-index: 30; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; margin: 16px 0 0;
  padding: 12px 10px 12px 18px; border: 0; border-radius: 20px; background: var(--surface); color: var(--text);
  font-size: 14px; line-height: 1.4; box-shadow: var(--shadow), 0 0 0 1px #ece9f6;
}
.offer:not([open]) { display: none; }
/* Where the window is narrow, the assistant's round button shares its corner: the note floats above it. */
@media (max-width: 1100px) { .offer { bottom: 92px; } }
.offer > .t-ico { flex: none; width: 18px; height: 18px; color: var(--ai-violet); }
.offer-text { flex: 1; min-width: 0; }
.offer-text strong { display: block; font-weight: 600; }
.offer-text span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.offer .btn { flex: none; padding: 8px 16px; background: var(--ai-mix); color: #fff; }
.offer form[method="dialog"] { display: contents; }
.offer-x {
  all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 999px; color: var(--faint);
}
.offer-x:hover { background: var(--hover); color: var(--text); }
.offer-x .t-ico { width: 15px; height: 15px; }
@media (max-width: 560px) { .offer { flex-wrap: wrap; } .offer-text { flex-basis: calc(100% - 60px); } .offer .btn { margin-left: 30px; } }

/* The assistant's proposal beside the card ("Side by side", picked from 10 proposals, decision 63): the card as it is,
   a little faded, and the proposal with a lilac edge, what it changes tinted in the AI's palest lilac. Under the
   proposal, the assistant's field, then Descartar and Aceptar, which wait while it writes. On a phone, one under the
   other. */
body:has(.proposal-page) .wrap { max-width: 1240px; }
.proposal-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 14px;
  background: #f3f0fe; color: var(--ai-violet);
}
.proposal-badge .t-ico, .proposal-label .t-ico { width: 15px; height: 15px; }
.proposal-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.proposal-label { display: flex; align-items: center; gap: 6px; margin: 0 0 8px 14px; font-size: 13px; color: var(--muted); }
.proposal-label.proposal-ai { color: var(--ai-violet); }
/* "Ver los cambios", plain clickable text at the end of the proposal's label, opens their list in the modal. */
.proposal-changes-link {
  all: unset; cursor: pointer; margin-left: auto; margin-right: 14px; font-size: 13px; color: var(--ai-violet);
  text-decoration: underline; text-decoration-color: #d6ccf8; text-underline-offset: 3px;
}
.proposal-changes-link:hover { text-decoration-color: currentColor; }
.proposal-changes-link:focus-visible { outline: 2px solid #e6e1fb; outline-offset: 2px; border-radius: 4px; }
.proposal-changes { list-style: none; margin: 0; padding: 0; }
.proposal-changes li { display: grid; gap: 6px; padding: 12px 0; }
.proposal-changes li + li { border-top: 1px solid #f0f0eb; }
.proposal-change-kind { font-size: 13px; color: var(--ai-violet); }
/* Each change, before and after: how it was, faded, and how it would be, on the AI's palest lilac. */
.proposal-change-side { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 8px 12px; border-radius: 12px; line-height: 1.5; }
.proposal-change-side b { font-weight: 500; font-size: 12px; color: var(--faint); padding-top: 2px; }
.proposal-change-side[data-side="before"] { color: var(--muted); background: var(--bg); }
.proposal-change-side[data-side="after"] { color: var(--text); background: #f7f5fe; }
.proposal-change-side[data-side="after"] b { color: var(--ai-violet); }
.proposal-changes li[data-kind="removed"] [data-side="before"] > span { text-decoration: line-through; text-decoration-color: #c9c9c2; }
/* The words that differ: struck in "Antes", tinted in "Después". */
.proposal-change-side del { color: var(--text); text-decoration: line-through; text-decoration-color: #b0aca2; background: #ecebe6; border-radius: 4px; padding: 0 2px; }
.proposal-change-side ins { text-decoration: none; background: #e4dcfc; color: #3b2f8f; border-radius: 4px; padding: 0 2px; }
.proposal-changes li:not([data-kind="changed"]):not([data-kind="title"]) :is(del, ins) { all: unset; }
.proposal-now .card { opacity: .8; }
.proposal-page .section > h2 { margin-bottom: 24px; }
.proposal-card { box-shadow: var(--shadow), 0 0 0 1.5px #ddd5fb; }
.proposal-card .card-part.proposed { margin: 0 -14px; padding: 8px 14px; border-radius: 12px; background: #f7f5fe; }
.proposal-card .card-part.proposed + .card-part, .proposal-card .card-part + .card-part.proposed { margin-top: 16px; }
.proposal-card > h2.proposed { width: fit-content; margin-left: -14px; padding: 2px 14px; border-radius: 10px; background: #f7f5fe; }
.company.locked .proposal-card { position: relative; overflow: hidden; }
.company.locked .proposal-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(176,153,239,.18) 45%, rgba(122,162,240,.12) 55%, transparent 80%);
  transform: translateX(-100%); animation: proposal-sheen 1.8s ease-in-out infinite;
}
@keyframes proposal-sheen { to { transform: translateX(100%); } }
.proposal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.proposal-accept { display: inline-flex; }
.proposal-accept form:first-child .btn { border-radius: 999px 0 0 999px; }
.proposal-accept form:last-child .btn { border-radius: 0 999px 999px 0; box-shadow: inset 1px 0 0 rgba(255,255,255,.35); }
.company.locked .proposal-actions { opacity: .45; pointer-events: none; transition: opacity .2s; }
@media (max-width: 860px) { .proposal-cols { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .company.locked .proposal-card::after { animation: none; } }

/* ---------- the assistant on the card form (a proof of concept) ----------
   A chat widget, like Intercom's: a round button in the bottom-right corner opens a panel with the conversation
   (what you said on the right, its answers on the left) and, at its foot, a microphone, a place to type and a send
   button. You say what to add or change, it fills in the form, and you save. It wears the AI's colours, like the
   topics' search box, without its sheen (decision 23). */
.builder-col { min-width: 0; }
/* Instructions for the assistant under the card, and the bar under them: the step it's on while it works, or what
   went wrong, until the card is edited. Its answer isn't shown (decision 38). */
.instruction { position: relative; margin-top: 16px; }
/* While the assistant works or waits for an answer, the card can't be edited: undo and redo
   fade, and the card itself stays as it is, since what the assistant writes is typed into it. */
.company.locked .history { opacity: .45; pointer-events: none; transition: opacity .2s; }
/* The assistant's question ("Over the card", picked from two rounds of proposals, decision 36): a bubble in the AI's
   gradient floating over the bottom of the card, its tail at the field's badge, so the field doesn't move. Hovering
   it lets the card show through, but not over its ×. */
.instruction-question.waiting { visibility: hidden; }
.ask {
  position: absolute; z-index: 5; left: 0; bottom: calc(100% + 12px); isolation: isolate; display: flex; align-items: flex-start;
  gap: 4px; width: fit-content; max-width: 82%; padding: 11px 8px 11px 16px; border-radius: 20px; background: var(--ai-mix);
  color: #fff; font-size: 15px; line-height: 1.45; box-shadow: 0 6px 20px rgba(124,116,217,.25);
  transition: opacity .2s; animation: ask-in .3s ease-out;
}
.ask:hover:not(:has(button:hover)) { opacity: .3; }
.ask::after {
  content: ""; position: absolute; z-index: -1; left: 18px; bottom: -7px; width: 16px; height: 16px; background: var(--ai-blue);
  transform: rotate(45deg); border-radius: 0 0 4px 0;
}
@keyframes ask-in { from { opacity: 0; transform: translateY(4px); } }
.ask-text { margin: 0; min-width: 0; }
.ask .ask-upload { flex: none; margin: -4px 0 -4px 6px; padding: 7px 14px; background: rgba(255,255,255,.2); color: #fff; }
.ask .ask-upload:hover { background: rgba(255,255,255,.3); }
.ask-x {
  all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 28px; height: 28px;
  margin-top: -3px; border-radius: 999px; color: rgba(255,255,255,.85);
}
.ask-x:hover { background: rgba(255,255,255,.16); color: #fff; }
.ask-x:focus-visible { outline: 2px solid #fff; }
.ask-x .t-ico { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .ask { animation: none; } }
.instruction-bar {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 50px;
  padding: 7px 7px 7px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); font-size: 14px;
  animation: instruction-in .35s ease-out;
}
.instruction-bar[data-state=""], .instruction-bar[data-state="done"] { display: none; }
.instruction-bar.waiting { visibility: hidden; }
.instruction-bar.leaving { opacity: 0; transform: translateY(-4px); transition: opacity .4s, transform .4s; }
@keyframes instruction-in { from { opacity: 0; transform: translateY(-4px); } }
/* Thumbs for the assistant under its field, and the card a thumb opens to say more ("¿Te sirvió? + tarjeta", picked
   from 10 proposals, decision 41). The text grows as it's typed, up to about ten lines. */
.feedback { margin-top: 8px; }
.feedback-row { display: flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: 13px; color: var(--faint); }
.feedback-q { margin-right: 4px; }
.feedback-vote {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 999px; color: var(--faint); transition: background .15s, color .15s;
}
.feedback-vote:hover { background: var(--hover); color: var(--muted); }
.feedback-vote:focus-visible { outline: 2px solid var(--accent-soft); }
.feedback-vote[aria-pressed="true"] { background: var(--hover); color: var(--text); }
.feedback-vote .t-ico { width: 17px; height: 17px; }
.feedback-card {
  display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 14px 14px 12px 16px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow); animation: instruction-in .25s ease-out;
}
.feedback-card[hidden] { display: none; }
.feedback-text {
  all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 44px; max-height: 240px; overflow-y: auto;
  font-size: 14px; line-height: 1.5; color: var(--text); white-space: pre-wrap;
}
.feedback-text::placeholder { color: var(--faint); }
.feedback-actions { display: flex; justify-content: flex-end; gap: 8px; }
.feedback-actions .btn { padding: 7px 14px; font-size: 13px; }
.instruction-say { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: auto; }
.instruction-say em { font-style: normal; }
.instruction-bar[data-state="working"] .instruction-say em { color: var(--muted); }
.instruction-say .t-ico { flex: none; width: 17px; height: 17px; color: var(--ai-violet); }
.instruction-spin {
  flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #e4ddfb; border-top-color: var(--ai-violet);
  animation: ai-spin .8s linear infinite;
}
/* What the assistant is writing into the card, typed out as it arrives. */
.part.writing { background: #fbfaff; box-shadow: 0 0 0 1.5px #e4ddfb; }
.card-name.writing { box-shadow: 0 2px 0 #c9bff4; }
/* Above your avatar menu (.me, 60): on a short window the open panel reaches the top of the page, and the avatar
   showed over its header. Pressing the avatar closes the panel first, so its menu never opens under it. */
.ai {
  position: fixed; right: 24px; bottom: 24px; z-index: 61;
  --h-fg: var(--ai-violet); --h-bg: #e6e1fb; --h-tint: #f3f0fe;
}
/* The model's slider, on every page on a local machine, in the bottom-right corner: left of the assistant's button and
   as tall as it where there is one ("Slider", picked from 10 proposals, `~/general/model-picker-alternatives`,
   decision 34): the names over three notches, the knob in the AI's gradient on the picked one. It follows the
   pointer while dragged and slides to its notch when let go. */
.slider {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; box-sizing: border-box; width: 186px; height: 56px; padding: 0 18px;
  display: flex; justify-content: space-between; background: var(--surface); border-radius: 18px;
  box-shadow: var(--shadow), 0 0 0 1px var(--line); touch-action: none; user-select: none; -webkit-user-select: none;
}
body:has(.ai) .slider { right: 94px; }
.slider-stop { position: relative; width: 50px; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.slider-radio { position: absolute; opacity: 0; pointer-events: none; }
.slider-name { margin-top: 12px; font-size: 11px; color: var(--faint); white-space: nowrap; transition: color .15s; }
.slider-stop:hover .slider-name { color: var(--muted); }
.slider-stop:has(:checked) .slider-name { color: var(--text); font-weight: 600; }
.slider-stop::after { content: ""; position: absolute; top: 35px; width: 8px; height: 8px; border-radius: 50%; background: #cfcfc8; }
.slider-track { position: absolute; left: 43px; right: 43px; top: 37px; height: 4px; border-radius: 2px; background: var(--line); }
.slider-knob {
  position: absolute; z-index: 1; top: 50%; left: calc(var(--at, 1) * 100%); width: 20px; height: 20px; border-radius: 50%;
  background: var(--ai-mix); box-shadow: 0 2px 6px rgba(99,90,200,.35); transform: translate(-50%, -50%);
  cursor: grab; transition: left .2s ease-out;
}
.slider.dragging .slider-knob { cursor: grabbing; transition: none; }
.slider:has(.slider-radio:focus-visible) .slider-knob { outline: 3px solid var(--h-bg); outline-offset: 2px; }
.ai-launcher {
  all: unset; box-sizing: border-box; cursor: pointer; width: 56px; height: 56px; border-radius: 999px;
  display: grid; place-items: center; background: var(--ai-mix); color: #fff;
  box-shadow: 0 8px 24px rgba(99,90,200,.28); transition: transform .15s, filter .15s;
}
.ai-launcher:hover { transform: scale(1.05); filter: brightness(1.08); }
.ai-launcher:focus-visible { outline: 3px solid var(--h-bg); outline-offset: 3px; }
.ai-launcher .t-ico { width: 26px; height: 26px; }
.ai-launcher .ai-chat .t-ico { fill: #fff; }
.ai-launcher .ai-x { display: none; }
.ai.open .ai-launcher .ai-x { display: block; }
.ai.open .ai-launcher .ai-chat { display: none; }
.ai-panel {
  position: absolute; right: 0; bottom: 72px; width: 380px; height: min(600px, 100vh - 120px);
  display: none; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: 24px; box-shadow: 0 16px 48px rgba(30,30,20,.18);
  transform-origin: bottom right;
}
.ai.open .ai-panel { display: flex; animation: ai-open .18s ease-out; }
@keyframes ai-open { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.ai-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 600; font-size: 15px;
  background: linear-gradient(90deg, #edf1fc 0%, #f5f0fe 28%, var(--surface) 60%); color: var(--h-fg);
  border-bottom: 1px solid #ece9f6;
}
.ai-head .t-ico { width: 20px; height: 20px; fill: currentColor; }
.ai-thread {
  flex: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 16px;
  overscroll-behavior: contain;
}
#assistant_thread { display: contents; }
.ai-msg {
  max-width: 82%; padding: 9px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.ai-me { align-self: flex-end; background: var(--ai-mix); color: #fff; border-bottom-right-radius: 6px; }
.ai-it { align-self: flex-start; background: var(--h-tint); color: var(--text); border-bottom-left-radius: 6px; }
.ai-it .btn { margin-top: 8px; padding: 7px 14px; background: var(--surface); color: var(--h-fg); white-space: nowrap; }
.ai-it .btn:hover { background: var(--h-bg); }
.ai-offers { display: flex; flex-wrap: wrap; gap: 0 8px; white-space: normal; }
.ai-offers .btn { white-space: normal; text-align: left; }
.ai-faq-link { color: var(--h-fg); font-weight: 600; }
/* Which assistant this is (assistant/_intro), in the middle of the empty conversation, until the first message:
   "Presentación al centro", picked from 10 proposals (decision 61). */
.ai-intro { margin: auto 12px; padding-bottom: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ai-thread:has(#assistant_thread:not(:empty)) .ai-intro, .ai.working .ai-intro { display: none; }
.ai-intro-av {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 22px;
  background: var(--ai-mix); color: #fff; font-size: 22px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 10px 28px rgba(99,90,200,.25);
}
.ai-intro-av .t-ico { width: 30px; height: 30px; }
.ai-intro h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.ai-intro p { margin: 0; max-width: 270px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.ai-typing { display: none; align-self: flex-start; gap: 4px; padding: 13px 14px; border-radius: 18px 18px 18px 6px; background: var(--h-tint); }
.ai.working .ai-typing { display: flex; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--h-fg); opacity: .35; animation: ai-dot 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 30% { opacity: 1; transform: translateY(-2px); } }
@media (max-width: 560px) {
  .ai { right: 16px; bottom: 16px; }
  .slider { right: 16px; bottom: 16px; }
  body:has(.ai) .slider { right: 86px; }
  .ai-panel { position: fixed; left: 12px; right: 12px; bottom: 84px; width: auto; height: min(600px, 100vh - 110px); }
}
/* At the panel's foot, the AI's text field (shared/_ai_field), as on the page. */
.ai-bar { margin: 0 10px 10px; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
/* A part the assistant just wrote or moved. */
.part-new { animation: part-new 1.8s ease-out; }
@keyframes part-new { from { background: var(--h-bg); } }

/* ---------- buttons ----------
   A button that does something on the server is a form of its own (button_to); the form stays out of the layout. */
form.button_to { display: contents; }
.btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.2;
  background: var(--bg); color: var(--text); transition: background .15s, filter .15s;
}
.btn:hover { background: var(--hover); }
.btn:focus-visible { outline: 3px solid var(--h-bg, var(--accent-soft)); outline-offset: 1px; }
.btn.primary { background: var(--h-fg, var(--accent)); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled, .btn:disabled:hover { opacity: .45; filter: none; cursor: default; }
.btn.danger { background: none; color: #b3261e; }
.btn.danger:hover { background: #fdecea; }
.btn.primary.danger { background: #c4372c; color: #fff; }

/* ---------- the modal: one for the whole app (native <dialog>) ----------
   "Footer band" with the "Soft & round" backdrop, picked from 11 proposals.
   Esc, focus trap and an inert page come from showModal(); a click that starts and ends outside the box
   closes it; it fades and lifts in and out; the page behind does not scroll. */
html { scrollbar-gutter: stable; }
html:has(.modal[open]) { overflow: hidden; }
.modal {
  padding: 0; border: 0; outline: none; color: var(--text); background: var(--surface);
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 64px); overflow: auto;
  border-radius: 18px; box-shadow: 0 24px 64px rgba(30,30,20,.18), 0 2px 6px rgba(30,30,20,.06);
  opacity: 1; transform: none;
  transition: opacity .18s ease-out, transform .18s ease-out, overlay .18s allow-discrete, display .18s allow-discrete;
}
.modal:not([open]) { opacity: 0; transform: translateY(8px) scale(.98); }
@starting-style { .modal[open] { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal::backdrop {
  background: rgba(40,35,20,0); backdrop-filter: blur(0);
  transition: background .18s ease-out, backdrop-filter .18s ease-out, overlay .18s allow-discrete, display .18s allow-discrete;
}
.modal[open]::backdrop { background: rgba(40,35,20,.2); backdrop-filter: blur(4px); }
@starting-style { .modal[open]::backdrop { background: rgba(40,35,20,0); backdrop-filter: blur(0); } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px 14px 24px; border-bottom: 1px solid #f0f0eb;
}
.modal-title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.modal-close {
  all: unset; box-sizing: border-box; flex: none; width: 36px; height: 36px; margin: -6px -10px -6px 0;
  display: grid; place-items: center; border-radius: 999px; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--hover); color: var(--text); }
.modal-close:focus-visible { outline: 3px solid var(--h-bg, var(--accent-soft)); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 24px; }
.modal-body p { margin: 0; line-height: 1.6; color: var(--muted); }
.modal-body p + p { margin-top: 12px; }
.modal-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 20px; background: #fafaf7; border-top: 1px solid #f0f0eb;
}
.modal-foot:empty { display: none; }
.modal-foot .btn[data-align="start"] { margin-right: auto; }

/* image editor content */
.image-edit { display: grid; place-items: center; padding: 4px 0; }
.preview-logo {
  width: 168px; height: 168px; border-radius: 999px; display: grid; place-items: center;
  background-color: var(--h-tint); color: var(--i-fg, var(--h-fg)); font-size: 52px; font-weight: 600;
}
.preview-cover {
  width: 100%; height: 150px; border-radius: 14px; background-size: cover; background-position: center;
  background-image: linear-gradient(120deg, var(--h-bg) 10%, var(--h-bg2) 90%);
}
.preview-logo.has-image, .preview-cover.has-image {
  background-image: var(--img); background-size: cover; background-position: center;
  color: var(--i-fg, #fff); text-shadow: var(--i-shadow, 0 2px 8px rgba(0,0,0,.45));
}
.settings .preview-logo.has-image { color: transparent; text-shadow: none; }
.image-edit.dragging > div { outline: 2px dashed var(--h-fg); outline-offset: 6px; }
/* The choices under the preview: a swatch per colour, then the image (its own picture once it has one). */
.looks { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.look {
  position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--h-bg); color: var(--muted); cursor: pointer; transition: box-shadow .15s;
}
.looks-cover .look { width: 56px; border-radius: 12px; background: linear-gradient(120deg, var(--h-bg) 10%, var(--h-bg2) 90%); }
.look input { all: unset; position: absolute; inset: 0; border-radius: inherit; cursor: pointer; }
.look:has(:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--h-fg); }
.look:has(:focus-visible) { outline: 3px solid var(--h-bg); outline-offset: 5px; }
.look-image, .looks-cover .look-image {
  background: var(--surface) center / cover; background-image: var(--img, none); box-shadow: inset 0 0 0 1.5px var(--line);
}
.look-image:has(:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--h-fg); }
.look-image .t-ico { width: 20px; height: 20px; }
/* The logo's initials: their field, and beside it the letters' colours, smaller, the first one following the look
   (the circle's own dark colour, half white for a logo). */
.initials-edit { grid-template-columns: 72px auto; justify-content: center; align-items: center; margin-top: 26px; }
.initials-edit input { text-align: center; }
.looks-letters { margin: 0; gap: 10px; }
.looks-letters .look { width: 28px; height: 28px; background: var(--i-fg); box-shadow: inset 0 0 0 1px var(--line); }
.looks-letters .look-auto { background: linear-gradient(135deg, var(--h-fg) 50%, #fff 50%); }
.looks-letters .look:has(:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--h-fg); }
.look-image[style*="--img"] .t-ico { display: none; }

@media (max-width: 560px) {
  .modal { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .modal:not([open]) { transform: translateY(40px); }
  @starting-style { .modal[open] { transform: translateY(40px); } }
}

@media (max-width: 720px) {
  .wrap { padding: 28px 16px 60px; }
  .page-top { gap: 8px; }
}
@media (max-width: 420px) {
  .row { grid-template-columns: 48px 1fr 16px; gap: 14px; padding: 14px; }
  .row .monogram { width: 48px; height: 48px; border-radius: 16px; }
  .row .pill { display: none; }
  .profile-body { padding: 0 20px 22px; }
  .settings .section { padding: 22px 20px 24px; }
  .section { padding: 20px; }
  .co-head h1 { font-size: 26px; }
  .co-head .monogram { width: 84px; height: 84px; font-size: 28px; margin-top: -42px; }
  .insert-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 72px); }
  .part { margin-left: -20px; padding-left: 22px; }
  .part-grip { left: 1px; }
  .entry { grid-template-columns: 40px minmax(0, 1fr) 14px; gap: 14px; padding: 12px 14px 12px 24px; }
  .entry-tile { width: 40px; height: 40px; border-radius: 13px; }
  .entry-when { display: none; }
  .show .section { padding: 24px 22px 28px; }
}

/* ---------- signing in ----------
   One quiet centred card: a lock, "Entrar", who it's for, and Google's button (dark and rounded, with its "G"). */
.sign-in { max-width: 420px; margin: 14vh auto 0; padding: 36px 32px; text-align: center; }
.sign-in-lock {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.sign-in-lock .t-ico { width: 20px; height: 20px; }
.sign-in-sub { margin: 6px 0 26px; color: var(--muted); }
.sign-in .note { margin: 0 0 18px; color: var(--muted); }
.sign-in .note.alert { color: #b3261e; }
.sign-in .btn { display: flex; width: 100%; height: 46px; padding-top: 0; padding-bottom: 0; }
.sign-in form + form .btn { margin-top: 10px; }
.btn-developer { font-size: 13px; color: var(--muted); }

/* The connector's consent page (decision 54), a sibling of the sign-in card: Claude's sparkle in the AI's colours and
   the app's lock, what Claude will be able to do, and Cancelar and Permitir inline. */
.connect { max-width: 440px; margin: 14vh auto 0; padding: 36px 32px 30px; text-align: center; }
.connect h1 { font-size: 24px; }
.connect .sign-in-lock { margin: 0; }
.connect > .sign-in-lock { margin: 0 auto 16px; }
.connect-pair { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.connect-claude { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--ai-mix); color: #fff; }
.connect-claude .t-ico { width: 20px; height: 20px; }
.connect-dots { color: var(--faint); letter-spacing: 2px; }
.connect-can { list-style: none; margin: 0 0 26px; padding: 0; text-align: left; display: grid; gap: 10px; font-size: 14.5px; }
.connect-can li { display: flex; gap: 10px; align-items: flex-start; }
.connect-can .t-ico { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.connect-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-google { gap: 12px; padding: 11px 22px 11px 16px; background: #131314; color: #e3e3e3; }
.btn-google:hover { background: #2a2a2c; }
.btn-google svg { width: 20px; height: 20px; flex: none; }

/* Pages slide from the general to the particular (decision 32): one more particular comes in from the right, one
   more general from the left. The slide controller says which way; without it the page changes as before. The
   assistant's widget and the model's slider never slide. Turbo leaves it all out with reduced motion.
   Only the page's content and its footer slide, not the whole window: the landscape behind every page (decision 66)
   stays still under them. When the whole window slid, its picture was opaque and the sky went white for the slide.
   The content is narrower than the window, so it slides a window's width to leave it. */
@keyframes slide-out-left { to { transform: translateX(-100vw); } }
@keyframes slide-in-from-right { from { transform: translateX(100vw); } }
@keyframes slide-out-right { to { transform: translateX(100vw); } }
@keyframes slide-in-from-left { from { transform: translateX(-100vw); } }
.wrap { view-transition-name: page; }
/* While it slides, what overflows the content (shadows, the avatar) is cut 16px out, so its picture is the content's
   own box: otherwise the picture sat 2px off and the page jumped when the slide ended. Only then, so a menu that
   opens past the content's end is never cut. */
:root:active-view-transition .wrap { overflow: clip; overflow-clip-margin: 16px; }
.site-foot { view-transition-name: page-foot; }
.ai { view-transition-name: assistant; }
.slider { view-transition-name: model-slider; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(page), ::view-transition-group(page-foot) { animation: none; }
/* The leaving page stays where its slide took it: without that, in the last frame before the browser takes the
   transition down, it went back into place and showed behind the new page. */
::view-transition-old(page), ::view-transition-new(page), ::view-transition-old(page-foot), ::view-transition-new(page-foot) {
  animation: none; mix-blend-mode: normal; animation-duration: var(--slide); animation-timing-function: var(--slide-ease);
  animation-fill-mode: forwards;
}
[data-slide=in]::view-transition-old(page), [data-slide=in]::view-transition-old(page-foot) { animation-name: slide-out-left; }
[data-slide=in]::view-transition-new(page), [data-slide=in]::view-transition-new(page-foot) {
  animation-name: slide-in-from-right;
}
[data-slide=out]::view-transition-old(page), [data-slide=out]::view-transition-old(page-foot) {
  animation-name: slide-out-right;
}
[data-slide=out]::view-transition-new(page), [data-slide=out]::view-transition-new(page-foot) {
  animation-name: slide-in-from-left;
}

/* ---------- the footer: an idea or a problem ("Page footer", picked from 10 proposals, decision 52) ---------- */
/* The page's own bottom space shrinks, so the line sits close under the last card. */
.wrap:has(+ .site-foot) { padding-bottom: 20px; }
.site-foot { display: flex; justify-content: center; align-items: baseline; gap: 4px; margin: 0 auto 40px; padding: 0 24px; font-size: 13px; color: var(--muted); }
.site-foot-link { all: unset; cursor: pointer; color: var(--accent); font-weight: 500; border-radius: 6px; }
.site-foot-link:hover { text-decoration: underline; }
.site-foot-link:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.site-foot .modal { font-size: 15px; color: var(--text); text-align: left; }
.feedback-comment { grid-column: 1 / -1; min-height: 7.5em !important; }
.feedback-comment::placeholder { color: var(--faint); opacity: 1; }
.feedback-failed { grid-column: 1 / -1; color: #b3261e !important; font-size: 14px; }
/* While it's sent, a spinner takes the box's place; the box stays, hidden, so the modal keeps its size. */
#feedback_form .modal-body { position: relative; }
#feedback_form[aria-busy] :is(.feedback-comment, .feedback-failed) { visibility: hidden; }
#feedback_form[aria-busy] .modal-body::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: ai-spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { #feedback_form[aria-busy] .modal-body::after { animation-duration: 2.4s; } }
.feedback-thanks { text-align: center; padding: 28px 24px 20px; }
.feedback-thanks-emoji { font-size: 34px; line-height: 1; }
.feedback-thanks h3 { margin: 10px 0 4px; font-size: 17px; font-weight: 600; }

/* ---------- the frequent questions: "Lista simple", picked from 3 proposals (decision 55) ----------
   A card with the welcome and every question on the left, sticking as the page scrolls; the big card on the right
   shows the one picked. */
.wrap:has(.faq) { max-width: 1080px; }
.faq h1 { margin-bottom: 22px; }
.faq-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 20px; align-items: start; }
.faq-side { position: sticky; top: 20px; padding: 12px; display: flex; flex-direction: column; gap: 1px; }
.faq-link { padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.35; }
.faq-link:hover { background: var(--hover); }
.faq-link.on { background: var(--h-bg); color: var(--h-fg); font-weight: 500; }
.faq-divider { border: 0; border-top: 1px solid #f0f0eb; margin: 8px 12px; }
.faq-content { border-radius: 24px; padding: 36px 44px 40px; min-height: 360px; }
.faq-panel:not(.on) { display: none; }
.faq-panel h2 { margin: 0 0 16px; font-size: 24px; color: var(--text); letter-spacing: -.015em; line-height: 1.25; }
.faq-answer { font-size: 16px; line-height: 1.65; }
.faq-answer p { margin: 0 0 12px; }
.faq-answer b { font-weight: 600; }
.faq-note { color: var(--muted); font-size: 14.5px; }
/* The answers' text reads like the app: a softer, bigger first line; buttons named as small chips like the real ones,
   with their icons; keys as keys; the AI's field as a tiny copy of it; steps with numbers in the soft blue; a tip
   on the blue's tint; key points with an icon each; and the security measures as a list of checks. */
.faq-answer .faq-lead { font-size: 18px; line-height: 1.5; color: var(--text); font-weight: 500; letter-spacing: -.005em; }
.faq-btn {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: 1px; white-space: nowrap; padding: 1px 10px;
  border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(30,30,20,.06);
  font-size: 13.5px; font-weight: 500; line-height: 1.6; color: var(--text);
}
.faq-btn svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.faq-btn-round { justify-content: center; width: 24px; height: 24px; padding: 0; vertical-align: -6px; }
.faq-btn-round svg { width: 15px; height: 15px; }
.faq-btn-ai { background: #f3f0fe; box-shadow: none; }
.faq-btn-ai svg { color: var(--ai-violet); }
.faq-answer kbd {
  display: inline-block; vertical-align: 1px; padding: 0 7px; border-radius: 6px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 2px 0 var(--line); font-family: inherit; font-size: 12.5px; font-weight: 500;
  line-height: 1.6; color: var(--muted);
}
.faq-field {
  display: inline-flex; align-items: center; gap: 7px; vertical-align: 0; white-space: nowrap; padding: 1px 12px 1px 2px;
  border-radius: 999px; border: 1px solid #e1e1da; background: linear-gradient(90deg, #edf1fc 0%, #f5f0fe 35%, var(--surface) 75%);
  font-size: 13.5px; line-height: 1.6; color: var(--muted);
}
.faq-field i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--ai-mix); }
.faq-field svg { width: 11px; height: 11px; stroke: #fff; fill: #fff; }
.faq-answer .faq-steps { list-style: none; counter-reset: faq-step; margin: 4px 0 16px; padding: 0; }
.faq-steps li { counter-increment: faq-step; position: relative; padding-left: 40px; }
.faq-steps li + li { margin-top: 10px; }
.faq-steps li::before {
  content: counter(faq-step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 999px; background: var(--h-bg); color: var(--h-fg); font-size: 13px; font-weight: 600;
}
.faq-answer .faq-tip { position: relative; margin: 16px 0; padding: 13px 18px 13px 48px; border-radius: 16px; background: var(--h-tint); }
.faq-tip > svg:first-child { position: absolute; left: 18px; top: 16px; width: 18px; height: 18px; color: var(--h-fg); }
/* Good news: a banner on the soft blue, with a check in a blue circle and the news in bold. */
.faq-answer .faq-news {
  position: relative; margin: 18px 0 4px; padding: 16px 20px 16px 64px; border-radius: 18px;
  background: linear-gradient(120deg, var(--h-bg) 0%, var(--h-tint) 100%); color: var(--text);
}
.faq-news > svg:first-child {
  position: absolute; left: 18px; top: 50%; translate: 0 -50%; box-sizing: content-box; width: 18px; height: 18px; padding: 7px;
  border-radius: 999px; background: var(--h-fg); color: #fff; stroke-width: 2.6; box-shadow: 0 0 0 5px rgba(255,255,255,.7);
}
.faq-news b { display: block; font-size: 17px; color: var(--h-fg); }
/* A pitch, said with a smile: a little bigger, the punchline in the soft blue. */
.faq-answer .faq-pitch { font-size: 17px; line-height: 1.55; }
.faq-pitch b { color: var(--h-fg); }
.faq-answer .faq-points { list-style: none; margin: 4px 0 16px; padding: 0; }
.faq-points li { position: relative; padding-left: 44px; min-height: 30px; }
.faq-points li + li { margin-top: 12px; }
.faq-points i {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: var(--h-tint); color: var(--h-fg);
}
.faq-points svg { width: 16px; height: 16px; }
.faq-answer .faq-checks {
  list-style: none; columns: 2 250px; column-gap: 22px;
  margin: 8px 0 4px; padding: 0;
}
.faq-checks li { break-inside: avoid; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.faq-check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 999px;
  background: var(--h-bg); color: var(--h-fg); }
.faq-check svg { width: 13px; height: 13px; stroke-width: 2.4; }
.faq-checks b { display: block; font-size: 14.5px; color: var(--text); }
.faq-answer .faq-checks + .faq-note { margin-top: 24px; }
.faq-answer .faq-checks + p { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.faq-answer .faq-points + .faq-note { margin-top: 22px; }
/* What a card is: the kinds as their pills, with their icons, and the parts in a grid with the card form's tiles. */
.faq-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px !important; }
.faq-kinds .kind-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 11px 4px 9px; }
.faq-kinds .t-ico { width: 15px; height: 15px; }
/* The chips stay in view while the card goes by (sticky up to its end), so any part can be pointed at from them. */
.faq-answer .faq-parts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 22px; padding: 10px 0;
  position: sticky; top: 0; z-index: 3; background: var(--surface);
}
.faq-parts li {
  display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 4px 12px 4px 4px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s;
}
.faq-parts .type-tile { width: 26px; height: 26px; border-radius: 99px; }
.faq-parts .type-tile svg { width: 15px; height: 15px; }
.faq-parts b { font-size: 14px; font-weight: 600; color: var(--text); }
.faq-parts li.on { background: var(--h-bg); border-color: var(--h-fg); }
.faq-parts li:focus-visible { outline: 3px solid var(--h-bg); }
/* The card with one of each part: the part pointed at (here or at its chip) fills and shows its tip above it. */
.faq-anatomy-label { font-weight: 600; color: var(--text); margin: 0 0 10px !important; }
.faq-anatomy-label span { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 4px; }
.faq-anatomy-card { max-width: 560px; margin: 0 0 24px; padding: 22px 26px 26px; background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .10), 0 24px 48px -12px rgb(0 0 0 / .12); border: 1px solid var(--line); }
.faq-anatomy-card h2 { margin: 10px 0 4px !important; }
.faq-anatomy-card .kind-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 11px 4px 9px; }
.faq-anatomy-card .kind-pill .t-ico { width: 15px; height: 15px; }
.faq-anatomy-part {
  position: relative; margin: 6px -10px 0; padding: 8px 10px; border-radius: 12px; cursor: help; transition: background .15s;
}
.faq-anatomy-part.on { background: var(--h-tint); z-index: 2; }
.faq-anatomy-tip {
  position: absolute; left: 10px; bottom: calc(100% + 8px); width: max-content; max-width: 300px; display: none;
  gap: 6px; align-items: baseline; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px;
  background: var(--text); color: var(--surface); font-size: 13.5px; line-height: 1.4; box-shadow: var(--shadow);
}
.faq-anatomy-tip::after { content: ""; position: absolute; left: 18px; top: 100%; border: 6px solid transparent; border-top-color: var(--text); }
.faq-anatomy-tip svg { width: 14px; height: 14px; align-self: center; }
.faq-anatomy-part.on .faq-anatomy-tip { display: flex; }
.faq-anatomy-pic { height: 130px; border-radius: 14px; background: linear-gradient(#cfe0f5, #eef3fa 60%, #d9cfbf 60%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; }
.faq-anatomy-video { height: 120px; border-radius: 14px; background: #2b2f36; display: grid; place-items: center; position: relative; }
.faq-anatomy-video i { width: 48px; height: 48px; border-radius: 50%; background: #fffd; display: grid; place-items: center; }
.faq-anatomy-video i::after { content: ""; margin-left: 4px; border-left: 15px solid #2b2f36; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.faq-anatomy-video span { position: absolute; left: 14px; bottom: 10px; color: #fffc; font-size: 12px; }
.faq-anatomy-address { color: var(--h-fg); }

/* The answers that play what they say, in CSS on copies of the real pieces (the card form, the search over a
   company's cards, the widget), on the page's grey. Every piece runs on its demo's clock, so they stay in step, and they start
   over when the answer is opened. With reduced motion nothing moves: the rules outside the keyframes are how each
   demo ends. */
.faq-demo {
  margin: 22px 0 24px; padding: 22px; border-radius: 20px; background: var(--bg); font-size: 15px; line-height: 1.5;
  pointer-events: none; user-select: none;
}
.faq-demo-input { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1; min-width: 0; padding: 6px; }
.faq-demo-input > * { grid-area: 1 / 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.faq-demo-placeholder { color: var(--faint); opacity: 0; }
/* Typed out: the text uncovers a letter at a time. */
.faq-demo-ask { width: fit-content; max-width: 100%; }

/* The assistant (22 seconds): the card form's card, the field under it and the bar under that. An instruction is
   typed and sent, the field works while the bar says the step, a list of tasks is typed into a new part, which
   lights up. Then the card is still yours: a task is ticked and another typed by hand, and "Guardada" shows. */
.faq-demo-assistant { --clock: 22s; }
.faq-demo-assistant .faq-demo-placeholder { animation: faq-ask-placeholder var(--clock) infinite both; }
.faq-demo-assistant .faq-demo-ask {
  animation: faq-ask var(--clock) steps(var(--chars)) infinite both, faq-sent var(--clock) infinite both;
}
.faq-demo-top { display: flex; justify-content: flex-end; align-items: center; min-height: 36px; margin-bottom: 12px; }
.faq-demo .faq-demo-top .undo-redo { box-shadow: 0 1px 2px rgba(30,30,20,.06); }
.faq-demo .undo-redo > span { display: inline-flex; align-items: center; padding: 0 11px; color: var(--muted); opacity: .4; }
.faq-demo .undo-redo > span:first-child { padding-left: 13px; }
.faq-demo .undo-redo > span + span { padding-right: 13px; border-left: 1px solid #f0f0eb; }
.faq-demo-assistant .undo-redo > .faq-demo-undo { opacity: 1; animation: faq-undo var(--clock) infinite both; }
.faq-demo-assistant .faq-demo-saved { animation: faq-saved var(--clock) infinite both; }
.faq-demo .builder { padding: 18px 32px 16px; }
.faq-demo .kind-button { margin-bottom: 8px; }
.faq-demo .part-text { white-space: normal; }
.faq-demo :is(.parts, .faq-demo-new, .faq-demo-gone, .faq-demo-more, .faq-demo-added) { grid-template-columns: minmax(0, 1fr); }
.faq-demo-new { display: grid; margin-top: -14px; animation: faq-new var(--clock) infinite both; }
.faq-demo-new > div, .faq-demo-gone > div { min-height: 0; overflow: hidden; margin: 0 -12px 0 -26px; }
.faq-demo-new .part { margin: 14px 0 0; animation: faq-writing var(--clock) infinite both; }
.faq-demo-typed {
  width: fit-content; max-width: 100%;
  animation: faq-typed var(--clock) steps(var(--chars)) infinite both; animation-delay: calc(var(--line) * .9s);
}
.faq-demo-check {
  flex: none; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px #8f8f89; color: #fff;
}
.faq-demo-check .t-ico { width: 12px; height: 12px; stroke-width: 2.6; opacity: 0; }
.faq-demo .faq-demo-ticked { background: var(--h-fg); box-shadow: none; animation: faq-tick var(--clock) infinite both; }
.faq-demo-ticked .t-ico { opacity: 1; animation: faq-tick-mark var(--clock) infinite both; }
.faq-demo .line span:last-child { min-width: 0; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Who's writing: a tag in the part's corner, the assistant's while it writes, yours while you do. */
.faq-demo-who {
  position: absolute; top: -11px; right: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px;
  border-radius: 999px; font-size: 12px; font-weight: 500; opacity: 0;
}
.faq-demo-who .t-ico { width: 12px; height: 12px; }
.faq-demo-who-ai { background: var(--ai-mix); color: #fff; animation: faq-who-ai var(--clock) infinite both; }
.faq-demo-who-ai .t-ico { fill: #fff; }
.faq-demo-who-you { background: var(--h-bg); color: var(--h-fg); animation: faq-who-you var(--clock) infinite both; }
.faq-demo-more { display: grid; animation: faq-more var(--clock) infinite both; }
.faq-demo-more > div { min-height: 0; overflow: hidden; }
.faq-demo-by-hand { width: fit-content; max-width: 100%; }
.faq-demo-by-hand span:last-child { animation: faq-by-hand var(--clock) steps(var(--chars)) infinite both; }
.faq-demo-assistant .ai-field { animation: faq-busy var(--clock) infinite both; }
.faq-demo .ai-field-badge > * { grid-area: 1 / 1; }
.faq-demo-assistant .ai-field-badge .t-ico { animation: faq-idle var(--clock) infinite both; }
.faq-demo-assistant .ai-field-spin {
  display: block; opacity: 0; animation: ai-spin .8s linear infinite, faq-working var(--clock) infinite both;
}
.faq-demo-end { display: grid; flex: none; }
.faq-demo-end > * { grid-area: 1 / 1; }
.faq-demo-end .ai-field-mic { animation: faq-idle var(--clock) infinite both; }
.faq-demo-end .ai-field-stop { display: grid; opacity: 0; animation: faq-working var(--clock) infinite both; }
.faq-demo .instruction-bar { opacity: 0; animation: faq-bar var(--clock) ease-out infinite both; }
@keyframes faq-ask-placeholder { 0%, 4% { opacity: 1; } 4.01%, 43.99% { opacity: 0; } 44%, 100% { opacity: 1; } }
@keyframes faq-ask {
  0%, 4.5% { clip-path: inset(0 100% 0 0); } 17.5%, 43% { clip-path: inset(0); } 43.01%, 100% { clip-path: inset(0 100% 0 0); }
}
@keyframes faq-sent { 0%, 19.9% { color: var(--text); } 20%, 100% { color: var(--muted); } }
@keyframes faq-busy {
  0%, 19.9%, 43.01%, 100% { border-color: #e1e1da; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
  20%, 43% { border-color: #d6cff6; box-shadow: 0 0 0 4px rgba(176,153,239,.12); }
}
@keyframes faq-idle { 0%, 19.9%, 43.01%, 100% { opacity: 1; } 20%, 43% { opacity: 0; } }
@keyframes faq-working { 0%, 19.9%, 43.01%, 100% { opacity: 0; } 20%, 43% { opacity: 1; } }
@keyframes faq-bar { 0%, 20%, 43.5%, 100% { opacity: 0; transform: translateY(-4px); } 21.5%, 42% { opacity: 1; transform: none; } }
@keyframes faq-new {
  0%, 22% { grid-template-rows: 0fr; opacity: 0; } 24%, 93% { grid-template-rows: 1fr; opacity: 1; }
  97%, 100% { grid-template-rows: 0fr; opacity: 0; }
}
@keyframes faq-writing {
  0%, 42% { background: #fbfaff; box-shadow: 0 0 0 1.5px #e4ddfb; }
  44% { background: var(--h-bg); box-shadow: none; } 52%, 55% { background: var(--surface); box-shadow: none; }
  57%, 80% { background: #fafaf7; box-shadow: none; } 83%, 100% { background: var(--surface); box-shadow: none; }
}
@keyframes faq-typed { 0%, 24.5% { clip-path: inset(0 100% 0 0); } 28.5%, 100% { clip-path: inset(0); } }
@keyframes faq-who-ai { 0%, 23%, 43.5%, 100% { opacity: 0; } 24.5%, 42% { opacity: 1; } }
@keyframes faq-who-you { 0%, 55%, 81%, 100% { opacity: 0; } 56.5%, 79.5% { opacity: 1; } }
@keyframes faq-tick {
  0%, 59.9%, 97%, 100% { background: transparent; box-shadow: inset 0 0 0 1.5px #8f8f89; }
  60%, 96.9% { background: var(--h-fg); box-shadow: none; }
}
@keyframes faq-tick-mark { 0%, 59.9%, 97%, 100% { opacity: 0; } 60%, 96.9% { opacity: 1; } }
@keyframes faq-more { 0%, 63% { grid-template-rows: 0fr; } 65%, 100% { grid-template-rows: 1fr; } }
@keyframes faq-by-hand { 0%, 65% { clip-path: inset(0 100% 0 0); } 76%, 100% { clip-path: inset(0); } }
@keyframes faq-saved { 0%, 81% { opacity: 0; } 82.5%, 95% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes faq-undo { 0%, 44%, 97%, 100% { opacity: .4; } 45%, 96% { opacity: 1; } }

/* Undo (11 seconds): a part on the card form shows its grip and ×, the × takes it away, Deshacer is pressed and the
   part comes back, lit up. */
.faq-demo-recover { --clock: 11s; }
.faq-demo-name { flex: none; white-space: nowrap; color: var(--text); }
.faq-demo .line .faq-demo-role { color: var(--muted); font-size: 14px; }
.faq-demo-gone { display: grid; margin-top: -14px; animation: faq-gone var(--clock) infinite both; }
.faq-demo-gone .part { margin: 14px 0 0; animation: faq-doomed var(--clock) infinite both; }
.faq-demo-gone :is(.part-grip, .part-remove) { animation: faq-hovered var(--clock) infinite both; }
.faq-demo-gone .part-remove { animation-name: faq-hovered, faq-press-x; }
.faq-demo-recover .undo-redo > .faq-demo-undo { animation: faq-recover-undo var(--clock) infinite both; }
.faq-demo-recover .undo-redo > .faq-demo-redo { opacity: 1; animation: faq-recover-redo var(--clock) infinite both; }
@keyframes faq-gone {
  0%, 20% { grid-template-rows: 1fr; opacity: 1; } 25%, 45% { grid-template-rows: 0fr; opacity: 0; }
  50%, 100% { grid-template-rows: 1fr; opacity: 1; }
}
@keyframes faq-doomed {
  0%, 9% { background: var(--surface); } 11%, 20% { background: #fafaf7; } 25%, 47% { background: var(--surface); }
  49% { background: var(--h-bg); } 64%, 100% { background: var(--surface); }
}
@keyframes faq-hovered { 0%, 9%, 24%, 100% { opacity: 0; } 11%, 21% { opacity: 1; } }
@keyframes faq-press-x {
  0%, 15.9%, 21%, 100% { background: transparent; color: var(--faint); } 16%, 20% { background: var(--hover); color: var(--text); }
}
@keyframes faq-recover-undo {
  0%, 24%, 47%, 100% { opacity: .4; background: transparent; color: var(--muted); }
  26%, 37.9% { opacity: 1; background: transparent; color: var(--muted); }
  38%, 45% { opacity: 1; background: var(--hover); color: var(--text); }
}
@keyframes faq-recover-redo { 0%, 46.9%, 97%, 100% { opacity: .4; } 47%, 96% { opacity: 1; } }

/* Adding a card (19 seconds), with the step it plays lit above it: on the company page + Agregar tarjeta is pressed
   (1) and the card form slides in as the app's pages do (decision 32); on it a title is typed, which saves the card
   as a draft ("Guardada · Borrador" and Publicar show over it), and the + after the last part adds a text and then
   a person (2); the person is dragged by its grip above the text (3), and "Guardada" lights as that is saved;
   Publicar is pressed (4) and the card's page takes the form's place, with the toast that says it is published.
   Both parts are one line high, so the drag moves each by one part and its gap. */
.faq-demo-add { --clock: 19s; --swap: 54px; }
.faq-demo-steps { display: flex; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.faq-demo-steps li {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--surface);
  color: var(--faint); font-size: 13px; font-weight: 600; box-shadow: 0 1px 2px rgba(30,30,20,.06);
}
.faq-demo-step-1 { animation: faq-add-step-1 var(--clock) infinite both; }
.faq-demo-step-2 { animation: faq-add-step-2 var(--clock) infinite both; }
.faq-demo .faq-demo-step-3 { background: var(--h-bg); color: var(--h-fg); animation: faq-add-step-3 var(--clock) infinite both; }
.faq-demo-step-4 { animation: faq-add-step-4 var(--clock) infinite both; }
.faq-demo-scenes { --away: calc(100% + 32px); display: grid; grid-template-columns: minmax(0, 1fr); overflow: clip; overflow-clip-margin: 16px; }
.faq-demo-scenes > * { grid-area: 1 / 1; align-self: start; }
.faq-demo-page { visibility: hidden; animation: faq-add-page var(--clock) infinite both; }
.faq-demo-page .page-top { margin-bottom: 16px; }
.faq-demo-page .add-card { animation: faq-add-press var(--clock) infinite both; }
.faq-demo-form { animation: faq-add-form var(--clock) infinite both; }
.faq-demo-form .faq-demo-top { gap: 10px; }
.faq-demo-draft { animation: faq-add-draft var(--clock) infinite both; }
.faq-demo-publish { animation: faq-add-publish var(--clock) infinite both; }
.faq-demo-publish .publish { animation: faq-add-publish-press var(--clock) infinite both; }
/* The card's page, as it opens once published: tighter than the app's, to fit the demo's box. */
.faq-demo-shown { visibility: hidden; animation: faq-add-shown var(--clock) infinite both; }
.faq-demo .show .page-top { margin-bottom: 16px; }
.faq-demo .show .section { padding: 22px 30px 26px; }
.faq-demo .show .show-title h2 { font-size: 22px; }
.faq-demo .show .show-head { margin-bottom: 16px; }
.faq-demo .show .card-part + .card-part { margin-top: 12px; }
.faq-demo .toast {
  position: static; width: fit-content; margin: 16px auto 0; transform: none; animation: faq-add-toast var(--clock) infinite both;
}
.faq-demo-form .faq-demo-input { padding: 0; }
.faq-demo-form .faq-demo-placeholder { animation: faq-add-placeholder var(--clock) infinite both; }
.faq-demo-form .card-name .faq-demo-ask { animation: faq-add-title var(--clock) steps(var(--chars)) infinite both; }
.faq-demo-added { display: grid; margin-top: -14px; }
.faq-demo-added > div { min-height: 0; margin: 0 -12px 0 -26px; }
.faq-demo-added .part { height: 40px; margin: 14px 0 0; white-space: nowrap; }
.faq-demo-added .part-text, .faq-demo-added .line { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0; }
.faq-demo-added .line { height: 24px; }
.faq-demo-added .line-av { width: 24px; height: 24px; font-size: 10px; }
.faq-demo-added-text { animation: faq-add-text var(--clock) infinite both; }
.faq-demo-added-text > div, .faq-demo-added-people > div { animation: faq-add-clip var(--clock) infinite both; }
.faq-demo-added-text .faq-demo-ask { animation: faq-add-typed var(--clock) steps(var(--chars)) infinite both; }
.faq-demo-added-people { animation: faq-add-people var(--clock) infinite both; }
.faq-demo .faq-demo-below { transform: translateY(var(--swap)); animation: faq-add-below var(--clock) infinite both; }
.faq-demo .faq-demo-dragged { transform: translateY(calc(-1 * var(--swap))); animation: faq-add-dragged var(--clock) infinite both; }
.faq-demo-dragged .part-grip { animation: faq-add-grip var(--clock) infinite both; }
.faq-demo .part-insert-last { margin-top: 14px; }
.faq-demo .part-insert-btn { animation: faq-add-plus var(--clock) infinite both; }
@keyframes faq-add-step-1 {
  0%, 12.9%, 100% { background: var(--h-bg); color: var(--h-fg); } 13%, 99.9% { background: var(--surface); color: var(--faint); }
}
@keyframes faq-add-step-2 {
  0%, 12.9%, 62%, 100% { background: var(--surface); color: var(--faint); } 13%, 61.9% { background: var(--h-bg); color: var(--h-fg); }
}
@keyframes faq-add-step-3 {
  0%, 61.9%, 86%, 100% { background: var(--surface); color: var(--faint); } 62%, 85.9% { background: var(--h-bg); color: var(--h-fg); }
}
@keyframes faq-add-step-4 {
  0%, 85.9%, 99.9% { background: var(--surface); color: var(--faint); } 86%, 99.8% { background: var(--h-bg); color: var(--h-fg); }
}
@keyframes faq-add-page {
  0%, 11% { visibility: visible; transform: none; animation-timing-function: var(--slide-ease); }
  13.2%, 97% { visibility: hidden; transform: translateX(calc(-1 * var(--away))); animation-timing-function: var(--slide-ease); }
  100% { visibility: visible; transform: none; }
}
@keyframes faq-add-form {
  0%, 11% { visibility: hidden; opacity: 1; transform: translateX(var(--away)); animation-timing-function: var(--slide-ease); }
  13.2%, 90% { visibility: visible; opacity: 1; transform: none; }
  91%, 100% { visibility: hidden; opacity: 0; transform: none; }
}
/* The card's page comes where the form was, as deep in the app, so it doesn't slide; back to the company it does. */
@keyframes faq-add-shown {
  0%, 90% { visibility: hidden; opacity: 0; transform: none; }
  91%, 97% { visibility: visible; opacity: 1; transform: none; animation-timing-function: var(--slide-ease); }
  100% { visibility: hidden; opacity: 1; transform: translateX(var(--away)); }
}
@keyframes faq-add-draft {
  0%, 26.5% { opacity: 0; color: var(--faint); } 28%, 82% { opacity: 1; color: var(--faint); }
  83.5%, 85% { opacity: 1; color: var(--h-fg); } 87%, 100% { opacity: 1; color: var(--faint); }
}
@keyframes faq-add-publish { 0%, 26.5% { opacity: 0; } 28%, 100% { opacity: 1; } }
@keyframes faq-add-publish-press {
  0%, 86%, 90.5%, 100% { filter: none; transform: none; } 87.5%, 88.4% { filter: brightness(.95); transform: none; }
  89% { filter: brightness(.95); transform: scale(.94); }
}
@keyframes faq-add-toast { 0%, 91% { opacity: 0; transform: translateY(12px); } 92.5%, 100% { opacity: 1; transform: none; } }
@keyframes faq-add-press {
  0%, 4% { color: var(--muted); transform: none; } 6%, 8% { color: var(--text); box-shadow: 0 3px 10px rgba(30,30,20,.08); transform: none; }
  9% { color: var(--text); transform: scale(.94); } 10.5%, 100% { color: var(--text); transform: none; }
}
@keyframes faq-add-placeholder { 0%, 16% { opacity: 1; } 16.01%, 100% { opacity: 0; } }
@keyframes faq-add-title { 0%, 16% { clip-path: inset(0 100% 0 0); } 25%, 100% { clip-path: inset(0); } }
@keyframes faq-add-plus {
  0%, 28%, 32%, 44%, 48%, 100% { background: var(--surface); transform: translateX(-50%); }
  29.5%, 30.5%, 45.5%, 46.5% { background: var(--h-tint); transform: translateX(-50%) scale(.9); }
}
@keyframes faq-add-text { 0%, 31% { grid-template-rows: 0fr; opacity: 0; } 34%, 100% { grid-template-rows: 1fr; opacity: 1; } }
@keyframes faq-add-people { 0%, 47% { grid-template-rows: 0fr; opacity: 0; } 50%, 100% { grid-template-rows: 1fr; opacity: 1; } }
@keyframes faq-add-clip { 0%, 54.9% { overflow: hidden; } 55%, 100% { overflow: visible; } }
@keyframes faq-add-typed { 0%, 34% { clip-path: inset(0 100% 0 0); } 42%, 100% { clip-path: inset(0); } }
@keyframes faq-add-below {
  0%, 31% { background: var(--surface); transform: none; } 34% { background: var(--h-bg); transform: none; }
  42%, 68% { background: var(--surface); transform: none; } 78%, 100% { background: var(--surface); transform: translateY(var(--swap)); }
}
@keyframes faq-add-dragged {
  0%, 47% { background: var(--surface); box-shadow: none; transform: none; } 50% { background: var(--h-bg); box-shadow: none; transform: none; }
  58%, 62% { background: var(--surface); box-shadow: none; transform: none; }
  64%, 66% { background: #fafaf7; box-shadow: none; transform: none; }
  68%, 78% { background: var(--surface); box-shadow: 0 12px 32px rgba(30,30,20,.14), 0 0 0 2px var(--h-bg); }
  68% { transform: none; } 78% { transform: translateY(calc(-1 * var(--swap))); }
  81%, 100% { background: var(--surface); box-shadow: none; transform: translateY(calc(-1 * var(--swap))); }
}
@keyframes faq-add-grip {
  0%, 63%, 82%, 100% { opacity: 0; background: transparent; } 65%, 66.9% { opacity: 1; background: transparent; }
  67%, 80% { opacity: 1; background: var(--hover); color: var(--text); }
}

/* The search (14 seconds): the box over a company's cards and its list. A question is typed and sent, the box works,
   and the cards found take the list's place, each with its reason; then the box empties and the list comes back. */
.faq-demo-search { --clock: 14s; }
.faq-demo-search .ai-field { margin-bottom: 14px; }
.faq-demo-search .faq-demo-placeholder { animation: faq-query-placeholder var(--clock) infinite both; }
.faq-demo-search .faq-demo-ask {
  animation: faq-query var(--clock) steps(var(--chars)) infinite both, faq-searching var(--clock) infinite both;
}
.faq-demo-searching {
  position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, var(--ai-blue), var(--ai-violet), var(--ai-lilac)) no-repeat -60% 0 / 35% 100%, #ece8fb;
  animation: search-bar 1.3s ease-in-out infinite, faq-search-bar var(--clock) infinite both;
}
.faq-demo-search .ai-field-mic { animation: faq-search-mic var(--clock) infinite both; }
.faq-demo-found .entry-peek { white-space: normal; }
.faq-demo-lists { display: grid; }
.faq-demo-lists > * { grid-area: 1 / 1; align-self: start; }
.faq-demo-all { opacity: 0; visibility: hidden; animation: faq-all var(--clock) infinite both; }
.faq-demo-found { animation: faq-found var(--clock) infinite both; }
.faq-demo-found .entry { animation: faq-found-row var(--clock) infinite both; }
.faq-demo-found .entry + .entry { animation-delay: .25s; }
@keyframes faq-query-placeholder { 0%, 5% { opacity: 1; } 5.01%, 88.99% { opacity: 0; } 89%, 100% { opacity: 1; } }
@keyframes faq-query {
  0%, 6% { clip-path: inset(0 100% 0 0); } 24%, 88% { clip-path: inset(0); } 88.01%, 100% { clip-path: inset(0 100% 0 0); }
}
@keyframes faq-searching { 0%, 27.9%, 42%, 100% { color: var(--text); } 28%, 41.9% { color: #b9b9b0; } }
@keyframes faq-search-mic { 0%, 27.9%, 42%, 100% { opacity: 1; } 28%, 41.9% { opacity: 0; } }
@keyframes faq-search-bar { 0%, 27.9%, 42%, 100% { opacity: 0; } 28%, 41.9% { opacity: 1; } }
@keyframes faq-all {
  0%, 42% { opacity: 1; visibility: visible; } 44%, 89% { opacity: 0; visibility: hidden; }
  92%, 100% { opacity: 1; visibility: visible; }
}
@keyframes faq-found { 0%, 42% { opacity: 0; } 44%, 88% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes faq-found-row { 0%, 43% { opacity: 0; transform: translateY(6px); } 46%, 100% { opacity: 1; transform: none; } }
/* The widget (14 seconds): its round button and its panel. The button is pressed and the panel opens, a question is
   typed and sent, the dots show, the answer arrives, and the button closes it again. */
.faq-demo-widget { --clock: 14s; }
.faq-demo .faq-demo-ai { position: relative; right: auto; bottom: auto; z-index: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.faq-demo-ai .ai-panel {
  position: static; display: flex; width: min(380px, 100%); height: auto; animation: faq-widget-panel var(--clock) infinite both;
}
.faq-demo-ai .ai-thread { flex: none; height: 200px; justify-content: flex-end; overflow: hidden; }
.faq-demo-ai .ai-me { animation: faq-widget-me var(--clock) infinite both; }
.faq-demo-reply { display: grid; }
.faq-demo-reply > * { grid-area: 1 / 1; justify-self: start; align-self: end; }
.faq-demo-ai .ai-typing { display: flex; opacity: 0; animation: faq-widget-typing var(--clock) infinite both; }
.faq-demo-ai .ai-it { animation: faq-widget-answer var(--clock) infinite both; }
.faq-demo-ai .ai-field { align-items: center; }
.faq-demo-ai .faq-demo-placeholder { opacity: 1; animation: faq-widget-placeholder var(--clock) infinite both; }
.faq-demo-ai .faq-demo-ask {
  clip-path: inset(0 100% 0 0); animation: faq-widget-ask var(--clock) steps(var(--chars)) infinite both;
}
.faq-demo-ai .ai-launcher { display: grid; animation: faq-widget-press var(--clock) infinite both; }
.faq-demo-ai .ai-launcher > * { grid-area: 1 / 1; display: grid; }
.faq-demo-ai .ai-chat { opacity: 0; animation: faq-widget-chat var(--clock) infinite both; }
.faq-demo-ai .ai-x { opacity: 1; animation: faq-widget-x var(--clock) infinite both; }
@keyframes faq-widget-panel {
  0%, 6% { opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); }
  8%, 85% { opacity: 1; visibility: visible; transform: none; }
  87%, 100% { opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); }
}
@keyframes faq-widget-press {
  0%, 4.5%, 7%, 83.5%, 86%, 100% { transform: none; } 5.5%, 84.5% { transform: scale(.9); }
}
@keyframes faq-widget-chat { 0%, 6.9% { opacity: 1; } 7%, 85.9% { opacity: 0; } 86%, 100% { opacity: 1; } }
@keyframes faq-widget-x { 0%, 6.9% { opacity: 0; } 7%, 85.9% { opacity: 1; } 86%, 100% { opacity: 0; } }
@keyframes faq-widget-placeholder { 0%, 11% { opacity: 1; } 11.01%, 31.99% { opacity: 0; } 32%, 100% { opacity: 1; } }
@keyframes faq-widget-ask {
  0%, 12% { clip-path: inset(0 100% 0 0); } 28%, 31.99% { clip-path: inset(0); } 32%, 100% { clip-path: inset(0 100% 0 0); }
}
@keyframes faq-widget-me { 0%, 31.99% { opacity: 0; transform: translateY(6px); } 33.5%, 100% { opacity: 1; transform: none; } }
@keyframes faq-widget-typing { 0%, 33.99% { opacity: 0; } 35%, 49.99% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes faq-widget-answer { 0%, 49.99% { opacity: 0; transform: translateY(6px); } 51.5%, 100% { opacity: 1; transform: none; } }
/* Contanos (14 seconds): the end of a page with the footer's line. Contanos is pressed and its modal opens, an idea is
   typed and sent, the spinner works and the modal says thanks; Listo closes it. */
.faq-demo-contanos { --clock: 14s; }
.faq-demo-screen { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 390px; border-radius: 14px; overflow: hidden; }
.faq-demo-screen > * { grid-area: 1 / 1; }
.faq-demo-backdrop { background: rgba(40,35,20,.2); opacity: 0; animation: faq-contanos-backdrop var(--clock) infinite both; }
.faq-demo .faq-demo-modal {
  position: relative; align-self: start; justify-self: center; margin-top: 20px; width: min(400px, calc(100% - 32px)); max-height: none; overflow: hidden;
  opacity: 1; transform: none; transition: none; animation: faq-contanos-modal var(--clock) infinite both;
}
.faq-demo-modal .modal-close { cursor: default; }
.faq-demo-views { display: grid; }
.faq-demo-views > * { grid-area: 1 / 1; }
.faq-demo-form-view { visibility: hidden; animation: faq-contanos-form var(--clock) infinite both; }
.faq-demo-thanks-view { animation: faq-contanos-thanks var(--clock) infinite both; }
.faq-demo-box {
  position: relative; grid-column: 1 / -1; display: flex; min-height: 7.5em; padding: 9px 12px; border: 1px solid var(--h-fg);
  border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 3px var(--h-bg);
}
.faq-demo-box .faq-demo-input { align-self: start; padding: 0; }
.faq-demo-box .faq-demo-placeholder { white-space: normal; opacity: 1; animation: faq-contanos-placeholder var(--clock) infinite both; }
.faq-demo-box .faq-demo-ask { animation: faq-contanos-ask var(--clock) steps(var(--chars)) infinite both; }
.faq-demo-box .faq-demo-input { animation: faq-contanos-busy var(--clock) infinite both; }
.faq-demo-spinner {
  position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; opacity: 0;
  border: 3px solid var(--accent-soft); border-top-color: var(--accent);
  animation: ai-spin .8s linear infinite, faq-contanos-spinner var(--clock) infinite both;
}
.faq-demo-contanos .faq-demo-send { display: inline-grid; animation: faq-contanos-send var(--clock) infinite both; }
.faq-demo-contanos .faq-demo-send > * { grid-area: 1 / 1; }
.faq-demo-contanos .faq-demo-send > :last-child { opacity: 0; animation: faq-contanos-sending var(--clock) infinite both; }
.faq-demo-contanos .faq-demo-send > :first-child { animation: faq-contanos-send-label var(--clock) infinite both; }
.faq-demo-done { animation: faq-contanos-done var(--clock) infinite both; }
.faq-demo-foot { align-self: end; margin: 0 0 14px; }
/* In the video the footer ends a company's page, whose cards show behind the modal. */
.faq-demo-over { align-self: start; padding: 2px 4px 64px; }
.faq-demo-over .page-top { margin-bottom: 16px; }
.intro-video-company { display: flex; align-items: center; gap: 10px; margin: 0 0 14px 4px; font-size: 20px; letter-spacing: -.01em; }
.faq-demo-foot .site-foot-link { animation: faq-contanos-link var(--clock) infinite both; }
@keyframes faq-contanos-link {
  0%, 3% { text-decoration: none; transform: none; } 4%, 8% { text-decoration: underline; transform: none; }
  6% { text-decoration: underline; transform: scale(.94); } 9%, 100% { text-decoration: none; transform: none; }
}
@keyframes faq-contanos-backdrop { 0%, 8% { opacity: 0; } 10%, 83% { opacity: 1; } 85%, 100% { opacity: 0; } }
@keyframes faq-contanos-modal {
  0%, 8% { opacity: 0; transform: translateY(8px) scale(.98); } 10%, 83% { opacity: 1; transform: none; }
  85%, 100% { opacity: 0; transform: translateY(8px) scale(.98); }
}
@keyframes faq-contanos-form { 0%, 58.9% { visibility: visible; } 59%, 100% { visibility: hidden; } }
@keyframes faq-contanos-thanks { 0%, 58.9% { visibility: hidden; } 59%, 100% { visibility: visible; } }
@keyframes faq-contanos-placeholder { 0%, 14% { opacity: 1; } 14.01%, 100% { opacity: 0; } }
@keyframes faq-contanos-ask { 0%, 14% { clip-path: inset(0 100% 0 0); } 36%, 100% { clip-path: inset(0); } }
@keyframes faq-contanos-busy { 0%, 46.9% { visibility: visible; } 47%, 100% { visibility: hidden; } }
@keyframes faq-contanos-spinner { 0%, 46.9%, 59%, 100% { opacity: 0; } 47%, 58.9% { opacity: 1; } }
@keyframes faq-contanos-send { 0%, 43%, 47%, 100% { transform: none; } 45% { transform: scale(.94); } }
@keyframes faq-contanos-send-label { 0%, 46.9%, 59%, 100% { opacity: 1; } 47%, 58.9% { opacity: 0; } }
@keyframes faq-contanos-sending { 0%, 46.9%, 59%, 100% { opacity: 0; } 47%, 58.9% { opacity: 1; } }
@keyframes faq-contanos-done { 0%, 78%, 82%, 100% { transform: none; } 80% { transform: scale(.94); } }

/* The thumbs (16 seconds): the line under a card's field. A thumb up opens its card, a comment is typed and sent, and
   the line says thanks; then the same with a thumb down. */
.faq-demo-thumbs { --clock: 16s; }
.faq-demo-thumbs .feedback { margin: 0; }
.faq-demo-q { display: grid; margin-right: 4px; }
.faq-demo-q > * { grid-area: 1 / 1; justify-self: end; }
.faq-demo-q > :first-child { opacity: 0; animation: faq-thumbs-question var(--clock) infinite both; }
.faq-demo-q > :last-child { animation: faq-thumbs-thanks var(--clock) infinite both; }
.faq-demo-vote-up { animation: faq-thumbs-up var(--clock) infinite both; }
.faq-demo-vote-down { animation: faq-thumbs-down var(--clock) infinite both; }
.faq-demo-cards { display: grid; }
.faq-demo-cards > * { grid-area: 1 / 1; display: grid; grid-template-rows: 0fr; opacity: 0; }
.faq-demo-cards > * > div { min-height: 0; overflow: hidden; margin: 0 -12px; padding: 0 12px 12px; }
.faq-demo-card-up { animation: faq-thumbs-card-up var(--clock) infinite both; }
.faq-demo-card-down { animation: faq-thumbs-card-down var(--clock) infinite both; }
.faq-demo .feedback-card { animation: none; }
.faq-demo-thumbs .faq-demo-input { padding: 0; min-height: 44px; font-size: 14px; }
.faq-demo-thumbs .faq-demo-placeholder { opacity: 1; animation: faq-thumbs-placeholder var(--clock) infinite both; }
.faq-demo-thumbs .faq-demo-ask { animation: faq-thumbs-ask var(--clock) steps(var(--chars)) infinite both; }
.faq-demo-card-down :is(.faq-demo-placeholder, .faq-demo-ask, .faq-demo-send) { animation-delay: calc(var(--clock) / -2); }
.faq-demo-thumbs .faq-demo-send { animation: faq-thumbs-send var(--clock) infinite both; }
@keyframes faq-thumbs-question { 0%, 27.9%, 46%, 77.9%, 96%, 100% { opacity: 1; } 28%, 45.9%, 78%, 95.9% { opacity: 0; } }
@keyframes faq-thumbs-thanks { 0%, 27.9%, 46%, 77.9%, 96%, 100% { opacity: 0; } 28%, 45.9%, 78%, 95.9% { opacity: 1; } }
@keyframes faq-thumbs-up {
  0%, 3.9%, 28%, 100% { background: transparent; color: var(--faint); transform: none; }
  4%, 27.9% { background: var(--hover); color: var(--text); } 4% { transform: scale(.9); } 6% { transform: none; }
}
@keyframes faq-thumbs-down {
  0%, 53.9%, 78%, 100% { background: transparent; color: var(--faint); transform: none; }
  54%, 77.9% { background: var(--hover); color: var(--text); } 54% { transform: scale(.9); } 56% { transform: none; }
}
@keyframes faq-thumbs-card-up {
  0%, 4% { grid-template-rows: 0fr; opacity: 0; } 7%, 27% { grid-template-rows: 1fr; opacity: 1; }
  29%, 100% { grid-template-rows: 0fr; opacity: 0; }
}
@keyframes faq-thumbs-card-down {
  0%, 54% { grid-template-rows: 0fr; opacity: 0; } 57%, 77% { grid-template-rows: 1fr; opacity: 1; }
  79%, 100% { grid-template-rows: 0fr; opacity: 0; }
}
@keyframes faq-thumbs-placeholder { 0%, 9% { opacity: 1; } 9.01%, 49.99% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes faq-thumbs-ask { 0%, 9% { clip-path: inset(0 100% 0 0); } 20%, 49.99% { clip-path: inset(0); } 50%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes faq-thumbs-send { 0%, 23%, 27%, 100% { transform: none; } 25% { transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) {
  .faq-demo *, .faq-demo .ai-field::before { animation: none !important; }
  .faq-demo .instruction-bar { display: none; }
}
/* The welcome opens under the home page's sky, at the same hour. */
.faq-sky { position: relative; height: 120px; margin: -36px -44px 24px; border-radius: 24px 24px 0 0; overflow: hidden;
  background: linear-gradient(var(--h-tint), var(--surface)); }
.faq-sky .cordillera-moon-cut { fill: var(--h-tint); }
.faq-sky .greeting { right: auto; left: 44px; top: 34px; }
@media (max-width: 760px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .faq-content { padding: 28px 24px; }
  .faq-sky { margin: -28px -24px 20px; }
  .faq-sky .greeting { left: 24px; }
  .faq-demo { padding: 14px; margin-left: -10px; margin-right: -10px; }
  .faq-demo .builder { padding: 16px 18px 14px 28px; }
  .faq-demo .entry { padding: 12px 12px 12px 14px; gap: 12px; }
  .faq-demo-publish .publish-help { display: none; }
  .faq-demo-publish.publish-split .add-card.publish { border-radius: 999px; padding-right: 14px; }
  .faq-demo .show .section { padding: 18px 20px 20px; }
  .faq-demo .entry-when { display: none; }
}

/* The introductory video on the welcome (decision 71): a stage where the scenes are stacked, the one playing showing,
   over the voice's sentence and the bar. Every animation on the stage stands still: the intro-video controller puts
   each at the audio's second. A question's demo lasts what its scene says (--length), short of starting over
   (--stretch). From a page of the app to a deeper or a shallower one, the scenes slide as the app's pages do
   (decision 32): one leaves while the next comes in, a stage's width away (--away). Any other scene fades in. */
.intro-video { margin: 18px 0 20px; border-radius: 20px; background: var(--bg); overflow: hidden; }
.intro-video-stage { --away: calc(100% + 44px); position: relative; display: grid; padding: 22px 22px 12px; cursor: pointer; user-select: none; }
.intro-video-stage *, .intro-video-stage *::before, .intro-video-stage *::after { animation-play-state: paused !important; }
.intro-video-scene {
  --stretch: 1.04; --fade: .6s; grid-area: 1 / 1; align-self: start; min-width: 0; min-height: var(--tallest, 0px);
  animation: var(--enters, intro-video-scene) var(--enters-for, var(--fade)) var(--enters-ease, ease-in-out) both,
    var(--leaves, none) var(--leaves-for, var(--slide)) var(--leaves-ease, var(--slide-ease)) var(--leaves-at, var(--length)) forwards;
}
/* A scene that doesn't slide away fades out as it ends, and the next fades in: never one cut to the other. The
   voice stops for as long as the two fades take (IntroVideo::BREATH), a breath between two parts. The last one
   stays. */
.intro-video-scene:not([data-leaves], :last-of-type) {
  --leaves: intro-video-scene-out; --leaves-for: var(--fade); --leaves-ease: ease-in-out; --leaves-at: calc(var(--length) - var(--fade));
}
.intro-video-scene[data-enters] { --enters-for: var(--slide); --enters-ease: var(--slide-ease); }
/* The first one is there from the start: it is what the video stands on before it is played. */
.intro-video-scene:first-of-type { --enters: none; }
.intro-video-scene[data-enters=in] { --enters: intro-video-from-right; }
.intro-video-scene[data-enters=out] { --enters: intro-video-from-left; }
.intro-video-scene[data-leaves=in] { --leaves: intro-video-to-left; }
.intro-video-scene[data-leaves=out] { --leaves: intro-video-to-right; }
/* Not hidden with visibility: a demo makes its own parts visible, and they would show through. */
.intro-video-scene:not(.on) { opacity: 0 !important; }
.intro-video-title { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--h-fg); }
.intro-video-scene .faq-demo { --clock: calc(var(--length) * var(--stretch)); margin: 0; padding: 0; }
/* A move of a scene's own picture: it starts --at seconds into the scene (IntroVideo::Scene#at) and ends as the
   element is drawn. */
.intro-video-move { animation: .45s cubic-bezier(.2, .8, .2, 1) var(--at, 0s) both; }
.intro-video-rise { animation-name: intro-video-rise; }
.intro-video-pop { animation-name: intro-video-pop; }
@keyframes intro-video-scene { from { opacity: 0; } }
@keyframes intro-video-scene-out { to { opacity: 0; } }
@keyframes intro-video-from-right { from { transform: translateX(var(--away)); } }
@keyframes intro-video-from-left { from { transform: translateX(calc(-1 * var(--away))); } }
@keyframes intro-video-to-left { to { transform: translateX(calc(-1 * var(--away))); } }
@keyframes intro-video-to-right { to { transform: translateX(var(--away)); } }
/* A row under the pointer, as the home page's rows look under it. */
.intro-video-hover { animation-name: intro-video-hover; animation-duration: .15s; }
@keyframes intro-video-hover { to { background: var(--hover); box-shadow: none; } }
.intro-video[data-state="idle"] .intro-video-hover { animation: none; }
/* The pointer: the controller puts its tip (--x, --y) on what the picture presses, and a press rings around the
   tip (--click goes from 0 to 1). Not shown before the first play. */
.intro-video-cursor {
  position: absolute; left: -4px; top: -3px; z-index: 2; width: 24px; height: 24px; pointer-events: none;
  transform: translate(var(--x, 0px), var(--y, 0px));
}
.intro-video-cursor svg { position: relative; display: block; width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(30,30,20,.28)); }
.intro-video-cursor i {
  position: absolute; left: -14px; top: -15px; width: 36px; height: 36px; border-radius: 50%; background: var(--h-fg);
  opacity: calc(.32 * (1 - var(--click, 1))); transform: scale(calc(.3 + .7 * var(--click, 1)));
}
.intro-video[data-state="idle"] .intro-video-cursor { display: none; }
@keyframes intro-video-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes intro-video-pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } }
.intro-video-home { max-width: 520px; }
/* The first scene (faqs/intro_video/_intro). A welcome in the middle, which leaves at --at. Then where things were
   kept, each a picture with its name at --x and --y of the frame: it comes in at --at, grows and shrinks back when
   the voice names it (--named), and at --gathers goes into the app's icon, which shows in the middle at its own
   --at and gives a beat when the voice says "acá" (--here). */
.intro-video-opening { position: relative; height: 430px; }
.intro-video-welcome {
  position: absolute; inset: 0; display: grid; place-content: start center; justify-items: center; gap: 10px; padding: 96px 10% 0; text-align: center;
  animation: intro-video-leave .5s ease var(--at) both;
}
.intro-video-welcome b { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; color: var(--text); }
.intro-video-welcome span { max-width: 32ch; font-size: 16px; color: var(--muted); }
/* The last scene's sign, as the welcome's: the picture before it leaves at --leaves and the sign shows at --at. */
.intro-video-opening > .intro-video-ending { animation: intro-video-leave .6s ease var(--leaves) both; }
.intro-video-thanks { animation: intro-video-scene .6s ease var(--at) both; }
@keyframes intro-video-leave { to { opacity: 0; scale: .96; visibility: hidden; } }
.intro-video-thing {
  position: absolute; left: var(--x); top: var(--y); display: grid; justify-items: center; gap: 6px; width: 96px; margin: -42px 0 0 -48px;
  font-size: 12px; line-height: 1.2; color: var(--muted); text-align: center;
  animation: intro-video-pop .45s cubic-bezier(.2, .8, .2, 1) var(--at) both, intro-video-named .8s ease-in-out var(--named) both,
    intro-video-gather .7s cubic-bezier(.5, 0, .8, .4) var(--gathers) forwards;
}
.intro-video-thing svg { width: 60px; height: 60px; filter: drop-shadow(0 4px 10px rgba(30,30,20,.12)); }
@keyframes intro-video-named { 0%, 100% { scale: 1; } 50% { scale: var(--grows, 1.6); z-index: 1; } }
@keyframes intro-video-gather { to { left: 50%; top: 46%; scale: .2; opacity: 0; } }
.intro-video-app {
  position: absolute; left: 50%; top: 46%; display: grid; justify-items: center; gap: 10px; width: 120px; margin: -64px 0 0 -60px;
  font-size: 15px; font-weight: 600; color: var(--text);
  animation: intro-video-app .9s ease var(--at) both, intro-video-here .6s ease-out var(--here) both;
}
.intro-video-app svg { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 12px 32px rgba(30,30,20,.18); }
@keyframes intro-video-app { from { opacity: 0; transform: scale(.8); } }
@keyframes intro-video-here { 0%, 100% { scale: 1; } 40% { scale: 1.14; } }
/* The widget's demo over a company's list of cards, in the corner where the round button is in the app. */
.intro-video-under { display: grid; }
.intro-video-under > * { grid-area: 1 / 1; align-self: start; }
.intro-video-under > .faq-demo { align-self: end; }
/* Room for the question and the whole answer, which are longer than the ones of the question about the widget. */
.intro-video-under .ai-thread { height: 270px; }
.intro-video-questions { display: flex; flex-direction: column; gap: 1px; max-width: 440px; padding: 12px; border-radius: 20px; }
/* A page that scrolls in a window (faqs/intro_video/_search): the window is as tall as the stage has room for, and
   the page inside it goes down to its end, stays there while it grows, and at --back comes up again in a blink.
   A card that grows into a list (.intro-video-grow) opens from nothing. */
.intro-video-scroll { height: 488px; margin: 0 -12px -12px; padding: 0 12px 12px; overflow: hidden; }
.intro-video-scroll > div {
  --end: translateY(min(0px, calc(476px - 100%)));
  animation: intro-video-scroll-down var(--for) var(--at) both, intro-video-scroll-up .5s cubic-bezier(.3, 0, .1, 1) var(--back) forwards;
}
@keyframes intro-video-scroll-down { 0% { transform: none; } 10%, 100% { transform: var(--end); } }
@keyframes intro-video-scroll-up { 0% { transform: var(--end); } 100% { transform: none; } }
.intro-video-grow { animation-name: intro-video-grow; animation-duration: .12s; overflow: hidden; }
@keyframes intro-video-grow { from { max-height: 0; padding-block: 0; opacity: 0; } to { max-height: 90px; opacity: 1; } }
/* The search asked aloud (faqs/answers/_search, in the video), in the scene's own time. At --press the box gives its
   place to what is heard, and for --listens the field is as the app's while it listens: the wave, the microphone
   lit as a stop, each word written when it is said. At --stop the bar works for --seeks, and at --found the list
   gives way to the cards found. Each of these lasts from one second to another and is kept from end to end, so
   it starts and ends as the thing is without it: an animation that is over and kept nothing can't be put back at
   a second of the video. */
.intro-video-aloud .ai-field { animation: intro-video-field-on var(--listens) var(--press) both; }
.intro-video-aloud .faq-demo-input { overflow: hidden; animation: intro-video-hush .01s var(--press) forwards; }
.intro-video-aloud .ai-field-live { display: flex; flex: 0 0 0px; padding: 0; animation: intro-video-live .01s var(--press) forwards; }
.intro-video-aloud .ai-field-mini-wave {
  display: flex; width: 0; margin: 0; overflow: hidden; opacity: 0; animation: intro-video-wave-on var(--listens) var(--press) both;
}
.intro-video-aloud .ai-field-mic {
  animation: faq-search-mic var(--clock) infinite both, intro-video-mic-on var(--listens) var(--press) both,
    ai-field-pulse 1.4s ease-out var(--press) var(--pulses) both;
}
.intro-video-aloud .ai-field-mic .t-ico { grid-area: 1 / 1; }
.intro-video-aloud .ai-field-mic .t-ico:first-child { animation: intro-video-off var(--listens) var(--press) both; }
.intro-video-aloud .ai-field-mic .t-ico:last-child { display: block; opacity: 0; animation: intro-video-on var(--listens) var(--press) both; }
.intro-video-aloud .intro-video-seeking { animation: search-bar 1.3s ease-in-out infinite, intro-video-on var(--seeks) var(--stop) both; }
.intro-video-aloud .faq-demo-all { animation: faq-all var(--clock) infinite both, intro-video-gone .2s var(--found) forwards; }
.intro-video-word { animation-name: intro-video-word; animation-duration: .3s; }
.intro-video-heard { animation-name: intro-video-scene; animation-duration: .2s; }
.intro-video-heard .entry-peek { white-space: normal; }
@keyframes intro-video-field-on { 0%, 100% { border-color: #e1e1da; } 2%, 98% { border-color: var(--ai-violet); } }
@keyframes intro-video-hush { to { flex: 0 0 0px; padding-inline: 0; opacity: 0; } }
@keyframes intro-video-live { to { flex: 1 1 0px; padding: 0 6px; } }
@keyframes intro-video-wave-on { 0%, 100% { width: 0; margin-right: 0; opacity: 0; } 1%, 99% { width: 27px; margin-right: 4px; opacity: 1; } }
@keyframes intro-video-mic-on { 0%, 100% { background: #f3f0fe; color: var(--ai-violet); } 1%, 99% { background: var(--ai-mix); color: #fff; } }
@keyframes intro-video-on { 0%, 100% { opacity: 0; } 1%, 99% { opacity: 1; } }
@keyframes intro-video-off { 0%, 100% { opacity: 1; } 1%, 99% { opacity: 0; } }
@keyframes intro-video-gone { to { opacity: 0; visibility: hidden; } }
@keyframes intro-video-word { from { margin-right: 0; font-size: 0; opacity: 0; } }
/* The owner in his living room (faqs/intro_video/_mariano and _room), in a picture of 560 by 420: he is in its
   middle, and the room is a strip longer than the picture.
   Where an idea goes (faqs/intro_video/_feedback): the picture shows over the demo at --at. The sheet flies to
   his hands, which come up to hold it; his eyes go along its lines from --reads for --reading and come back up.
   At --walks he walks, --steps steps: his legs swing, he bobs, and the room goes by to the left until its bin is
   beside him. At --throws the sheet goes to the bin and his arms come down. Then what he says, one bubble and,
   when it is gone, another, each from its own --at. The pointer goes to a corner and leaves (.intro-video-rest). */
.intro-video-desk { position: relative; }
.intro-video-reader {
  position: absolute; inset: -4px; z-index: 1; display: grid; place-items: center; background: var(--bg);
  animation-name: intro-video-scene;
}
.intro-video-ending { position: relative; width: 100%; border-radius: 14px; overflow: hidden; }
.intro-video-ending svg { display: block; width: 100%; }
.intro-video-ending text { font-family: inherit; }
.intro-video-leg, .intro-video-arm, .intro-video-sheet, .intro-video-mouth { transform-box: fill-box; }
.intro-video-leg { transform-origin: 50% 0; }
.intro-video-arm { transform-origin: 50% 6%; }
.intro-video-sheet, .intro-video-mouth { transform-origin: center; }
.intro-video-reader .intro-video-room { animation: intro-video-walk calc(var(--steps) * .56s) ease-in-out var(--walks) both; }
.intro-video-reader .intro-video-leg { animation: intro-video-step .56s ease-in-out var(--walks) var(--steps) both; }
.intro-video-reader .intro-video-leg-b { animation-direction: reverse; }
.intro-video-reader .intro-video-body { animation: intro-video-bob .28s ease-in-out var(--walks) calc(var(--steps) * 2) both; }
.intro-video-reader .intro-video-arm {
  animation: intro-video-hold .4s ease-out calc(var(--at) + .6s) both, intro-video-let-go .35s ease-in var(--throws) forwards;
}
.intro-video-reader .intro-video-sheet {
  animation: intro-video-sheet-in .7s cubic-bezier(.2, .8, .2, 1) calc(var(--at) + .3s) both,
    intro-video-sheet-out .8s cubic-bezier(.4, 0, .7, 1) var(--throws) forwards;
}
.intro-video-reader .intro-video-eyes { animation: intro-video-read var(--reading) ease-in-out var(--reads) both; }
@keyframes intro-video-walk { to { transform: translateX(-885px); } }
@keyframes intro-video-step { 0%, 50%, 100% { rotate: 0deg; } 25% { rotate: 15deg; } 75% { rotate: -15deg; } }
@keyframes intro-video-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes intro-video-hold { to { rotate: var(--lean); } }
@keyframes intro-video-let-go { from { rotate: var(--lean); } to { rotate: 0deg; } }
@keyframes intro-video-sheet-in { from { opacity: 0; transform: translate(-260px, -150px) rotate(-30deg) scale(.5); } }
@keyframes intro-video-sheet-out {
  0% { opacity: 1; transform: none; } 45% { opacity: 1; transform: translate(52px, -70px) rotate(150deg) scale(.7); }
  90% { opacity: 1; } 100% { opacity: 0; transform: translate(95px, 128px) rotate(320deg) scale(.3); }
}
@keyframes intro-video-read {
  0%, 100% { transform: none; } 10% { transform: translate(-2px, 4px); } 32% { transform: translate(2px, 4px); }
  36% { transform: translate(-2px, 5px); } 58% { transform: translate(2px, 5px); } 62% { transform: translate(-2px, 6px); }
  88% { transform: translate(2px, 6px); }
}
/* What he says comes out of him: a bubble over his shoulder, its tail towards his mouth. The first goes when it
   has been read; the last stays. */
.intro-video-bubble {
  position: absolute; left: 57%; bottom: 73%; max-width: 40%; margin: 0; padding: 9px 14px; border-radius: 16px 16px 16px 4px;
  background: var(--surface); box-shadow: 0 6px 20px rgba(30,30,20,.16); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text);
  transform-origin: 0 100%; animation: intro-video-speak 2.5s ease var(--at) both;
}
.intro-video-bubble::after {
  content: ""; position: absolute; left: -7px; bottom: 0; border: solid transparent; border-width: 0 0 12px 9px; border-bottom-color: var(--surface);
}
.intro-video-bubble-last { animation-name: intro-video-speak-on; animation-duration: .35s; }
@keyframes intro-video-speak { 0% { opacity: 0; scale: .7; } 8%, 88% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; } }
@keyframes intro-video-speak-on { from { opacity: 0; scale: .7; } }
.intro-video-rest { position: absolute; left: 4%; bottom: 3%; width: 1px; height: 1px; }
/* The last scene (faqs/intro_video/_closing): the picture closes in on his face from --at for --for, and his
   mouth opens and shuts through each stretch of speech, its own --at and --for. */
.intro-video-zoom { transform-origin: 280px 18px; animation: intro-video-close-in var(--for) ease-in-out var(--at) both; }
.intro-video-mouth { opacity: 0; animation: intro-video-flap .2s ease-in-out infinite alternate, intro-video-on var(--for) var(--at) both; }
@keyframes intro-video-close-in { to { transform: scale(2.7); } }
@keyframes intro-video-flap { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
/* The security measures, thrown one over the other (faqs/intro_video/_security): each lands where its place in the
   list says (--x and --y, from 0 to 1 of the room there is) and leans by --tilt. Over them, where to read more. */
.intro-video-pile { position: relative; height: 430px; }
.intro-video-pile ul { list-style: none; margin: 0; padding: 0; }
.intro-video-pile li {
  position: absolute; left: calc(var(--x) * (100% - 260px)); top: calc(var(--y) * 300px); display: flex; align-items: flex-start; gap: 10px;
  width: 260px; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--muted); font-size: 12.5px;
  line-height: 1.4; box-shadow: 0 1px 2px rgba(30,30,20,.08), 0 8px 24px rgba(30,30,20,.08); rotate: var(--tilt);
}
.intro-video-pile b { display: block; margin-bottom: 2px; font-size: 13.5px; color: var(--text); }
.intro-video-pile b + span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* Before the pile, a padlock in the middle: it comes in open, shuts at --shuts with a ring going out from it, and
   at --at, when the measures start to fall, it goes faint and stays behind them. */
.intro-video-lock {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 136px; height: 136px; margin: -68px 0 0 -68px;
  border-radius: 50%; background: var(--h-bg); color: var(--h-fg);
  animation: intro-video-pop .5s cubic-bezier(.2, .8, .2, 1) .3s both, intro-video-lock-away .6s ease var(--at) forwards;
}
.intro-video-lock::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 3px var(--h-fg); opacity: 0;
  animation: intro-video-lock-ring .7s ease-out var(--shuts) forwards;
}
.intro-video-lock svg { width: 62px; height: 62px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.intro-video-lock path { animation: intro-video-lock-shut .3s cubic-bezier(.3, 1.4, .6, 1) var(--shuts) both; }
@keyframes intro-video-lock-shut { from { transform: translateY(-3.5px); } }
@keyframes intro-video-lock-ring { 0% { opacity: .5; scale: 1; } 100% { opacity: 0; scale: 1.6; } }
@keyframes intro-video-lock-away { to { opacity: .18; scale: .85; } }
/* Over the pile, dimmed, the list of questions as the page's sidebar has it: it shows small, whole, and grows from
   its foot (--zoom), so its end is what is left in the picture. The question there lights under the pointer and
   gives when it is pressed. */
.intro-video-pile { --zoom: 1.3; overflow: hidden; border-radius: 14px; }
.intro-video-dim { animation-name: intro-video-dim; }
@keyframes intro-video-dim { to { opacity: .3; filter: blur(1.5px); } }
.intro-video-side {
  position: absolute; left: 50%; bottom: 14px; display: flex; flex-direction: column; gap: 1px; width: min(300px, 100%);
  padding: 12px; border-radius: 20px; translate: -50% 0; scale: .78; transform-origin: 50% 100%;
  box-shadow: 0 12px 40px rgba(30,30,20,.18);
  animation: intro-video-side .4s cubic-bezier(.2, .8, .2, 1) var(--at) both, intro-video-zoom .8s cubic-bezier(.3, 0, .1, 1) var(--zooms) forwards;
}
.intro-video-side > span { display: flex; }
.intro-video-side .faq-link { flex: 1; }
@keyframes intro-video-side { from { opacity: 0; scale: .7; } to { opacity: 1; scale: .78; } }
@keyframes intro-video-zoom { from { scale: .78; } to { scale: var(--zoom); } }
.intro-video-press { animation-name: intro-video-press; animation-duration: .3s; }
@keyframes intro-video-press { 0%, 100% { scale: 1; } 40% { scale: .94; } }
/* The scene about editing (faqs/intro_video/_edit), a loop as the demos are: the card's page and its form slide in
   their box as the app's pages do, and the history's modal opens over them. Two things stacked (.intro-video-swap)
   are the same words before and after the edit. Outside the keyframes it is as it ends: the history open over
   the card as edited. */
.intro-video-edit { display: grid; grid-template-columns: minmax(0, 1fr); }
.intro-video-edit > * { grid-area: 1 / 1; }
.intro-video-edit .faq-demo-backdrop { margin: -8px; border-radius: 14px; opacity: 1; animation-name: intro-video-edit-backdrop; }
.faq-demo .intro-video-history { width: min(580px, calc(100% - 16px)); animation-name: intro-video-edit-history; }
.intro-video-history .versions { gap: 14px; max-height: none; padding: 14px; }
@media (min-width: 561px) { .intro-video-history .versions { grid-template-columns: 170px minmax(0, 1fr); } }
.intro-video-history .version-pane { padding: 16px 18px; }
.intro-video-history .version-pane > h3 { margin-bottom: 8px; font-size: 18px; }
.intro-video-history mark {
  margin: -1px -3px; padding: 1px 3px; border-radius: 4px; background: var(--h-bg); color: inherit;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: intro-video-edit-mark var(--clock) infinite both;
}
.intro-video-edit-card { animation: intro-video-edit-card var(--clock) infinite both; }
.intro-video-edit-form { visibility: hidden; animation: intro-video-edit-form var(--clock) infinite both; }
.intro-video-edit .show-edit { animation: intro-video-edit-press var(--clock) infinite both; }
.intro-video-edit .card-more { animation: intro-video-edit-clock var(--clock) infinite both; }
.intro-video-swap { display: inline-grid; grid-template-columns: minmax(0, 1fr); }
.intro-video-swap > * { grid-area: 1 / 1; }
.intro-video-edit-card .intro-video-swap > :first-child { opacity: 0; animation: intro-video-edit-was var(--clock) infinite both; }
.intro-video-edit-card .intro-video-swap > :last-child { animation: intro-video-edit-now var(--clock) infinite both; }
.intro-video-edit-form .faq-demo-top { gap: 10px; }
.intro-video-edit-form .saved-at { animation: intro-video-edit-saved var(--clock) infinite both; }
.intro-video-edit-form .undo-redo > .faq-demo-undo { animation: intro-video-edit-undo var(--clock) infinite both; }
.intro-video-edit-text { animation: intro-video-edit-focus var(--clock) infinite both; }
.intro-video-edit-text .intro-video-swap { display: grid; white-space: nowrap; }
.intro-video-edit-text .intro-video-swap > * { overflow: hidden; text-overflow: ellipsis; }
.intro-video-edit-text .intro-video-swap > :first-child {
  width: fit-content; max-width: 100%; border-radius: 3px; animation: intro-video-edit-picked var(--clock) infinite both;
}
.intro-video-edit-text .faq-demo-ask { animation: intro-video-edit-typed var(--clock) steps(var(--chars)) infinite both; }
@keyframes intro-video-edit-card {
  0%, 10% { visibility: visible; transform: none; animation-timing-function: var(--slide-ease); }
  13%, 44% { visibility: hidden; transform: translateX(calc(-1 * var(--away))); animation-timing-function: var(--slide-ease); }
  47%, 100% { visibility: visible; transform: none; }
}
@keyframes intro-video-edit-form {
  0%, 10% { visibility: hidden; transform: translateX(var(--away)); animation-timing-function: var(--slide-ease); }
  13%, 44% { visibility: visible; transform: none; animation-timing-function: var(--slide-ease); }
  47%, 100% { visibility: hidden; transform: translateX(var(--away)); }
}
@keyframes intro-video-edit-press {
  0%, 6% { color: var(--muted); transform: none; } 8%, 9.4% { color: var(--text); box-shadow: 0 3px 10px rgba(30,30,20,.08); transform: none; }
  10% { color: var(--text); transform: scale(.94); } 11.5%, 100% { color: var(--muted); transform: none; }
}
@keyframes intro-video-edit-clock {
  0%, 50% { color: var(--muted); transform: none; } 52%, 53.4% { color: var(--text); box-shadow: 0 3px 10px rgba(30,30,20,.08); transform: none; }
  54% { color: var(--text); transform: scale(.94); } 55.5%, 100% { color: var(--text); transform: none; }
}
@keyframes intro-video-edit-focus {
  0%, 17.9%, 31%, 100% { background: var(--surface); box-shadow: none; } 18%, 30% { background: #fafaf7; box-shadow: 0 0 0 2px var(--h-bg); }
}
@keyframes intro-video-edit-picked {
  0%, 19.9% { background: transparent; opacity: 1; } 20%, 21.9% { background: #cfe0fb; opacity: 1; } 22%, 100% { background: transparent; opacity: 0; }
}
@keyframes intro-video-edit-typed { 0%, 22% { clip-path: inset(0 100% 0 0); } 30%, 100% { clip-path: inset(0); } }
@keyframes intro-video-edit-saved {
  0%, 31% { opacity: 0; color: var(--h-fg); } 33%, 38% { opacity: 1; color: var(--h-fg); } 42%, 100% { opacity: 1; color: var(--faint); }
}
@keyframes intro-video-edit-undo { 0%, 31% { opacity: .4; } 33%, 100% { opacity: 1; } }
@keyframes intro-video-edit-was { 0%, 30% { opacity: 1; } 30.01%, 100% { opacity: 0; } }
@keyframes intro-video-edit-now { 0%, 30% { opacity: 0; } 30.01%, 100% { opacity: 1; } }
@keyframes intro-video-edit-backdrop { 0%, 54% { opacity: 0; } 57%, 100% { opacity: 1; } }
@keyframes intro-video-edit-history {
  0%, 54% { opacity: 0; transform: translateY(8px) scale(.98); } 57%, 100% { opacity: 1; transform: none; }
}
@keyframes intro-video-edit-mark { 0%, 70% { background: transparent; } 75%, 100% { background: var(--h-bg); } }
.intro-video-poster {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(247,247,245,.6); transition: opacity .2s;
}
.intro-video-poster .t-ico {
  width: 76px; height: 76px; padding: 22px; border-radius: 50%; background: var(--h-fg); color: #fff;
  box-shadow: 0 8px 28px rgba(30,30,20,.18);
}
.intro-video:not([data-state="idle"]) .intro-video-poster { opacity: 0; pointer-events: none; }
.intro-video-bar { display: flex; align-items: center; gap: 12px; padding: 8px 16px 14px; }
.intro-video-play {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--h-fg); color: #fff; cursor: pointer;
}
.intro-video-play .t-ico { display: none; width: 20px; height: 20px; }
.intro-video:is([data-state="idle"], [data-state="paused"]) .intro-video-play .t-ico:nth-child(1),
.intro-video[data-state="playing"] .intro-video-play .t-ico:nth-child(2),
.intro-video[data-state="ended"] .intro-video-play .t-ico:nth-child(3) { display: block; }
.intro-video-track { position: relative; flex: 1; height: 26px; border-radius: 8px; cursor: pointer; touch-action: none; }
.intro-video-track::before, .intro-video-track i { content: ""; position: absolute; left: 0; top: 10px; height: 6px; border-radius: 3px; }
.intro-video-track::before { right: 0; background: var(--line); }
.intro-video-track i { width: calc(var(--played, 0) * 100%); background: var(--h-fg); }
.intro-video-track b {
  position: absolute; top: 6px; left: calc(var(--played, 0) * 100%); width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--h-fg); box-shadow: 0 0 0 3px var(--bg);
}
.intro-video-track u { position: absolute; top: 10px; width: 2px; height: 6px; background: var(--bg); }
.intro-video-time { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.intro-video :is(.intro-video-play, .intro-video-track):focus-visible { outline: 3px solid var(--h-bg); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) {
  .intro-video-scene, .intro-video-move, .intro-video-scroll > div { animation: none; }
  .intro-video-side { animation: intro-video-side 0s var(--at) both; }
  .intro-video-lock { animation: none; opacity: .18; }
  .intro-video-lock::after, .intro-video-lock path { animation: none; }
  /* The first scene stands on the app's icon, and on its welcome before the video is played. What is heard and
     who reads the idea are moves from end to end: neither shows. */
  .intro-video-welcome, .intro-video-thing, .intro-video-app { animation: none; }
  .intro-video-thing, .intro-video:not([data-state="idle"]) .intro-video-welcome, .intro-video[data-state="idle"] .intro-video-app { display: none; }
  .intro-video-heard, .intro-video-reader { display: none; }
  .intro-video-zoom, .intro-video-mouth, .intro-video-opening > .intro-video-ending { animation: none; }
  /* Nothing slides, so a scene that leaves doesn't stay in the picture. */
  .intro-video-stage { --slide: 0s; }
  .intro-video-cursor { display: none; }
}
@media (max-width: 760px) {
  .intro-video-stage { --away: calc(100% + 28px); padding: 14px 14px 8px; }
  .intro-video-under .ai-thread { height: 370px; }
  .intro-video-pile { --zoom: 1; }
  .intro-video-welcome b { font-size: 24px; }
  .intro-video-thing { --grows: 1.3; width: 76px; margin: -34px 0 0 -38px; font-size: 11px; }
  .intro-video-thing svg { width: 46px; height: 46px; }
  .intro-video-bubble { left: 59%; top: 3%; bottom: auto; max-width: 40%; padding: 5px 8px; font-size: 11px; transform-origin: 0 50%; }
  .intro-video-pile li { left: calc(var(--x) * (100% - 210px)); width: 210px; }
}
