/* The landing page's sections, top to bottom. Each fills one screen on a desktop; on a phone each is
   at least a screen and grows with what it holds. */
main > section { padding: var(--padt) 0 var(--padb); }
@media (min-width: 640px) { main > section { min-height: 100svh; } }
@media (max-width: 639px) { main > section:not(.hero) { min-height: 100svh; } }
.head { margin-bottom: 48px; }
.head p { margin-top: 24px; }
@media (max-width: 639px) { .head { margin-bottom: 32px; } }

/* the hero: the words on five columns, leon's window on a satin frame on the right six */
.hero { display: flex; flex-direction: column; height: 100svh; min-height: 640px; padding: calc(var(--nav) + 48px) 0 64px; }
.hero > .wrap { flex: 1; }
.hero .grid { height: 100%; align-items: stretch; }
.hero-copy { gap: 24px; }
.hero-copy h1 { margin-top: -.08em; }
.hero-copy .btn-row { margin-top: 8px; }
.satin { position: relative; overflow: hidden; border-radius: var(--r); isolation: isolate;
  /* the app icon's light field, Gold to Oxide, laid in soft diagonal folds */
  background:
    linear-gradient(115deg, transparent 18%, rgb(255 224 206 / .55) 30%, transparent 42%, rgb(255 214 194 / .4) 64%, transparent 78%),
    linear-gradient(200deg, rgb(255 236 222 / .7), transparent 45%),
    linear-gradient(135deg, #e9a089 0%, #d47a62 38%, #f0b19c 60%, #c9664d 100%); }
.satin .lw-hero { position: absolute; left: 40px; top: 48px; width: 720px; height: 468px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 260px), transparent calc(100% - 110px));
  mask-image: linear-gradient(90deg, #000 calc(100% - 260px), transparent calc(100% - 110px)); }
.float { position: absolute; left: 24px; bottom: 24px; z-index: 2; width: 300px; padding: 14px 18px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.float p { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.float p span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 3px rgb(182 76 50 / .18); }
.float b { display: block; margin-top: 6px; font-weight: 500; }
@media (max-width: 1279px) {
  .satin .lw-hero { left: 32px; top: 40px; width: calc(100% - 64px); height: auto; -webkit-mask-image: none; mask-image: none; }
  .float { display: none; }
}
@media (max-width: 1023px) {
  .hero { height: auto; min-height: 100svh; }
  .hero .grid { display: flex; flex-direction: column; }
  .satin { flex: 1 0 auto; margin-top: 40px; padding: 32px; }
  .satin .lw-hero { position: relative; left: auto; top: auto; width: 100%; }
}
@media (max-width: 639px) {
  .hero { padding-top: calc(var(--nav) + 40px); padding-bottom: 24px; }
  .satin { margin-top: 32px; padding: 20px; }
  .hero .btn-row { flex-direction: row; } .hero .btn-row .btn { flex: 1 1 auto; width: auto; padding: 0 16px; }
}

/* the entrance: the words, then what to do, then the picture, once on load */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes appear { from { opacity: 0; } }
.m-enter .hero-copy > * { animation: rise .7s var(--ease-in) both; }
.m-enter .hero-copy > :nth-child(2) { animation-delay: .08s; }
.m-enter .hero-copy > :nth-child(3) { animation-delay: .16s; }
.m-enter .satin { animation: appear .9s var(--ease-in) .1s both; }

/* the app: its window takes what the screen has left under the heading */
.app-sec > .wrap { display: flex; flex-direction: column; min-height: calc(100svh - var(--padt) - var(--padb)); }
.app-sec .lw-app { flex: 1 1 0; min-height: 360px; max-height: 640px; margin-top: 48px; }
@media (max-width: 1023px) { .app-sec .lw-app { flex: none; height: 520px; } }
@media (max-width: 639px) { .app-sec .lw-app { height: 420px; min-height: 0; } }

/* the agents: three cards, each a line and a picture of the thing it says */
.cards { row-gap: 48px; }
/* stacked on a tablet, the three cards take two whole screens */
@media (min-width: 640px) and (max-width: 1023px) { #agents { min-height: 200svh; } }
.card h3 { margin-bottom: 8px; }
.card > p { color: var(--text); max-width: 46ch; min-height: 3.2em; }
.panel { position: relative; height: 300px; margin-top: 32px; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(165deg, #efe8dd 0%, #e2d6c6 55%, #d6c6b1 100%); }
.panel > * { position: absolute; left: 50%; transform: translateX(-50%); width: min(340px, 100% - 48px); }
.panel .lw-card { top: 40px; }
.panel .notes { bottom: -28px; }
@media (max-width: 639px) { .panel { height: 280px; } .panel .lw-card { top: 24px; } }

/* the notices an agent's state raises */
.notes { display: grid; gap: 8px; }
.note { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; background: #fffdfa; border-radius: 10px;
  box-shadow: 0 1px 2px rgb(41 37 33 / .08), 0 8px 20px -10px rgb(41 37 33 / .3); font-size: 13px; line-height: 1.35; }
.note i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f1ebe2; font-style: normal; font-weight: 500; }
.note b { display: block; font-weight: 500; color: var(--ink); }
.note span { color: #5c524a; }
.note time { align-self: start; color: #6f655c; }
.note .open { padding: 4px 10px; border-radius: 6px; background: var(--ink); color: var(--bg); font-weight: 500; }

/* the statement: leon's line set large, beside the lion of its icon */
.statement .line { font-size: clamp(52px, 7vw, 116px); font-weight: 500; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.statement .lead { max-width: 40ch; margin-top: 40px; color: var(--text); }
.statement .tile { width: 100%; aspect-ratio: 1; max-height: calc(100svh - var(--padt) - var(--padb)); object-fit: contain; object-position: right top; }
@media (max-width: 1023px) { .statement .tile { max-height: none; margin-top: 16px; } }

/* the dark band: the agents clip */
.dark { background: var(--inv-bg); color: var(--inv-ink); }
.dark .muted { color: var(--inv-muted); }
.clip { height: clamp(300px, calc(100svh - 360px), 720px); border-radius: var(--r); overflow: hidden; background: var(--coal); }
.clip video { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 639px) { .clip { height: auto; aspect-ratio: 342 / 479; } .clip video { object-fit: cover; object-position: 48% 50%; } }

/* the command and the API, beside the clients round the server */
.cli-text { gap: 24px; }
.facts { display: grid; gap: 12px; color: var(--text); }
@media (max-width: 1023px) { .hub { margin-top: 48px; } }

/* the questions, on Sand */
.questions { background: var(--surface); }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { padding-top: 0; }
.faq-item p { margin-top: 8px; color: var(--text); }
@media (max-width: 1023px) { .faq { margin-top: 40px; } }
/* a tablet keeps the questions beside their heading, so the section stays one screen */
@media (min-width: 640px) and (max-width: 1023px) { .questions .c5 { grid-column: span 5; } .questions .faq { grid-column: 6 / -1; margin-top: 0; } }
.note .b-ico { color: #8a5a00; }

/* the memory figure beside the questions (docs/performance-memory.md) */
.bars { align-self: stretch; margin-top: 24px; padding: 24px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 1fr 64px; column-gap: 12px; row-gap: 6px; align-items: center; font-size: 14px; }
.bar-row b { grid-row: 2; height: 10px; width: var(--w); border-radius: 5px; background: #c9bba8; }
.bar-row.now b { background: var(--action); }
.bar-row span:last-child { grid-row: 2; grid-column: 2; font-family: var(--mono); text-align: right; }
@media (max-width: 639px) { main > section.questions { min-height: 200svh; } }
