/* LogRaker — marketing site.
   Pure CSS, no framework, no JS, no web fonts (system stack only), so the
   page stays tiny and the strict CSP (default-src 'none'; style-src 'self')
   holds. All motion is CSS-only and gated behind prefers-reduced-motion.
   Accent is locked to the brand Apple-blue across the whole page. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --border: #e5e5ea;
  --accent: #0a6cff;
  --accent-fg: #ffffff;
  --accent-weak: rgba(10, 108, 255, .07);   /* tinted cell fills */
  --accent-line: rgba(10, 108, 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(10,40,90,.08), 0 18px 44px rgba(10,40,90,.10);
  --glow: rgba(10, 108, 255, .14);

  /* 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);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-alt: #131316;
    --card: #16161a;
    --fg: #f5f5f7;
    --muted: #9a9aa2;
    --border: #2a2a30;
    --accent: #3b95ff;
    --accent-fg: #ffffff;
    --accent-weak: rgba(59, 149, 255, .10);
    --accent-line: rgba(59, 149, 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: rgba(59, 149, 255, .20);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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, .mono {
  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);
}
/* Immersive hero: keep the nav hidden until the user starts scrolling, then
   let it drop in. Progressive enhancement via a scroll-driven animation — only
   where supported; elsewhere the fixed nav simply stays visible. */
@supports (animation-timeline: scroll()) {
  .nav {
    animation: nav-drop 1s linear both;
    animation-timeline: scroll(root);
    animation-range: 24px 150px;
  }
  @keyframes nav-drop {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}
/* fixed nav overlays content, so offset in-page anchors below it */
#gallery, #features, #pricing { scroll-margin-top: 76px; }
.nav .wrap { display: flex; align-items: center; gap: 14px; 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 img { height: 30px; width: auto; }
.nav .spacer { flex: 1; }
.nav a.navlink { color: var(--muted); font-size: 15px; transition: color .15s ease; }
.nav a.navlink:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 680px) { .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(--accent); color: var(--accent-fg); box-shadow: 0 6px 18px var(--glow); }
.btn-primary:hover { color: var(--accent-fg); transform: translateY(-1px); box-shadow: 0 10px 26px var(--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; }

/* Apple "Download on the Mac App Store" badge — official artwork, do not restyle */
.mas-badge { display: inline-flex; transition: transform .12s var(--ease); }
/* user-select: none also opts the badge out of Safari Live Text (OCR text selection) */
.mas-badge img { display: block; height: 48px; width: auto; -webkit-user-select: none; user-select: none; }
.mas-badge:hover { transform: translateY(-1px); }
.mas-badge:active { transform: translateY(0) scale(.98); }

/* ============================ HERO ============================ */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.hero::before {            /* subtle brand-blue glow, not AI-purple */
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background: radial-gradient(60% 70% at 70% 30%, var(--glow), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(500px, 1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero-text { min-width: 0; }
.hero h1 {
  font-size: clamp(27px, 5.4vw, 60px);
  line-height: 1.04; letter-spacing: -.025em; font-weight: 700;
  margin: 0 0 20px;
}
.hero h1 .line { display: block; white-space: nowrap; }   /* each sentence stays on one line; size scales down before it can overflow */
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 42ch; margin: 0 0 30px; }
.hero .lede strong { color: var(--fg); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .fineprint { margin: 24px 0 0; font-size: 16px; color: var(--muted); }
.hero-art { min-width: 0; }
.hero-art img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; }

@media (max-width: 860px) {
  .hero { text-align: center; padding-top: 72px; min-height: auto; display: block; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 440px; }
  .hero h1, .hero .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
}

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

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px;
  font-weight: 700; color: var(--accent); margin: 0 0 14px;
}
h2.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08; letter-spacing: -.022em; font-weight: 700;
  margin: 0 0 18px; max-width: 20ch;
}
.section-intro { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 0 8px; }
/* a section title that should stay on one line (drops the char cap; wraps again on phones, where it can't fit) */
h2.section-title.nowrap { max-width: none; white-space: nowrap; }
@media (max-width: 480px) { h2.section-title.nowrap { white-space: normal; } }
/* a section title whose sentences each sit on their own line */
h2.section-title.stacked { max-width: none; }
h2.section-title.stacked .line { display: block; }
.section-intro strong { color: var(--fg); }

/* ---- problem: two-column pain grid (no emoji, no decorative dots) ---- */
.pain { list-style: none; padding: 0; margin: 36px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 44px; }
.pain li { margin: 0; }
.pain p { margin: 0; color: var(--muted); }
.pain b { display: block; color: var(--fg); font-weight: 650; margin-bottom: 4px; font-size: 17.5px; }
@media (max-width: 740px) { .pain { grid-template-columns: 1fr; gap: 24px; } }

/* ---- editorial kicker (full-width statement) ---- */
.kicker-section { padding: clamp(48px, 7vw, 84px) 0; }
.kicker { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.022em;
  margin: 0; max-width: 22ch; line-height: 1.12; }
.accent { color: var(--accent); }

/* ---- meet: split text + screenshot ---- */
.wrap.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-text { min-width: 0; }
.split-text .section-intro { margin-bottom: 18px; }
.split-media { min-width: 0; order: -1; }
.split-media img { display: block; width: 100%; height: auto;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,.16)); }
@media (max-width: 860px) {
  .wrap.split { grid-template-columns: 1fr; gap: 28px; }
  .split-media { order: 0; }
}

/* ---- screenshot gallery: full-width dark band (the shots are dark-mode UI,
   so the band is always dark regardless of the visitor's color scheme; local
   var re-scope keeps descendants on the dark palette in light mode too) ---- */
.gallery {
  --fg: #f5f5f7; --muted: #9a9aa2;
  background: #0f0f13; color: var(--fg);
  border-top: 1px solid #26262c; border-bottom: 1px solid #26262c;
}
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; margin-top: 40px; }
.shots figure { margin: 0; }
.shots a { display: block; border-radius: var(--r-card); }
.shots img {
  display: block; width: 100%; height: auto; border-radius: var(--r-card);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 44px rgba(0,0,0,.5);
  transition: transform .2s var(--ease);
}
.shots a:hover img { transform: scale(1.015); }
.shots figcaption { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 14px; }
.shots figcaption b { color: var(--fg); font-weight: 650; }
@media (max-width: 800px) { .shots { grid-template-columns: 1fr; gap: 32px; } }

