/*
 * The apex "coming soon" page — standalone, no build step, no network.
 *
 * The palette, type scale and surface treatments below are COPIED from
 * `apps/web/src/app/marketing.css` (the Get Out and Jam brand applied to
 * Hemiola's public pages) so the placeholder and the real site read as one
 * product. Values carried over verbatim: the `--mk-*` custom properties in
 * both light and dark, `.mk-h1`/`.mk-h2`/`.mk-lead`/`.mk-eyebrow` type,
 * `.mk-hero`'s near-black `#0a0a15` ground and its two-radial violet/amber
 * glow, `.mk-grad`'s heading gradient, `.mk-logo`'s violet gradient tile,
 * `.mk-card`/`.mk-tile` surfaces and shadows, and `.mk-badge`.
 *
 * v2 composes those same values harder: a taller hero, an inline staff
 * motif drawn in SVG (no external asset), and two full-bleed dark bands so
 * the page alternates light/dark/light/dark rather than running as one
 * column of tiles. The two sections the product is actually sold on —
 * writing together and playing the notes in over MIDI — get the weight.
 *
 * v3 shrinks the pictures. The five frames were full-width figures stacked
 * down the page; they are now one horizontally scrollable strip of small
 * cards, each of which opens full size in a `:target` lightbox. That keeps
 * the page short without losing the detail the frames are there to show.
 *
 * Nothing here is a promise: the page describes only what the build already
 * does, and it collects nothing, so there is no form, no script, and no
 * request that leaves the visitor's machine. The lightbox is therefore CSS
 * only. The screenshots in `shots/` are copies of committed `docs/review`
 * gate frames, so they cannot drift ahead of the build either.
 */

/* ---- fonts: the same Inter the app ships, served from this directory ----- */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ---- palette (marketing.css `.mk`) -------------------------------------- */

:root {
  --mk-body: #f5f4fc;
  --mk-surface: #ffffff;
  --mk-ink: #0a0a15;
  --mk-muted: #3e3e5e;
  --mk-border: #e5e7eb;
  --mk-accent: #7c3aed;
  --mk-hero: #0a0a15;
  --mk-hero-ink: #ffffff;
  --mk-hero-muted: rgba(255, 255, 255, 0.72);
  --mk-hero-border: rgba(255, 255, 255, 0.12);
  --mk-shadow: 0 1px 2px rgba(10, 10, 21, 0.04), 0 8px 24px rgba(10, 10, 21, 0.06);
  --mk-lift: 0 2px 6px rgba(10, 10, 21, 0.06), 0 24px 60px rgba(10, 10, 21, 0.14);
  --mk-scroll: rgba(10, 10, 21, 0.24);
}

@media (prefers-color-scheme: dark) {
  :root {
    --mk-body: #0a0a15;
    --mk-surface: #14141f;
    --mk-ink: #f5f4fc;
    --mk-muted: #c9c9dd;
    --mk-border: rgba(255, 255, 255, 0.09);
    --mk-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
    --mk-lift: 0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.6);
    --mk-scroll: rgba(255, 255, 255, 0.28);

    /*
     * The ONE value that deviates from `marketing.css`, and the reason.
     *
     * That file holds `--mk-accent` at `#7c3aed` in dark mode, where it is
     * used for chip glyphs and link text on `#0a0a15` — 3.45:1, under the
     * 4.5:1 floor for the eyebrow's small text. `#a78bfa` is already a brand
     * value (it is the light stop of `.mk-grad`'s gradient) and reaches
     * 7.23:1 on the dark ground, so the eyebrow stays legible without
     * introducing a colour the brand does not already own.
     */
    --mk-accent: #a78bfa;
  }
}

/* ---- reset -------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--mk-body);
  color: var(--mk-ink);
  font-family: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1,
h2,
h3,
p,
ul,
ol,
figure,
dl,
dd,
dt {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a:focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 0.25rem;
}

/* ---- layout (marketing.css `.mk-container` / `.mk-section`) -------------- */

.container {
  margin-inline: auto;
  width: 100%;
  max-width: 64rem;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}
.section {
  padding-block: 3.5rem;
}
@media (min-width: 768px) {
  .section {
    padding-block: 5.5rem;
  }
}

/*
 * The two dark bands. Same ground and glow as the hero so the page reads as
 * one surface interrupted, not three unrelated blocks.
 */
