/* pixxa.com's public page: the marketing home.
   Dark, full-bleed hero, rounded panels, monospace wordmark — the
   look of the Next.js site it replaces, without its runtime. No inline
   styles anywhere, so a strict style-src 'self' holds. */

@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(assistant-latin.woff2) format("woff2");
  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;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #0e0e10;
  --panel-edge: rgb(255 255 255 / 0.09);
  --text: #f4f4f5;
  --muted: #b4b4bb;
  --accent: #fff;
  --focus: #7cc4ff;
  --radius: clamp(1.25rem, 4vw, 3.5rem);
  --gutter: clamp(1rem, 4vw, 2rem);
  /* SF on Apple platforms: -apple-system (Safari, Firefox, every iOS
     browser) and BlinkMacSystemFont (Chrome on macOS) resolve only there,
     to the system's San Francisco, optical sizes included. SF is not
     licensed for embedding, so it is asked for, never served. Everyone
     else gets Assistant, the face the Next.js site used. */
  --sans: -apple-system, BlinkMacSystemFont, "Assistant", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg) linear-gradient(180deg, #000 0, #101014 60rem, #000 100%);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2 { line-height: 1.15; margin: 0 0 0.5rem; font-weight: 600; letter-spacing: -0.01em; }

/* Off-screen by its own height (plus the focus offset), whatever the
   font size, until keyboard focus brings it in. A fixed negative top
   left its bottom edge showing when the text was large. */
.skip {
  position: absolute; left: 0.75rem; top: 0.75rem; z-index: 20;
  transform: translateY(calc(-100% - 1rem));
  background: #fff; color: #000; padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  text-decoration: none; font-weight: 600;
}
.skip:focus { transform: none; }

/* The bar: wordmark left, the App Store badge right. Sticky rather
   than fixed, so nothing hides beneath it. */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: rgb(0 0 0 / 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--panel-edge);
}
.bar-inner {
  max-width: 72rem; margin: 0 auto; min-height: 4rem;
  padding: 0.5rem var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font: 700 1.4rem/1 var(--mono); letter-spacing: 0.02em;
}
.wordmark img { width: 34px; height: 40px; }
.app-store { display: inline-block; line-height: 0; }
.app-store img { width: 120px; height: 40px; }

@media (max-width: 30rem) {
  .bar-inner { gap: 0.5rem; }
  .wordmark { font-size: 1.15rem; gap: 0.4rem; }
  .wordmark img { width: 26px; height: 31px; }
  .bar .app-store img { width: 96px; height: 32px; }
}

/* The hero: full bleed, the collage dimmed behind the title. The
   background is an <img>, not a CSS url(), so it is fingerprinted,
   cacheable forever and can be the page's high-priority LCP image. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(22rem, 60vh, 34rem);
  display: grid; place-items: center; text-align: center;
  padding: 3rem var(--gutter);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgb(0 0 0 / 0.55) 0, rgb(0 0 0 / 0.85) 70%),
    linear-gradient(180deg, rgb(0 0 0 / 0.3) 0, rgb(0 0 0 / 0.95) 100%);
}
.hero-copy { display: grid; justify-items: center; gap: 0.75rem; }
.hero-icon { width: 80px; height: 96px; filter: drop-shadow(0 8px 24px rgb(0 0 0 / 0.6)); }
.hero h1 { font-size: clamp(2.75rem, 9vw, 4.5rem); margin: 0; }
.tagline { font-size: clamp(1.35rem, 4.2vw, 2.1rem); line-height: 1.25; margin: 0 0 0.75rem; font-weight: 500; color: #e9e9ee; }

/* Panels. */
.features, .band { max-width: 64rem; margin-inline: auto; }
.features { display: grid; gap: clamp(1rem, 3vw, 2rem); padding: clamp(1rem, 4vw, 3rem) var(--gutter) clamp(1rem, 3vw, 2rem); }
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 3.5rem);
}
.feature { text-align: center; }
.feature h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.feature p { font-size: clamp(1.1rem, 2.6vw, 1.4rem); line-height: 1.45; color: var(--muted); max-width: 40rem; margin: 0 auto 1.5rem; }
.feature video {
  width: 100%; max-width: 48rem; margin: 0 auto;
  border-radius: calc(var(--radius) / 3);
  background: #000;
  box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.5);
}

/* The featured-stories band (phase 3). */
.band { padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 0; }
.band h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.card a { display: grid; gap: 0.35rem; text-decoration: none; background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 1.25rem; overflow: hidden; padding-bottom: 0.9rem; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-title { font-weight: 600; padding: 0 0.9rem; }
.card-meta { color: var(--muted); font-size: 0.95rem; padding: 0 0.9rem; }

.foot { padding: 2rem var(--gutter) 2.5rem; text-align: center; color: var(--muted); font-size: 0.85rem; }
.foot p { max-width: 48rem; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* The story viewer: /pub/<root>/stories and /pub/<root>/stories/<uid>,
   the pages the Next.js site showed. */
.stories { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.stories h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
.lede { color: var(--muted); margin: 0 0 1.5rem; }
.stories .card img { aspect-ratio: 4 / 3; background: var(--panel); }
.card-desc {
  color: var(--muted); font-size: 0.95rem; padding: 0 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.story {
  max-width: 64rem; margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 4rem) var(--gutter);
  display: grid; gap: clamp(1.25rem, 4vw, 2.5rem);
}
@media (min-width: 48rem) { .story { grid-template-columns: 1fr 1fr; align-items: start; } }
.story-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1rem; background: var(--panel); }
.story h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
.story-by { color: var(--muted); margin: 0 0 1rem; }
.story-desc { line-height: 1.5; margin: 0 0 1.5rem; white-space: pre-line; }
.story-meta { margin: 0 0 1.75rem; display: grid; gap: 0.75rem; }
.story-meta div { display: grid; grid-template-columns: 6rem 1fr; gap: 0.75rem; align-items: baseline; }
.story-meta dt { font-weight: 600; }
.story-meta dd { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 999px; padding: 0.15rem 0.75rem; font-size: 0.95rem; }
.play {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); color: #000; text-decoration: none;
  font-weight: 600; font-size: 1.35rem; border-radius: 1rem; padding: 0.55rem 1.4rem;
}
.play svg { width: 1.2em; height: 1.2em; }
.requires { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0; }
.requires a { text-decoration: underline; }
/* The story's QR code: for carrying the page from a desktop to an iPad
   or iPhone, so it shows only on wide screens. */
.story-qr { display: none; }
@media (min-width: 48rem) {
  .story-qr { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 0; }
}
.story-qr svg { width: 7.5rem; height: 7.5rem; flex: none; border-radius: 0.5rem; }
.story-qr figcaption { color: var(--muted); font-size: 0.9rem; max-width: 12rem; }
