@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;1,400&display=swap');

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

/* Dark theme (default) */
:root {
  --bg-deep: #080a14;
  --bg: #0c0f1a;
  --surface: #131729;
  --surface-raised: #1a1f36;
  --border: rgba(99, 102, 241, 0.12);
  --border-hover: rgba(99, 102, 241, 0.3);
  --text: #e8eaf0;
  --text-muted: #8b90a8;
  --text-dim: #5c6080;
  --accent: #818cf8;
  --accent-bright: #a5b4fc;
  --accent-glow: rgba(129, 140, 248, 0.15);
  --indigo-deep: #2d2b7c;
  --navy: #1e1b4b;
  --grain-opacity: 0.03;
  --glow-1: rgba(45, 43, 124, 0.25);
  --glow-2: rgba(99, 102, 241, 0.08);
  --shadow-card: rgba(0, 0, 0, 0.3);
  --macbook-shadow: rgba(0, 0, 0, 0.5);

  /* Type scale ── use these instead of hard-coded font-size values.
     Two display tokens: --fs-display-xl for the studio wordmark (index.html),
     --fs-display for product titles (manishelf.html). Apple's App Store
     button keeps its own sizes per Apple HIG. */
  --fs-display-xl: clamp(3.2rem, 9.5vw, 8.5rem);
  --fs-display:    clamp(3rem, 7.5vw, 6rem);
  --fs-h1:         clamp(2.2rem, 5vw, 3.8rem);
  --fs-h2:         clamp(1.6rem, 3vw, 2.5rem);
  --fs-lead:       clamp(1.2rem, 2.2vw, 1.8rem);
  --fs-body:       1rem;
  --fs-body-sm:    0.9rem;
  --fs-label:      0.7rem;
  --fs-micro:      0.6rem;
}

/* Light theme */
@media (prefers-color-scheme: light) {
  :root {
    --bg-deep: #f5f5f7;
    --bg: #ffffff;
    --surface: #f0f0f5;
    --surface-raised: #e8e8f0;
    --border: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.35);
    --text: #1a1a2e;
    --text-muted: #5a5a72;
    --text-dim: #8a8aa0;
    --accent: #6366f1;
    --accent-bright: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.1);
    --indigo-deep: #c7d2fe;
    --navy: #e0e7ff;
    --grain-opacity: 0.015;
    --glow-1: rgba(99, 102, 241, 0.08);
    --glow-2: rgba(99, 102, 241, 0.04);
    --shadow-card: rgba(0, 0, 0, 0.06);
    --macbook-shadow: rgba(0, 0, 0, 0.15);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─── Layout ─── */

.page-wrapper {
  position: relative;
  min-height: 100vh;
}

/* Background atmosphere */
.page-wrapper::before {
  content: '';
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse, var(--glow-1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-wrapper::after {
  content: '';
  position: fixed;
  bottom: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, var(--glow-2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Header ─── */

header {
  padding: 20px 0 4px;
  text-align: center;
}

header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

header h1 a {
  color: var(--text-muted);
  transition: color 0.3s;
}

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

header .tagline {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ─── Hero Section ─── */

.hero {
  text-align: center;
  padding: 12px 0 8px;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 20px;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.2),
    0 8px 40px rgba(99, 102, 241, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.hero-icon:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.3),
    0 12px 60px rgba(99, 102, 241, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.5);
}

.hero h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 20%, var(--accent-bright) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.01em;
}

.hero .description {
  max-width: 540px;
  margin: 24px auto 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── CTA Badge ─── */

.cta {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 24px;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 28px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: default;
}

.cta-badge:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px var(--accent-glow);
  transform: translateY(-1px);
  color: var(--text);
}

.cta-badge .apple-logo {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Scroll chevron */
.scroll-chevron {
  text-align: center;
  font-size: 2rem;
  color: var(--text-dim);
  animation: bounce 2s ease infinite;
  opacity: 0.5;
  margin: 8px 0;
  transition: opacity 0.3s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ─── Scroll Convergence ─── */

.converge-section {
  position: relative;
  width: 100%;
  height: 160vh; /* scroll room for the pinned convergence animation */
  overflow: visible;
}

.converge-pin {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  padding: 48px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: visible;
}

@media (max-width: 640px) {
  .converge-section { height: 180vh; }
}

.converge-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

/* MacBook mockup */
.macbook-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  perspective: 1200px;
  will-change: transform;
}

.macbook-frame {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.05s linear;
}

.macbook-body {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.macbook-screen-overlay {
  position: absolute;
  /* Position exactly within the MacBook screen bezel */
  top: calc(11.8% + 2px);
  left: 12.3%;
  width: 75.4%;
  height: 74%;
  overflow: hidden;
  border-radius: 6px;
  z-index: 0;
  transition: opacity 0.1s;
}

.screen-wallpaper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
}

/* Dark mode: show dark wallpaper + dark app, hide light */
.screen-wallpaper-light { display: none; }
.screen-wallpaper-dark { display: block; }
@media (prefers-color-scheme: light) {
  .screen-wallpaper-dark { display: none; }
  .screen-wallpaper-light { display: block; }
}

.screen-app {
  position: relative;
  width: 80%;
  height: auto;
  object-fit: contain;
  margin: 1% auto 0;
  z-index: 1;
}

/* Dark mode default: show dark app, hide light */
.screen-app.screen-app-dark { display: block; }
.screen-app.screen-app-light { display: none; }

@media (prefers-color-scheme: light) {
  .screen-app.screen-app-dark { display: none; }
  .screen-app.screen-app-light { display: block; }
}

/* Thumbnail row in hero */
.thumb-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 0;
  flex-wrap: nowrap;
  overflow: visible;
}

.thumb-item {
  position: relative;
  width: 160px;
  height: 230px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow-card);
  will-change: transform, opacity;
  transition: box-shadow 0.3s;
}

.thumb-item:hover {
  box-shadow: 0 8px 32px var(--shadow-card), 0 0 20px var(--accent-glow);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.converge-hint {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: -20px 0 -20px;
  letter-spacing: -0.01em;
}

/* ─── Showcase (Video + Screenshots) ─── */

.showcase {
  padding: 48px 0 32px;
}

/* Feature Showcase */
.feature-showcase {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 32px 24px 48px;
  max-width: 1040px;
  margin: 0 auto;
}

.showcase-tile {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.showcase-tile.reverse {
  grid-template-columns: 2fr 1fr;
}

.showcase-tile.reverse .showcase-text {
  order: 2;
}

.showcase-tile.reverse .showcase-img {
  order: 1;
}

.showcase-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.showcase-icon {
  font-size: 1.4rem;
  vertical-align: middle;
}

.showcase-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.showcase-text h3 .accent {
  color: var(--accent);
}

.showcase-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.showcase-img {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.showcase-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px var(--shadow-card), 0 0 24px var(--accent-glow);
}

/* Hover-to-play video */
.hover-video-wrap {
  position: relative;
  cursor: pointer;
}

.hover-video {
  display: block;
}

.hover-play-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hover-play-hint svg {
  width: 18px;
  height: 18px;
}

.showcase-img img,
.showcase-img video {
  width: 100%;
  display: block;
  border-radius: 14px;
}

@media (max-width: 640px) {
  .showcase-tile,
  .showcase-tile.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .showcase-tile.reverse .showcase-text { order: 0; }
  .showcase-tile.reverse .showcase-img { order: 0; }
  .showcase-text h3 { font-size: 1.3rem; }
}

.showcase-video {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  background: var(--surface);
}

.showcase-video video {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.showcase-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* Comparison Slider */
.compare-section {
  padding: 48px 0;
}

.compare-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 32px;
}

.compare-slider {
  margin-bottom: 24px;
}

.compare-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.compare-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.compare-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
  user-select: none;
}

.compare-container img {
  width: 100%;
  display: block;
}

.compare-light {
  position: relative;
  z-index: 0;
}

.compare-dark-clip {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.compare-dark-clip img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--container-width, 100%);
  height: auto;
  max-width: none;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.compare-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: white;
  z-index: 2;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.compare-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.compare-handle::after {
  content: '\2194';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: var(--bg-deep);
  z-index: 1;
  pointer-events: none;
}

.showcase-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.showcase-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 40px var(--accent-glow);
  border-color: rgba(99, 102, 241, 0.4);
}

.showcase-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s;
}

.lightbox.active img {
  transform: scale(1);
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--surface);
  border: 1px dashed var(--border-hover);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.03em;
}

