/* emde landing — Warm Editorial (light) / Sleek Pro (dark) */

:root {
  --bg: #faf4ec;
  --bg-raised: rgba(255, 255, 255, 0.55);
  --bg-header: rgba(250, 244, 236, 0.78);
  --text: #2b2118;
  --text-soft: #6b5d4f;
  --accent: #e2662a;
  --accent-soft: #f0955c;
  --accent-tint: rgba(226, 102, 42, 0.12);
  --spotlight: rgba(226, 102, 42, 0.07);
  --ring: rgba(43, 33, 24, 0.08);
  --glow: rgba(226, 102, 42, 0.14);
  --shadow: 0 14px 34px -18px rgba(43, 33, 24, 0.35);
  --font-display: "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.dark {
  --bg: #121118;
  --bg-raised: #1b1a23;
  --bg-header: rgba(18, 17, 24, 0.72);
  --text: #ecebf2;
  --text-soft: #a09eb0;
  --accent: #7b6cf6;
  --accent-soft: #9d92f8;
  --accent-tint: rgba(123, 108, 246, 0.16);
  --spotlight: rgba(123, 108, 246, 0.09);
  --ring: rgba(236, 235, 242, 0.09);
  --glow: rgba(123, 108, 246, 0.18);
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: clip;
}

/* theme-conditional content */
.show-when-light { display: block; }
.show-when-dark { display: none; }
.dark .show-when-light { display: none; }
.dark .show-when-dark { display: block; }
span.show-when-light, .dark span.show-when-dark { display: inline; }

.container { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background: linear-gradient(to bottom, var(--glow), transparent);
  pointer-events: none;
  z-index: -1;
  animation: glow-breathe 9s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.muted { color: var(--text-soft); }
.small { font-size: 0.875rem; }
.accent { color: var(--accent); }

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* anchors don't hide under the sticky header */
section[id] { scroll-margin-top: 88px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: var(--bg-header);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--ring);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-icon {
  width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.brand:hover .brand-icon { transform: rotate(-6deg) scale(1.05); }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: right 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.chip {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--ring);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.chip:hover { background: var(--accent-tint); }
.chip:active { transform: scale(0.94); }

/* hamburger (mobile only) */
.menu-btn { display: none; width: 40px; padding: 0; }
.menu-bars { display: flex; flex-direction: column; gap: 5px; width: 16px; margin: 0 auto; }
.menu-bars span {
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease;
}
.menu-btn[aria-expanded="true"] .menu-bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* mobile slide-down menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 20px;
  background: var(--bg-header);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--ring);
}
.mobile-menu.open { display: flex; animation: menu-in 0.25s ease both; }
@keyframes menu-in {
  from { opacity: 0; translate: 0 -8px; }
  to { opacity: 1; translate: 0 0; }
}
.mobile-menu a:not(.btn) {
  padding: 13px 4px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--ring);
}
.mobile-menu a.btn { margin-top: 14px; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--accent-soft), var(--accent));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 18px 38px -16px rgba(0, 0, 0, 0.45); }
.btn:hover::before { left: 130%; }
.btn:active { transform: scale(0.98); }
.btn-small { padding: 10px 20px; font-size: 0.875rem; }
.btn-big { padding: 16px 32px; font-size: 1.1rem; }
.apple { width: 20px; height: 20px; }
.btn-small .apple { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-top: 56px; padding-bottom: 64px; }

/* staggered entrance */
@keyframes rise-in {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

.hero-icon,
.hero-title,
.hero-sub,
.hero-cta,
.hero-shot {
  animation: rise-in 0.7s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.hero-icon { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.15s; }
.hero-sub { animation-delay: 0.28s; }
.hero-cta { animation-delay: 0.4s; }
.hero-shot { animation-delay: 0.55s; }

.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.35);
  margin-bottom: 32px;
  transition: transform 0.35s ease;
}
.hero-icon:hover { transform: translateY(-4px) rotate(-3deg); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto;
}

/* gentle shimmer on the accent line */
.hero-title .accent {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-soft) 45%, var(--accent) 90%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.hero-sub {
  max-width: 620px;
  margin: 24px auto 0;
  font-size: 1.15rem;
  color: var(--text-soft);
}

