/* PanoPaper - website. logRaker's site stylesheet, trimmed to what this site
   uses and recolored after the emblem (cyan -> blue -> magenta).
   Pure CSS, no framework, no JS, no web fonts (system stack only), so the
   pages stay tiny and the strict CSP (default-src 'none'; style-src 'self')
   holds. All motion is CSS-only and gated behind prefers-reduced-motion.
   No text under 13 px (the app's rule, kept here too). */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --border: #e5e5ea;
  --accent: #3d4dff;                        /* links, eyebrows, bullets */
  --accent-fg: #ffffff;
  --accent-weak: rgba(61, 77, 255, .07);    /* tinted fills */
  --accent-line: rgba(61, 77, 255, .22);
  --code-bg: #f0f0f3;
  --code-fg: #1d1d1f;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
  --shadow-lift: 0 2px 6px rgba(40,30,120,.08), 0 18px 44px rgba(40,30,120,.10);

  /* the emblem's colors: buttons, the hero's glow, the accent word */
  --brand-cyan: #19b8ff;
  --brand-blue: #4a4dff;
  --brand-magenta: #e03cf0;
  --brand-gradient: linear-gradient(120deg, var(--brand-cyan), var(--brand-blue) 50%, var(--brand-magenta));
  --glow-cyan: rgba(25, 184, 255, .16);
  --glow-magenta: rgba(224, 60, 240, .13);
  --button-glow: rgba(74, 77, 255, .28);

  /* one shape scale for the whole page */
  --r-card: 16px;
  --r-lg: 22px;
  --r-pill: 980px;

  --maxw: 1280px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* How far below the viewport top an anchor jump lands: the fixed nav is
     60px + 1px border, plus breathing room. Used by html{scroll-padding-top},
     so EVERY in-page anchor clears the nav. Keep in step with .nav .wrap. */
  --scroll-offset: 76px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-alt: #131316;
    --card: #16161a;
    --fg: #f5f5f7;
    --muted: #9a9aa2;
    --border: #2a2a30;
    --accent: #8a93ff;
    --accent-fg: #ffffff;
    --accent-weak: rgba(138, 147, 255, .10);
    --accent-line: rgba(138, 147, 255, .30);
    --code-bg: #1c1c22;
    --code-fg: #e7e7ee;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
    --shadow-lift: 0 2px 8px rgba(0,0,0,.45), 0 22px 50px rgba(0,0,0,.45);
    --glow-cyan: rgba(25, 184, 255, .20);
    --glow-magenta: rgba(224, 60, 240, .18);
    --button-glow: rgba(110, 100, 255, .38);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--scroll-offset); }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .86em;
  background: var(--code-bg);
  color: var(--code-fg);
  padding: .12em .42em;
  border-radius: 6px;
}