.showcase-video .placeholder {
  min-height: 360px;
  border-radius: 14px;
}

/* ─── Why ManiShelf ─── */

.why-section {
  padding: 48px 0;
}

.why-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 32px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.why-card.highlight {
  background: linear-gradient(135deg, var(--surface) 0%, var(--navy) 100%);
  border-color: rgba(99, 102, 241, 0.2);
}

.why-card.highlight:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.why-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.why-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Divider ─── */

.section-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto;
  opacity: 0.4;
}

/* ─── Features Grid ─── */

.features-section {
  padding: 48px 0;
}

.features-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.feature-card .icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Checklist ─── */

.checklist-section {
  padding: 48px 0;
}

.checklist-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px 60px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.checklist-item .check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── FAQ ─── */

.faq-section {
  padding: 48px 0;
}

.faq-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  padding: 20px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '\203A';
  font-size: 1.4rem;
  color: var(--text-dim);
  transform: rotate(90deg);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(270deg);
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Support ─── */

.support-section {
  padding: 48px 0 24px;
  text-align: center;
}

.support-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-section .support-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.support-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s;
}

.support-link:hover {
  border-color: var(--border-hover);
  color: var(--accent-bright);
}

button.support-link {
  font-family: inherit;
  cursor: pointer;
}

.contact-inline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent-bright);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-inline:hover {
  opacity: 0.85;
}

.contact-address {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-block;
  user-select: all;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Footer ─── */

footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

footer .footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}

footer .footer-links a {
  color: var(--text-dim);
  font-size: 0.78rem;
  transition: color 0.2s;
}

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

/* ─── Prose Pages (Privacy, Terms) ─── */

.prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  margin: 32px 0;
}

.prose h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.prose .updated {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 32px;
  display: block;
}

.prose h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--text);
}

.prose p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.prose ul {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.prose strong {
  color: var(--text);
}

/* Back link on prose pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

/* ─── Responsive ─── */

@media (max-width: 640px) {
  .hero h2 {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .showcase-gallery {
    grid-template-columns: 1fr;
  }

  .showcase-video .placeholder {
    min-height: 220px;
  }

  .converge-stage {
    min-height: 360px;
  }

  .thumb-item {
    width: 80px;
  }

  .thumb-row {
    gap: 8px;
  }

  .hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .prose {
    padding: 28px;
  }

  .support-links {
    flex-direction: column;
    align-items: center;
  }

  .converge-hint {
    font-size: 1.2rem;
  }

  .showcase-text h3 {
    font-size: 1.2rem;
  }

  .showcase-text p {
    font-size: 0.85rem;
  }

  .faq-section h3 {
    font-size: 1.4rem;
  }

  .checklist-section h3 {
    font-size: 1.4rem;
  }

  .checklist-item {
    font-size: 0.85rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   Studio home (index.html) - one-viewport editorial split
   Scoped under .studio-home so product pages are untouched.
   ───────────────────────────────────────────────────────────── */

body.studio-home {
  background: var(--bg-deep);
  font-family: 'DM Sans', sans-serif;
  height: 100vh;
  overflow: hidden;
}

@media (max-height: 680px), (max-width: 820px) {
  body.studio-home {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* Ambient cursor-tracking glow */
.studio-home .studio-ambient {
  --mx: 50%;
  --my: 40%;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(129, 140, 248, 0.20) 0%,
      rgba(129, 140, 248, 0.06) 22%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 110%,
      rgba(45, 43, 124, 0.40) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 5% -10%,
      rgba(30, 27, 75, 0.55) 0%,
      transparent 50%
    );
  transition: background 0.6s ease;
}

@media (prefers-color-scheme: light) {
  .studio-home .studio-ambient {
    background:
      radial-gradient(
        circle at var(--mx) var(--my),
        rgba(99, 102, 241, 0.10) 0%,
        rgba(99, 102, 241, 0.03) 22%,
        transparent 55%
      ),
      radial-gradient(
        ellipse at 85% 110%,
        rgba(199, 210, 254, 0.55) 0%,
        transparent 55%
      );
  }
}

/* ── Grid scaffolding ── */

.studio-home .studio-grid {
  position: relative;
  z-index: 1;
  height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(16px, 2.2vh, 28px) clamp(22px, 4vw, 56px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(20px, 3.5vh, 40px);
}

@media (max-height: 680px), (max-width: 820px) {
  .studio-home .studio-grid {
    height: auto;
    min-height: 100vh;
    padding-bottom: 48px;
  }
}

/* ── Topbar ── */

.studio-home .studio-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(10px, 1.5vh, 18px);
  border-bottom: 1px solid var(--border);
  animation: studioFadeDown 0.8s ease both;
}

.studio-home .topbar-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.studio-home .topbar-mark .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
  animation: studioPulse 2.4s ease-in-out infinite;
}

@keyframes studioPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.studio-home .topbar-nav {
  display: flex;
  gap: clamp(14px, 1.6vw, 22px);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-home .topbar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
}

.studio-home .topbar-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.studio-home .topbar-nav a:hover {
  color: var(--text);
}

.studio-home .topbar-nav a:hover::after {
  transform: scaleX(1);
}

/* ── Split ── */

.studio-home .studio-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  min-height: 0;
}

@media (max-width: 820px) {
  .studio-home .studio-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── Left column ── */

.studio-home .split-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: clamp(10px, 2vh, 24px) 0;
}

.studio-home .hero-corner {
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: studioFadeIn 1.2s ease 0.2s forwards;
}

.studio-home .studio-wordmark {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: var(--fs-display-xl);
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--text);
  margin: 0 0 clamp(18px, 3vh, 36px);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

.studio-home .wm-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em) rotate(-1.5deg);
  animation: studioCharIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(0.15s + var(--i) * 0.055s);
}

.studio-home .wm-char:nth-child(1),
.studio-home .wm-char:nth-child(4) {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-bright);
}

.studio-home .wm-dot {
  color: var(--accent-bright);
  display: inline-block;
  opacity: 0;
  animation: studioCharIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.65s forwards;
}

@keyframes studioCharIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.studio-home .hero-lead {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: var(--fs-lead);
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 clamp(10px, 1.5vh, 16px);
  max-width: 520px;
  opacity: 0;
  transform: translateY(12px);
  animation: studioFadeUp 1s ease 0.8s forwards;
  font-variation-settings: "opsz" 72;
}

.studio-home .hero-lead em {
  font-style: italic;
  color: var(--accent-bright);
}

.studio-home .hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 clamp(18px, 3vh, 30px);
  opacity: 0;
  transform: translateY(12px);
  animation: studioFadeUp 1s ease 0.95s forwards;
}

.studio-home .blurb-credo {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text);
  padding-left: 18px;
  border-left: 2px solid var(--accent-bright);
  max-width: 460px;
  margin: 0 0 clamp(24px, 5vh, 48px);
  opacity: 0;
  transform: translateY(12px);
  animation: studioFadeUp 1s ease 1.1s forwards;
  font-variation-settings: "opsz" 60;
}