/* ---- audience: flowing pill cloud ---- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pill { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 11px 18px; font-size: 15.5px; color: var(--muted);
  transition: transform .15s var(--ease), border-color .2s ease, color .2s ease; }
.pill b { font-weight: 650; color: var(--fg); }
.pill:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--fg); }

/* ---- big feature splits ---- */
.feature { display: grid; gap: 12px; margin-top: clamp(48px, 7vw, 80px); }
.feature:first-of-type { margin-top: 4px; }
.feature h3 { font-size: clamp(23px, 3vw, 31px); line-height: 1.12; letter-spacing: -.015em; font-weight: 700; margin: 0; }
.feature > p { margin: 0; color: var(--fg); max-width: 64ch; }
.feature ul { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 11px; max-width: 70ch; }
.feature ul li { position: relative; padding-left: 26px; color: var(--fg); }
.feature ul li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent); }
.feature ul li b { font-weight: 650; }

.feature.feature-split {
  grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center;
}
.feature.feature-split .feature-text { display: grid; gap: 12px; min-width: 0; }
.feature.feature-split .feature-art { display: flex; justify-content: center; min-width: 0; }
.feature.feature-split .feature-art img { display: block; width: 100%; max-width: 360px; height: auto;
  filter: drop-shadow(0 20px 44px rgba(0,0,0,.16)); }
.feature.feature-split .feature-art img.rocket { max-width: 230px; }
.feature.feature-split.reverse { grid-template-columns: .8fr 1.2fr; }
.feature.feature-split.reverse .feature-art { order: -1; }
.feature.feature-split.media-left { grid-template-columns: .95fr 1.05fr; }
.feature.feature-split.media-left .feature-art { order: -1; }
@media (max-width: 860px) {
  .feature.feature-split,
  .feature.feature-split.reverse,
  .feature.feature-split.media-left { grid-template-columns: 1fr; gap: 24px; }
  .feature.feature-split.reverse .feature-art,
  .feature.feature-split.media-left .feature-art { order: 0; }
  .feature.feature-split .feature-art img { max-width: 300px; }
}