strong, b { color: var(--fg); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 60px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; color: var(--fg); letter-spacing: -.01em; }
.nav .brand:hover { text-decoration: none; }
.nav .brand img { height: 30px; width: auto; }
.nav .spacer { flex: 1; }
.nav a.navlink { color: var(--muted); font-size: 15px; white-space: nowrap; transition: color .15s ease; }
.nav a.navlink:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 640px) { .nav a.navlink { display: none; } }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s var(--ease), box-shadow .2s ease, background .2s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--brand-gradient); color: var(--accent-fg); box-shadow: 0 6px 18px var(--button-glow); }
.btn-primary:hover { color: var(--accent-fg); transform: translateY(-1px); box-shadow: 0 10px 26px var(--button-glow); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { color: var(--fg); transform: translateY(-1px); border-color: var(--accent); background: var(--accent-weak); }
.btn-sm { padding: 8px 18px; font-size: 15px; }

/* ============================ HERO ============================ */
/* Centered stack: the emblem, the eyebrow, the big line, CTAs. */
.hero { position: relative; overflow: hidden; padding: clamp(84px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.hero::before {            /* the emblem's two glows, cyan left, magenta right */
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 70%;
  background:
    radial-gradient(35% 55% at 35% 30%, var(--glow-cyan), transparent 70%),
    radial-gradient(35% 55% at 65% 30%, var(--glow-magenta), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-text { max-width: 900px; margin: 0 auto; }
.hero-art { display: block; width: min(460px, 78vw); height: auto; margin: 0 auto 18px; }
/* the big hero line; on the homepage it is a styled <p> so the <h1> can be the
   descriptive eyebrow above it */
.hero h1:not(.eyebrow), .hero .hero-title {
  font-size: clamp(40px, 7.4vw, 88px);
  line-height: 1; letter-spacing: -.035em; font-weight: 750;
  margin: 0 auto 26px; max-width: 13ch;
}
.hero .lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--fg); max-width: 42ch; margin: 0 auto 18px; }
.hero .lede .nowrap { white-space: nowrap; }
.sources-strip { font-size: 15px; letter-spacing: .01em; color: var(--muted); margin: 0 0 34px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero .fineprint { margin: 22px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 600px) { .hero { padding-top: 72px; } }

/* ============================ SECTIONS ============================ */
section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
section.alt { background: var(--bg-alt); }

.eyebrow {
  font-size: 16px; font-weight: 650; color: var(--accent); margin: 0 0 12px;
}
h2.section-title {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.06; letter-spacing: -.025em; font-weight: 700;
  margin: 0 0 18px; text-wrap: balance;
}
/* one sentence per .line: a heading breaks between sentences, never inside
   one, unless a single sentence is wider than its column */
.line { display: inline-block; }
.section-intro { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 0 0 8px; }
.section-intro strong { color: var(--fg); }

/* ---- editorial kicker (full-width statement) ---- */
.kicker-section { padding: clamp(40px, 6vw, 72px) 0; }
.kicker { font-size: clamp(28px, 4.2vw, 48px); font-weight: 700; letter-spacing: -.022em;
  margin: 0 auto; line-height: 1.12; text-align: center; text-wrap: balance; max-width: 24ch; }
.accent { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================ BENTO ============================ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(32px, 5vw, 48px); }
.bento .cell {
  margin: 0; min-width: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.bento .cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--accent-line); }
.bento .span2 { grid-column: span 2; }
.bento .span-all { grid-column: 1 / -1; }
.bento h3 { margin: 0 0 8px; font-size: 20px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; }
.bento p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.bento .cell.text { padding: 26px 24px; }
.bento .cell.text p { flex: 1; }
.bento .learn-more { margin-top: 14px; }
/* a thin strip of the emblem's gradient along a tile's top edge */
.bento .cell.text::before { content: ""; display: block; height: 3px; margin: -26px -24px 23px;
  background: var(--brand-gradient); opacity: .85; }

@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .span2 { grid-column: auto; }
}

/* ============================ CARDS (requirements) ============================ */
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(28px, 4vw, 40px); }
.source { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; }
.source h3 { margin: 0 0 8px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.source p { margin: 0; color: var(--muted); font-size: 15.5px; flex: 1; }
@media (max-width: 900px) { .sources { grid-template-columns: 1fr; } }

/* ============================ SPLITS ============================ */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-text { min-width: 0; }
.split-text > p { margin: 0 0 12px; color: var(--fg); max-width: 64ch; }
.split-text .section-intro { color: var(--muted); margin-bottom: 16px; }
.split-media { min-width: 0; display: flex; justify-content: center; }
.split-media img { display: block; width: 100%; max-width: 360px; height: auto; }
.plain-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 64ch; }
.plain-list li { position: relative; padding-left: 26px; color: var(--muted); }
.plain-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--brand-gradient); }
.plain-list li b { font-weight: 650; color: var(--fg); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-media img { max-width: 260px; }
}