.hero-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.hero-shot { position: relative; max-width: 980px; margin: 56px auto 0; will-change: transform; }
.hero-shot::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse at top, var(--glow), transparent 70%);
  filter: blur(24px);
  z-index: -1;
}

.shot {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ring);
}

.zoomable { cursor: zoom-in; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.zoomable:hover { transform: scale(1.008); }

/* ---------- sections ---------- */
.section { padding-top: 40px; padding-bottom: 56px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.section-sub { text-align: center; max-width: 620px; margin: 16px auto 0; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.65s ease, translate 0.65s cubic-bezier(0.22, 0.9, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 20px; margin-top: 48px; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.two-col { grid-template-columns: 1fr 1fr; margin-top: 0; }

.card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--ring);
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.35s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--ring));
}
.card.pad { padding: 32px; }

/* mouse spotlight (set via --mx/--my in app.js) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--spotlight), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

.feature { padding: 24px; }
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 1.25rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  transition: transform 0.3s ease;
}
.feature:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature h3 { margin-top: 16px; font-size: 1.05rem; }
.feature p { margin-top: 8px; font-size: 0.9rem; color: var(--text-soft); }

.card-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }

.pills { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.pill {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}
.pill:hover { transform: translateY(-2px); }

/* ---------- showcase (alternating rows) ---------- */
.showcase-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 44px;
  align-items: center;
  margin-top: 64px;
}
.showcase-row:nth-of-type(even) { grid-template-columns: 3fr 2fr; }
.showcase-row:nth-of-type(even) .showcase-text { order: 2; }
.showcase-text .card-title { margin-bottom: 8px; }
.showcase-row .shot { border-radius: 14px; }

@media (max-width: 820px) {
  .showcase-row,
  .showcase-row:nth-of-type(even) { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
  .showcase-row:nth-of-type(even) .showcase-text { order: 0; }
  .showcase-text { text-align: center; }
}

/* ---------- screenshots ---------- */
.shots-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}
.shots-grid figcaption { text-align: center; margin-top: 12px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vmin;
  background: rgba(10, 8, 6, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1);
}
.lightbox.open img { transform: scale(1); }

/* ---------- CTA ---------- */
.cta-card {
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--accent-tint), transparent 45%, var(--accent-tint)),
    var(--bg-raised);
}
.cta-card:hover { transform: none; }
.cta-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 24px; }
.cta-sub { max-width: 520px; margin: 16px auto 32px; }
.cta-card .small { margin-top: 16px; }

/* ---------- playground ---------- */
.playground {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  margin-top: 48px;
  overflow: hidden;
  min-height: 380px;
}
.playground:hover { transform: none; }
.playground-pane { display: flex; flex-direction: column; min-width: 0; }
.pane-label {
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 1px solid var(--ring);
}
.playground-divider { background: var(--ring); }
#pg-input {
  flex: 1;
  width: 100%;
  padding: 16px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}
.pg-preview {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  max-height: 420px;
  font-size: 0.92rem;
}
.pg-preview h1, .pg-preview h2, .pg-preview h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0.7em 0 0.35em;
}
.pg-preview h1:first-child, .pg-preview h2:first-child { margin-top: 0; }
.pg-preview h1 { font-size: 1.55rem; }
.pg-preview h2 { font-size: 1.25rem; }
.pg-preview h3 { font-size: 1.05rem; }
.pg-preview p { margin: 0.5em 0; }
.pg-preview ul, .pg-preview ol { margin: 0.5em 0 0.5em 1.4em; }
.pg-preview li { margin: 0.2em 0; }
.pg-preview li.task { list-style: none; margin-left: -1.2em; }
.pg-preview code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  background: var(--accent-tint);
  color: var(--accent);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
.pg-preview pre {
  background: var(--accent-tint);
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  margin: 0.6em 0;
}
.pg-preview pre code { background: none; padding: 0; color: var(--text); }
.pg-preview blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin: 0.6em 0;
  color: var(--text-soft);
}
.pg-preview hr { border: none; border-top: 1px solid var(--ring); margin: 1em 0; }
.pg-preview a { color: var(--accent); }
.playground-note { text-align: center; margin-top: 16px; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 8px 0 24px;
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.stat-label { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--text-soft); }

/* ---------- kbd strip ---------- */
.kbd-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.kbd-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ring);
  background: var(--bg-raised);
  font-size: 0.82rem;
  color: var(--text-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.kbd-chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 30%, var(--ring)); }
