/* Landing page. Builds on styles.css (tokens, nav, buttons, search field, footer); only the page's own sections
   live here. */
.l-hero { padding: 96px 0 40px; text-align: center; }
.l-hero h1 { margin: 0 0 36px; }
/* Hero actions */
.l-hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.l-btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 14px; }
.l-btn-lg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
@media (hover: hover) { .l-btn-lg:hover svg { transform: translateX(3px); } }
.l-search { padding-right: 8px; }
.l-search input { min-width: 0; }
.l-search .btn { flex: none; height: 44px; padding: 0 18px; border-radius: 12px; }
.l-hero-links { display: flex; justify-content: center; gap: 12px; margin: 18px 0 0; font-size: 14px; color: var(--faint); }
.l-hero-links a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.l-hero-links a:hover { color: var(--text); text-decoration-color: currentColor; }

/* Showcase: one set of icons, cycling through the six styles. */
.l-show { padding: 24px 0 8px; text-align: center; }
.l-styles { margin: 0 auto 22px; }
.l-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px;
  padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
  transition: opacity .16s var(--ease), transform .2s var(--ease);
}
.l-grid.swap { opacity: 0; transform: scale(.99); }
.l-tile { aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; color: var(--icon); background: var(--bg); }
.l-tile svg { width: 30px; height: 30px; }
.l-tile.colour svg { width: 38px; height: 38px; }

/* Sections */
.l-sec { padding: 88px 0 0; }
.l-sec-h { max-width: 640px; margin: 0 0 32px; }
.l-sec-h h2, .l-cta h2 { margin: 0; font-family: var(--display); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 500; letter-spacing: -0.025em; }

/* Example searches */
.l-queries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.l-q {
  display: flex; flex-direction: column; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg); transition: border-color .15s var(--ease), background .15s var(--ease);
}
@media (hover: hover) { .l-q:hover { border-color: var(--line-strong); background: var(--surface); } }
.l-q-text { font-size: 16px; font-weight: 500; line-height: 1.35; }
.l-q-icons { display: flex; align-items: center; gap: 10px; color: var(--icon); }
.l-q-best { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.l-q-best svg { width: 28px; height: 28px; }
.l-q-alt { display: grid; place-items: center; width: 36px; height: 36px; opacity: .55; }
.l-q-alt svg { width: 22px; height: 22px; }
.l-q-name { font-size: 12px; color: var(--faint); margin-top: -8px; }

/* A small search under the examples: try your own. */
.l-mini-search {
  position: relative; display: flex; align-items: center; gap: 8px; max-width: 520px; height: 52px; margin: 20px 0 0;
  padding: 0 6px 0 44px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg);
  transition: border-color .15s var(--ease);
}
.l-mini-search:focus-within { border-color: var(--accent); }
.l-mini-search svg { position: absolute; left: 15px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.l-mini-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; color: var(--text); }
.l-mini-search input::placeholder { color: var(--faint); }
.l-mini-search input::-webkit-search-cancel-button { display: none; }
.l-mini-search .btn { flex: none; height: 40px; }

/* Product video (hidden until the file is in): a quiet frame like a window. */
.l-video { padding: 16px 0 24px; }
.l-video[hidden] { display: none; }
.l-video-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 40px 80px -48px rgba(var(--shadow), .35); }
.l-video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* Get Bicon */
.l-get-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.l-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
.l-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.l-card-p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.l-card .btn svg, .l-card .btn-ghost svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.l-dl-all { height: 44px; padding: 0 18px; margin: 8px 0 22px; font-size: 15px; }
.l-size { font-weight: 400; opacity: .75; font-variant-numeric: tabular-nums; }
.l-size:not(:empty)::before { content: "·"; margin: 0 6px 0 2px; }
.l-dl-or { margin: 0 0 10px; font-size: 13px; color: var(--faint); }
.l-dl-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.l-dl-styles .btn-ghost { height: 34px; font-size: 13.5px; }
.l-license a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.l-figma { background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; }
.l-figma .btn-ghost { margin-top: auto; background: var(--bg); }
.l-soon { display: inline-block; margin-bottom: 14px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--violet-soft); color: var(--violet); }

/* Licence */
.l-license { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; }
.l-license h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.l-license p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.l-license .l-fine { font-size: 13px; color: var(--faint); margin: 0; }
.l-credit { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.l-credit-h { margin: 0 0 8px; font-size: 12px; color: var(--faint); }
.l-credit code { display: block; margin-bottom: 12px; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); overflow-wrap: anywhere; }

/* Closing call to action */
.l-cta { margin: 96px 0 24px; padding: 56px 24px; text-align: center; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.l-cta h2 { margin-bottom: 22px; }
.l-cta .btn { height: 44px; padding: 0 22px; font-size: 15px; }

@media (max-width: 1000px) {
  .l-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .l-grid .l-tile:nth-child(n + 28) { display: none; }
  .l-queries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .l-get-grid, .l-license { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .l-hero { padding: 56px 0 24px; }
  .l-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 10px; gap: 4px; border-radius: 18px; }
  .l-grid .l-tile:nth-child(n + 25) { display: none; }
  .l-tile svg { width: 26px; height: 26px; }
  .l-tile.colour svg { width: 32px; height: 32px; }
  .l-styles { max-width: 100%; overflow-x: auto; }
  .l-sec { padding-top: 64px; }
  .l-queries { grid-template-columns: minmax(0, 1fr); }
  .l-hero-cta .l-btn-lg { flex: 1 1 auto; }
  .l-card, .l-license { padding: 22px; }
  .l-cta { margin-top: 64px; padding: 40px 20px; }
}

/* Motion: the hero rises in on load; each section comes into focus as it scrolls into view (once): it rises a
   little, grows from 97% and sharpens from a soft blur, its cards a beat apart. Only opacity and transform move, on a long soft ease, so it stays smooth. JS adds .js to
   <html>, so without it nothing is hidden; reduced motion shows everything at once. */
html { scroll-behavior: smooth; }
@keyframes l-rise { from { opacity: 0; transform: translateY(22px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
.js .l-in { animation: l-rise 1.1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--d, 0ms); }
.js .reveal, .js .reveal-group > * {
  opacity: 0; transform: translateY(36px) scale(.97); filter: blur(10px);
  transition: opacity 1s cubic-bezier(.16, 1, .3, 1), transform 1.2s cubic-bezier(.16, 1, .3, 1), filter 1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .reveal.in, .js .reveal-group.in > * { opacity: 1; transform: none; filter: blur(0); }
/* The showcase tiles settle in one after another the first time the grid appears. */
.js .l-show .l-grid.enter .l-tile { opacity: 0; transform: scale(.92); }
.js .l-show.in .l-grid.enter .l-tile { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(200ms + var(--i, 0) * 18ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .l-in { animation: none; }
  .js .reveal, .js .reveal-group > *, .js .l-show .l-grid.enter .l-tile { opacity: 1; transform: none; filter: none; transition: none; }
}