.studio-home .left-footer {
  margin-top: auto;
  padding-top: clamp(16px, 2.5vh, 24px);
  border-top: 1px dashed var(--border);
  opacity: 0;
  transform: translateY(12px);
  animation: studioFadeUp 1s ease 1.3s forwards;
}

.studio-home .quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-home .quick-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.studio-home .quick-links a:hover {
  color: var(--accent-bright);
}

.studio-home .ql-sep {
  color: var(--text-dim);
  opacity: 0.6;
}

.studio-home .corner-mark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Right column / gallery ── */

.studio-home .split-right {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(14px, 2vh, 20px);
  min-height: 0;
  /* Reserve the space that the removed "Next slot" row used to occupy so
     the shelf card doesn't grow into it and reach the footer level. */
  padding-bottom: 72px;
}

.studio-home .section-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: studioFadeUp 1s ease 0.4s forwards;
  transform: translateY(8px);
}

.studio-home .rule-num {
  color: var(--accent-bright);
  font-weight: 500;
}

.studio-home .rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

.studio-home .rule-count {
  color: var(--text-dim);
}

/* Shelf card */
.studio-home .shelf-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  padding: clamp(20px, 2.5vh, 32px);
  background:
    linear-gradient(165deg, rgba(26, 31, 54, 0.75), rgba(19, 23, 41, 0.92)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  animation: studioFadeUp 1s ease 0.55s forwards;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

@media (prefers-color-scheme: light) {
  .studio-home .shelf-card {
    background:
      linear-gradient(165deg, rgba(240, 240, 245, 0.75), rgba(255, 255, 255, 0.95)),
      var(--surface);
  }
}

.studio-home .shelf-card::before {
  display: none;
}

/* .studio-home .shelf-card:hover intentionally no-op for uniform appearance */

/* .studio-home .shelf-card:hover::before intentionally matches default */

/* Visual area */
.studio-home .shelf-visual {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-home .shelf-halo {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--accent-glow) 0%,
    transparent 70%
  );
  filter: blur(35px);
  opacity: 0.75;
  z-index: 1;
}

/* MacBook mockup holding the demo video */
.studio-home .shelf-video {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 720px;
  cursor: zoom-in;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* .studio-home .shelf-video:hover intentionally no-op */

.studio-home .shelf-video .mb-frame {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.studio-home .shelf-video .mb-screen {
  position: absolute;
  top: calc(11.8% + 2px);
  left: 12.3%;
  width: 75.4%;
  height: 74%;
  overflow: hidden;
  border-radius: 6px;
  z-index: 0;
  background: #000;
}

.studio-home .shelf-video .mb-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transform: translate(0%, -1%) scale(1.02);
  transform-origin: center center;
}

/* Expand hint chip, visible on hover */
.studio-home .video-expand-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.studio-home .shelf-video:hover .video-expand-hint,
.studio-home .shelf-video:focus-visible .video-expand-hint {
  opacity: 1;
  transform: translateY(0);
}

.studio-home .shelf-video:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.studio-home .shelf-video video {
  display: block;
  width: 100%;
  height: auto;
}

/* Hide every variant of browser native media-control overlay.
   iOS Safari shows a "start playback" button overlay when autoplay is
   blocked (Low Power Mode, data saver, cold start). Cover every pseudo
   iOS/macOS WebKit exposes so the native UI never leaks through. */
.studio-home .shelf-video video::-webkit-media-controls,
.studio-home .shelf-video video::-webkit-media-controls-panel,
.studio-home .shelf-video video::-webkit-media-controls-panel-container,
.studio-home .shelf-video video::-webkit-media-controls-container,
.studio-home .shelf-video video::-webkit-media-controls-play-button,
.studio-home .shelf-video video::-webkit-media-controls-start-playback-button,
.studio-home .shelf-video video::-webkit-media-controls-overlay-play-button,
.studio-home .shelf-video video::-webkit-media-controls-overlay-enclosure,
.studio-home .shelf-video video::-webkit-media-controls-enclosure,
.studio-home .shelf-video video::-webkit-media-controls-fullscreen-button,
.studio-home .shelf-video video::-webkit-media-controls-timeline-container,
.studio-home .shelf-video video::-internal-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* On iOS when autoplay is blocked, the video remains paused and the
   rendering surface is still active. Hide the paused state by
   ensuring the <video> element itself never shows a control UI. */
.studio-home .shelf-video video {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

/* Custom faint triangle overlay — sits on top of the video so it covers
   any iOS-native "start playback" emoji overlay that leaks through.
   Fades out once the video is actually playing. */
.studio-home .shelf-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(28px, 4.5vw, 40px);
  height: clamp(28px, 4.5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.4s ease;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.studio-home .shelf-play-overlay svg {
  width: 100%;
  height: 100%;
}

.studio-home .shelf-video.is-playing .shelf-play-overlay {
  opacity: 0;
}

.studio-home .shelf-card:hover .shelf-video {
  transform: translateY(-6px) scale(1.015);
}

/* Body */
.studio-home .shelf-body {
  position: relative;
  z-index: 3;
  padding-top: clamp(10px, 1.5vh, 18px);
}

.studio-home .shelf-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.studio-home .chip {
  padding: 3px 9px;
  border: 1px solid var(--accent-bright);
  color: var(--accent-bright);
  border-radius: 999px;
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
}

.studio-home .shelf-version {
  margin-left: auto;
  color: var(--text-dim);
}

.studio-home .shelf-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--text);
  font-variation-settings: "opsz" 120;
}

.studio-home .shelf-title a {
  color: inherit;
  text-decoration: none;
}

.studio-home .shelf-title .m-1 {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
}

.studio-home .shelf-tagline {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 clamp(14px, 2vh, 20px);
}

.studio-home .shelf-specs {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 0 clamp(14px, 2vh, 20px);
}

.studio-home .shelf-specs > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-label);
}

.studio-home .shelf-specs dt {
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--fs-micro);
}

.studio-home .shelf-specs dd {
  color: var(--text);
}

.studio-home .shelf-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.studio-home .shelf-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: var(--fs-body-sm);
  white-space: nowrap;
  color: var(--text);
  padding: 0 18px;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.studio-home .shelf-cta .cta-text-short { display: none; }

.studio-home .shelf-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -6px var(--accent-glow);
}

/* Mac App Store badge */
.studio-home .mas-badge,
.manishelf-page .mas-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 14px;
  height: 44px;
  box-sizing: border-box;
  border-radius: 10px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  line-height: 1.1;
  /* Default (dark theme): white badge with black text */
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition:
    background 0.25s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.studio-home .mas-badge:hover,
.manishelf-page .mas-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.studio-home .mas-apple,
.manishelf-page .mas-apple {
  width: 22px;
  height: 26px;
  flex-shrink: 0;
  color: currentColor;
}

.studio-home .mas-text,
.manishelf-page .mas-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.studio-home .mas-small,
.manishelf-page .mas-small {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.studio-home .mas-large,
.manishelf-page .mas-large {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  line-height: 1.15;
}

@media (prefers-color-scheme: light) {
  .studio-home .mas-badge,
  .manishelf-page .mas-badge {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
  }
}

.studio-home .cta-arrow {
  transition: transform 0.3s ease;
}

.studio-home .shelf-card:hover .shelf-cta {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #0c0f1a;
}

@media (prefers-color-scheme: light) {
  .studio-home .shelf-card:hover .shelf-cta {
    color: #ffffff;
  }
}

.studio-home .shelf-card:hover .cta-arrow {
  transform: translateX(5px);
}

/* Next slot */
.studio-home .shelf-next {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-body-sm);
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(12px);
  animation: studioFadeUp 1s ease 0.85s forwards;
  font-variation-settings: "opsz" 60;
}

