/* ---------------------------------------------------------------------------
   Match Cut: flat, quiet and modern.

   One sans-serif, the system's own, in a clear scale. White space does the
   work the bevels, drop shadows, spine labels and marquee used to: sections
   are separated by room and a hairline, not by boxes. Two things stay from
   the app itself, because they are the app: the hero is a dead channel's
   static under scanlines, as the launch screen is, and the SMPTE bars rule a
   thin line across the very top.

   Light and dark follow the system, as the app does, and the screenshots
   already switch with it.
   --------------------------------------------------------------------------- */

:root {
  --page: #ffffff;
  --ink: #111111;
  --body: #3a3a3c;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --surface: #f5f5f7;
  --static: #262626;
  --button: #111111;
  --button-ink: #ffffff;
  --link-hover: #6e6e73;

  /* The app's palette: the system colours it draws each bar in (gray 3,
     yellow, teal, green, purple, red, indigo), as iOS 26 resolves them,
     light here and dark below. */
  --bar-silver: #c7c7cc;
  --bar-yellow: #ffcc00;
  --bar-cyan:   #00c3d0;
  --bar-green:  #34c759;
  --bar-magenta:#cb30e0;
  --bar-red:    #ff383c;
  --bar-blue:   #6155f5;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --ink: #f5f5f7;
    --body: #c7c7cc;
    --muted: #8e8e93;
    --line: #2c2c2e;
    --surface: #1c1c1e;
    --button: #f5f5f7;
    --button-ink: #000000;
    --link-hover: #8e8e93;

    --bar-silver: #48484a;
    --bar-yellow: #ffd600;
    --bar-cyan:   #00d2e0;
    --bar-green:  #30d158;
    --bar-magenta:#db34f2;
    --bar-red:    #ff4245;
    --bar-blue:   #6d7cff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

/* ---------------------------------------------------------------- the bars */
/* A hairline of the test pattern across the top: the brand, said once. */
.bars { display: flex; height: 4px; }
.bars span { flex: 1; }
.bars .s { background: var(--bar-silver); }
.bars .y { background: var(--bar-yellow); }
.bars .c { background: var(--bar-cyan); }
.bars .g { background: var(--bar-green); }
.bars .m { background: var(--bar-magenta); }
.bars .r { background: var(--bar-red); }
.bars .b { background: var(--bar-blue); }
/* Only the top one: the page ends on its footer, not on a second rule. */
body > .bars ~ .bars { display: none; }

/* ---------------------------------------------------------------- the hero */
.hero {
  position: relative;
  padding: 20px 24px 96px;
  text-align: center;
  /* Static, darker towards the edges so the words sit on the middle of it:
     the app's launch screen, as a tile of its grain. */
  background:
    radial-gradient(80% 65% at 50% 45%, rgba(0, 0, 0, 0.15) 20%, rgba(0, 0, 0, 0.7) 100%),
    url("static.png") var(--static);
  background-size: auto, 240px 240px;
  /* Where the tile sits, moved 24 times a second by static.js, as the
     launch screen's grain moves. Still without it. */
  background-position: center, var(--static-x, 0px) var(--static-y, 0px);
  image-rendering: pixelated;
  color: #fff;
  overflow: hidden;
}
.hero.compact { padding-bottom: 64px; }

/* Scanlines, faint: the tube, without the grit. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 1;
}
.hero > * { position: relative; z-index: 2; }

.hero-icon {
  image-rendering: auto;
  width: 112px;
  height: auto;
  margin: 56px 0 28px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}
.hero.compact .hero-icon { width: 72px; margin: 40px 0 20px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  color: #fff;
}
.hero.compact h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; }

.hero p.tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 32ch;
  margin: 0 auto;
}

.hero-actions { margin-top: 32px; }

.release-meta {
  font-size: 0.875rem;
  color: var(--muted);
}
.hero .release-meta { color: rgba(255, 255, 255, 0.55); }
.hero .release-meta a { color: #fff; }

/* ---------------------------------------------------------------- the nav */
.hero .topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 4px 0;
  z-index: 4;
}
.hero .topnav .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.hero .topnav .wordmark:hover { color: rgba(255, 255, 255, 0.75); }

