/* The landing page: a hero aligned to its clip player, and the demo drawn like the clips. */
.wrap { max-width: 948px; }

/* Hero: the copy spans exactly the video's height; the clip names sit under the video. */
.v2-hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); grid-template-rows: auto auto; gap: 14px 40px; padding: 40px 0 96px; }
.v2-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.screen { grid-column: 2; grid-row: 1; align-self: start; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f3eee6; aspect-ratio: 16 / 9; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 18px 48px rgba(0, 0, 0, 0.18); }
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.player-foot { grid-column: 2; grid-row: 2; }
@media (max-width: 960px) {
  .v2-hero { grid-template-columns: 1fr; gap: 28px; padding: 24px 0 64px; }
  .v2-copy, .screen, .player-foot { grid-column: 1; grid-row: auto; }
  .v2-copy { gap: 24px; }
  .player-foot { margin-top: -14px; }
}
.v2-mark { display: flex; align-items: center; gap: 0.24em; margin: 0; font-size: clamp(44px, 5vw, 52px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.v2-mark img { width: 0.8em; height: 0.8em; border-radius: 0.18em; flex: none; }
.v2-mark em { font-style: normal; color: var(--accent); }
.v2-tagline { font-size: 17px; margin: 18px 0 0; letter-spacing: -0.01em; line-height: 1.4; }
.v2-lede { color: var(--muted); margin: 10px 0 0; max-width: 440px; font-size: 14.5px; line-height: 1.6; }
.v2-copy .actions { margin: 0 0 12px; }
.v2-copy .meta { margin: 0; }

.clip-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
.clip-tabs button { position: relative; border: 0; background: none; padding: 0 0 10px; text-align: left; cursor: pointer; font: 13.5px var(--sans); color: var(--muted); }
.clip-tabs button:hover, .clip-tabs button.on { color: var(--fg); }
.clip-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.clip-tabs button i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 0.25s linear; }
.clip-caption { display: grid; margin: 14px 0 0; font-size: 14.5px; color: var(--fg); }
.clip-caption span { grid-area: 1 / 1; visibility: hidden; }
.clip-caption span.on { visibility: visible; }
.player-foot small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--faint); }

/* The demo's browser frame: drawn like the clips' page window; the page inside gets the sketch style from demo.js. */
.demo .browser { background: #f7f2ea; border-color: #e3d9ca; color-scheme: light; }
.demo .browser-bar { gap: 9px; padding: 10px 14px; background: #fbf8f3; border-bottom: 1px solid #e3d9ca; }
.demo .browser-bar::before { content: none; }
.demo .browser-bar > i { width: 6px; height: 6px; border-radius: 50%; background: #b5532d; flex: none; }
.demo .browser-bar .url { font: 500 12.5px var(--mono); color: #86796c; }
.demo .browser-bar .controls { margin-left: auto; display: flex; gap: 10px; }
.demo .browser-bar .controls b { width: 9px; height: 9px; border: 1.3px solid #b3a797; border-radius: 2px; }
.demo .browser-bar .controls b:first-child { height: 0; border-width: 0 0 1.3px; align-self: center; }
.demo .browser iframe { background: #f7f2ea; }

/* Sections after the demo. */
.v2-section { padding-top: 96px; }
.v2-section.demo { padding-top: 24px; }
.v2-head { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.v2-head h2 { font-size: 22px; margin: 0; }
.v2-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.v2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .v2-grid { grid-template-columns: 1fr; gap: 36px; } }
.v2-grid h3 { font-size: 16px; margin: 0 0 8px; }
.v2-grid .note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.v2-grid .note a { color: var(--fg); }
#download.v2-section .options { margin-top: 0; }
#download.v2-section .option { border-top: 0; padding-top: 0; }
#download.v2-section .note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
#download.v2-section .note a { color: var(--fg); }
.v2-more { padding-top: 64px; }
.v2-more a { color: var(--fg); }