.band {
  position: relative;
  background: var(--mk-hero);
  color: var(--mk-hero-ink);
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 38rem at 8% 0%, rgba(124, 58, 237, 0.34), transparent 62%),
    radial-gradient(30rem 30rem at 92% 90%, rgba(245, 158, 11, 0.13), transparent 58%);
  pointer-events: none;
}
.band > * {
  position: relative;
}
.band .lead,
.band p {
  color: var(--mk-hero-muted);
}
.band .h2,
.band h3,
.band strong {
  color: var(--mk-hero-ink);
}

/* ---- hero (marketing.css `.mk-hero`) ------------------------------------ */

.hero {
  position: relative;
  background: var(--mk-hero);
  color: var(--mk-hero-ink);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46rem 46rem at 16% 6%, rgba(124, 58, 237, 0.42), transparent 60%),
    radial-gradient(38rem 38rem at 88% 22%, rgba(245, 158, 11, 0.15), transparent 55%);
  pointer-events: none;
}
.hero > * {
  position: relative;
}
.hero-inner {
  padding-block: 3.5rem 4rem;
}
@media (min-width: 768px) {
  .hero-inner {
    padding-block: 5rem 6rem;
  }
}

/* the staff motif — drawn inline, so it costs no request */

.motif {
  position: absolute;
  left: 0;
  right: 0;
  top: 8.5rem;
  width: 100%;
  height: auto;
  color: #a78bfa;
  opacity: 0.18;
  pointer-events: none;
}
@media (min-width: 768px) {
  .motif {
    top: 10rem;
    opacity: 0.22;
  }
}
.motif-rule {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  margin-inline: auto;
  color: #a78bfa;
  opacity: 0.9;
}

/* wordmark (marketing.css `.mk-wordmark` + `.mk-logo`) */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mk-hero-ink);
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

/* badge (marketing.css `.mk-badge`, hero variant) */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3125rem 0.9375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(124, 58, 237, 0.3);
  color: #ddcdff;
}

/* type (marketing.css `.mk-h1` / `.mk-h2` / `.mk-lead` / `.mk-eyebrow`) */

.h1 {
  font-size: clamp(2.5rem, 7.4vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-block: 1.5rem 0;
  max-width: 18ch;
}
.h2 {
  font-size: clamp(1.75rem, 4.4vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 20ch;
}
.h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.grad {
  background: linear-gradient(100deg, #a78bfa 0%, #7c3aed 45%, #f59e0b 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--mk-muted);
  max-width: 44rem;
}
.hero .lead {
  color: var(--mk-hero-muted);
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 2vw, 1.4375rem);
}
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mk-accent);
}
.band .eyebrow {
  color: #a78bfa;
}
.section-lead {
  margin-top: 1.25rem;
}
.hero-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mk-hero-border);
  color: var(--mk-hero-muted);
  font-size: 0.9375rem;
  max-width: 44rem;
}

/* the three facts under the headline */

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mk-hero-ink);
}
.checks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checks li::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 999px;
  background: #a78bfa;
  flex: none;
}

/* ---- screenshots: one horizontal strip ---------------------------------- */

/*
 * v3, on the owner's note that the frames were "way too large for the page".
 * The five product frames used to be five full-width figures stacked down the
 * page, which made the page about a mile long. They are now one horizontally
 * scrollable strip of small cards, and the full-size view moved into a
 * `:target` lightbox — see the comment on `.lightbox` below.
 */

.strip {
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-block: 0.25rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: 0.25rem;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  /* Subtle, but deliberately NOT hidden: the bar is half the affordance that
     tells a visitor there is more to the right. The other half is the peek of
     the next card, which the card widths below leave at every breakpoint. */
  scrollbar-width: thin;
  scrollbar-color: var(--mk-scroll) transparent;
}
.strip::-webkit-scrollbar {
  height: 0.625rem;
}
.strip::-webkit-scrollbar-track {
  background: transparent;
}
.strip::-webkit-scrollbar-thumb {
  background: var(--mk-scroll);
  border-radius: 999px;
}
.strip:focus-visible {
  outline: 2px solid var(--mk-accent);
  outline-offset: 0.375rem;
  border-radius: 0.5rem;
}

.shot {
  flex: 0 0 auto;
  scroll-snap-align: start;
  max-width: 100%;
  border-radius: 0.875rem;
  border: 1px solid var(--mk-border);
  background: var(--mk-surface);
  box-shadow: var(--mk-shadow);
  overflow: hidden;
}
.shot-link {
  display: block;
  cursor: zoom-in;
  background: var(--mk-body);
}
/* Fixed height, width from the frame's own aspect ratio. Compact enough that
   the next card always peeks past the right edge of the strip. */
