:root {
  --bg: #eef3f0;
  --bg-deep: #dde6e1;
  --surface: #f7faf8;
  --text: #161a18;
  --text-muted: #5a655f;
  --border: #c8d4cd;
  --accent: #2f6f5e;
  --accent-strong: #1f4f43;
  --accent-soft: #d8ebe3;
  --glow-warm: #e8c48a;
  --glow-cool: #8fbfae;
  --ink: #0e1210;

  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;

  --space: clamp(1rem, 4vw, 2rem);
  --max: 72rem;
  --radius: 4px;
  --header-h: 3.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 10% -10%, rgba(143, 191, 174, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 5%, rgba(232, 196, 138, 0.22), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #e6ede9 40%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: var(--accent-soft);
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.65rem var(--space);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.35rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 0.85rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: min(100%, 42rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.35rem 0.15rem;
  flex-shrink: 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1.05rem;
  border: 1px solid #24292f;
  border-radius: 999px;
  color: #ffffff !important;
  background: #24292f;
  font-weight: 600;
}

.nav-cta-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.nav a.nav-cta:hover,
.nav a.nav-cta:focus-visible {
  background: #1b1f23;
  border-color: #1b1f23;
  color: #ffffff !important;
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #f7faf8;
  box-shadow: 0 8px 24px rgba(47, 111, 94, 0.28);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent-strong);
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  padding: clamp(5.5rem, 14vh, 8rem) var(--space) clamp(4rem, 11vh, 6rem);
  animation: rise-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw + 1rem, 7rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(247, 250, 248, 0.55);
}

.hero-tagline {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.5vw + 0.85rem, 2rem);
  line-height: 1.25;
  color: var(--accent-strong);
  max-width: 18ch;
}