.studio-home .next-num {
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

/* ── Keyframes ── */

@keyframes studioFadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes studioFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes studioFadeIn {
  to { opacity: 1; }
}

/* ── Responsive ── */

@media (max-width: 820px) {
  .studio-home .hero-corner {
    display: none;
  }

  .studio-home .studio-wordmark {
    font-size: clamp(4rem, 20vw, 7rem);
  }

  /* Flatten split-left so its children become direct grid items of
     studio-split, then use `order` to push the left-footer below the
     shelf card. Otherwise the footer (© 2026…) renders right after
     the hero text and above the shelf card on mobile. */
  .studio-home .split-left { display: contents; }
  .studio-home .split-right { order: 10; }
  .studio-home .left-footer { order: 20; }

  /* Tighten the mobile vertical rhythm — the 48px studio-split gap plus
     the wordmark/hero-lead's own margin-bottom stacked up to 70+px
     between each line. */
  .studio-home .studio-split { gap: 20px; }
  .studio-home .studio-wordmark { margin-bottom: 0; }
  .studio-home .hero-lead { margin-bottom: 0; }

  .studio-home .shelf-specs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .studio-home .studio-topbar {
    justify-content: flex-end;
    gap: 12px;
  }

  /* Hide the whole left topbar-mark (dot + "Est. 2026…" label) on
     mobile — it sits right above the Contact link and looks noisy on
     a narrow screen. */
  .studio-home .topbar-mark { display: none; }

  /* Keep specs inline on mobile — drop the font-size a notch and
     tighten the gap so all three fit without wrapping. */
  .studio-home .shelf-specs { gap: 10px; }
  .studio-home .shelf-specs > div { font-size: var(--fs-micro); }
  .studio-home .shelf-specs dd { word-break: break-word; }

  /* Keep Explore + App Store buttons on the same row on mobile, and
     give them equal width (flex: 1) with centered content so they
     visually match as a pair. */
  .studio-home .shelf-cta-row {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .studio-home .shelf-cta-row > .shelf-cta,
  .studio-home .shelf-cta-row > .mas-badge {
    flex: 1;
    justify-content: center;
  }
  .studio-home .shelf-cta {
    padding: 0 12px;
    white-space: nowrap;
  }
  .studio-home .mas-badge { padding: 0 12px 0 10px; }

  /* Swap the CTA label to "Learn more" on narrow viewports — the
     full "Explore ManiShelf" wraps onto two lines beside the App
     Store badge. */
  .studio-home .shelf-cta .cta-text-full { display: none; }
  .studio-home .shelf-cta .cta-text-short { display: inline; }

  .studio-home .shelf-visual {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-home *,
  .studio-home *::before,
  .studio-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .studio-home .wm-char,
  .studio-home .wm-dot,
  .studio-home .hero-lead,
  .studio-home .hero-sub,
  .studio-home .blurb-credo,
  .studio-home .left-footer,
  .studio-home .section-rule,
  .studio-home .shelf-card,
  .studio-home .shelf-next,
  .studio-home .hero-corner {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Video lightbox ── */

.video-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-width: 95vw;
  max-height: 95vh;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.video-lightbox::backdrop {
  background: rgba(5, 7, 16, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-lightbox[open] {
  animation: lightboxIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-lightbox video {
  display: block;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 60px 140px -20px rgba(0, 0, 0, 0.9);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .video-lightbox[open] { animation: none; }
}

/* ─────────────────────────────────────────────────────────────
   ManiShelf product page redesign
   Scoped under body.manishelf-page. Uses same Fraunces + DM Sans
   + JetBrains Mono system as the studio home.
   ───────────────────────────────────────────────────────────── */

body.manishelf-page {
  background: var(--bg-deep);
  font-family: 'DM Sans', sans-serif;
}

.manishelf-page .mani-ambient {
  --mx: 50%;
  --my: 30%;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(129, 140, 248, 0.18) 0%,
      rgba(129, 140, 248, 0.05) 22%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 110%,
      rgba(45, 43, 124, 0.35) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 5% -10%,
      rgba(30, 27, 75, 0.45) 0%,
      transparent 50%
    );
  transition: background 0.6s ease;
}

@media (prefers-color-scheme: light) {
  .manishelf-page .mani-ambient {
    background:
      radial-gradient(
        circle at var(--mx) var(--my),
        rgba(99, 102, 241, 0.08) 0%,
        rgba(99, 102, 241, 0.03) 22%,
        transparent 55%
      ),
      radial-gradient(
        ellipse at 85% 110%,
        rgba(199, 210, 254, 0.45) 0%,
        transparent 55%
      );
  }
}

.manishelf-page .mani-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px);
}

.manishelf-page .mani-wrap-top {
  padding-top: clamp(16px, 2.5vh, 28px);
}

/* ── Topbar ── */

.manishelf-page .mani-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(14px, 2vh, 20px);
  border-bottom: 1px solid var(--border);
}

.manishelf-page .topbar-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}

.manishelf-page .topbar-mark:hover {
  color: var(--text);
}

.manishelf-page .topbar-mark .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent-bright);
  animation: maniPulse 2.4s ease-in-out infinite;
}

@keyframes maniPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.manishelf-page .topbar-nav {
  display: flex;
  gap: clamp(14px, 1.8vw, 22px);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.manishelf-page .topbar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
}

.manishelf-page .topbar-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.manishelf-page .topbar-nav a:hover {
  color: var(--text);
}

.manishelf-page .topbar-nav a:hover::after {
  transform: scaleX(1);
}

/* ── Hero ── */

.manishelf-page .mani-hero {
  text-align: center;
  padding: clamp(28px, 5vh, 56px) 0 0;
}

.manishelf-page .hero-badges {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(24px, 4vh, 36px);
  flex-wrap: wrap;
  justify-content: center;
}

.manishelf-page .badge-mono {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.manishelf-page .chip {
  padding: 4px 10px;
  border: 1px solid var(--accent-bright);
  color: var(--accent-bright);
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.manishelf-page .hero-titleblock {
  --icon-w: clamp(50px, 5.8vw, 72px);
  --icon-gap: clamp(12px, 1.6vw, 20px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--icon-gap);
  margin: 0 0 48px;
  /* Offset left by half the icon+gap so the title text (not the pair) sits on page-center */
  transform: translateX(calc((var(--icon-w) + var(--icon-gap)) / -2));
}

.manishelf-page .mani-icon {
  width: var(--icon-w);
  height: auto;
  aspect-ratio: 1;
  border-radius: 28%;
  margin: 0;
  display: block;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.2),
    0 14px 50px -10px var(--accent-glow),
    0 14px 40px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.manishelf-page .mani-icon:hover {
  transform: translateY(-4px) rotate(-2deg);
}

.manishelf-page .mani-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 0;
  color: var(--text);
  font-variation-settings: "opsz" 144;
}

.manishelf-page .mani-title .m-1 {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
}

.manishelf-page .mani-subtitle {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: var(--fs-lead);
  line-height: 1.35;
  color: var(--text);
  max-width: none;
  width: 100%;
  white-space: nowrap;
  margin: 0 auto 36px;
  font-variation-settings: "opsz" 72;
}

@media (max-width: 820px) {
  .manishelf-page .mani-subtitle {
    white-space: normal;
    max-width: 680px;
  }
}

.manishelf-page .mani-subtitle em {
  font-style: italic;
  color: var(--accent-bright);
}

.manishelf-page .mani-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.manishelf-page .mani-cta-row {
  display: flex;
  justify-content: center;
}

.manishelf-page .cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--text);
  padding: 14px 26px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  background: var(--surface);
  cursor: default;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.manishelf-page .cta-pill:hover {
  border-color: var(--accent-bright);
  box-shadow: 0 6px 30px var(--accent-glow);
  transform: translateY(-1px);
}

.manishelf-page .cta-pill .apple-logo {
  font-size: var(--fs-lead);
  opacity: 0.85;
}

/* ── Section rule ── */

.manishelf-page .mani-section {
  padding: clamp(32px, 4vw, 48px) 0 0;
}

.manishelf-page #features.mani-section {
  padding-top: 20px;
  margin-top: -80px;
}