.hero .topnav .nav-links { display: flex; gap: 28px; }
.hero .topnav .nav-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.hero .topnav .nav-links a:hover,
.hero .topnav .nav-links a[aria-current="page"] { color: #fff; }

.hero .topnav .nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}
.hero .topnav .nav-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.hero .topnav .nav-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 720px) {
  .hero .topnav { flex-wrap: wrap; position: relative; }
  .hero .topnav .nav-toggle { display: block; }
  .hero .topnav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    padding: 6px;
    background: var(--page);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 5;
  }
  .hero .topnav .nav-toggle[aria-expanded="true"] + .nav-links { display: flex; }
  .hero .topnav .nav-links a {
    color: var(--ink);
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 9px;
    text-align: left;
  }
  .hero .topnav .nav-links a:hover { background: var(--surface); color: var(--ink); }
  .hero .topnav .nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
}

/* ---------------------------------------------------------------- buttons */
.btn-primary {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--button-ink);
  background: var(--button);
  padding: 14px 26px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}
.btn-primary:hover { opacity: 0.85; color: var(--button-ink); }
/* On the static, always white. */
.hero .btn-primary { background: #fff; color: #000; }
.hero .btn-primary:hover { color: #000; }

/* ---------------------------------------------------------------- features */
.feature {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
main > .feature:first-child { border-top: 0; }

/* The heading, with its label as a small eyebrow above it. */
.sleeve-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 32px;
}
.sleeve-head .tag {
  display: block;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 820px) {
  .feature-inner { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
  .feature.reverse .feature-copy { order: 2; }
  .feature.reverse .feature-image { order: 1; }
}
.feature-copy p { margin: 0; }
.feature-copy p + p { margin-top: 16px; }
.feature-copy em { font-style: normal; font-weight: 600; color: var(--ink); }
.feature-image img {
  display: block;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}
@media (prefers-color-scheme: dark) {
  .feature-image img { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
}
.feature-image.ipad img { max-width: 440px; border-radius: 20px; }

/* The frames that move: the Grid and the Deck, and Pick for Me, each a short
   muted loop. Two videos, one per theme, swapped here rather than by script,
   as Wander's site does: a source rewritten on a theme change has to survive
   load(), which drops the play() after it. Reduced motion shows the still
   instead, a photograph rather than a paused video. */
.feature-image .reel {
  display: block;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}
.feature-image .reel-dark, .feature-image .still { display: none; }
@media (prefers-color-scheme: dark) {
  .feature-image .reel { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
  .feature-image .reel-light { display: none; }
  .feature-image .reel-dark { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-image .reel { display: none; }
  .feature-image .still { display: block; }
}

/* ---------------------------------------------------------------- cards */
/* The subpages' prose, and the home page's privacy note: a soft panel. */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 36px;
  margin: 40px 0;
}
main > .card:first-child { margin-top: 56px; }
.card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 36px 0 12px;
}
.card > h2:first-child { margin-top: 0; }
.card h3 {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 28px 0 8px;
}
.card h3:first-of-type { margin-top: 8px; }
.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.card ol, .card ul { margin: 0 0 14px; padding-left: 22px; }
.card li { margin-bottom: 6px; }
.card code { font-size: 0.9em; background: var(--line); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 600px) { .card { padding: 28px 22px; } }

/* ---------------------------------------------------------------- closing */
.closing-cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.brand { color: inherit; }

/* ---------------------------------------------------------------- odds */
.release-header { margin-bottom: 6px; }
.release-header h2 { font-weight: 700; margin: 0; color: var(--ink); }
.release p { margin: 0 0 10px; }
.release p + ul { margin-top: -4px; }
.release ul { padding-left: 22px; }

.app-store-badge { display: inline-block; }
.app-store-badge img { height: 52px; width: auto; }

/* Gone with the rest of the 90s; kept hidden for any page not yet edited. */
.ticker, .counter { display: none; }

/* ---------------------------------------------------------------- footer */
footer {
  text-align: center;
  padding: 40px 24px 64px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
footer p { margin: 0 0 8px; }
footer a { color: var(--body); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer a:not(:last-child)::after { content: "\00a0\00a0\00b7\00a0\00a0"; color: var(--muted); }
footer .release-meta { font-size: 0.8rem; }