.hero-lede {
  margin: 0 0 1.75rem;
  color: var(--text);
  max-width: 32rem;
  font-size: clamp(0.95rem, 0.4vw + 0.9rem, 1.05rem);
  line-height: 1.5;
  opacity: 0.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions .btn {
  min-height: 2.75rem;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0.4rem;
  padding: 0.4rem;
  opacity: 0.92;
  animation: grid-drift 28s ease-in-out infinite alternate;
}

.tile {
  border-radius: 2px;
  min-height: 0;
}

.t1 {
  grid-column: 3 / 7;
  grid-row: 1 / 3;
  background:
    linear-gradient(145deg, rgba(22, 26, 24, 0.15), transparent 50%),
    linear-gradient(210deg, #3d6b5c 0%, #8fbfae 45%, #e8c48a 100%);
}

.t2 {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  background: linear-gradient(160deg, #2a4a42, #6a9a88);
}

.t3 {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  background: linear-gradient(200deg, #c9ad8a 0%, #8f6b4a 100%);
}

.t4 {
  grid-column: 1 / 2;
  grid-row: 3 / 5;
  background: linear-gradient(180deg, #1f4f43, #4a7a6a);
}

.t5 {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
  background: linear-gradient(135deg, #d4b896, #a8794a);
}

.t6 {
  grid-column: 2 / 3;
  grid-row: 4 / 5;
  background: linear-gradient(90deg, #5a7a6e, #9bb8aa);
}

.t7 {
  grid-column: 4 / 6;
  grid-row: 3 / 5;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(160deg, #254840, #6e9b88 55%, #c9b07a);
}

.t8 {
  grid-column: 6 / 7;
  grid-row: 3 / 4;
  background: linear-gradient(220deg, #8fbfae, #2f6f5e);
}

.t9 {
  grid-column: 6 / 7;
  grid-row: 4 / 5;
  background: linear-gradient(40deg, #b89a6a, #6e5540);
}

.t10 {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
  background: linear-gradient(120deg, #4d6e62, #a8c4b6);
}

.t11 {
  grid-column: 5 / 6;
  grid-row: 2 / 3;
  background: linear-gradient(90deg, #d8ebe3, #7aa392);
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.t12 {
  grid-column: 5 / 7;
  grid-row: 1 / 2;
  background: linear-gradient(200deg, #f0e2c8, #9a7a52);
  opacity: 0.85;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(238, 243, 240, 0.97) 0%,
      rgba(238, 243, 240, 0.9) 28%,
      rgba(238, 243, 240, 0.45) 48%,
      transparent 70%
    ),
    linear-gradient(0deg, rgba(238, 243, 240, 0.95) 0%, rgba(238, 243, 240, 0.35) 22%, transparent 42%);
}

/* —— Sections —— */

.section {
  padding: clamp(3.5rem, 9vw, 6rem) var(--space);
  max-width: var(--max);
  margin: 0 auto;
  box-sizing: border-box;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head h2,
.intro h2,
.privacy-panel h2,
.cta-band h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head p,
.intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 42rem;
  line-height: 1.55;
}

.intro {
  padding: clamp(3rem, 7vw, 4.5rem) var(--space) clamp(1.75rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
  box-sizing: border-box;
}

.intro h2 {
  max-width: 22ch;
}

.features {
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
}

.features .section-head {
  margin-bottom: 1.5rem;
}

/* —— Features overview —— */

.capability-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: 0.35rem 0 0.15rem;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.capability-rail a {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  scroll-snap-align: start;
  flex-shrink: 0;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.capability-rail a:hover,
.capability-rail a:focus-visible {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}

/* —— Feature deep-dives —— */

.feature-band {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  scroll-margin-top: 4.5rem;
}

.feature-band.alt {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--accent-soft) 35%, transparent),
      transparent 40%
    ),
    color-mix(in srgb, var(--surface) 70%, transparent);
}

.feature-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .feature-band-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.5rem;
  }

  .feature-band-inner.reverse {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .feature-band-inner.reverse .feature-copy {
    order: 2;
  }

  .feature-band-inner.reverse .feature-visual {
    order: 1;
  }
}

.feature-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature-copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 18ch;
}

.feature-lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 36rem;
  line-height: 1.55;
}

.feature-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.15rem;
}

.feature-points li {
  display: grid;
  gap: 0.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.feature-points strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.feature-points span {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.feature-note {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.ai-grid {
  display: grid;
  gap: 1.25rem 1.75rem;
}

@media (min-width: 560px) {
  .ai-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ai-grid h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.ai-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.feature-visual {
  min-height: 12rem;
  min-width: 0;
}

.visual-panel {
  height: 100%;
  min-height: clamp(12rem, 42vw, 16rem);
  padding: clamp(1.15rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  border-radius: var(--radius);
  color: #f4faf7;
  position: relative;
  overflow: hidden;
  animation: panel-glow 10s ease-in-out infinite alternate;
}

.visual-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.visual-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.visual-line.muted {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.72;
}

.visual-library {
  background:
    linear-gradient(160deg, rgba(14, 18, 16, 0.25), transparent 50%),
    linear-gradient(210deg, #1f4f43 0%, #3d7a68 45%, #8fbfae 100%);
}

.visual-organise {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: flex-start;
  gap: 0.5rem;
  background:
    linear-gradient(145deg, rgba(14, 18, 16, 0.2), transparent 55%),
    linear-gradient(200deg, #254840, #6e9b88 50%, #c9b07a);
}

.visual-organise .chip {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(247, 250, 248, 0.35);
  background: rgba(14, 18, 16, 0.28);
  font-size: 0.85rem;
  font-weight: 600;
}

.visual-search {
  background:
    radial-gradient(circle at 20% 30%, rgba(232, 196, 138, 0.35), transparent 45%),
    linear-gradient(165deg, #16352e, #2f6f5e 55%, #5a8f7c);
}

.search-mock {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.78rem, 2.4vw, 0.92rem);
  line-height: 1.4;
  padding: 0.85rem 1rem;
  background: rgba(14, 18, 16, 0.35);
  border: 1px solid rgba(247, 250, 248, 0.2);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.visual-ai {
  gap: 0.65rem;
  background:
    linear-gradient(180deg, rgba(14, 18, 16, 0.15), transparent 40%),
    linear-gradient(140deg, #12201c, #1f4f43 40%, #8fbfae);
}

.ai-row {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  font-size: 1.05rem;
  font-weight: 600;
}

.ai-row em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  text-transform: uppercase;
  opacity: 0.7;
  min-width: 3.5rem;
}

.visual-cleanup {
  gap: 0.65rem;
  background: linear-gradient(160deg, #1a2e28, #2a4a42 50%, #6a8f7e);
}

.visual-memories {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: flex-start;
  gap: 0.5rem;
  background:
    linear-gradient(145deg, rgba(14, 18, 16, 0.18), transparent 50%),
    linear-gradient(200deg, #2a3540, #3d5a6a 40%, #c4a882);
}

.visual-memories .chip {
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(247, 250, 248, 0.35);
  background: rgba(14, 18, 16, 0.28);
  font-size: 0.85rem;
  font-weight: 600;
}

.visual-memories .visual-line.muted {
  flex-basis: 100%;
  margin-top: 0.35rem;
}

.visual-plugins {
  justify-content: flex-start;
  gap: 0.55rem;
  background:
    linear-gradient(180deg, rgba(14, 18, 16, 0.2), transparent 35%),
    linear-gradient(155deg, #141c24 0%, #1e3a34 45%, #4a7a6a 100%);
}

.visual-plugins .visual-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  letter-spacing: 0;
}

.cleanup-row {
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  border-left: 3px solid transparent;
  background: rgba(14, 18, 16, 0.28);
}

.cleanup-row.exact {
  border-left-color: #e8a090;
}

.cleanup-row.near {
  border-left-color: var(--glow-cool);
}

.cleanup-row.blur {
  border-left-color: var(--glow-warm);
}

@keyframes panel-glow {
  from {
    filter: saturate(1) brightness(1);
  }
  to {
    filter: saturate(1.08) brightness(1.04);
  }
}

/* —— Privacy —— */

.privacy {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.privacy-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--space);
  background:
    linear-gradient(135deg, rgba(47, 111, 94, 0.1), transparent 55%),
    linear-gradient(180deg, #1a2e28 0%, #12201c 100%);
  color: #e8f0ec;
}

.privacy-panel h2 {
  color: #f4faf7;
}

.privacy-panel p {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  color: rgba(232, 240, 236, 0.78);
  font-size: 1.08rem;
}

.privacy-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
}

.privacy-points li {
  padding-left: 1.15rem;
  position: relative;
  color: rgba(232, 240, 236, 0.88);
}

.privacy-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--glow-cool);
  border-radius: 1px;
}

/* —— Stack —— */

.stack-list {
  margin: 0;
  display: grid;
  gap: 1.25rem 2rem;
}

@media (min-width: 640px) {
  .stack-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stack-list > div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.stack-list dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stack-list dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

/* —— CTA —— */

.cta-band {
  text-align: left;
  border-top: 1px solid var(--border);
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 32rem;
}

/* —— Guide docs —— */

.guide-page .site-header .nav a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 600;
}

.guide-layout {
  display: grid;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--space) 4rem;
}

@media (min-width: 960px) {
  .guide-layout {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.guide-toc {
  position: sticky;
  top: 4.5rem;
  padding: 0.25rem 0;
}

.guide-toc-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.guide-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.guide-toc a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
}

.guide-toc a:hover {
  color: var(--accent-strong);
  border-left-color: var(--accent);
}

.guide-hero {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.guide-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.guide-lede {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.guide-section {
  margin-bottom: 2.75rem;
  max-width: 42rem;
  scroll-margin-top: 5rem;
}

.guide-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.guide-section p,
.guide-section li {
  color: var(--text-muted);
  font-size: 1rem;
}

.guide-section p {
  margin: 0 0 1rem;
}

.guide-section ul,
.guide-section ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.guide-code {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  background: #1a2e28;
  color: #e8f0ec;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
}

.guide-code code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.guide-dl {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 1rem;
}

.guide-dl > div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.guide-dl dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.guide-dl dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.guide-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.guide-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--text);
}

.guide-next .hero-actions {
  margin-top: 0.5rem;
}

@media (max-width: 959px) {
  .guide-toc {
    position: static;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .guide-toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
  }

  .guide-toc a {
    border-left: none;
    padding-left: 0;
  }
}

/* —— Footer —— */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: start;
  gap: 2rem 3rem;
  padding: clamp(3.5rem, 7vw, 5rem) var(--space) clamp(3rem, 6vw, 4.5rem);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-brand .brand-name {
  font-size: 1.15rem;
}

.footer-tag {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-kofi {
  margin-top: 0.35rem;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: color 150ms ease, border-color 150ms ease;
}

.footer-kofi:hover,
.footer-kofi:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.footer-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 2.1;
  justify-self: end;
  text-align: right;
  max-width: 34rem;
}

.footer-meta a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-meta a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 600;
}

/* —— Motion —— */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grid-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.2%, 0.8%, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-grid,
  .visual-panel,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* —— Responsive —— */

@media (max-width: 899px) {
  .feature-band-inner {
    gap: 1.75rem;
  }

  .feature-copy h2 {
    max-width: none;
  }

  .feature-visual {
    order: -1;
  }

  .feature-band-inner.reverse .feature-visual {
    order: -1;
  }

  .visual-panel {
    min-height: 11.5rem;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 0.9375rem;
  }

  .section-head h2,
  .intro h2,
  .privacy-panel h2,
  .cta-band h2,
  .feature-copy h2 {
    font-size: clamp(1.35rem, 5vw + 0.4rem, 1.75rem);
  }

  .section-head p,
  .intro p,
  .feature-lede {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stage {
    position: relative;
    inset: auto;
    order: -1;
    height: clamp(10.5rem, 34vh, 15rem);
    flex-shrink: 0;
  }

  .hero-veil {
    background:
      linear-gradient(
        180deg,
        transparent 0%,
        transparent 55%,
        rgba(238, 243, 240, 0.55) 78%,
        var(--bg) 100%
      );
  }

  .hero-copy {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 1.25rem var(--space) 2rem;
    background: var(--bg);
    text-shadow: none;
  }

  .hero-brand {
    margin-bottom: 0.45rem;
    font-size: 2.125rem;
    letter-spacing: 0.05em;
    line-height: 1;
    text-shadow: none;
  }

  .hero-tagline {
    margin-bottom: 0.75rem;
    max-width: none;
    font-size: 1.125rem;
    line-height: 1.3;
  }

  .hero-lede {
    margin-bottom: 1.25rem;
    max-width: none;
    font-size: 0.9375rem;
    line-height: 1.45;
    opacity: 0.85;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .hero-grid {
    opacity: 0.7;
    gap: 0.28rem;
    padding: 0.28rem;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    animation: none;
  }

  .t1 {
    grid-column: 2 / 5;
    grid-row: 1 / 3;
  }

  .t2 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .t3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .t4 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .t5 {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
  }

  .t6 {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
  }

  .t7,
  .t8,
  .t9,
  .t10,
  .t11,
  .t12 {
    display: none;
  }

  .section {
    padding-block: clamp(2.25rem, 8vw, 3.25rem);
  }

  .intro {
    max-width: var(--max);
    margin: 0 auto;
    padding: 2rem var(--space) 1.25rem;
  }

  .features {
    padding-top: 1.25rem;
  }

  .capability-rail a {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .feature-band {
    padding-block: clamp(2.25rem, 8vw, 3.25rem);
    scroll-margin-top: calc(var(--header-h) + 0.5rem);
  }

  .feature-kicker {
    font-size: 0.65rem;
    margin-bottom: 0.45rem;
  }

  .feature-lede {
    margin-bottom: 1.15rem;
  }

  .feature-points {
    gap: 0.85rem;
  }

  .feature-points strong {
    font-size: 0.95rem;
  }

  .feature-points span {
    font-size: 0.9rem;
  }

  .ai-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ai-grid h3 {
    font-size: 0.98rem;
  }

  .ai-grid p {
    font-size: 0.88rem;
  }

  .stack-list {
    grid-template-columns: 1fr 1fr;
  }

  .stack-list dd {
    font-size: 1rem;
  }

  .privacy-panel {
    padding-block: clamp(1.75rem, 7vw, 2.5rem);
  }

  .privacy-panel p,
  .privacy-points li {
    font-size: 0.95rem;
  }

  .cta-band .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .btn {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-meta {
    justify-self: start;
    text-align: left;
    line-height: 2;
  }

  .guide-layout {
    padding-top: 1.25rem;
  }

  .guide-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .guide-lede,
  .guide-section p,
  .guide-section li {
    font-size: 0.95rem;
  }

  .guide-section h2 {
    font-size: 1.2rem;
  }

  .guide-code {
    font-size: 0.78rem;
    padding: 0.75rem 0.85rem;
  }

  .guide-table {
    font-size: 0.85rem;
  }

  .guide-table th,
  .guide-table td {
    padding: 0.5rem 0.4rem;
  }
}

@media (max-width: 420px) {
  .hero-brand {
    font-size: 1.85rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .hero-stage {
    height: 9.5rem;
  }

  .stack-list {
    grid-template-columns: 1fr;
  }

  .visual-line {
    font-size: 1.05rem;
  }

  .cleanup-row {
    font-size: 0.88rem;
  }
}

@media (min-width: 721px) and (max-width: 899px) {
  .hero {
    min-height: min(100dvh, 44rem);
  }

  .hero-copy {
    max-width: 32rem;
    padding-top: calc(var(--header-h) + 2.5rem);
  }

  .hero-brand {
    font-size: clamp(2.75rem, 7vw, 4rem);
  }

  .hero-actions .btn {
    min-width: 10rem;
  }
}

/* —— Download page —— */

.download-hero {
  position: relative;
  padding: clamp(4.5rem, 12vh, 7rem) var(--space) clamp(3rem, 8vh, 4.5rem);
  max-width: var(--max);
  margin: 0 auto;
  isolation: isolate;
}

.download-hero::before {
  content: "";
  position: absolute;
  inset: 8% -5% auto auto;
  width: min(42vw, 22rem);
  height: min(42vw, 22rem);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(143, 191, 174, 0.45) 0%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  animation: download-glow 8s ease-in-out infinite alternate;
}

.download-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  animation: rise-in 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.download-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw + 0.75rem, 4.5rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--ink);
}

.download-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw + 0.6rem, 2.15rem);
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

.download-lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 34rem;
}

.download-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.download-status {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.btn-download {
  min-width: min(100%, 16rem);
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
}

.download-version,
.download-hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.download-hint {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.download-steps .section-head,
.download-platforms .section-head,
.download-help .section-head {
  max-width: 36rem;
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
  max-width: 40rem;
}

.install-steps li {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding-left: 3.25rem;
  counter-increment: step;
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.install-steps strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.install-steps span {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.platform-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
}

.platform-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 180ms ease;
}

.platform-option:hover {
  border-color: var(--accent);
  background: var(--surface);
  color: inherit;
  transform: translateY(-1px);
}

.platform-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.platform-option.is-recommended {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
  box-shadow: inset 3px 0 0 var(--accent);
}

.platform-option-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent-strong);
}

.platform-option-body {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.platform-option-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.platform-option-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.platform-option-action {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-strong);
  white-space: nowrap;
}

.download-fallback {
  margin: 0;
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.help-list {
  margin: 0;
  max-width: 40rem;
  display: grid;
  gap: 1.35rem;
}

.help-list > div {
  display: grid;
  gap: 0.35rem;
}

.help-list dt {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
}

.help-list dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

@keyframes download-glow {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  to {
    transform: translate(-6%, 8%) scale(1.08);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-hero::before,
  .download-hero-copy {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .download-hero {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .platform-option {
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1rem;
  }

  .platform-option-action {
    grid-column: 2;
  }

  .btn-download {
    width: 100%;
  }
}

/* —— Install / Get started —— */

.install-page .site-header .nav a[aria-current="page"] {
  color: var(--accent-strong);
  font-weight: 600;
}

.install-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--header-h) + 2.5rem) var(--space) 2.5rem;
}

.install-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.install-hero h1 {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.install-lede {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.install-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.install-card {
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.install-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.install-card > p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.install-card ol,
.install-card ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.install-card li {
  margin-bottom: 0.45rem;
  color: var(--text);
}

.install-card .guide-code {
  margin: 0.75rem 0 1rem;
}

.install-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.usage-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.usage-grid article {
  padding: 1.15rem 1.2rem 1.25rem;
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.usage-grid h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.usage-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 899px) {
  .install-cards,
  .usage-grid {
    grid-template-columns: 1fr;
  }

  .install-hero h1 {
    max-width: none;
  }
}

/* —— Sticky Star —— */

.star-sticky {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  background: #24292f;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 20, 18, 0.22);
  transition: transform 160ms ease, background 160ms ease;
}

.star-sticky:hover,
.star-sticky:focus-visible {
  background: #1b1f23;
  color: #fff !important;
  transform: translateY(-1px);
}

/* —— Hero screenshot —— */

.hero-shot .hero-copy {
  max-width: 34rem;
}

/* Wordmark leads; the tagline is a supporting line under it. Capped so LUMORA
   never outgrows the 34rem copy column. */
.hero-shot .hero-brand {
  font-size: clamp(2.75rem, 5.5vw + 1rem, 5.25rem);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.hero-shot .hero-tagline {
  max-width: 26ch;
  font-size: clamp(1.05rem, 0.9vw + 0.8rem, 1.5rem);
  font-weight: 600;
}

.hero-aside {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Stops track the 34rem copy column but stay percentage-capped, so the veil
   covers the headline on narrow desktops without bleaching a wide monitor. */
.hero-shot .hero-veil {
  background:
    linear-gradient(
      100deg,
      rgba(238, 243, 240, 0.97) 0,
      rgba(238, 243, 240, 0.95) min(30rem, 34%),
      rgba(238, 243, 240, 0.6) min(40rem, 50%),
      transparent min(52rem, 64%)
    ),
    linear-gradient(
      0deg,
      rgba(238, 243, 240, 0.85) 0%,
      rgba(238, 243, 240, 0.2) 18%,
      transparent 34%
    );
}

.hero-shot .hero-lede {
  opacity: 0.88;
  max-width: 34rem;
}

.hero-shot-stage {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.hero-shot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: opacity 0.26s ease;
}

.hero-shot-img.is-swapping {
  opacity: 0;
}

.hero-query-caption {
  position: absolute;
  z-index: 2;
  right: var(--space);
  bottom: 1.25rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: min(22rem, calc(100% - 2rem));
}

.hero-query-caption em {
  font-style: normal;
  color: var(--accent-strong);
  font-weight: 600;
}

.proof-strip {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}

.proof-strip a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.proof-strip a:hover {
  color: var(--accent-strong);
}

/* —— Privacy banner —— */

.privacy-banner {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
  padding: 0.95rem var(--space);
}

.privacy-banner-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  justify-content: center;
}

.privacy-banner-list li {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.privacy-banner-list li::before {
  content: "✓";
  font-weight: 700;
}

/* —— Product demo —— */

.demo-layout {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  align-items: center;
}

.demo-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.demo-flow li {
  position: relative;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.demo-flow li:not(:last-child)::after {
  content: "↓";
  display: block;
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-stage {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink);
}

.demo-stage img,
.shot-inline,
.memories-pitch-visual img,
.playground-result img,
.alt-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-inline {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* —— Why / audience —— */

.why-grid,
.audience-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.why-grid h3,
.audience-grid h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.why-grid p,
.audience-grid p {
  margin: 0;
  color: var(--text-muted);
}

.why-grid li,
.audience-grid li {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

/* —— Memories pitch —— */

.memories-pitch {
  max-width: none;
  padding-inline: 0;
}

.memories-pitch-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--space);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
}

.memories-pitch-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.memories-pitch-copy > p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.memories-pitch-visual {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* —— Search playground —— */

.playground-panel {
  display: grid;
  gap: 1.25rem;
}

.playground-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.play-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.play-chip:hover,
.play-chip:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.play-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f7faf8;
}

.playground-result {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.playground-query {
  margin: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.playground-note {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.play-flash {
  animation: play-fade 420ms ease;
}

@keyframes play-fade {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-flash {
    animation: none;
  }
}

/* —— Compare table —— */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 36rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface));
}

.compare-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--text);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* —— Contribute —— */

.contribute-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.contribute-links a {
  font-weight: 600;
  font-size: 1.02rem;
}

/* —— Alternative / SEO pages —— */

.alt-hero {
  padding: clamp(4rem, 10vw, 6rem) var(--space) clamp(2rem, 5vw, 3rem);
  max-width: var(--max);
  margin: 0 auto;
}

.alt-kicker {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.alt-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.alt-lede {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 40rem;
}

.alt-shot {
  margin: 0 0 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.alt-contrast {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.alt-contrast li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.alt-contrast span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.alt-contrast strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
}

.alt-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 1rem;
}

/* —— Setup diagram —— */

.setup-diagram {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.35rem;
}

.setup-diagram li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.setup-diagram li:not(:last-child)::after {
  content: "→";
  margin-left: 0.35rem;
  color: var(--text-muted);
  font-weight: 500;
}

.setup-diagram span {
  padding: 0.55rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  font-weight: 600;
  display: flex;
  gap: 0.45rem;
}

.checklist + .install-steps {
  margin-top: 1.5rem;
}

.req-table,
.stats-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.req-table th,
.req-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.troubleshoot details {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}

.troubleshoot summary {
  font-weight: 600;
  cursor: pointer;
}

.troubleshoot p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

/* —— Download extras —— */

.release-notes {
  white-space: pre-wrap;
  font-size: 0.92rem;
  color: var(--text);
  max-height: 14rem;
  overflow: auto;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.checksum-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.65rem;
  font-size: 0.85rem;
}

.checksum-row code {
  word-break: break-all;
  font-size: 0.78rem;
}

.pkg-soon {
  display: grid;
  gap: 0.85rem;
}

.pkg-soon pre {
  margin: 0.35rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #e8f0ec;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.88rem;
}

.pkg-soon .coming {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dl-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.dl-stats dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.dl-stats dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

/* —— Plugin gallery —— */

.plugin-gallery {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.plugin-card {
  padding: 0;
  border: none;
  background: transparent;
}

.plugin-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.plugin-card p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plugin-card .plugin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.workflow-flow {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.workflow-flow li {
  font-weight: 600;
}

.workflow-flow li:not(:last-child)::after {
  content: " ↓";
  color: var(--text-muted);
  font-weight: 500;
}

.cookbook {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cookbook li {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--surface);
}

.faq-list details {
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
}

.faq-list p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

/* —— Blog / roadmap —— */

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.blog-list a {
  display: block;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.blog-list a:hover h2 {
  color: var(--accent-strong);
}

.blog-list h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.blog-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.blog-article {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--space);
}

.blog-article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.blog-article .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.blog-article h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
}

.blog-article figure {
  margin: 1.5rem 0;
}

.blog-article figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.blog-article .compare-wrap {
  margin: 1.25rem 0 1.5rem;
}

.blog-article p,
.blog-article li {
  line-height: 1.65;
  color: var(--text);
}

.roadmap-cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-cols h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.roadmap-cols ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

@media (max-width: 899px) {
  .demo-layout,
  .memories-pitch-inner,
  .why-grid,
  .audience-grid,
  .plugin-gallery,
  .roadmap-cols {
    grid-template-columns: 1fr;
  }

  .hero-shot {
    min-height: auto;
  }

  .hero-shot .hero-copy {
    padding-bottom: 2rem;
  }

  .hero-shot-stage {
    display: block;
    position: relative;
    min-height: 42vw;
    margin-top: -1rem;
  }

  .hero-shot-img {
    position: relative;
    inset: auto;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    background: var(--ink);
  }

  .hero-veil {
    display: none;
  }

  .hero-query-caption {
    position: static;
    margin: 0.75rem var(--space) 1.25rem;
  }

  .star-sticky {
    right: 0.65rem;
    bottom: 0.65rem;
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }

  .setup-diagram li:not(:last-child)::after {
    content: "↓";
  }
}