.manishelf-page .checklist-col .checklist-item:first-child {
  padding-top: 0;
}

.manishelf-page .checklist-col .checklist-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.manishelf-page .mani-section-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 clamp(32px, 4vw, 48px);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.manishelf-page .mani-section-rule .rule-num {
  color: var(--accent-bright);
  font-weight: 500;
}

.manishelf-page .mani-section-rule .rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* ── Converge hint restyle ── */

.manishelf-page .converge-hint {
  font-family: 'Fraunces', serif !important;
  font-weight: 300 !important;
  font-style: italic !important;
  font-size: var(--fs-lead) !important;
  color: var(--text) !important;
  font-variation-settings: "opsz" 72;
}

.manishelf-page .converge-hint em {
  font-style: italic;
  color: var(--accent-bright) !important;
}

/* ── Feature showcase restyle ── */

.manishelf-page .feature-showcase {
  padding: 0;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: clamp(48px, 7vw, 80px);
}

.manishelf-page .showcase-tile {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.manishelf-page .showcase-tile.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.manishelf-page .showcase-tile.reverse .showcase-text {
  order: 2;
}

.manishelf-page .showcase-tile.reverse .showcase-img {
  order: 1;
}

.manishelf-page .showcase-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.manishelf-page .tile-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.manishelf-page .showcase-tile h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  font-variation-settings: "opsz" 72;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

.manishelf-page .showcase-tile h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
}

.manishelf-page .showcase-tile p {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-body-sm);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  max-width: 440px;
}

.manishelf-page .hover-video-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px -15px var(--shadow-card);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}

.manishelf-page .hover-video-wrap:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 30px 80px -15px var(--shadow-card), 0 0 30px -5px var(--accent-glow);
}

.manishelf-page .hover-video,
.manishelf-page .hover-video-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface);
}

.manishelf-page .hover-play-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-body-sm);
  padding-left: 3px;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* ── Checklist restyle ── */

.manishelf-page .checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px) clamp(28px, 4vw, 60px);
  max-width: 960px;
}

.manishelf-page .checklist-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manishelf-page .checklist-item {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: none;
  border: none;
}

.manishelf-page .checklist-item .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent-bright);
  font-size: var(--fs-label);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── FAQ restyle ── */

.manishelf-page .faq-list {
  display: flex;
  flex-direction: column;
  max-width: 880px;
  border-top: 1px solid var(--border);
}

.manishelf-page .faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0;
  margin: 0;
  overflow: visible;
  transition: none;
}

.manishelf-page .faq-item:hover {
  border-color: var(--border);
  border-bottom-color: var(--border);
}

.manishelf-page .faq-item summary {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  padding: 22px 64px 22px 24px;
  cursor: pointer;
  position: relative;
  list-style: none;
  transition: color 0.25s;
}

.manishelf-page .faq-item summary::-webkit-details-marker {
  display: none;
}

.manishelf-page .faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--accent-bright);
  transition: transform 0.3s ease;
  line-height: 1;
}

.manishelf-page .faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.manishelf-page .faq-item summary:hover {
  color: var(--accent-bright);
}

.manishelf-page .faq-item p {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-body-sm);
  line-height: 1.7;
  color: var(--text-muted);
  padding: 0 64px 24px 24px;
  margin: 0;
  max-width: 780px;
}

/* ── Support restyle ── */

.manishelf-page .support-desc {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-lead);
  color: var(--text-muted);
  margin: 0 0 clamp(24px, 4vw, 36px);
  max-width: 620px;
  font-variation-settings: "opsz" 60;
}

.manishelf-page .mani-support-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1040px;
}

.manishelf-page .mani-support-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.manishelf-page .mani-support-link:hover {
  border-color: var(--border-hover);
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.manishelf-page .mani-support-link .link-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.manishelf-page .mani-support-link .link-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: var(--fs-lead);
  color: var(--text);
  font-variation-settings: "opsz" 60;
}

.manishelf-page .mani-support-link .link-arrow {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--text-dim);
  transition: transform 0.3s, color 0.3s;
}

.manishelf-page .mani-support-link:hover .link-arrow {
  color: var(--accent-bright);
  transform: translate(3px, -3px);
}

/* ── Footer ── */

.manishelf-page .mani-footer {
  margin-top: clamp(60px, 8vw, 100px);
  padding: 28px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.manishelf-page .mani-footer .footer-sep {
  opacity: 0.5;
}

/* ── Responsive ── */

@media (max-width: 820px) {
  .manishelf-page .showcase-tile,
  .manishelf-page .showcase-tile.reverse {
    grid-template-columns: 1fr;
  }
  .manishelf-page .showcase-tile.reverse .showcase-text { order: 1; }
  .manishelf-page .showcase-tile.reverse .showcase-img { order: 2; }

  .manishelf-page .checklist-grid {
    grid-template-columns: 1fr;
    /* On desktop the row-gap is 16-28px because there are two columns
       side-by-side; on mobile both columns stack, so the "seam" gap
       between the two columns would be 16-28px while the within-column
       item gap is only 10px — jarring. Flatten to one consistent 10px
       rhythm across the whole list. */
    gap: 10px;
  }

  .manishelf-page .mani-support-links {
    grid-template-columns: 1fr 1fr;
  }

  /* Hide the Mac App Store download button on mobile — users on iPhone
     can't install a Mac app from here. */
  .manishelf-page .mani-cta-row { display: none; }

  /* Lock horizontal movement completely — three belts-and-suspenders:
     overflow clip, disable horizontal overscroll bounce, and restrict
     touch gestures to vertical only. */
  html,
  body.manishelf-page {
    overflow-x: clip;
    overscroll-behavior-x: none;
    max-width: 100vw;
    touch-action: pan-y;
  }

  /* Proportional thumb scaling on mobile (base CSS only set width, leaving
     the 230px height, which stretched the tiles). */
  .thumb-item { width: 80px; height: 115px; }

  /* Hide decorative chevron on mobile — the scroll gesture is obvious on
     touch devices, and it eats vertical space between thumbs and MacBook. */
  .manishelf-page .scroll-chevron { display: none; }

  /* Mobile convergence: thumbs are sticky at the top of the viewport,
     the MacBook flows naturally below. As the user scrolls, the thumbs
     fall from the sticky position and the MacBook rises up to meet
     them — the page (Features, etc.) scrolls together with the MacBook
     as one linked unit. See manishelf.html for the matching JS: progress
     is driven by the MacBook's viewport position, not section scroll. */
  /* Compact the hero on mobile so the thumbs sit right under the
     "No accounts..." tagline instead of drifting toward the MacBook. */
  .manishelf-page .mani-hero { padding-top: 16px; }
  .manishelf-page .hero-titleblock { margin-bottom: 18px; }
  .manishelf-page .mani-subtitle { margin-bottom: 14px; }
  .manishelf-page .mani-desc { margin-bottom: 18px; }
  .manishelf-page .converge-section {
    height: auto;
    padding-bottom: clamp(24px, 6vw, 48px);
  }
  .manishelf-page .converge-pin {
    position: static;
    height: auto;
    display: block;
    padding: 0 16px;
  }
  .manishelf-page .thumb-row {
    position: sticky;
    top: 24px;
    z-index: 20;
    margin-top: 0;
  }
  .manishelf-page .converge-hint { display: none; }
  .manishelf-page .converge-stage {
    min-height: 0;
    margin-top: 160px;
  }

  /* Features follows the MacBook in natural flow — no pull-up needed. */
  .manishelf-page #features.mani-section {
    margin-top: 0;
    padding-top: clamp(24px, 5vw, 40px);
  }
}

