/* Landing (next): hero film, bento, how it works. Uses the site's tokens (style.css); the three soft colours match the
   in-chat comparison (sky blue, coral, golden amber). No green. */
:root { --k0: #3a86c8; --k1: #e2725b; --k2: #d9a21b; }
:root[data-theme="dark"] { --k0: #6aaee6; --k1: #f08d78; --k2: #ebbd4a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k0: #6aaee6; --k1: #f08d78; --k2: #ebbd4a; } }
.k0 { --k: var(--k0); } .k1 { --k: var(--k1); } .k2 { --k: var(--k2); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero.film { padding-top: 8px; }
.hero-film { width: min(100%, 1180px); margin: 0 auto 22px; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: var(--paper); }
.hero-film video, .hw-film video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* bento: kinds of searches, each a search box */
.bx-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; margin-top: 26px; }
.bx-t { position: relative; overflow: hidden; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit;
  border-radius: 26px; padding: 22px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: color-mix(in oklab, var(--k) 12%, var(--surface)); transition: transform .14s cubic-bezier(.2, .7, .2, 1); }
.bx-t:active { transform: scale(.985); }
.bx-a { grid-column: span 2; grid-row: span 2; min-height: 360px; } .bx-f { grid-column: span 2; min-height: 260px; }
.bx-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bx-t.has-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .18)); }
.bx-kind { position: relative; z-index: 1; font: 600 26px/1.05 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.has-pic .bx-kind { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.sq { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 16px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 10px 28px -16px rgba(17, 17, 16, .4), 0 0 0 1px var(--line); }
.sq-i { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; }
.sq-t { flex: 1; font: 500 15px/1.3 var(--font-ui); color: var(--ink); }
.sq-go { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); }
.sq-go svg { width: 16px; height: 16px; fill: none; stroke: var(--paper); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bx-t:hover .sq-go { background: var(--ink-2); }

/* how it works */
.hw-film { width: min(100%, 1080px); margin: 26px auto 0; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: var(--paper);
  box-shadow: 0 24px 60px -30px rgba(17, 17, 16, .3); }
.hw-steps { list-style: none; padding: 0; margin: 30px auto 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hw-steps li { display: flex; gap: 14px; padding: 20px; border-radius: 22px; background: var(--surface); }
.hw-steps li > b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 14px/1 var(--font-ui); }
.hw-steps h3 { margin: 3px 0 6px; font: 600 18px/1.15 var(--font-ui); color: var(--ink); }
.hw-steps p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.ai-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 5px; border-radius: 999px; background: var(--paper); font: 600 13px/1.4 var(--font-ui); color: var(--ink); vertical-align: 1px; }
.ai-pill .lg { width: 15px; height: 15px; display: inline-block; } .ai-pill .lg svg { width: 100%; height: 100%; display: block; fill: currentColor; stroke: none; }   /* brand marks are filled shapes: no icon outline */
.hw-url { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; font: inherit; color: var(--ink); }
.hw-url code { font: 600 13px/1.2 ui-monospace, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-url span { flex: none; font: 600 12px/1 var(--font-ui); color: var(--ink-3); }
.hw-alt { margin: 18px auto 0; text-align: center; font-size: 14px; color: var(--ink-3); }

@media (max-width: 900px) {
  .bx-grid { grid-template-columns: 1fr 1fr; } .bx-a, .bx-f { grid-column: span 2; } .bx-a { grid-row: auto; min-height: 300px; }
  .hw-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bx-grid { grid-template-columns: 1fr; } .bx-a, .bx-f { grid-column: auto; }
  .hero-film, .hw-film, .bx-t { border-radius: 20px; } .bx-t { min-height: 0; }
}

/* layout fixes: wide film and bento, the home tile's picture fills it, nothing below the footer until a search */
.hero.film { max-width: 1240px; width: 100%; margin-left: auto; margin-right: auto; }
.hero.film .hero-film { width: 100%; }
.lp-sec.bx, .lp-sec.hw { max-width: 1180px; width: 100%; }
body:not(.searched) #toolbar, body:not(.searched) #main { display: none; }