.kbd-chip kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ---------- theme compare slider ---------- */
.compare {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ring);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.4);
  --pos: 50%;
  touch-action: none;
}
.compare-img { display: block; width: 100%; user-select: none; -webkit-user-select: none; }
.compare-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}
.compare-knob {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

/* ---------- comparison table ---------- */
.table-wrap { margin-top: 48px; overflow-x: auto; padding: 8px; }
.table-wrap:hover { transform: none; }
.compare-tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare-tbl th, .compare-tbl td { padding: 14px 18px; text-align: left; }
.compare-tbl thead th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--ring);
}
.compare-tbl tbody tr + tr td { border-top: 1px solid var(--ring); }
.compare-tbl td:first-child { color: var(--text-soft); }
.compare-tbl .tbl-emde {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-tint);
}
.compare-tbl thead .tbl-emde { border-radius: 12px 12px 0 0; }
.compare-tbl tbody tr:last-child .tbl-emde { border-radius: 0 0 12px 12px; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item { padding: 0; }
.faq-item:hover { transform: none; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 500;
  transition: rotate 0.25s ease;
}
.faq-item[open] .faq-icon { rotate: 45deg; }
.faq-item p { padding: 0 22px 18px; }
.faq-answer { padding: 0 22px 18px; }
.faq-install-steps {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  line-height: 1.55;
}
.faq-install-steps li + li { margin-top: 8px; }
.faq-answer p { margin: 0; padding: 0; }

/* ---------- roadmap ---------- */
.roadmap {
  max-width: 640px;
  margin: 48px auto 0;
  list-style: none;
  position: relative;
}
.roadmap::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--ring);
}
.roadmap-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 0 0 28px 0;
}
.roadmap-item:last-child { padding-bottom: 0; }
.roadmap-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
}
.roadmap-item.done .roadmap-dot { background: var(--accent); }
.roadmap-item.progress .roadmap-dot {
  background: var(--accent-tint);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-tint); }
  50% { box-shadow: 0 0 0 7px var(--accent-tint); }
}
.roadmap-item strong { display: block; }
.roadmap-item span.muted { display: block; font-size: 0.9rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--ring);
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
  text-align: center;
  margin-top: 40px;
}
.footer-privacy { display: block; margin-top: 6px; opacity: 0.75; }

/* ---------- mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg-header);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--ring);
  translate: 0 110%;
  transition: translate 0.3s ease;
}
.mobile-cta.show { translate: 0 0; }
.mobile-cta .btn { width: 100%; justify-content: center; padding: 14px 20px; }

/* ---------- privacy note ---------- */
.privacy-note {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--ring);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: rise-in 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  animation-delay: 1.2s;
}
.privacy-note[hidden] { display: none !important; }
.privacy-note p { font-size: 0.85rem; color: var(--text-soft); flex: 1; }
.privacy-note .btn { flex-shrink: 0; }

/* ---------- install hint (link to FAQ) ---------- */
.install-hint {
  max-width: 100%;
  margin: 0;
  text-align: center;
  line-height: 1.55;
}
.install-hint a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-cta .install-hint {
  max-width: 36rem;
}
.cta-card .install-hint {
  margin-top: 16px;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; align-items: center; justify-content: center; }
  .two-col { grid-template-columns: 1fr; }
  .shots-grid { grid-template-columns: 1fr; }
  .section { padding-top: 28px; padding-bottom: 40px; }
  .hero { padding-top: 36px; }
}
@media (max-width: 820px) {
  .playground { grid-template-columns: 1fr; min-height: 0; }
  .playground-divider { height: 1px; }
  #pg-input { min-height: 220px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hide-mobile { display: none; }
  .hero-icon { width: 88px; height: 88px; }
  .btn-big { width: 100%; max-width: 340px; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .cta-card { padding: 44px 20px; }
  .compare-tbl th, .compare-tbl td { padding: 11px 12px; font-size: 0.85rem; }
  .privacy-note { flex-direction: column; align-items: stretch; text-align: center; }
  .mobile-cta { display: block; }
  body.has-mobile-cta { padding-bottom: 84px; }
}

/* typing cursor for hero accent */
.typing::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 3px;
  vertical-align: -0.08em;
  background: var(--accent);
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; translate: 0 0; }
  .hero-shot { transform: none !important; }
}