@media (max-width: 560px) {
  .manishelf-page .mani-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .manishelf-page .mani-support-links {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────
   Help & Tips page
   Shares .manishelf-page for topbar/section-rules/footer/ambient.
   Help-specific rules under .help-page.
   ───────────────────────────────────────────────────────────── */

.help-page .help-hero {
  text-align: center;
  padding: clamp(36px, 7vh, 80px) 0 clamp(36px, 6vh, 64px);
  max-width: 820px;
  margin: 0 auto;
}

.help-page .help-hero-eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.help-page .help-hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 16px;
  font-variation-settings: "opsz" 120;
}

.help-page .help-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
}

.help-page .help-hero-sub {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 560px;
  font-variation-settings: "opsz" 60;
}

.help-page .help-section {
  padding: clamp(40px, 7vw, 80px) 0 0;
}

.help-page .help-tips {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 80px);
  max-width: 1040px;
  margin: 0 auto;
}

.help-page .tip-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.help-page .tip-row.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.help-page .tip-row.reverse .tip-text {
  order: 2;
}

.help-page .tip-row.reverse .tip-media {
  order: 1;
}

.help-page .tip-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.help-page .tip-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.help-page .tip-text h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  font-variation-settings: "opsz" 72;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

.help-page .tip-text h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
}

.help-page .tip-text p,
.help-page .tip-text ul {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-body-sm);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.help-page .tip-text ul {
  padding-left: 18px;
}

.help-page .tip-text li {
  margin-bottom: 6px;
}

.help-page .tip-text strong {
  color: var(--text);
  font-weight: 500;
}

.help-page .tip-text code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  color: var(--accent-bright);
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}

.help-page .tip-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 60px -15px var(--shadow-card);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.help-page .tip-media:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 30px 80px -15px var(--shadow-card), 0 0 30px -5px var(--accent-glow);
}

.help-page .tip-media video,
.help-page .tip-media img {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.help-page .hover-video-wrap {
  position: relative;
}

.help-page .hover-play-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-body-sm);
  padding-left: 3px;
  pointer-events: none;
  transition: opacity 0.3s;
}

.help-page .help-contact-section {
  padding-bottom: 20px;
}

.help-page .help-contact-text {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 620px;
  font-variation-settings: "opsz" 60;
  margin: 0;
}

.help-page .help-contact-text a {
  color: var(--accent-bright);
  text-decoration: none;
  font-style: normal;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}

.help-page .help-contact-text a:hover {
  border-bottom-color: var(--accent-bright);
  color: var(--text);
}

@media (max-width: 820px) {
  .help-page .tip-row,
  .help-page .tip-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .help-page .tip-row.reverse .tip-text { order: 1; }
  .help-page .tip-row.reverse .tip-media { order: 2; }
}

/* ─────────────────────────────────────────────────────────────
   Legal pages (privacy, terms)
   Shares .manishelf-page for topbar/section-rules/footer/ambient.
   Legal-specific rules under .legal-page.
   ───────────────────────────────────────────────────────────── */

.legal-page .legal-hero {
  text-align: center;
  padding: clamp(36px, 7vh, 80px) 0 clamp(20px, 3vh, 32px);
  max-width: 820px;
  margin: 0 auto;
}

.legal-page .legal-hero-eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.legal-page .legal-hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 18px;
  font-variation-settings: "opsz" 120;
}

.legal-page .legal-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
}

.legal-page .legal-hero-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

/* Callout — prominent promise statement at top of page */
.legal-page .legal-callout {
  max-width: 720px;
  margin: clamp(24px, 4vw, 40px) auto 0;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(26, 31, 54, 0.55), rgba(19, 23, 41, 0.85)),
    var(--surface);
  position: relative;
  overflow: hidden;
}

.legal-page .legal-callout::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-bright), transparent 40%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.35;
}

@media (prefers-color-scheme: light) {
  .legal-page .legal-callout {
    background:
      linear-gradient(165deg, rgba(240, 240, 245, 0.7), rgba(255, 255, 255, 0.95)),
      var(--surface);
  }
}

.legal-page .legal-callout-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}

.legal-page .legal-callout-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent-bright);
  display: inline-block;
}

.legal-page .legal-callout p {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: var(--fs-lead);
  line-height: 1.4;
  color: var(--text);
  margin: 0;
  font-variation-settings: "opsz" 72;
}

.legal-page .legal-callout em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
}

/* Sections and prose */
.legal-page .legal-section {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) 0 0;
}

.legal-page .legal-section .mani-section-rule {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.legal-page .legal-prose {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-page .legal-prose p {
  margin: 0 0 14px;
}

.legal-page .legal-prose p:last-child {
  margin-bottom: 0;
}

.legal-page .legal-prose strong {
  color: var(--text);
  font-weight: 500;
}

.legal-page .legal-prose em {
  font-style: italic;
  color: var(--accent-bright);
}

.legal-page .legal-prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
  list-style: none;
}

.legal-page .legal-prose li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 4px;
}

.legal-page .legal-prose li::before {
  content: '—';
  position: absolute;
  left: -20px;
  color: var(--accent-bright);
  opacity: 0.6;
}

.legal-page .legal-prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84em;
  background: var(--surface);
  color: var(--accent-bright);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.legal-page .legal-prose a {
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(165, 180, 252, 0.3);
  transition: border-color 0.25s, color 0.25s;
}

.legal-page .legal-prose a:hover {
  border-bottom-color: var(--accent-bright);
}

@media (max-width: 820px) {
  .legal-page .legal-callout {
    margin-left: clamp(16px, 4vw, 24px);
    margin-right: clamp(16px, 4vw, 24px);
  }
}

/* ─────────────────────────────────────────────────────────────
   Blog / Field Notes
   An editorial journal layout. Reuses the .manishelf-page
   ambient, topbar and wrap foundations (body carries both
   classes) and layers on magazine-style typography, numbered
   index marks, and a monospace tag filter with corner brackets.
   ───────────────────────────────────────────────────────────── */

/* Active nav indicator in the topbar */
.blog-page .topbar-nav a.nav-active {
  color: var(--text);
}
.blog-page .topbar-nav a.nav-active::after {
  transform: scaleX(1);
  background: var(--accent-bright);
}

/* ── Masthead ────────────────────────────────────────────── */

.blog-page .blog-masthead {
  position: relative;
  padding: clamp(20px, 3vh, 32px) 0 clamp(14px, 2vh, 22px);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.blog-page .mast-index {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: clamp(22px, 3.5vh, 34px);
}

.blog-page .mast-num {
  color: var(--accent-bright);
}

.blog-page .mast-line {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0.55;
}

.blog-page .mast-issue {
  font-variant-numeric: tabular-nums;
}

.blog-page .mast-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--text);
  font-variation-settings: "opsz" 144;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 16px);
  flex-wrap: wrap;
}

.blog-page .mast-title .mt-1 {
  font-weight: 500;
}

.blog-page .mast-title .mt-sep {
  color: var(--accent-bright);
  font-weight: 300;
  font-size: 0.8em;
  transform: translateY(-0.15em);
  display: inline-block;
}

.blog-page .mast-title .mt-2 {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
  font-variation-settings: "opsz" 144;
}

.blog-page .mast-lead {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-variation-settings: "opsz" 72;
}

.blog-page .mast-lead em {
  font-style: italic;
  color: var(--text);
}

