/* Minimal, neutral baseline (no color accents). */

:root {
  color-scheme: light;
  --page-max: 1120px;
  --text: #111;
  --muted: #5c6370;
  --border: #e6e6e6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-border: rgba(15, 22, 38, 0.12);
  --surface-shadow: 0 18px 46px rgba(17, 24, 39, 0.16);
  --feed-bg: #f4f6fb;
  --feed-border: rgba(15, 22, 38, 0.12);
  --feed-shadow: 0 26px 70px rgba(17, 24, 39, 0.18);
  --card-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html {
    overflow-x: hidden;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 500px at 50% 0%, #f3f6ff 0%, #ffffff 55%);
  color: var(--text);
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

.topbar-inner {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  max-width: var(--page-max);
  margin: 0 auto;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 650;
}

.topbar-back:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar-back:focus-visible,
.topbar-home:focus-visible {
  outline: 3px solid rgba(47, 129, 255, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.topbar-home {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.topbar-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(90deg, #2f81ff 0%, #8b5cf6 100%);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.14);
  transition: transform 140ms ease, filter 140ms ease;
}

.topbar-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.topbar-cta:active {
  transform: translateY(0);
}

.topbar-cta:focus-visible {
  outline: 3px solid rgba(47, 129, 255, 0.35);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .topbar-inner {
    height: auto;
    padding: 10px 12px;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .topbar-cta {
    margin-left: 0;
    flex: 1 1 100%;
    justify-content: center;
  }
}

.logo {
  height: 40px;
  width: auto;
  display: block;
}

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 18px;
}

.page {
  padding: 0 0 72px;
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 18px 0;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
}

.footer-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero {
  padding: 56px 0 28px;
}

.hero-title {
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-highlight {
  display: inline-block;
  background: linear-gradient(90deg, #2f81ff 0%, #8b5cf6 45%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(47, 129, 255, 0.12);
}

.hero-subtitle {
  margin: 16px auto 0;
  max-width: 72ch;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
}

.demo-section {
  padding: 22px 0 0;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

/* --- Social feed shell --- */
.social-shell {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: opacity 220ms ease;
}

.social-shell.is-resetting {
  opacity: 0.82;
}

.social-stage {
  position: relative;
  padding: 0;

  /* Demo feed sizing */
  --demo-height: 700px;
  --avatar-size: 62px;
  --name-size: 18px;
  --time-size: 16px;
  --post-size: 18px;
  --comment-size: 17px;
  --button-size: 16px;
  --meta-gap: 14px;
  --feed-radius: 22px;
}

@media (max-width: 860px) {
  .social-stage {
    padding-bottom: 0;
  }
}

.feed-pane {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.feed-viewport {
  height: var(--demo-height);
  overflow: hidden;
  position: relative;
  background: transparent;
}

/* Fade the feed into white at top/bottom edges. */
.feed-viewport::before,
.feed-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 2;
}

.feed-viewport::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.feed-viewport::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.feed-track {
  transform: translate3d(0, 0, 0);
  will-change: transform;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 12px 18px;
}

.post {
  margin: 0 0 12px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(15, 22, 38, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
}

.post--target {
  /* Match the base post styling (targeting is handled on the comment). */
  background: transparent;
}

.post-header {
  display: flex;
  align-items: center;
  gap: var(--meta-gap);
}

.avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  background-color: #e5e7eb;
  background-image: url("../assets/avatar1.jpeg");
  background-size: cover;
  background-position: center;
}

.avatar-alt {
  background-image: url("../assets/avatar2.jpeg");
}

.avatar-warm {
  background-image: url("../assets/avatar3.jpeg");
}

.avatar-cool {
  background-image: url("../assets/avatar2.jpeg");
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.meta-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.meta-top > * {
  min-width: 0;
}

.handle {
  font-size: calc(var(--time-size) - 2px);
  color: rgba(17, 24, 39, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-sub {
  font-size: calc(var(--time-size) - 3px);
  color: rgba(17, 24, 39, 0.56);
}

.name {
  font-size: var(--name-size);
  font-weight: 650;
  color: #121826;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time {
  font-size: var(--time-size);
  color: rgba(17, 24, 39, 0.56);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dot {
  color: rgba(17, 24, 39, 0.42);
}

.post-menu {
  margin-left: auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(15, 22, 38, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: rgba(17, 24, 39, 0.62);
  cursor: default;
  flex: 0 0 auto;
}

.post-menu svg {
  width: 18px;
  height: 18px;
}

.post-text {
  margin: 10px 0 0;
  font-size: var(--post-size);
  line-height: 1.5;
  color: #1f2937;
}

.post-media {
  margin-top: 10px;
}

.post-photo {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 22, 38, 0.1);
  background: rgba(17, 24, 39, 0.04);
}

.media-placeholder {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 22, 38, 0.1);
  background:
    radial-gradient(800px 220px at 10% 0%, rgba(47, 129, 255, 0.16), transparent 60%),
    radial-gradient(700px 240px at 85% 15%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(700px 240px at 60% 90%, rgba(34, 197, 94, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.02));
}

.media-placeholder--photo {
  aspect-ratio: 16 / 9;
}

.media-placeholder--link {
  aspect-ratio: 16 / 6;
}

.post-stats {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(17, 24, 39, 0.58);
}

.comments {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 22, 38, 0.08);
  position: relative;
}

.comments::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 10px;
  left: 22px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(15, 22, 38, 0.0),
    rgba(15, 22, 38, 0.1),
    rgba(15, 22, 38, 0.0)
  );
  pointer-events: none;
}

.comment {
  margin-top: 0;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 22, 38, 0.1);
  position: relative;
  isolation: isolate;
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  margin-left: 10px;
}

.comment.is-responding {
  /* Glow highlight without layout shift. */
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.6),
    0 0 0 7px rgba(47, 129, 255, 0.26),
    0 18px 34px rgba(17, 24, 39, 0.14);
}

.comment.is-responding .comment-actions .reply-btn {
  border-color: rgba(47, 129, 255, 0.35);
}

.comment-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--comment-size);
  line-height: 1.45;
  color: rgba(17, 24, 39, 0.9);
}

.comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  flex: 0 0 auto;
  margin-top: 1px;
  border: 1px solid rgba(15, 22, 38, 0.12);
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.08);
  background-color: rgba(17, 24, 39, 0.04);
  background-size: cover;
  background-position: center;
  outline: 3px solid rgba(244, 246, 251, 0.9);
}

.comment-avatar--1 {
  background-image: url("../assets/avatar1.jpeg");
}

.comment-avatar--2 {
  background-image: url("../assets/avatar2.jpeg");
}

.comment-avatar--3 {
  background-image: url("../assets/avatar3.jpeg");
}

.comment-avatar--you {
  background-image: url("../assets/avatar1.jpeg");
}

.comment-content {
  min-width: 0;
}

.comment-author {
  font-weight: 700;
  margin-right: 6px;
  color: rgba(17, 24, 39, 0.92);
}

.comment-text {
  color: rgba(17, 24, 39, 0.8);
}

.comment-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.reply-btn {
  border: 1px solid rgba(15, 22, 38, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 24, 39, 0.74);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: default;
  transform: translateZ(0);
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.reply-btn.is-demo-hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(47, 129, 255, 0.28);
  color: rgba(17, 24, 39, 0.86);
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.1);
}

.reply-btn.is-pressed {
  transform: scale(0.98);
  background: rgba(17, 24, 39, 0.06);
  border-color: rgba(15, 22, 38, 0.18);
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.12);
}

.reply-bubble {
  display: none;
  margin-top: 10px;
  margin-left: 14px;
  max-width: calc(100% - 14px);
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(15, 22, 38, 0.12);
  position: relative;

  background:
    linear-gradient(90deg, rgba(47, 129, 255, 0.16), rgba(139, 92, 246, 0.14), rgba(34, 197, 94, 0.12)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
  opacity: 0;
  transform: translateY(6px) scale(0.8);
  transform-origin: top left;
  will-change: transform, opacity;
}

.reply-bubble.is-shown {
  display: block;
  animation: reply-pop 420ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes reply-pop {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.8);
  }
  55% {
    opacity: 1;
    transform: translateY(0) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reply-label {
  font-size: var(--comment-size);
  font-weight: 700;
  color: rgba(17, 24, 39, 0.9);
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reply-header .comment-avatar {
  margin-top: 0;
}

.reply-text {
  margin-top: 6px;
  font-size: var(--comment-size);
  line-height: 1.45;
  color: rgba(17, 24, 39, 0.82);
}

.reply-time {
  margin-top: 6px;
  font-size: var(--time-size);
  color: rgba(17, 24, 39, 0.56);
}

/* --- Demo cursor --- */
.demo-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(var(--cursor-x, 0px)), calc(var(--cursor-y, 0px)), 0);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 10;
}

.demo-cursor.is-visible {
  opacity: 1;
}

.demo-step {
  margin: 40px auto 0;
  max-width: min(680px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 22, 38, 0.12);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.18);

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  text-align: center;
}

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

.demo-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  background: linear-gradient(135deg, #2f81ff 0%, #8b5cf6 55%, #22c55e 110%);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
  flex: 0 0 auto;
}

.demo-step-text {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: rgba(17, 24, 39, 0.72);
}

/* (No responsive max-width adjustment needed now that the label sits in the hero.) */

.cursor-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.38),
    0 0 0 4px rgba(124, 92, 255, 0.2);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.demo-cursor.is-clicking .cursor-dot {
  transform: scale(0.82);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.42),
    0 0 0 6px rgba(124, 92, 255, 0.26);
}