/* ---- full-width feature statement (breaks the zigzag) ---- */
.feature-banner { margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: clamp(36px, 5vw, 56px) 0; }
.feature-banner .feature-head { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.feature-banner .feature-head img { width: 96px; height: auto; flex: none;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.18)); }
.feature-banner h3 { font-size: clamp(23px, 3vw, 31px); line-height: 1.12; letter-spacing: -.015em; font-weight: 700; margin: 0; }
.feature-banner > .feature-body { margin-top: 20px; }
.feature-banner .feature-body p { margin: 0 0 16px; color: var(--fg); max-width: 70ch; }
.feature-banner ul { margin: 0; padding-left: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 36px; max-width: 80ch; }
.feature-banner ul li { position: relative; padding-left: 26px; color: var(--fg); }
.feature-banner ul li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--accent); }
.feature-banner ul li b { font-weight: 650; }
.feature-banner .punch { font-size: 19px; font-weight: 600; color: var(--fg); max-width: 60ch; }
@media (max-width: 740px) {
  .feature-banner .feature-head { grid-template-columns: 1fr; gap: 16px; }
  .feature-banner .feature-head img { width: 76px; }
  .feature-banner ul { grid-template-columns: 1fr; }
}

/* ---- bento grid (varied cells, tinted visuals) ---- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 56px); }
.bento .cell {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 26px; box-shadow: var(--shadow);
  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 .cell h4 { margin: 0 0 8px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.bento .cell p { margin: 0; color: var(--muted); font-size: 15.5px; }
.bento .span2 { grid-column: span 2; }
/* two feature-weight cells get a brand-blue tint + a glossy pulse render */
.bento .cell.tinted {
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-weak), transparent 60%),
    var(--card);
  border-color: var(--accent-line);
}
.bento .cell.tinted.with-art { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; }
.bento .cell.tinted.with-art img { width: 84px; height: auto; flex: none;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.22)); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span2 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .span2 { grid-column: auto; }
  .bento .cell.tinted.with-art { grid-template-columns: 1fr auto; }
}

/* ---- why: two-column text list (distinct family, no card chrome) ---- */
.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.why-grid > .why-head { position: sticky; top: 88px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.why-item { padding-top: 18px; border-top: 2px solid var(--accent-line); }
.why-item h4 { margin: 0 0 6px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.why-item p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .why-grid > .why-head { position: static; }
}
@media (max-width: 620px) { .why-list { grid-template-columns: 1fr; gap: 22px; } }

/* ---- pricing ---- */
#pricing .wrap { text-align: center; }
#pricing .section-title { margin-left: auto; margin-right: auto; }
.price-card {
  max-width: 480px; margin: 40px auto 0; background: var(--card);
  border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: 44px 38px;
  text-align: center; box-shadow: var(--shadow-lift);
  position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, var(--accent-weak), transparent 60%);
}
.price-card > * { position: relative; }
.price-card .amount { font-size: 66px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.cents { font-size: .38em; font-weight: 600; vertical-align: super; letter-spacing: -.02em; }
.price-card .once { color: var(--muted); margin: 8px 0 26px; }
.price-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 13px; text-align: left; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; }
.price-list .check { color: var(--accent); font-weight: 700; flex: none; }
.price-card .btn { display: flex; width: 100%; }
.price-card .note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---- closing ---- */
.closing { text-align: center; }
.closing .cta-row { justify-content: center; }
.closing h2 { font-size: clamp(28px, 4.4vw, 48px); letter-spacing: -.022em; font-weight: 700;
  max-width: 20ch; margin: 0 auto 28px; line-height: 1.08; }
.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-art { animation: rise-art .9s var(--ease) .14s both; }

  /* 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; } }
@keyframes rise-art { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---- activation bridge page (/activate) ---- */
.activate { max-width: 740px; margin: 0 auto; padding: 88px 24px; text-align: center; }
.activate .art { display: block; width: min(420px, 80%); height: auto; margin: 0 auto; }
/* Big hero heading kept on ONE line via nowrap; the wide container holds
   "Activating your LogRaker License" at this size. Narrow screens may wrap. */
.activate h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 700; letter-spacing: -.02em; margin: 24px 0 12px; white-space: nowrap; }
@media (max-width: 560px) { .activate h1 { white-space: normal; } }
.activate .lede { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 auto 28px; }
.activate .fallback { color: var(--muted); font-size: 15px; margin: 36px auto 12px; max-width: 40ch; }
.activate .keybox code { font-size: 15px; padding: .35em .7em; user-select: all; }

