/* Layout: the page falls through a day. Hero in daylight, features in cloud white, footer at night. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #12233f; --soft: #46597a; --cloud: #f4f9ff; --mist: #e2eefb; --line: #c4d9f0;
  --sky: #1f68c7; --flame: #e8662c; --glass: rgba(255, 255, 255, .62);
  --sans: "Inter", system-ui, sans-serif; --mono: ui-monospace, "Cascadia Code", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cloud); color: var(--ink); font: 400 17px/1.6 var(--sans); }
.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: 24px; }
h1, h2 { text-wrap: balance; font-weight: 680; letter-spacing: -.035em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); max-width: 11ch; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
p { margin: 0; max-width: 62ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 8px; }
.button { display: inline-block; border: 0; border-radius: 16px; padding: 14px 24px; background: var(--sky); color: #fff; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.button:hover { background: #17539f; }
.button.quiet { background: var(--glass); color: var(--ink); backdrop-filter: blur(18px); }
.button.quiet:hover { background: rgba(255, 255, 255, .85); }

.hero { position: relative; isolation: isolate; padding-bottom: 72px; background: #4f93dc var(--hero, url("img/day.webp")) center bottom / cover; transition: background-image .6s; }
.hero nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; font-weight: 550; }
.hero nav a { text-decoration: none; }
.hero nav span { display: flex; gap: clamp(14px, 3vw, 30px); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 680; }
.pitch { display: grid; gap: 24px; padding-block: clamp(48px, 9vw, 104px) 64px; }
.pitch p { font-size: 1.2rem; max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pitch .note { font-size: .95rem; }
.hero nav, .pitch h1, .pitch > p:not(.actions) { color: #0c2148; text-shadow: 0 0 22px rgba(255, 255, 255, .55); }
[data-dark] .hero nav, [data-dark] .pitch h1, [data-dark] .pitch > p:not(.actions) { color: #fff; text-shadow: 0 1px 20px rgba(6, 10, 26, .7); }

.demo { display: grid; justify-items: center; gap: 16px; }
.demo p { max-width: none; color: var(--ink); background: var(--glass); backdrop-filter: blur(18px); border-radius: 14px; padding: 8px 16px; font-size: .95rem; }
.command { width: min(640px, 100%); padding: 10px; border-radius: 24px; background: var(--glass); border: 1px solid rgba(255, 255, 255, .8); backdrop-filter: blur(28px) saturate(1.3); box-shadow: 0 20px 60px rgba(20, 50, 100, .22); }
.command input { width: 100%; border: 0; border-radius: 15px; padding: 14px 16px; background: rgba(60, 130, 230, .13); color: var(--ink); font: 500 1.05rem var(--sans); }
.command ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; min-height: 144px; align-content: end; }
.command li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 13px; }
.command li:first-child { background: rgba(60, 130, 230, .24); }
.command small { color: var(--soft); white-space: nowrap; }
kbd { font: 600 .85rem var(--sans); border: 1px solid var(--line); border-bottom-width: 2px; background: #fff; border-radius: 7px; padding: 1px 7px; }
.try { border: 0; background: none; padding: 0; font: 600 1em var(--mono); color: var(--sky); text-decoration: underline; cursor: pointer; }

main { display: grid; gap: clamp(88px, 12vw, 150px); padding-block: clamp(80px, 10vw, 130px); }
.looks { display: grid; gap: 32px; }
.looks h2 + p { margin-top: 14px; color: var(--soft); }
.look-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.look { border: 0; padding: 0; background: none; color: inherit; font: 600 1rem var(--sans); text-align: left; cursor: pointer; }
.look img { display: block; width: 100%; height: auto; border-radius: 16px; margin-bottom: 8px; transition: transform .25s; }
.look:hover img { transform: translateY(-4px); }
.look[aria-pressed="true"] img { outline: 3px solid var(--flame); outline-offset: 3px; }

.shots h2 { margin-bottom: 32px; }
.shots > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shots figure { margin: 0; }
.shots figure:first-child { grid-column: 1 / -1; }
.shots img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 24px 60px rgba(20, 50, 100, .18); }
.shots figcaption { margin-top: 10px; color: var(--soft); }

.features { display: grid; gap: 36px; }
.intro p { margin-top: 14px; color: var(--soft); }
#picker { columns: 3 300px; column-gap: 40px; }
fieldset { break-inside: avoid; border: 0; border-top: 2px solid var(--ink); margin: 0 0 36px; padding: 10px 0 0; min-width: 0; }
legend { float: left; width: 100%; font-weight: 680; font-size: 1.15rem; padding: 0 0 8px; }
fieldset ul { clear: both; list-style: none; margin: 0; padding: 0; }
fieldset label { display: flex; gap: 11px; padding: 5px 0; cursor: pointer; line-height: 1.4; }
fieldset span { color: var(--soft); min-width: 0; }
fieldset b { color: var(--ink); font-weight: 600; }
input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--sky); }
.output { position: sticky; bottom: 16px; display: flex; gap: 14px; align-items: center; padding: 10px 10px 10px 22px; border-radius: 22px; background: rgba(255, 255, 255, .78); border: 1px solid var(--line); backdrop-filter: blur(24px); }
.output code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 500 .95rem var(--mono); }

.base h2 { margin-bottom: 32px; }
dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin: 0; }
dt { font-weight: 680; font-size: 1.15rem; }
dd { margin: 4px 0 0; color: var(--soft); }
dd span { display: block; font: 500 .9rem var(--mono); color: var(--sky); overflow-wrap: anywhere; }
.caveat { margin-top: 44px; padding: 20px 24px; border-radius: 18px; background: var(--mist); }

footer { color: #e8f0ff; background: #0b1430 url("img/night.webp") center bottom / cover; padding-block: 120px 160px; text-shadow: 0 1px 14px #060a1a; }
footer .wrap { display: grid; gap: 14px; }
footer p:last-child { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 760px) {
  .look-row, .shots > div, dl { grid-template-columns: repeat(2, 1fr); }
  .shots > div { grid-template-columns: 1fr; }
  .output { flex-direction: column; align-items: stretch; padding: 14px; }
}
@media (max-width: 460px) { dl { grid-template-columns: 1fr; } .wrap { padding-inline: 18px; } }
@media (prefers-reduced-motion: reduce) { *, html { transition: none !important; scroll-behavior: auto; } }

.film h2 { margin-bottom: 32px; }
.film video { display: block; width: 100%; height: auto; border-radius: 24px; background: #0b1430; box-shadow: 0 24px 60px rgba(20, 50, 100, .22); }