.blog-page .mast-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(14px, 2vh, 20px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.blog-page .mast-meta .meta-label {
  color: var(--text-dim);
}

.blog-page .mast-meta .meta-value {
  color: var(--text-muted);
  margin-left: 6px;
}

.blog-page .mast-meta .meta-dot {
  color: var(--accent);
  opacity: 0.5;
}

/* ── Filter rail ─────────────────────────────────────────── */

/* Two-column layout: feed on left, filter sidebar on right */
.blog-page .blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(12px, 2vh, 20px) clamp(16px, 3vw, 24px) clamp(40px, 6vh, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.blog-page .blog-filter {
  position: sticky;
  top: clamp(20px, 3vh, 36px);
  align-self: start;
}

.blog-page .filter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(129, 140, 248, 0.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.blog-page .filter-rule-num {
  color: var(--accent-bright);
  font-weight: 500;
}

.blog-page .filter-rule-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.35), transparent);
}

.blog-page .filter-clear {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: inherit;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.blog-page .filter-clear:hover {
  color: var(--accent-bright);
}

.blog-page .filter-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.blog-page .tag-chip {
  appearance: none;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(129, 140, 248, 0.15);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 6px 10px 6px 14px;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: left;
  transition: color 0.2s ease, border-left-color 0.2s ease, background 0.2s ease, padding-left 0.25s ease;
}

.blog-page .tag-chip .chip-bracket {
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(2px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.blog-page .tag-chip .chip-bracket-l {
  transform: translateX(-2px);
}

.blog-page .tag-chip:hover {
  color: var(--text);
  border-left-color: rgba(165, 180, 252, 0.5);
  padding-left: 18px;
}

.blog-page .tag-chip:hover .chip-bracket {
  opacity: 0.6;
  transform: translateX(0);
  color: var(--accent-bright);
}

.blog-page .tag-chip.is-active {
  color: var(--accent-bright);
  border-left-color: var(--accent-bright);
  border-left-width: 2px;
  padding-left: 17px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.1), transparent);
}

.blog-page .tag-chip.is-active .chip-bracket {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-bright);
}

.blog-page .filter-status {
  margin: 16px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.blog-page .filter-status em {
  color: var(--accent-bright);
  font-style: normal;
}

/* ── Feed ─────────────────────────────────────────────────── */

.blog-page .blog-feed {
  min-width: 0;
  padding: 0;
}

.blog-page .entry.is-hidden {
  display: none;
}

.blog-page .entry-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-page .entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.blog-page .entry-number {
  color: var(--accent-bright);
}

.blog-page .entry-dot {
  color: var(--accent);
  opacity: 0.45;
}

.blog-page .entry-date,
.blog-page .entry-read {
  font-variant-numeric: tabular-nums;
}

/* Featured (first) entry */
.blog-page .entry-featured {
  position: relative;
  border-top: 1px solid rgba(129, 140, 248, 0.2);
  border-bottom: 1px solid rgba(129, 140, 248, 0.12);
  padding: clamp(36px, 5vh, 56px) 0 clamp(36px, 5vh, 56px);
  margin-bottom: clamp(36px, 5vh, 56px);
}

.blog-page .entry-featured .entry-link {
  display: grid;
  gap: clamp(18px, 2.5vh, 26px);
}

.blog-page .entry-featured .entry-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  max-width: 900px;
  transition: color 0.25s ease;
}

.blog-page .entry-featured .entry-title em {
  font-style: normal;
  color: var(--accent-bright);
}

.blog-page .entry-featured .entry-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
  font-variation-settings: "opsz" 48;
}

.blog-page .entry-featured .drop-cap {
  float: left;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 3.2em;
  line-height: 0.85;
  color: var(--accent-bright);
  padding: 0.08em 0.1em 0 0;
  margin-right: 0.05em;
  font-variation-settings: "opsz" 144;
}

.blog-page .entry-featured .entry-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), letter-spacing 0.3s ease;
  display: inline-block;
  padding-top: 6px;
}

.blog-page .entry-featured:hover .entry-title {
  color: var(--accent-bright);
}

.blog-page .entry-featured:hover .entry-cta {
  transform: translateX(6px);
  letter-spacing: 0.22em;
}

/* Tag pills under each entry */
.blog-page .entry-tags {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

.blog-page .entry-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--text-muted);
  position: relative;
  padding-left: 12px;
}

.blog-page .entry-tag::before {
  content: '#';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.7;
}

/* Entry grid (other entries) */
.blog-page .entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(24px, 3vh, 36px) clamp(20px, 3vw, 32px);
}

.blog-page .entry-card {
  position: relative;
  padding: clamp(22px, 3vh, 28px) clamp(20px, 2.5vw, 26px);
  border: 1px solid rgba(129, 140, 248, 0.1);
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    rgba(129, 140, 248, 0.035) 0%,
    rgba(129, 140, 248, 0.01) 100%
  );
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

.blog-page .entry-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--accent-bright);
  border-left: 1px solid var(--accent-bright);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-page .entry-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-bottom: 1px solid var(--accent-bright);
  border-right: 1px solid var(--accent-bright);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-page .entry-card:hover {
  border-color: rgba(165, 180, 252, 0.35);
  transform: translateY(-3px);
  background: linear-gradient(
    180deg,
    rgba(129, 140, 248, 0.08) 0%,
    rgba(129, 140, 248, 0.02) 100%
  );
}

.blog-page .entry-card:hover::before,
.blog-page .entry-card:hover::after {
  opacity: 1;
}

.blog-page .entry-card .entry-link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.blog-page .entry-card .entry-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
  transition: color 0.25s ease;
}

.blog-page .entry-card:hover .entry-title {
  color: var(--accent-bright);
}

.blog-page .entry-card .entry-title em {
  font-style: normal;
  color: var(--accent-bright);
}

.blog-page .entry-card .entry-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  flex: 1 1 auto;
}

.blog-page .entry-card .entry-tags {
  margin-top: auto;
}

/* Empty state */
.blog-page .blog-empty {
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding: clamp(60px, 10vh, 100px) 0;
  font-variation-settings: "opsz" 72;
}

.blog-page .blog-empty em {
  color: var(--text);
  font-style: italic;
}

/* Footer */
.blog-page .blog-foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(36px, 5vh, 56px) clamp(16px, 3vw, 24px) clamp(28px, 4vh, 40px);
}

.blog-page .foot-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.25), transparent);
  margin-bottom: clamp(20px, 3vh, 28px);
}

.blog-page .foot-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.blog-page .foot-mark {
  color: var(--text-muted);
}

.blog-page .foot-sep {
  color: var(--accent);
  opacity: 0.4;
}

.blog-page .foot-item {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-page a.foot-item:hover {
  color: var(--accent-bright);
}

/* Mobile adjustments */
@media (max-width: 720px) {
  .blog-page .mast-title {
    gap: 8px;
  }

  .blog-page .mast-title .mt-sep {
    display: none;
  }

  .blog-page .mast-meta {
    gap: 8px;
    font-size: 0.56rem;
  }

  .blog-page .mast-meta .meta-dot {
    display: none;
  }

  .blog-page .entry-featured {
    padding: clamp(28px, 4vh, 40px) 0;
  }

  .blog-page .entry-featured .drop-cap {
    font-size: 2.6em;
  }

  .blog-page .entry-grid {
    grid-template-columns: 1fr;
  }

  .blog-page .blog-layout {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vh, 40px);
  }

  .blog-page .blog-filter {
    position: static;
    order: -1;
  }

  .blog-page .filter-tags {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .blog-page .tag-chip {
    border-left: 1px solid rgba(129, 140, 248, 0.18);
    padding: 6px 10px 6px 12px;
  }

  .blog-page .tag-chip:hover,
  .blog-page .tag-chip.is-active {
    padding-left: 12px;
  }

  .blog-page .filter-tags {
    gap: 8px 6px;
  }

  .blog-page .tag-chip {
    font-size: 0.66rem;
    padding: 7px 10px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Blog / Individual article (.blog-post)
   Used by posts rendered via Eleventy's post.njk layout.
   Long-form reading column, editorial prose.
   ───────────────────────────────────────────────────────────── */

.blog-post .post-article {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 56px) clamp(16px, 3vw, 24px) clamp(56px, 8vh, 96px);
}

.blog-post .post-header {
  margin-bottom: clamp(32px, 5vh, 56px);
  padding-bottom: clamp(22px, 3vh, 34px);
  border-bottom: 1px solid rgba(129, 140, 248, 0.12);
}

.blog-post .post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: clamp(18px, 2.5vh, 24px);
}

.blog-post .post-dot {
  color: var(--accent);
  opacity: 0.45;
}

.blog-post .post-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  margin: 0 0 clamp(16px, 2.5vh, 24px);
}