/* ---- time-sync (lock-step) demo animation ---- */
.sync-demo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px auto 0; max-width: 860px; }
.sync-pane { background: #12141a; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; overflow: hidden; box-shadow: 0 14px 44px rgba(0,0,0,.38); }
.sync-head { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 12px; font: 600 12px/34px ui-monospace, SFMono-Regular, Menlo, monospace; color: #8b93a1; border-bottom: 1px solid rgba(255,255,255,.07); background: #161922; }
.sync-head .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sync-head .dot.g { background: #3ddc84; }
.sync-head .dot.o { background: #ff9f1c; }
.sync-badge { margin-left: auto; font-weight: 500; font-size: 11px; color: #e7b3b3; background: rgba(255,77,77,.14); border: 1px solid rgba(255,77,77,.32); border-radius: 20px; padding: 1px 8px; }
.sync-view { position: relative; height: 176px; overflow: hidden; -webkit-mask: linear-gradient(#0000, #000 16%, #000 84%, #0000); mask: linear-gradient(#0000, #000 16%, #000 84%, #0000); }
.sync-lines { animation: sync-scan 16s steps(1, jump-end) infinite; will-change: transform; }
.sync-demo .ln { height: 22px; line-height: 22px; padding: 0 12px; white-space: nowrap; overflow: hidden; font: 12px/22px ui-monospace, SFMono-Regular, Menlo, monospace; color: #c9ccd1; }
.sync-demo .ln .t { color: #5f6672; margin-right: 10px; }
.sync-demo .ln.ev { border-left: 2px solid transparent; padding-left: 10px; }
.sync-demo .ln.ev.err { color: #ff7a7a; border-left-color: #ff4d4d; background: rgba(255,77,77,.09); }
.sync-demo .ln.ev.warn { color: #f6c453; border-left-color: #f6c453; background: rgba(246,196,83,.08); }
.sync-demo .ln.ev.post { color: #7aa2ff; border-left-color: #5b8cff; background: rgba(91,140,255,.08); }
/* playhead band tying both panes to the same instant */
.sync-playhead { position: absolute; left: 0; right: 0; top: 110px; height: 24px; z-index: 3; pointer-events: none; background: rgba(255,77,77,.10); border-top: 1px solid rgba(255,77,77,.55); border-bottom: 1px solid rgba(255,77,77,.55); }
.sync-playhead::before { content: ""; position: absolute; left: -7px; top: 50%; transform: translateY(-50%); border: 7px solid transparent; border-left-color: #ff4d4d; }
/* Human-style scan: step down with the cursor keys, glance back up to re-check
   the POST, then down to the ERROR and dwell there, then loop. Each keyframe
   value is held until the next (steps(1, jump-end)) so moves land like keypresses.
   Net travel is exactly one 8-line block (176px), so the loop is seamless. */
@keyframes sync-scan {
  0%   { transform: translateY(-55px); }   /* line 6  — start */
  6%   { transform: translateY(-77px); }    /* 7 */
  12%  { transform: translateY(-99px); }    /* 8 */
  18%  { transform: translateY(-121px); }   /* 9 */
  24%  { transform: translateY(-143px); }   /* 10 · POST — pause */
  34%  { transform: translateY(-165px); }   /* 11 */
  40%  { transform: translateY(-187px); }   /* 12 */
  46%  { transform: translateY(-165px); }   /* 11 · glance back up */
  52%  { transform: translateY(-143px); }   /* 10 · re-read POST — pause */
  60%  { transform: translateY(-165px); }   /* 11 */
  66%  { transform: translateY(-187px); }   /* 12 */
  72%  { transform: translateY(-209px); }   /* 13 · ERROR — long dwell */
  94%  { transform: translateY(-231px); }   /* 14 → visually equals line 6 (loop) */
  100% { transform: translateY(-231px); }
}
@media (max-width: 640px) { .sync-demo { grid-template-columns: 1fr; max-width: 420px; } }
@media (prefers-reduced-motion: reduce) { .sync-lines { animation: none; transform: translateY(-209px); } }

/* ---- 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 { 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; }

/* ---- 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: 13px; letter-spacing: .04em; text-transform: uppercase;
  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; }
