/* The landing under its first screen (2026-11-27): one content column framed by hairline grid lines. The Studio window and the cards sit
   exactly on its two vertical lines, and a line runs across the page at every box's top and bottom edge (hr.gl), with a small square where it
   crosses the column's edges. Soft colour glows drift slowly behind it all. Loaded after style.css; only the landing uses it. */
body.home { --colw: 1080px; --line: rgba(255,255,255,.07); }

/* the column and its two vertical lines */
.gcol { position: relative; z-index: 0; max-width: var(--colw); margin: 0 auto; border-inline: 1px solid var(--line); }
body.home .stage { padding-bottom: 0; }   /* the lines run down to the footer */

/* the lines across: full bleed (.stage clips the overflow), a square mark where each one meets the column's edges */
hr.gl { position: relative; height: 0; margin: 0 -1px; border: 0; overflow: visible; }
hr.gl::before { content: ""; position: absolute; top: 0; left: -100vw; right: -100vw; border-top: 1px solid var(--line); }
hr.gl::after { content: ""; position: absolute; top: -3px; left: -3px; right: -3px; height: 7px; border-inline: 7px solid rgba(255,255,255,.22); box-sizing: border-box; }
hr.gl.gap { margin-top: clamp(72px, 11vh, 128px); }

/* the boxes sit on the lines: the window and the two cards span the column, their borders over its edges */
body.home .gcol > .win { width: auto; margin: 0 -1px; }
body.home .gcol > .more { width: auto; margin: 0 -1px; }
body.home .gcol > .split-head { width: auto; margin: 0; padding: clamp(72px, 11vh, 128px) var(--in) clamp(28px, 4vh, 40px); }

/* the hero's free-start line; on phones and tablets it also says Build needs a computer */
.hero-free { margin: 12px 0 0; color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.45; text-align: center; text-wrap: balance; }
.hero-free .phone-only { display: none; }
@media (pointer: coarse), (max-width: 720px) { .hero-free .phone-only { display: inline; } }

/* how Build works: three steps in a row (one column on phones) */
body.home #how .feat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.home #how .feat-cell .ico { font: 600 15px/1 var(--sans); }
body.home #how .feat-cell a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) { body.home #how .feat-row { grid-template-columns: minmax(0, 1fr); } }

/* the questions: the short line sits under the heading, not off at the far right */
body.home #faq .more-head { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
body.home #faq .more-head p { grid-column: 1; padding: 0; }

/* the close: the hero's ribbons part around it again */
body.home .gcol > .last { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: none;
  min-height: min(620px, 82svh); margin: 0; padding: 96px 16px 104px; }
body.home .gcol > .last > :not(canvas) { position: relative; z-index: 1; }

/* the footer: the column's width, its edges on the lines */
body.home .foot { width: min(var(--colw), calc(100% - 32px)); margin: 0 auto 16px; box-sizing: border-box; border-radius: 0 0 16px 16px; }

/* glows: blurred colour spots (radial gradients, no filter) drifting slowly behind the column, in the ribbons' colours */
.glows { position: absolute; z-index: -1; top: -320px; bottom: 0; -webkit-mask-image: linear-gradient(transparent, #000 320px); mask-image: linear-gradient(transparent, #000 320px); left: calc(50% - 50vw); width: 100vw; overflow: hidden; pointer-events: none; }
.glows i { position: absolute; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; opacity: .5; will-change: transform;
  animation: glow-drift 26s ease-in-out infinite alternate; }
.glows i:nth-child(1) { top: 6%;  left: 12%; background: radial-gradient(closest-side, rgba(255,190,80,.22), transparent); animation-duration: 24s; }
.glows i:nth-child(2) { top: 18%; left: 88%; background: radial-gradient(closest-side, rgba(247,72,184,.2), transparent); animation-duration: 31s; animation-delay: -9s; }
.glows i:nth-child(3) { top: 34%; left: 6%;  background: radial-gradient(closest-side, rgba(160,96,255,.22), transparent); animation-duration: 28s; animation-delay: -4s; }
.glows i:nth-child(4) { top: 48%; left: 94%; background: radial-gradient(closest-side, rgba(255,128,64,.2), transparent); animation-duration: 22s; animation-delay: -13s; }
.glows i:nth-child(5) { top: 63%; left: 10%; background: radial-gradient(closest-side, rgba(120,150,255,.22), transparent); animation-duration: 33s; animation-delay: -7s; }
.glows i:nth-child(6) { top: 77%; left: 90%; background: radial-gradient(closest-side, rgba(255,84,112,.2), transparent); animation-duration: 27s; animation-delay: -17s; }
.glows i:nth-child(7) { top: 92%; left: 30%; background: radial-gradient(closest-side, rgba(160,96,255,.18), transparent); animation-duration: 30s; animation-delay: -11s; }
@keyframes glow-drift {
  0%   { transform: translate(0, 0) scale(1); opacity: .45; }
  50%  { transform: translate(70px, -50px) scale(1.12); opacity: .7; }
  100% { transform: translate(-60px, 40px) scale(.94); opacity: .5; }
}
@media (prefers-reduced-motion: reduce) { .glows i { animation: none; } }

/* phones: the column is the page minus its 16px gutters; the glows get smaller */
@media (max-width: 720px) {
  body.home .gcol > .split-head { margin: 0; padding: 56px 16px 24px; background: none; }
  .glows i { width: 360px; height: 360px; margin: -180px 0 0 -180px; }
  body.home .gcol > .last { min-height: 0; padding: 72px 16px 200px; }   /* the one lower ribbon sweeps under the buttons */
}