.blog-post .post-title em {
  font-style: normal;
  color: var(--accent-bright);
}

.blog-post .post-standfirst {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 1.75vw, 1.48rem);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  font-variation-settings: "opsz" 72;
}

/* Prose — applies to the Markdown-rendered body */
.blog-post .post-body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.55vw, 1.38rem);
  line-height: 1.75;
  color: var(--text);
  font-variation-settings: "opsz" 48;
}

.blog-post .post-body p {
  margin: 0 0 1.3em;
}

.blog-post .post-body p:first-of-type::first-letter {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 3.4em;
  line-height: 0.85;
  float: left;
  padding: 0.08em 0.12em 0 0;
  color: var(--accent-bright);
  font-variation-settings: "opsz" 144;
}

.blog-post .post-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: clamp(40px, 5vh, 56px) 0 clamp(14px, 2vh, 20px);
  font-variation-settings: "opsz" 72;
}

.blog-post .post-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.25;
  color: var(--text);
  margin: clamp(28px, 4vh, 40px) 0 clamp(10px, 1.5vh, 14px);
  font-variation-settings: "opsz" 72;
}

.blog-post .post-body em {
  font-style: italic;
  color: var(--accent-bright);
}

.blog-post .post-body strong {
  font-weight: 500;
  color: var(--text);
}

.blog-post .post-body a {
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(165, 180, 252, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.blog-post .post-body a:hover {
  color: var(--text);
  border-bottom-color: var(--accent-bright);
}

.blog-post .post-body blockquote {
  border-left: 2px solid var(--accent-bright);
  margin: clamp(24px, 3.5vh, 32px) 0;
  padding: 4px 0 4px clamp(18px, 2.5vw, 26px);
  font-style: italic;
  color: var(--text-muted);
}

.blog-post .post-body ul,
.blog-post .post-body ol {
  margin: 0 0 1.3em;
  padding-left: 1.5em;
}

.blog-post .post-body li {
  margin-bottom: 0.5em;
}

.blog-post .post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: clamp(28px, 4vh, 40px) auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

.blog-post .post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: rgba(129, 140, 248, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent-bright);
}

.blog-post .post-body hr {
  border: none;
  border-top: 1px solid rgba(129, 140, 248, 0.2);
  margin: clamp(36px, 5vh, 56px) auto;
  width: 40%;
}

/* Footer of the post */
.blog-post .post-foot {
  margin-top: clamp(48px, 7vh, 72px);
  padding-top: clamp(22px, 3vh, 34px);
  border-top: 1px solid rgba(129, 140, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-post .post-tags {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}

.blog-post .post-back {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), letter-spacing 0.3s ease;
  display: inline-block;
}

.blog-post .post-back:hover {
  transform: translateX(-4px);
  letter-spacing: 0.22em;
}

/* Drop cap for the featured entry's excerpt (CSS-only, no DOM split) */
.blog-page .entry-excerpt-drop::first-letter {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 3.2em;
  line-height: 0.85;
  color: var(--accent-bright);
  float: left;
  padding: 0.08em 0.12em 0 0;
  font-variation-settings: "opsz" 144;
}

/* ─────────────────────────────────────────────────────────────
   Blog / Inline floated images for articles
   Use <figure class="post-image post-image-left"> in markdown
   to wrap an image + caption and let body text flow around it.
   Floats collapse to full-width on mobile for readability.
   ───────────────────────────────────────────────────────────── */

.blog-post .post-body figure.post-image {
  margin: 0 0 1.2em;
}

.blog-post .post-body figure.post-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

.blog-post .post-body figure.post-image figcaption {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.68rem, 0.78vw, 0.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-muted);
  margin-top: 10px;
  padding-left: 2px;
}

.blog-post .post-body figure.post-image figcaption em {
  font-style: italic;
  color: var(--accent-bright);
}

.blog-post .post-body figure.post-image-left {
  float: left;
  clear: left;
  max-width: 42%;
  margin: 0.3em 1.8em 1em 0;
  shape-outside: margin-box;
}

.blog-post .post-body figure.post-image-right {
  float: right;
  clear: right;
  max-width: 42%;
  margin: 0.3em 0 1em 1.8em;
  shape-outside: margin-box;
}

.blog-post .post-body figure.post-image-full {
  margin: clamp(28px, 4vh, 40px) 0;
}

/* Ensure paragraphs that follow don't wrap awkwardly under small floats */
.blog-post .post-body figure.post-image-left + *,
.blog-post .post-body figure.post-image-right + * {
  margin-top: 0;
}

/* Collapse floats on mobile - full-width images read better on small screens */
@media (max-width: 720px) {
  .blog-post .post-body figure.post-image-left,
  .blog-post .post-body figure.post-image-right {
    float: none;
    max-width: 100%;
    margin: clamp(22px, 3vh, 32px) 0;
  }
}

/* ─────────────────────────────────────────────────────────────
   Blog / Article endorse (like) button
   Post count is fetched/updated via /api/likes/[slug] (Cloudflare
   Pages Function + KV). Button reflects "already liked" state
   via localStorage so the same browser doesn't spam the counter.
   ───────────────────────────────────────────────────────────── */

.blog-post .post-endorse {
  margin: clamp(40px, 5vh, 60px) auto clamp(20px, 3vh, 28px);
  padding: clamp(24px, 3vh, 32px) 0 clamp(20px, 3vh, 28px);
  border-top: 1px solid rgba(129, 140, 248, 0.12);
  text-align: center;
}

.blog-post .post-endorse .endorse-ask {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0 0 clamp(14px, 2vh, 20px);
  font-variation-settings: "opsz" 72;
}

.blog-post .post-endorse .endorse-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-dim);
  margin: clamp(14px, 2vh, 20px) 0 0;
  letter-spacing: 0.01em;
}

.blog-post .post-endorse .like-btn {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 999px;
  padding: 10px 20px 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-post .post-endorse .like-btn:hover:not(:disabled) {
  border-color: rgba(165, 180, 252, 0.55);
  color: var(--text);
  background: rgba(129, 140, 248, 0.06);
  transform: translateY(-1px);
}

.blog-post .post-endorse .like-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

.blog-post .post-endorse .like-btn .like-heart {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 0.3s ease, stroke 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-post .post-endorse .like-btn.is-liked {
  border-color: rgba(249, 115, 140, 0.55);
  color: #f9738c;
  background: rgba(249, 115, 140, 0.08);
  cursor: default;
}

.blog-post .post-endorse .like-btn.is-liked .like-heart {
  fill: #f9738c;
  stroke: #f9738c;
  transform: scale(1.1);
}

.blog-post .post-endorse .like-btn.is-pulsing .like-heart {
  animation: likePulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes likePulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  100% { transform: scale(1.1); }
}

.blog-post .post-endorse .like-btn:disabled {
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .blog-post .post-endorse .like-btn,
  .blog-post .post-endorse .like-btn .like-heart {
    transition: none;
    animation: none;
  }
}