/* ---- closing ---- */
.closing { text-align: center; }
.closing-art { display: block; width: 120px; height: auto; margin: 0 auto 22px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.25)); }
.closing h2 { font-size: clamp(28px, 4.4vw, 48px); letter-spacing: -.022em; font-weight: 700;
  margin: 0 auto 28px; line-height: 1.08; }
/* each sentence on its own line, never broken mid-sentence; wraps again only
   on phones, where it cannot fit */
.closing h2 .line { display: block; white-space: nowrap; }
@media (max-width: 560px) { .closing h2 .line { white-space: normal; } }
.closing .fineprint { margin-top: 22px; font-size: 16px; color: var(--muted); }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
footer .spacer { flex: 1; }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }
footer .legal { flex-basis: 100%; margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); opacity: .8; }

/* ============================ MOTION (gated) ============================ */
@media (prefers-reduced-motion: no-preference) {
  /* hero entrance, staggered */
  .hero-text > * { animation: rise .72s var(--ease) both; }
  .hero-text > *:nth-child(1) { animation-delay: .04s; }
  .hero-text > *:nth-child(2) { animation-delay: .12s; }
  .hero-text > *:nth-child(3) { animation-delay: .20s; }
  .hero-text > *:nth-child(4) { animation-delay: .28s; }
  .hero-text > *:nth-child(5) { animation-delay: .36s; }
  .hero-text > *:nth-child(6) { animation-delay: .44s; }
  .hero-text > *:nth-child(7) { animation-delay: .52s; }

  /* scroll-reveal as progressive enhancement: only when the browser supports
     scroll-driven animations, so content is never hidden on older engines */
  @supports (animation-timeline: view()) {
    .reveal { animation: rise .8s linear both; animation-timeline: view(); animation-range: entry 2% cover 22%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---- legal / privacy pages ---- */
.legal-doc { max-width: 760px; margin: 0 auto; padding: 120px 20px 64px; }
.legal-doc h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -.02em; margin: 0 0 6px; }
.legal-doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 36px; }
.legal-doc h2 { font-size: 20px; margin: 34px 0 10px; letter-spacing: -.01em; }
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 16px; line-height: 1.65; }
.legal-doc strong { color: var(--fg); }
.legal-doc ul, .legal-doc ol { padding-left: 20px; }
.legal-doc li { margin: 6px 0; }
.legal-doc a { color: inherit; text-decoration: underline; }

/* ---- Version line + changelog link (hero & closing) ---- */
.ver-link { color: var(--accent); text-decoration: none; }
.ver-link:hover { text-decoration: underline; }
.hero-changelog { margin: 8px 0 0; }
.wn-link { display: inline-block; color: var(--accent);
  text-decoration: none; font-weight: 600; font-size: 15px; }
.wn-link:hover { text-decoration: underline; }

/* "Learn more" deep links from a feature block into its documentation page. */
.learn-more { display: inline-block; margin-top: 14px; color: var(--accent);
  text-decoration: none; font-weight: 600; font-size: 15px; }
.learn-more:hover { text-decoration: underline; }

/* ---- Changelog page (every release) ---- */
.changelog-doc .rel { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 30px; }
.changelog-doc .rel:first-of-type { border-top: 0; margin-top: 8px; padding-top: 0; }
.changelog-doc .rel-ver { display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 12px; font-size: 24px; letter-spacing: -.01em; margin: 0 0 4px; }
.changelog-doc .rel-date { color: var(--muted); font-size: 15px; font-weight: 400; }
.changelog-doc h4 { font-size: 15px;
  color: var(--muted); margin: 22px 0 10px; }
.changelog-doc ul { list-style: none; padding: 0; margin: 0; }
.changelog-doc li { position: relative; padding-left: 24px; color: var(--muted);
  font-size: 16px; line-height: 1.6; margin: 8px 0; }