/* --- Plugin popup (replicates screenshot vibe) --- */
.plugin-popup {
  position: absolute;
  width: min(360px, calc(100% - 24px));
  left: 14px;
  top: 70px;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  pointer-events: none;
  z-index: 7;

  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 22, 38, 0.12);
  box-shadow: 0 20px 56px rgba(17, 24, 39, 0.18);
  transition:
    opacity 220ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.plugin-popup.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: none; /* this is an autoplay simulation */
}

.plugin-popup.is-docked {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 392px;
  max-width: none;
  height: auto;
  margin: 0;

  /* Drawer behavior (hidden until is-open). */
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 220ms cubic-bezier(0.2, 0.9, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.plugin-popup.is-docked.is-open {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 860px) {
  .plugin-popup.is-docked {
    width: min(392px, calc(100% - 24px));
    right: 12px;
    left: 12px;
    margin: 0 auto;
    top: 12px;
    height: auto;
    max-height: none;
  }
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(15, 22, 38, 0.08);
  background: transparent;
}

.popup-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(17, 24, 39, 0.92);
}

.popup-logo {
  height: 18px;
  width: auto;
  display: block;
}

.popup-close {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(17, 24, 39, 0.56);
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.popup-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.popup-close:hover {
  background: rgba(15, 22, 38, 0.06);
  color: rgba(17, 24, 39, 0.72);
}

.popup-close:focus-visible {
  outline: 3px solid rgba(47, 129, 255, 0.28);
  outline-offset: 2px;
}

.popup-body {
  padding: 12px 12px 14px;
}

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

.popup-field {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.popup-label {
  font-size: 11px;
  color: rgba(17, 24, 39, 0.56);
  margin-top: 10px;
  margin-bottom: 6px;
}

.popup-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.popup-slider-head .popup-label {
  margin-bottom: 0;
}

.popup-slider-value {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgba(17, 24, 39, 0.62);
}

.popup-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 129, 255, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%);
  outline: none;
}

.popup-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 22, 38, 0.14);
  box-shadow:
    0 14px 28px rgba(17, 24, 39, 0.16),
    0 0 0 4px rgba(47, 129, 255, 0.12);
  cursor: pointer;
}