.shot-link img {
  height: 11rem;
  width: auto;
  max-width: none;
}
@media (min-width: 768px) {
  .shot-link img {
    height: 14rem;
  }
}
.shot figcaption {
  padding: 0.6875rem 0.875rem;
  border-top: 1px solid var(--mk-border);
  color: var(--mk-muted);
  background: var(--mk-surface);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.shot-hint {
  display: block;
  color: var(--mk-accent);
  font-weight: 600;
  font-size: 0.75rem;
}

/* ---- the full-size view: a lightbox with no JavaScript ------------------ */

/*
 * `:target` is the whole mechanism. A thumbnail is a link to `#shot-N`; the
 * overlay with that id is `display: none` until the URL hash names it, at
 * which point it covers the viewport. Both links inside it point at `#!`,
 * which matches no element, so following either one closes it. The backdrop
 * is one of those links, so clicking anywhere off the picture closes too.
 *
 * What this cannot do without script, stated plainly rather than papered over:
 * Escape does not close the overlay, focus is not trapped inside it, and the
 * page behind it still scrolls. The mitigations are structural — each overlay
 * sits immediately after the thumbnail that opens it, so Tab lands on its
 * close link first, and opening pushes a history entry, so Back closes it.
 */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}
.lightbox:target {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 2vw;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 14, 0.93);
  cursor: zoom-out;
}
.lightbox picture {
  position: relative;
  display: block;
  line-height: 0;
}
.lightbox img {
  width: auto;
  height: auto;
  max-width: min(96vw, var(--shot-natural, 1440px));
  max-height: 92vh;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--mk-lift);
}
.lightbox-close {
  position: absolute;
  top: max(0.75rem, 2vh);
  right: max(0.75rem, 2vw);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(20, 20, 31, 0.9);
  color: #ffffff;
  font-size: 1.625rem;
  line-height: 1;
  text-decoration: none;
}
.lightbox-close:hover {
  background: #ffffff;
  color: #0a0a15;
}

/* ---- point lists (the two headline sections) ---------------------------- */

.points {
  display: grid;
  gap: 1.75rem;
  margin-top: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 3rem;
  }
}
.points > li {
  padding-top: 1.125rem;
  border-top: 2px solid var(--mk-border);
}
.band .points > li {
  border-top-color: rgba(167, 139, 250, 0.4);
}
.points h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.points p {
  margin-top: 0.5rem;
  color: var(--mk-muted);
  font-size: 0.9688rem;
  line-height: 1.6;
}
.band .points p {
  color: var(--mk-hero-muted);
}

/* the second, tighter block inside the MIDI section */

.subhead {
  margin-top: 3.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
}
.subhead + .points {
  margin-top: 1.75rem;
}

/* ---- feature tiles (marketing.css `.mk-tile`) --------------------------- */

.tiles {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.tile {
  background: var(--mk-surface);
  border: 1px solid var(--mk-border);
  border-radius: 0.875rem;
  padding: 1.375rem;
  box-shadow: var(--mk-shadow);
}
.tile h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tile p {
  margin-top: 0.5rem;
  color: var(--mk-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* the formats strip */

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.formats li {
  border: 1px solid var(--mk-border);
  background: var(--mk-surface);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mk-muted);
}

/* ---- the closing band --------------------------------------------------- */

.close {
  text-align: center;
}
.close .h2 {
  max-width: none;
  margin-top: 1.75rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
}
.close .lead {
  margin-inline: auto;
  text-align: center;
  max-width: 38rem;
  margin-top: 1.5rem;
}
.address {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.1875rem);
  letter-spacing: -0.01em;
  color: var(--mk-hero-ink);
}
.fineprint {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  max-width: 38rem;
  margin-inline: auto;
}

/* ---- footer (marketing.css `.mk-footer`) -------------------------------- */

.footer {
  border-top: 1px solid var(--mk-border);
  background: var(--mk-surface);
  padding-block: 2rem;
}
.footer p {
  color: var(--mk-muted);
  font-size: 0.875rem;
}
.footer p + p {
  margin-top: 0.375rem;
}

/* ---- 360px and narrower ------------------------------------------------- */

@media (max-width: 380px) {
  .container {
    padding-inline: 1rem;
  }
  .tile {
    padding: 1.125rem;
  }
  .h1 {
    letter-spacing: -0.03em;
  }
  .checks {
    gap: 0.375rem 1rem;
    font-size: 0.875rem;
  }
  .address {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
  }
  .motif {
    top: 7.5rem;
  }
}