.changelog-doc li::before { content: ""; position: absolute; left: 5px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.changelog-doc strong { color: var(--fg); }
.changelog-doc code { background: var(--code-bg); color: var(--code-fg);
  font-size: .9em; padding: .12em .4em; border-radius: 5px; }
/* Documentation deep link on a bullet, generated from the bullet's {docs:…}
   tag by scripts/changelog-lib.sh, which labels it from the Help book. The
   same markup rides in the Sparkle appcast notes, where there is no
   stylesheet and it simply renders as a link. */
.changelog-doc .rel-doc { display: inline-block; background: var(--accent-weak);
  border: 1px solid var(--accent-line); border-radius: var(--r-pill);
  padding: 1px 11px 2px; margin: 2px 0 2px 2px; font-size: 14px;
  color: var(--accent); text-decoration: none; line-height: 1.5;
  transition: background .2s ease, border-color .2s ease, color .2s ease; }
.changelog-doc .rel-doc::after { content: " \203A"; opacity: .7; }
.changelog-doc .rel-doc:hover { background: var(--accent); border-color: var(--accent);
  color: var(--accent-fg); }

/* ---- /docs pages (generated from the app's Help book by stamp-docs.sh) ---- */
.docs-crumb { margin: 0 0 18px; font-size: 15px; }
.docs-crumb a { color: var(--accent); text-decoration: none; }
.docs-crumb a:hover { text-decoration: underline; }
.docs-doc h1 { margin-bottom: 18px; }
.docs-doc h2 { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 34px; }
.docs-doc h2:first-of-type { border-top: 0; padding-top: 0; }
/* the documentation landing page's Topics list: page names stand out from their blurbs */
.docs-doc #topics + ul > li > a { font-weight: 650; }
.docs-doc h3 { font-size: 17px; margin: 24px 0 8px; }
.docs-doc code { background: var(--code-bg); color: var(--code-fg);
  font-size: .88em; padding: .12em .4em; border-radius: 5px; }
.docs-doc kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .82em; padding: 2px 6px; border-radius: 5px;
  background: var(--bg-alt); border: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border); color: var(--fg); }
.docs-doc table { border-collapse: collapse; width: 100%; margin: 0 0 18px;
  font-size: 15px; }
.docs-doc th, .docs-doc td { text-align: left; vertical-align: top; padding: 8px 10px;
  border-bottom: 1px solid var(--border); color: var(--muted); }
.docs-doc th { font-weight: 600; color: var(--muted); font-size: 14px; }
.docs-doc td:first-child { white-space: nowrap; }
/* a Help page's callout (e.g. PTZ Cameras' warning) */
.docs-doc blockquote { margin: 0 0 18px; padding: 10px 16px; border-radius: 0 10px 10px 0;
  border-left: 3px solid var(--accent-line); background: var(--accent-weak); }
.docs-doc blockquote.warn { border-left-color: rgba(255, 159, 10, .45); background: rgba(255, 159, 10, .10); }
.docs-doc blockquote p { margin: 0; color: var(--fg); }

/* ---- /launch: the countdown. TEMPORARY - goes with launch.html and
   launch.js at the launch (claude.md "Website"). ---- */
.hero.launch h1 { font-size: clamp(36px, 6vw, 72px); max-width: 16ch; margin-bottom: 14px; }
.hero.launch .lede { font-weight: 600; margin-bottom: 6px; }
.launch-local { font-size: 16px; color: var(--muted); margin: 0; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  max-width: 640px; margin: 30px auto 34px; }
/* display: grid would override the hidden attribute's display: none */
.countdown[hidden] { display: none; }
.countdown .unit { position: relative; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; gap: 6px; padding: 20px 8px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.countdown .unit::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand-gradient); opacity: .85; }
.countdown .num { font-size: clamp(38px, 7vw, 64px); font-weight: 750; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown .label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.countdown.done .num { opacity: .45; }
.launch-now { font-size: 19px; font-weight: 600; margin: 0 0 30px; }
@media (max-width: 520px) { .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