.popup-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 22, 38, 0.14);
  box-shadow:
    0 14px 28px rgba(17, 24, 39, 0.16),
    0 0 0 4px rgba(47, 129, 255, 0.12);
  cursor: pointer;
}

.popup-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 129, 255, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%);
}

.popup-slider:focus-visible {
  outline: 3px solid rgba(47, 129, 255, 0.28);
  outline-offset: 4px;
}

.popup-chip {
  display: inline-flex;
  font-size: 12px;
  color: rgba(17, 24, 39, 0.88);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 22, 38, 0.12);
  background: rgba(15, 22, 38, 0.04);
}

.popup-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.popup-switch-option {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(17, 24, 39, 0.76);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.popup-switch-option:hover {
  background: rgba(15, 22, 38, 0.06);
  color: rgba(17, 24, 39, 0.92);
}

.popup-switch-option.is-demo-hover {
  background: rgba(15, 22, 38, 0.06);
  color: rgba(17, 24, 39, 0.92);
}

.popup-switch-option.is-selected {
  background: rgba(47, 129, 255, 0.14);
  color: rgba(29, 78, 216, 0.95);
}

.popup-switch-option:focus-visible {
  outline: 3px solid rgba(47, 129, 255, 0.28);
  outline-offset: 2px;
}

.popup-toggles {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: none;
  background: rgba(15, 22, 38, 0.035);
}

.toggle-label {
  font-size: 12px;
  line-height: 1.25;
  color: rgba(17, 24, 39, 0.78);
}

.toggle {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 22, 38, 0.12);
  position: relative;
  flex: 0 0 auto;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.toggle.is-on {
  background: rgba(47, 129, 255, 0.7);
}

.toggle.is-on::after {
  transform: translate(18px, -50%);
}

.popup-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.popup-btn {
  flex: 1 1 auto;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(17, 24, 39, 0.92);
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(17, 24, 39, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.popup-btn-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  opacity: 0.95;
}

.popup-btn-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.popup-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(17, 24, 39, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  filter: saturate(1.02);
}

.popup-btn.is-demo-hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(17, 24, 39, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  filter: saturate(1.02);
}

.popup-btn:active {
  transform: translateY(0);
  box-shadow:
    0 10px 22px rgba(17, 24, 39, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.popup-btn:focus-visible {
  outline: 3px solid rgba(47, 129, 255, 0.28);
  outline-offset: 2px;
}

.popup-btn--primary {
  background: linear-gradient(90deg, #2f81ff 0%, #8b5cf6 100%);
  color: #ffffff;
  border-radius: 999px;
  min-height: 46px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 15px;
}

.popup-btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: suggestion-spin 900ms linear infinite;
  flex: 0 0 auto;
}

.popup-btn-spinner[aria-hidden="true"] {
  display: none;
}

.popup-btn--primary:hover,
.popup-btn--primary.is-demo-hover {
  filter: brightness(1.06) saturate(1.06);
  box-shadow:
    0 16px 34px rgba(17, 24, 39, 0.14),
    0 0 0 3px rgba(47, 129, 255, 0.14),
    0 0 28px rgba(139, 92, 246, 0.22);
}

.popup-btn--primary.is-loading .popup-btn-icon {
  display: none;
}

.popup-btn--danger {
  background: rgba(239, 68, 68, 0.08);
  color: rgba(185, 28, 28, 0.98);
  box-shadow:
    0 10px 22px rgba(17, 24, 39, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.popup-btn.is-pressed {
  transform: translateY(0) scale(0.985);
}

.popup-suggestions {
  margin-top: 12px;
}

.popup-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.popup-subtitle {
  font-size: 12px;
  color: rgba(17, 24, 39, 0.6);
}

.suggestion-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(15, 22, 38, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 10px;
}

.suggestion-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  border-radius: 12px;
  outline: none;
  width: 100%;
}

.suggestion-card.is-loading .suggestion-content {
  pointer-events: none;
}

.suggestion-card.is-ready {
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.suggestion-card.is-ready:hover {
  background: rgba(47, 129, 255, 0.06);
  border-color: rgba(47, 129, 255, 0.28);
  box-shadow:
    0 16px 34px rgba(17, 24, 39, 0.12),
    0 0 0 3px rgba(47, 129, 255, 0.12);
}

.suggestion-card.is-ready.is-demo-hover {
  background: rgba(47, 129, 255, 0.06);
  border-color: rgba(47, 129, 255, 0.28);
  box-shadow:
    0 16px 34px rgba(17, 24, 39, 0.12),
    0 0 0 3px rgba(47, 129, 255, 0.12);
}

.suggestion-card.is-ready .suggestion-content:focus-visible {
  outline: 3px solid rgba(47, 129, 255, 0.28);
  outline-offset: 2px;
}

.suggestion-add-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(17, 24, 39, 0.55);
  background: rgba(15, 22, 38, 0.05);
  flex: 0 0 auto;
  align-self: center;
}

.suggestion-add-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.suggestion-card.is-ready:hover .suggestion-add-icon {
  color: rgba(29, 78, 216, 0.9);
  background: rgba(47, 129, 255, 0.12);
}

.suggestion-card.is-ready.is-demo-hover .suggestion-add-icon {
  color: rgba(29, 78, 216, 0.9);
  background: rgba(47, 129, 255, 0.12);
}

.suggestion-card.is-pressed .suggestion-content {
  transform: scale(0.99);
}

.suggestion-text {
  font-size: 16.5px;
  line-height: 1.45;
  color: #000;
  min-height: 78px;
  white-space: pre-wrap;
}

.suggestion-loading {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: rgba(15, 22, 38, 0.04);
  border: 1px solid rgba(15, 22, 38, 0.1);
}

.suggestion-loading[aria-hidden="true"] {
  display: none;
}

.suggestion-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(17, 24, 39, 0.18);
  border-top-color: rgba(47, 129, 255, 0.8);
  animation: suggestion-spin 900ms linear infinite;
}

.suggestion-loading-label {
  font-size: 12px;
  color: rgba(17, 24, 39, 0.62);
}

@keyframes suggestion-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Right-side copy --- */
.demo-copy {
  padding: 10px 4px;
}

.demo-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.demo-steps {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.demo-steps li {
  margin: 8px 0;
}

.demo-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* --- Browsers section --- */
.browsers {
  padding: 82px 0 40px;
}

.browsers .container {
  max-width: 800px;
}

.browsers-title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.browsers-free {
  font-weight: 900;
  color: #22c55e;
}

.browser-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.browser-card {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 22, 38, 0.12);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.browser-icon {
  width: 44px;
  height: 44px;
  display: block;
}

.browser-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.browser-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.browser-cta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 750;
  background: linear-gradient(90deg, #2f81ff 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.browser-card--cta {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) padding-box,
    linear-gradient(90deg, rgba(47, 129, 255, 0.6), rgba(139, 92, 246, 0.6)) border-box;
}

.browser-card--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
  filter: saturate(1.02);
}

.browser-card--cta:hover .browser-icon {
  transform: scale(1.04);
}

.browser-icon {
  transition: transform 160ms ease;
}

.browser-card--cta:active {
  transform: translateY(0);
}

.browser-card--cta:focus-visible {
  outline: 3px solid rgba(47, 129, 255, 0.28);
  outline-offset: 4px;
}

.browser-card--disabled {
  cursor: not-allowed;
  border: 1px solid rgba(15, 22, 38, 0.10);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
  filter: grayscale(1) saturate(0.2);
  opacity: 0.72;
  transform: none;
}

.browser-card--disabled .browser-cta {
  margin-top: 6px;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #6b7280;
}

.browser-card--disabled:focus-visible {
  outline: 3px solid rgba(15, 22, 38, 0.18);
  outline-offset: 4px;
}

/* --- Benefits section --- */
.benefits {
  padding: 42px 0 10px;
}

.benefits .container {
  max-width: 800px;
}

.benefits-title {
  margin: 0;
  margin-bottom: 40px;
  text-align: center;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.benefit-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 22, 38, 0.12);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.benefit-row.is-reversed .benefit-media {
  order: 2;
}

.benefit-row.is-reversed .benefit-copy {
  order: 1;
}

@media (max-width: 860px) {
  .benefit-row {
    grid-template-columns: 1fr;
  }

  /* Mobile: always stack image first, copy second (even for reversed rows). */
  .benefit-row .benefit-media {
    order: 1;
  }
  .benefit-row .benefit-copy {
    order: 2;
  }

  /* Override the desktop "reversed" ordering with higher specificity. */
  .benefit-row.is-reversed .benefit-media {
    order: 1;
  }
  .benefit-row.is-reversed .benefit-copy {
    order: 2;
  }
}

.benefit-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-illustration {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}

.benefit-copy {
  padding: 4px 6px;
}

.benefit-heading {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.benefit-text {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Reduced motion / static fallback. */
@media (prefers-reduced-motion: reduce) {
  .feed-track {
    transition: none !important;
  }
  .demo-cursor {
    display: none;
  }
}
