/* ReCollect Now – app color theme */
:root {
  --purple: #AD2BC9;
  --pink: #f3568a;
  --orange: #FFB74D;
  --purple-dark: #9a26b5;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --white: #ffffff;
  --bg: #fafafa;
  --card-bg: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

body > main {
  flex: 1 0 auto;
}

/* Gradient hero / header */
.gradient-bg {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-brand strong {
  font-weight: 700;
}

.brand-now {
  font-weight: 300;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.nav-cta {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  color: var(--white) !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Hero */
.hero {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  color: var(--white);
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 0.75rem;
  flex-wrap: wrap;
}

.hero-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-brand {
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.03em;
}
.hero-brand strong {
  font-weight: 700;
}

.hero-brand .brand-now {
  font-weight: 300;
}

.hero-slogan {
  margin: 0 0 2.25rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.hero h1 {
  margin: 1in 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero p {
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--white);
}

.hero .hero-tagline {
  display: block;
  margin-top: 0.4em;
  font-size: 0.88em;
  font-weight: 400;
  letter-spacing: -0.02em;
  opacity: 0.98;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 600px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
/* Download section – iOS, Android, Extension each in single row */
.download-section {
  padding: 2.2rem 0 5rem;
  background: linear-gradient(180deg, rgba(186, 104, 200, 0.06) 0%, transparent 50%);
}

.download-heading {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  padding-bottom: 0;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6f6f75;
  width: auto;
}

.download-heading-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  max-width: 20px;
  max-height: 20px;
  border-radius: 4px;
  object-fit: contain;
  flex: 0 0 20px;
  display: block;
}

#download-app .download-heading .download-heading-icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

.download-heading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-caption {
  margin: 0 0 3.4rem;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: #9a9aa3;
  width: auto;
  margin-left: 8px;
}

.download-groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.download-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  padding: 0 2.5rem;
  margin: 0 0.5rem;
}

.download-separator {
  width: 1px;
  align-self: stretch;
  min-height: 120px;
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.download-store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  height: 52px;
  width: 180px;
  min-width: 180px;
}

.download-store-link--mobile {
  width: 170px;
  height: 49px;
  min-width: 170px;
}

.download-store-link img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.download-store-link:hover {
  transform: translateY(-2px);
}

.download-qr-wrap {
  width: 160px;
  padding: 10px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.download-qr-label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.download-qr-code {
  display: block;
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  border-radius: 6px;
  object-fit: contain;
}

.download-group--extension .download-store-link {
  height: auto;
  width: auto;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.download-group--extension {
  gap: 0.7rem;
  align-items: center;
  margin-top: 88px;
}

.download-group--extension .download-store-link:hover {
  box-shadow: none;
}

.download-ext-badge-img {
  width: 180px;
  height: 45px;
  display: block;
  object-fit: contain;
}

.download-ext-badge-img--chrome {
  width: 166px;
  height: 41px;
}

.download-group--extension .download-store-link img.download-ext-badge-img--chrome {
  width: 166px;
  height: 41px;
}

.download-group--extension .download-store-link.download-ext-chrome {
  border: 1px solid rgba(120, 120, 120, 0.45);
  border-radius: 6px;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .download-groups {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .download-separator {
    width: 80%;
    max-width: 200px;
    height: 1px;
    min-height: 1px;
    background: rgba(0, 0, 0, 0.12);
    margin: 1rem 0;
  }
  .download-group {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }
  .download-group:not(:last-child) {
    padding-bottom: 2rem;
  }
}

/* Preview page – App demo */
.preview-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, rgba(186, 104, 200, 0.06) 0%, transparent 50%);
}

.preview-heading {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--purple);
}

.preview-lead {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

.preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 360px;
  margin: 0 auto;
}

.preview-cta {
  text-align: center;
  margin: 2.5rem 0 0;
}

.preview-cta-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(186, 104, 200, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preview-cta-link:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(186, 104, 200, 0.45);
}

/* How it works – visual story (graphic depictions) */
.story-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(186, 104, 200, 0.04) 50%, transparent 100%);
}

.story-heading {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--purple);
}

.story-part {
  margin-bottom: 3.5rem;
}

.story-part:last-child {
  margin-bottom: 0;
}

.story-part--in-features {
  margin-top: 0;
  margin-bottom: 0;
}

/* Save, Organize, Search – full-width row in Why ReCollect Now */
.story-save-organize-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
  width: 100%;
}

/* Help in app iframe: no header, use full width for content */
.help-in-embed .container,
.help-in-embed .container--wide {
  max-width: none;
  width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.help-in-embed .page-content--wide {
  max-width: none;
  width: 100%;
}

.help-in-embed .page {
  padding: 0.5rem 0.5rem 2rem;
}

.help-in-embed .story-save-organize-row {
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 2rem;
}

.help-in-embed .story-save-organize-row .story-part {
  padding: 1rem;
}

.help-in-embed .story-save-organize-row .story-diagram {
  min-width: 95px;
  padding: 0.75rem 1rem;
}

.help-in-embed .story-save-organize-row .story-flow {
  gap: 0.6rem 1rem;
}

.help-in-embed .page-header--top {
  margin-top: 0.5rem;
}

.story-save-organize-row .story-part {
  min-width: 0;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 1.25rem;
  box-sizing: border-box;
}

.story-save-organize-row .story-organize {
  max-width: none;
  width: 100%;
  margin: 0;
}

.story-save-organize-row .story-organize .story-organize-diagram {
  margin: 0;
}

.story-save-organize-row .story-organize-diagram {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.story-save-organize-row .story-search {
  max-width: none;
  width: 100%;
  margin: 0;
}

.story-save-organize-row .story-search-diagram {
  width: 100%;
  box-sizing: border-box;
}

/* Row layout – use full width, larger graphics */
.story-save-organize-row .story-part-title {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
}

.story-save-organize-row .story-flow-caption {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: left;
}

/* First container (Share from anywhere): center-align contents */
.story-save-organize-row .story-part:first-child .story-part-title,
.story-save-organize-row .story-part:first-child .story-flow-caption {
  text-align: center;
}

.story-save-organize-row .story-part:first-child .story-flow {
  justify-content: center;
}

/* Second container (Organize your collection): center-align contents */
.story-save-organize-row .story-part:nth-child(2) .story-part-title,
.story-save-organize-row .story-part:nth-child(2) .story-organize-caption {
  text-align: center;
}

.story-save-organize-row .story-part:nth-child(2) .story-organize-categories,
.story-save-organize-row .story-part:nth-child(2) .story-organize-cards-grid,
.story-save-organize-row .story-part:nth-child(2) .story-organize-tags {
  justify-content: center;
}

/* Third container (Search by meaning): center-align title and caption */
.story-save-organize-row .story-part:nth-child(3) .story-part-title,
.story-save-organize-row .story-part:nth-child(3) .story-search-caption {
  text-align: center;
}

.story-save-organize-row .story-flow {
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.5rem 0.25rem 0.5rem;
  scrollbar-width: none;
}

.story-save-organize-row .story-flow::-webkit-scrollbar {
  display: none;
}

.story-save-organize-row .story-flow-item {
  flex-shrink: 0;
}

.story-save-organize-row .story-flow-arrow {
  flex-shrink: 0;
}

.story-save-organize-row .story-flow--row3 {
  margin-bottom: 1rem;
}

.story-save-organize-row .story-diagram {
  padding: 0.65rem 0.85rem;
  width: 95px;
  min-width: 95px;
  max-width: 95px;
  box-sizing: border-box;
}

.story-save-organize-row .story-diagram-icon {
  font-size: 1.35rem;
}

.story-save-organize-row .story-diagram-label {
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.25;
}

.story-save-organize-row .story-diagram img {
  width: 28px;
  height: 28px;
}

.story-save-organize-row .story-organize-diagram {
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
}

.story-save-organize-row .story-organize-categories {
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.story-save-organize-row .story-organize-cards-grid {
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.story-save-organize-row .story-organize-tags {
  gap: 0.5rem;
}

.story-save-organize-row .story-cat {
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
}

.story-save-organize-row .story-tag {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.story-organize-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
  margin: -0.5rem 0 1.25rem;
}

.story-search-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
  margin: -0.5rem 0 1.25rem;
}

.story-save-organize-row .story-search-diagram {
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.story-save-organize-row .story-search-bar {
  height: 38px;
  padding: 0 1rem;
  margin-bottom: 0.75rem;
  border-radius: 9999px;
}

.story-save-organize-row .story-search-placeholder {
  font-size: 0.9rem;
}

.story-save-organize-row .story-search-results-h {
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.story-save-organize-row .story-search-grid {
  gap: 0.45rem;
}

.story-save-organize-row .story-search-card-h .story-search-card-title {
  font-size: 0.85rem;
}

.story-save-organize-row .story-search-card-h .story-search-card-meta {
  font-size: 0.75rem;
}

.story-save-organize-row .story-search-desc {
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .story-save-organize-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
  }
  .story-save-organize-row .story-part {
    width: 100%;
    max-width: 100%;
  }
}

.story-part-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Save flow diagrams */
.story-flow-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  text-align: center;
}

.story-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
}

.story-flow--row3 {
  margin-bottom: 1.5rem;
}

.story-flow--row3:last-of-type {
  margin-bottom: 0;
}

.story-flow-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.story-flow-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  opacity: 0.6;
}

.story-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 90px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-diagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.story-diagram-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.story-diagram-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.story-diagram img {
  border-radius: 8px;
}

.story-diagram--yt { border-color: #e53935; }
.story-diagram--yt .story-diagram-icon { color: #e53935; }
.story-diagram--share { border-color: #1976d2; }
.story-diagram--browser { border-color: #2e7d32; }
.story-diagram--ext { border-color: #f9a825; }
.story-diagram--add { border-color: var(--purple); }
.story-diagram--paste { border-color: #546e7a; }
.story-diagram--note { border-color: #7b1fa2; }
.story-diagram--photo { border-color: #00838f; }
.story-diagram--app {
  border-color: var(--purple);
  background: #fff;
}

/* Organize diagram */
.story-organize {
  width: fit-content;
  margin: 0 auto;
}

.story-organize-diagram {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

.story-organize-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.story-organize-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.story-organize-cards-grid .story-organize-card {
  height: 100%;
}

.story-organize-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border-radius: 10px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-height: 0;
}

.story-organize-card .story-search-card-thumb {
  flex: 0 0 36px;
  height: 36px;
  min-height: 36px;
  width: 100%;
  aspect-ratio: auto;
}

.story-organize-card-desc {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.5rem;
  background: #fff;
}

.story-organize-card .story-search-card-title,
.story-organize-card .story-search-card-meta {
  font-size: 0.7rem;
  padding: 0;
  line-height: 1.25;
  display: block;
}

.story-organize-card .story-search-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-organize-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.story-cat {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.story-cat--video { background: rgba(229, 57, 53, 0.12); color: #c62828; }
.story-cat--web { background: rgba(46, 125, 50, 0.12); color: #2e7d32; }
.story-cat--social { background: rgba(25, 118, 210, 0.12); color: #1565c0; }
.story-cat--notes { background: rgba(245, 124, 0, 0.12); color: #e65100; }

.story-tag {
  padding: 0.35rem 0.75rem;
  background: #f5f5f5;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.story-tag--primary {
  background: #fff;
  color: #6b7280;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.story-organize-box {
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 0.85rem;
}


.story-organize-diagram + .story-organize-box {
  margin-top: 1.25rem;
}

.story-organize-box + .story-organize-box {
  margin-top: 0.75rem;
}

.story-organize-box-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.story-organize-box-title-desc {
  font-weight: 400;
  font-size: 0.82rem;
}

.story-organize-box-desc {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.story-organize-diagram--tagging {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.story-tagging-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.story-note-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #fefce8;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.story-note-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.story-note-body {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.story-organize-desc {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Search diagram */
.story-search {
  max-width: 400px;
  margin: 0 auto;
}

.story-search-diagram {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
}

.story-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  background: #fff;
  border-radius: 9999px;
  padding: 0 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.story-search-icon {
  font-size: 1.1rem;
}

.story-search-placeholder {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.story-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.story-search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 90px);
  gap: 0.5rem;
}

.story-search-grid .story-search-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.story-search-grid .story-search-card .story-search-card-thumb {
  flex: 0 0 48px;
  height: 48px;
  min-height: 48px;
  width: 100%;
  aspect-ratio: auto;
}

.story-search-grid .story-search-card .story-search-card-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 32px;
  padding: 0.35rem 0.5rem;
}

.story-search-grid .story-search-card .story-search-card-title {
  padding: 0;
  font-size: 0.7rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-search-grid .story-search-card .story-search-card-meta {
  padding: 0;
  font-size: 0.6rem;
}

.story-search-results-h {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.story-search-card-h {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: #fff;
  border-radius: 10px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.story-search-card-h .story-search-card-thumb {
  width: 64px;
  min-width: 64px;
  height: 48px;
  min-height: 48px;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.story-search-card-h .story-search-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.story-search-card-h .story-search-card-title {
  padding: 0;
}

.story-search-card-h .story-search-card-meta {
  padding: 0;
}

.story-search-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border-radius: 10px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.story-search-card-thumb {
  aspect-ratio: 16 / 10;
  min-height: 48px;
}

.story-search-card-thumb--1 { background: linear-gradient(135deg, #fef2f2 0%, #fce7f3 100%); }
.story-search-card-thumb--2 { background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%); }
.story-search-card-thumb--3 { background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%); }
.story-search-card-thumb--4 { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }
.story-search-card-thumb--5 { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); }
.story-search-card-thumb--6 { background: linear-gradient(135deg, #f0fdfa 0%, #e2e8f0 100%); }

.story-search-card-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.4rem 0.5rem 0.15rem;
  line-height: 1.2;
}

.story-search-card-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0 0.5rem 0.4rem;
}

.story-search-card--match {
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.4);
  border: 0.5px solid rgba(139, 92, 246, 0.3);
}

@media (max-width: 500px) {
  .story-search-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 90px);
  }
  .story-organize-cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }
}

.story-search-desc {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 600px) {
  .story-save-organize-row .story-flow {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }
  .story-save-organize-row .story-flow-item {
    flex-direction: row;
    flex-shrink: 0;
  }
  .story-save-organize-row .story-flow-arrow {
    transform: none;
    flex-shrink: 0;
  }
  .story-save-organize-row .story-part-title,
  .story-save-organize-row .story-flow-caption,
  .story-save-organize-row .story-organize-caption,
  .story-save-organize-row .story-search-caption {
    text-align: center;
  }
}

/* Demo section – See how it works (same concept as app empty home animation) */
.demo-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, rgba(186, 104, 200, 0.06) 0%, transparent 50%);
}

.demo-heading,
.demo-download-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--purple);
  position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.demo-heading {
  text-align: center;
  width: 100%;
}

.demo-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  background:
    linear-gradient(to right,
      transparent 0,
      transparent calc(33.333% - 0.5px),
      rgba(0, 0, 0, 0.12) calc(33.333% - 0.5px),
      rgba(0, 0, 0, 0.12) calc(33.333% + 0.5px),
      transparent calc(33.333% + 0.5px),
      transparent calc(66.666% - 0.5px),
      rgba(0, 0, 0, 0.12) calc(66.666% - 0.5px),
      rgba(0, 0, 0, 0.12) calc(66.666% + 0.5px),
      transparent calc(66.666% + 0.5px),
      transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.demo-left {
  flex: 0 1 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 4rem 0 0 0;
  position: relative;
}

.demo-separator {
  display: none;
}

.demo-right {
  display: contents;
}

.demo-download-title {
  text-align: center;
  margin-bottom: 0.25rem;
}

.demo-store-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  height: 100%;
  width: 100%;
}
.demo-store-groups-wrap {
  display: contents;
}

.demo-separator--internal {
  display: none;
}

.demo-store-groups {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.demo-store-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  min-width: 0;
}

/* Grid layout: allow Download App QR blocks to wrap cleanly */
.demo-layout .demo-store-section:first-of-type .demo-store-groups {
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.demo-layout .demo-store-section:first-of-type .demo-store-group {
  width: min(200px, 100%);
}

/* Same-height button row so QR cards align in a row */
.demo-store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  height: 52px;
  width: 200px;
  align-self: center;
}
  
  .demo-store-link img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.demo-store-link:hover {
  transform: translateY(-2px);
  }
  
  .chrome-store-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    padding: 0 16px;
      border-radius: 8px;
    text-decoration: none;
    width: 100%;
      height: 100%;
    box-sizing: border-box;
    border: 1px solid #333;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
  }
  
  .chrome-store-badge-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  
  .chrome-store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
  }
  
  .chrome-badge-small {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    font-weight: 500;
  opacity: 0.9;
}

.chrome-badge-large {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.demo-store-group .demo-qr-wrap {
  width: 160px;
  padding: 10px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  box-sizing: border-box;
}

.demo-qr-label {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.demo-qr-code {
  display: block;
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  border-radius: 6px;
  object-fit: contain;
}

/* Removed duplicate chrome-store-badge styles */

.chrome-store-badge:hover {
  background: #1a1a1a;
  transform: scale(1.02);
}

.chrome-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

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

.chrome-subtitle {
  font-size: 10px;
  font-weight: 400;
}

.chrome-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.demo-ext-badge-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* Chrome extension badge: button style with border like App Store / Google Play */
.demo-ext-badge-btn {
  height: auto;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.demo-ext-badge-btn:hover {
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.demo-ext-badge-btn .demo-ext-badge-img {
  height: 52px;
  display: block;
  margin: 0;
}

.demo-ext-icon-full {
  width: 152px;
  height: 152px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  margin-left: 0;
  align-self: center;
}

/* Keep store badges aligned, but push the extension icon box lower */
.demo-store-section:last-of-type .demo-ext-icon-full {
  margin-top: 2.25rem;
}

@media (max-width: 600px) {
  .demo-ext-icon-full {
    margin-left: 0;
    margin-top: 1.5rem;
    width: 140px;
    height: 140px;
  }
}
.demo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 360px;
  width: 100%;
}

.demo-device {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  max-height: 600px;
  border-radius: 24px;
  border: 4px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  position: relative;
}

.demo-screen {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Touch indicator – moves from nearby to target, then taps */
.demo-touch-indicator {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(180, 180, 180, 0.75);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.demo-touch-indicator.visible {
  opacity: 1;
}

/* Move from nearby → target, then tap */
.demo-touch-indicator.visible.demo-touch-animate {
  animation: demo-touch-move-tap 1s ease-out forwards;
}

@keyframes demo-touch-move-tap {
  0% {
    transform: translate(-50%, -50%) translate(-38px, -32px) scale(1);
  }
  45% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
  }
  55% {
    transform: translate(-50%, -50%) translate(0, 0) scale(0.88);
  }
  70% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
  }
}

.demo-device[data-phase="yt"] .demo-yt,
.demo-device[data-phase="share-yt"] .demo-share[data-phase="share-yt"],
.demo-device[data-phase="app"] .demo-app,
.demo-device[data-phase="home"] .demo-home,
.demo-device[data-phase="browser"] .demo-browser,
.demo-device[data-phase="share-web"] .demo-browser,
.demo-device[data-phase="share-web"] .demo-share[data-phase="share-web"],
.demo-device[data-phase="detail"] .demo-detail {
  opacity: 1;
  visibility: visible;
}

/* Phone home screen (app launcher) */
.demo-home {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
}

.demo-home-status {
  padding: 8px 16px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
}

.demo-home-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 12px;
  padding: 24px 20px 80px;
  align-content: start;
}

.demo-home-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #333;
}

.demo-home-icon img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.demo-home-yt {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.demo-home-icon > span:first-child {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.demo-home-icon > span:first-child:not(.demo-home-yt) {
  background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
}

/* YouTube screen mockup */
.demo-yt {
  display: flex;
  flex-direction: column;
}

.demo-yt-video {
  flex: 0 0 38%;
  background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-yt-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

.demo-yt-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -8px 0 0 -4px;
  border: 8px solid transparent;
  border-left-color: #1a1a1a;
  border-width: 8px 0 8px 14px;
}

.demo-yt-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.demo-yt-progress-fill {
  display: block;
  width: 28%;
  height: 100%;
  background: #e53935;
}

.demo-yt-duration {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  padding: 2px 5px;
  border-radius: 2px;
}

.demo-yt-content {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.demo-yt-title {
  height: 12px;
  width: 92%;
  background: #424242;
  border-radius: 2px;
  margin-bottom: 8px;
}

.demo-yt-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-yt-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #616161;
  flex-shrink: 0;
}

.demo-yt-channel {
  height: 10px;
  width: 80px;
  background: #757575;
  border-radius: 2px;
}

.demo-yt-actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 0;
}

.demo-yt-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #606060;
}

.demo-yt-btn-icon {
  font-size: 14px;
}

.demo-yt-btn-share {
  color: #0d0d0d;
  font-weight: 600;
}

.demo-yt-suggested {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-yt-sugg-item {
  display: flex;
  gap: 8px;
  align-items: center;
}

.demo-yt-sugg-thumb {
  width: 42%;
  max-width: 120px;
  aspect-ratio: 16 / 9;
  background: #e0e0e0;
  border-radius: 4px;
  flex-shrink: 0;
}

.demo-yt-sugg-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-yt-sugg-line {
  height: 8px;
  width: 100%;
  background: #bdbdbd;
  border-radius: 2px;
}

.demo-yt-sugg-sub {
  height: 6px;
  width: 60%;
  background: #e0e0e0;
  border-radius: 2px;
}

.demo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #616161;
}

.demo-icon-share {
  color: var(--text);
  font-weight: bold;
}

/* Share sheet */
.demo-share {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.demo-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.demo-device[data-phase="share-yt"] .demo-share[data-phase="share-yt"] .demo-share-backdrop {
  opacity: 1;
}

.demo-device[data-phase="share-web"] .demo-share[data-phase="share-web"] {
  background: #fff;
}

.demo-device[data-phase="share-web"] .demo-share[data-phase="share-web"] .demo-share-backdrop {
  opacity: 0;
  pointer-events: none;
}

.demo-device[data-phase="share-yt"] .demo-share[data-phase="share-yt"] {
  background: #fff;
}

.demo-device[data-phase="share-yt"] .demo-share[data-phase="share-yt"] .demo-share-backdrop {
  opacity: 0;
  pointer-events: none;
}

/* Full-screen web-page graphic behind the share sheet (header + content blocks/lines) */
.demo-share-bg-page {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  z-index: 0;
  overflow: hidden;
}

.demo-share-bg-header {
  flex-shrink: 0;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-share-bg-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d0d0d0 0%, #e0e0e0 100%);
  flex-shrink: 0;
}

.demo-share-bg-nav {
  height: 8px;
  background: #c8c8c8;
  border-radius: 2px;
  flex: 1;
  max-width: 48px;
}

.demo-share-bg-nav-short {
  max-width: 36px;
  flex: 0 1 auto;
}

.demo-share-bg-content {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.demo-share-bg-line {
  height: 8px;
  background: #e0e0e0;
  border-radius: 2px;
  display: block;
}

.demo-share-bg-line-short {
  width: 72%;
}

.demo-share-bg-block {
  height: 80px;
  background: linear-gradient(180deg, #ebebeb 0%, #e5e5e5 100%);
  border-radius: 6px;
  margin: 4px 0;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
}

.demo-share-sheet {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.demo-device[data-phase="share-yt"] .demo-share[data-phase="share-yt"] .demo-share-sheet,
.demo-device[data-phase="share-web"] .demo-share[data-phase="share-web"] .demo-share-sheet {
  transform: translateY(0);
}

.demo-share-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.demo-share-apps {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.demo-share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text);
  padding: 8px;
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.demo-share-recollect {
  border: none;
  background: none;
    /* Removed gradient */
    padding: 0;
}

.demo-share-img-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.demo-share-icon {
  font-size: 18px;
  line-height: 1;
}

/* ReCollect app screen – matches mobile app home */
.demo-app {
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 0;
}

.demo-app-header {
  padding: 12px 14px 14px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  flex-shrink: 0;
}

.demo-app-header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-app-logo-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-app-logo-wrap img {
  width: 20px;
  height: 20px;
}

.demo-app-brand {
  flex: 1;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.demo-app-brand strong {
  font-weight: 700;
}

.demo-app-header-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 14px;
  opacity: 0.95;
}

.demo-app-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.demo-app-icon-badge {
  position: relative;
}

.demo-app-icon-badge em {
  position: absolute;
  top: -4px;
  right: -4px;
  font-style: normal;
  font-size: 9px;
  background: #e53935;
  color: #fff;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.demo-app-search {
  margin: 12px 14px 10px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9e9e9e;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.demo-app-search-icon {
  font-size: 14px;
  opacity: 0.8;
}

.demo-app-search-bar-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.demo-app-search-bar {
  height: 12px;
  border-radius: 6px;
  background: #d0d0d0;
  min-width: 60px;
  max-width: 100%;
  transition: width 0.15s ease;
}

.demo-app-search-mic {
  font-size: 14px;
  opacity: 0.7;
}

.demo-app-filters {
  display: flex;
  gap: 8px;
  padding: 0 14px 12px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.demo-app-filters::-webkit-scrollbar {
  display: none;
}

.demo-app-filter {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #f0f0f0;
  color: var(--text-muted);
  white-space: nowrap;
}

.demo-app-filter-active {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  color: var(--white);
}

.demo-app-filter-bar {
  padding: 0;
  width: 36px;
  height: 20px;
  border-radius: 10px;
}

.demo-app-filter-active.demo-app-filter-bar {
  width: 28px;
}

.demo-app-list {
  flex: 1;
  overflow: auto;
  padding: 0 14px 60px;
  min-height: 0;
}

.demo-app-section {
  margin-bottom: 14px;
}

.demo-app-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.demo-app-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-dark);
}

.demo-app-section-viewall {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-dark);
}

.demo-app-section[data-section="web"] .demo-app-section-title,
.demo-app-section[data-section="web"] .demo-app-section-viewall {
  color: #2e7d32;
}

.demo-app-section[data-section="social"] .demo-app-section-title,
.demo-app-section[data-section="social"] .demo-app-section-viewall {
  color: #1976d2;
}

.demo-app-section[data-section="notes"] .demo-app-section-title,
.demo-app-section[data-section="notes"] .demo-app-section-viewall {
  color: #f57c00;
}

/* Gray bar placeholders – no text, graphics only */
.demo-app-bar {
  display: block;
  background: #d8d8d8;
  border-radius: 4px;
}

.demo-app-bar-title {
  width: 48px;
  height: 12px;
}

.demo-app-bar-viewall {
  width: 36px;
  height: 10px;
}

.demo-app-bar-line {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: #d8d8d8;
  margin-bottom: 4px;
}

.demo-app-bar-line-long {
  width: 95%;
}

.demo-app-bar-line-mid {
  width: 75%;
}

.demo-app-bar-line-short {
  width: 45%;
  margin-bottom: 0;
}

.demo-app-card-body .demo-app-bar-line:last-child {
  margin-bottom: 0;
}

.demo-app-card {
  display: flex;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 12px;
  align-items: flex-start;
  background: #fff;
  margin-bottom: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.demo-app-card-thumb {
  width: 72px;
  height: 56px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.demo-app-card-play {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.5);
}

.demo-app-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.demo-app-card-body strong {
  font-size: 12px;
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.demo-app-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-app-card-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.demo-app-tag {
  font-style: normal;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 6px;
}

.demo-app-tag-yt {
  background: #ffebee;
  color: #c62828;
}

.demo-app-tag-ig {
  background: #e3f2fd;
  color: #1565c0;
}

.demo-app-card-body .demo-app-tag:not(.demo-app-tag-yt):not(.demo-app-tag-ig) {
  background: #f5f5f5;
  color: var(--text-muted);
}

.demo-app-card-actions {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.8;
}

.demo-app-fab {
  position: absolute;
  bottom: 72px;
  right: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  color: var(--pink);
  flex-shrink: 0;
}

.demo-app-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  flex-shrink: 0;
}

.demo-app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.demo-app-nav-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #d8d8d8;
}

.demo-app-nav-active .demo-app-nav-icon {
  background: var(--pink);
  opacity: 0.9;
}

.demo-app-nav-bar {
  width: 16px;
  height: 6px;
  border-radius: 3px;
  background: #d8d8d8;
}

.demo-app-nav-active .demo-app-nav-bar {
  background: var(--pink);
  opacity: 0.8;
}

/* Hide sections until their phase (JS will add data-visible) */
.demo-app-section {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.demo-app-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* New shared content card – appears when returning from share */
.demo-app-card-new {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.demo-app-card-new.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Filtered list: dim non-matching sections in step 4 lead-in */
.demo-device[data-phase="app"].demo-app-filtered .demo-app-section:not(.demo-app-section-match) {
  opacity: 0.35;
  transform: translateY(0);
  pointer-events: none;
}

.demo-app-section.demo-app-section-match .demo-app-card {
  background: rgba(186, 104, 200, 0.08);
  border-radius: 8px;
}

/* Content detail screen (step 4) */
.demo-detail {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.demo-detail-header {
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-detail-back {
  color: var(--white);
  font-size: 24px;
  line-height: 1;
}

.demo-detail-bar.demo-detail-title-bar {
  width: 56px;
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
}

.demo-detail-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
  position: relative;
  flex-shrink: 0;
}

.demo-detail-video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -20px 0 0 -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.demo-detail-video::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -6px 0 0 -4px;
  border: 6px solid transparent;
  border-left-color: #1a1a1a;
  border-width: 6px 0 6px 10px;
  z-index: 1;
}

.demo-detail-body {
  flex: 1;
  overflow: auto;
  padding: 14px;
}

.demo-detail-bar {
  display: block;
  background: #d8d8d8;
  border-radius: 4px;
}

.demo-detail-bar-line {
  height: 10px;
  margin-bottom: 8px;
}

.demo-detail-bar-long {
  width: 90%;
}

.demo-detail-bar-mid {
  width: 70%;
}

.demo-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.demo-detail-btn-bar {
  width: 52px;
  height: 24px;
  border-radius: 6px;
  background: #d8d8d8;
}

.demo-detail-btn-bar-short {
  width: 44px;
}

/* Browser / website mockup */
.demo-browser {
  display: flex;
  flex-direction: column;
}

.demo-browser-bar {
  height: 40px;
  padding: 0 10px;
  background: #e8e8e8;
  border-bottom: 1px solid #d0d0d0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.demo-browser-nav {
  font-size: 18px;
  color: #666;
  line-height: 1;
  margin-right: 4px;
}

.demo-browser-lock {
  font-size: 11px;
  opacity: 0.8;
}

.demo-browser-url {
  flex: 1;
  height: 26px;
  line-height: 26px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 11px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-browser-content {
  flex: 1;
  padding: 0;
  overflow: auto;
  min-height: 0;
  background: #fff;
}

.demo-browser-page {
  padding: 14px;
}

/* Web page header representation (nav / title bars) */
.demo-browser-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e8e8;
}

.demo-browser-header-line {
  height: 8px;
  background: #d0d0d0;
  border-radius: 2px;
  display: block;
}

.demo-browser-header-line-short {
  width: 60%;
}

.demo-browser-article {
  margin-bottom: 14px;
}

.demo-browser-title {
  height: 14px;
  width: 85%;
  background: #b0b0b0;
  border-radius: 2px;
  margin-bottom: 10px;
}

.demo-browser-hero {
  height: 72px;
  width: 100%;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px;
  box-sizing: border-box;
}

.demo-browser-hero-line {
  height: 6px;
  width: 100%;
  max-width: 90%;
  background: #e0e0e0;
  border-radius: 2px;
  display: block;
}

.demo-browser-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-browser-line {
  height: 8px;
  width: 100%;
  background: #d8d8d8;
  border-radius: 2px;
}

.demo-browser-line-short {
  width: 75%;
}

.demo-browser-actions {
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.demo-browser-share {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

/* Tutorial text below device */
.demo-tutorial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f5f5f5;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.demo-tutorial-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.demo-tutorial-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Tablet / iPad vertical and below: stack App Preview above Download App to avoid overlap */
@media (max-width: 900px) {
  .demo-section {
    padding: 3rem 0 4rem;
  }
  .demo-heading {
    position: relative;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  .demo-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
  }
  .demo-left {
    width: 100%;
    max-width: 360px;
    align-items: center;
    padding-right: 0;
    padding-top: 2rem;
  }
  .demo-separator {
    width: 80%;
    max-width: 200px;
    min-height: 1px;
    height: 1px;
    margin: 2rem 0;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
    flex: 0 0 auto;
  }
  .demo-separator--internal {
    display: none;
  }
  .demo-section .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .demo-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0 1rem 1rem;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .demo-store-groups-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 0.5rem;
    width: 100%;
  }
  .demo-store-section {
    padding-top: 0;
    width: 100%;
  }
  .demo-download-title {
    position: relative;
    margin-bottom: 0.25rem;
    width: 100%;
  }
  .demo-store-groups {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
  }
  .demo-store-section:first-of-type .demo-store-groups {
    gap: 2rem;
  }
  .demo-store-group {
    flex: 0 0 auto;
    min-width: 0;
    gap: 0.75rem;
  }
  /* Download App: store buttons in a row, then QR codes in a row below */
  .demo-store-section:first-of-type .demo-store-link {
    height: 52px;
    width: 180px;
  }
  .demo-store-section:first-of-type .demo-store-group .demo-qr-wrap {
    width: 160px;
    padding: 10px;
  }
  .demo-store-section:first-of-type .demo-qr-label {
    margin: 0 0 4px;
    font-size: 0.8rem;
  }
  .demo-store-section:first-of-type .demo-qr-code {
    width: 140px;
    height: 140px;
    min-width: 140px;
    min-height: 140px;
  }
  /* Chrome Extension */
  .demo-store-section:last-of-type .demo-store-link {
    width: 100%;
    max-width: 280px;
    min-width: 200px;
    height: 52px;
  }
  .demo-store-section:last-of-type .demo-ext-icon-full {
    width: 118px;
    height: 118px;
  }
  .demo-device {
    max-height: 560px;
  }
}

/* Tablet landscape: keep three columns but compact spacing so all fit (no cut-off) */
@media (min-width: 901px) and (max-width: 1200px) {
  .demo-section .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .demo-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
    padding: 0 0.5rem;
    gap: 1.25rem;
  }
  .demo-left {
    flex: 0 1 300px;
    min-width: 260px;
    padding: 2rem 0 0 0;
  }
  .demo-separator {
    display: none;
  }
  .demo-right {
    display: contents;
  }
  .demo-store-groups-wrap {
    display: contents;
  }
  .demo-store-section {
    width: 100%;
    padding-top: 2rem;
  }
  .demo-separator--internal {
    display: none;
  }
  .demo-store-section {
    padding-top: 2rem;
  }
  .demo-store-groups {
    gap: 1rem;
  }
  .demo-store-group {
    min-width: 0;
  }
  .demo-store-link {
    height: 48px;
    width: 160px;
  }
  .demo-store-group .demo-qr-wrap {
    width: 140px;
    padding: 10px;
  }
  .demo-qr-code {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
  }
  .demo-separator--internal {
    min-height: 320px;
  }
  .demo-device {
    max-height: 480px;
  }
  .demo-download-title {
    font-size: 1.15rem;
  }
  .demo-store-section:last-of-type .demo-store-link {
    max-width: 200px;
  }
  .demo-store-section:last-of-type .demo-ext-icon-full {
    width: 92px;
    height: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-screen,
  .demo-share-sheet,
  .demo-app-section {
    transition-duration: 0.01s;
  }
}

/* Features */
.features {
  padding: 2.5rem 0 6rem;
}

.features h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 3rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--purple);
}

.features h2 .features-title-light {
  font-weight: 400;
}

.features-subtitle {
  margin: -1.25rem auto 3.5rem;
  max-width: 520px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin: 0 0.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(186, 104, 200, 0.15);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg {
  flex-shrink: 0;
}

.feature-icon.share { background: rgba(33, 150, 243, 0.12); color: #1976D2; }
.feature-icon.organize { background: rgba(173, 43, 201, 0.15); color: var(--purple); }
.feature-icon.search { background: linear-gradient(135deg, #5C6BC0 0%, var(--purple) 100%); color: #fff; }
.feature-icon.adfree { background: rgba(0, 150, 136, 0.12); color: #00796B; }
.feature-icon.privacy { background: rgba(76, 175, 80, 0.12); color: #388E3C; }
.feature-icon.cloud { background: rgba(96, 125, 139, 0.15); color: #546E7A; }

.feature-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.feature-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f0f0f0;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  margin-left: 0.35em;
  vertical-align: middle;
}

.feature-card--coming-soon {
  opacity: 0.85;
  pointer-events: none;
}

.feature-card--coming-soon:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.features-separator {
  margin-top: 2.5rem;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

/* CTA */
.cta {
  text-align: center;
  padding: 4.5rem 1.5rem 4rem;
}

.cta p {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(186, 104, 200, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-badge:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(186, 104, 200, 0.45);
}

/* Footer */
.footer {
  padding: 2.5rem 1.5rem;
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Inner pages (Privacy, Terms) */
.page {
  padding: 2rem 1.5rem 4rem;
}

.page--help {
  padding-top: 1rem;
}

.page--center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header--top {
  margin-top: 1rem;
  text-align: left;
}

.page--help .page-header--top {
  margin-top: 0.5rem;
}

.page-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.page-updated,
.help-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.help-tagline {
  font-size: 1rem;
  line-height: 1.5;
}

.page-content {
  max-width: 640px;
  margin: 0 auto;
}

.page-content--wide {
  max-width: 1200px;
  margin: 0 auto;
}
.page-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.page-content h2:first-of-type {
  margin-top: 0;
}

.page-content p,
.page-content ul {
  margin: 0 0 1rem;
}

.page-content ul {
  padding-left: 1.5rem;
}

.page-content a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

/* Plans header enhancements */
.plans-header-centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.75rem !important;
}

.plans-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0.5rem;
  font-weight: 400;
  line-height: 1.5;
}

.plans-sub-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.plans-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(76, 175, 80, 0.12);
  color: #2E7D32;
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(76, 175, 80, 0.25);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.08);
  transition: transform 0.2s ease;
}

.plans-highlight-pill:hover {
  transform: translateY(-1px);
  background: rgba(76, 175, 80, 0.18);
}
/* Plans page – narrower overall area */
.container--plans {
  max-width: 660px;
}

/* Plans page */
.plans-section {
  margin-bottom: 2.5rem;
}
.plans-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.plans-title,
.page-title-gradient {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--purple);
}

.plans-grid {
  display: grid;
  gap: 1rem;
  max-width: 100%;
  margin: 0 auto;
}

.plans-grid-local,
.plans-grid-cloud {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.plans-grid-local .plan-card,
.plans-grid-cloud .plan-card {
  width: 100%;
  max-width: none;
}

.plans-grid-cloud {
  margin-bottom: 0;
}

/* Wide, short card layout: two boxes – details (wide) + price (narrow) */
.container--plans .plan-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: none;
}

.container--plans .plan-card:hover {
  box-shadow: none;
  transform: none;
}

.container--plans .plan-card .plan-card-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 1.25rem;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius) 0 0 var(--radius);
  background: #fff;
}

.container--plans .plan-card .plan-name {
  margin-bottom: 0.15rem;
}

.container--plans .plan-card .plan-desc {
  margin: 0;
  font-size: 0.85rem;
}

.container--plans .plan-card .plan-card-price-block {
  flex-shrink: 0;
  width: 7rem;
  min-width: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.container--plans .plan-card .plan-price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.container--plans .plan-card .plan-period {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}

.container--plans .plan-card-featured .plan-badge {
  top: 50%;
  right: calc(7rem + 1rem);
  transform: translateY(-50%);
}

.container--plans .plan-card-featured .plan-card-text {
  padding-right: 3rem;
}

@media (max-width: 600px) {
  .container--plans .plan-card {
    flex-direction: column;
  }
  .container--plans .plan-card-featured .plan-badge {
    top: 0.75rem;
    right: 0.75rem;
    transform: none;
  }
  .container--plans .plan-card .plan-card-text {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .container--plans .plan-card .plan-card-price-block {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .container--plans .plan-card .plan-period {
    margin: 0;
  }
}

.plan-card {
  background: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  color: #1a1a1a;
}

.plan-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.plan-card--coming-soon {
  pointer-events: none;
  opacity: 0.65;
  filter: grayscale(0.2);
}
.plan-card--coming-soon:hover {
  transform: none;
  box-shadow: var(--shadow);
}
.plan-card-featured {
  /* Same gradient border as other cards */
}

.plan-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  padding: 0.25em 0.5em;
  border-radius: 4px;
}

.plan-badge--coming-soon {
  background: #6c757d;
  color: #fff;
}

.plan-name {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.plan-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.45;
}

.plan-price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
}

.plan-period {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: #666;
}

/* Gradient text inside plan cards: show gradient on white background */
.plan-card .app-gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--purple);
}

.app-gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent !important;
  color: var(--purple);
  display: inline-block;
  font-weight: 800;
}
/* Features page – detailed list with example images */
.features-page-intro {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.features-page-title {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--purple);
}

.features-page-lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.feature-block {
  padding: 2.5rem 0;
}

.feature-block-alt {
  background: rgba(186, 104, 200, 0.04);
}

.feature-block-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.feature-block-single .feature-block-content {
  max-width: 640px;
  margin: 0 auto;
}

/* Support Page */
.support-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 3rem;
}

.faq-section {
  margin-top: 3rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.faq-answer {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Cookie Consent – compact bottom card */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  padding: 0.875rem 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cookie-banner .cookie-text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.cookie-banner .cookie-text a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}

.cookie-banner .cookie-text a:hover {
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  justify-content: center;
}

@media (max-width: 420px) {
  .cookie-banner {
    max-width: calc(100% - 1.5rem);
  }
}

.cookie-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.cookie-btn-primary {
  background: var(--purple);
  color: #fff;
}

.cookie-btn-primary:hover {
  background: var(--purple-dark);
}

.cookie-btn-outline {
  background: transparent;
  color: var(--text);
  border-color: #ddd;
}

.cookie-btn-outline:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* Cookie Settings Modal – compact */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.cookie-modal-dialog {
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  width: 100%;
  max-width: 360px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cookie-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-modal-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
}

.cookie-modal-close:hover {
  color: var(--text);
}

.cookie-modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
}

.cookie-modal-intro {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.cookie-option {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.cookie-option:last-child {
  margin-bottom: 0;
}

.cookie-switch {
  position: relative;
  display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
  }
  
  .cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: .4s;
  }
  
  .cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
  }
  
  input:checked+.cookie-slider {
    background-color: var(--purple);
  }
  
  input:focus+.cookie-slider {
    box-shadow: 0 0 1px var(--purple);
  }
  
  input:checked+.cookie-slider:before {
    transform: translateX(20px);
  }
  
  input:disabled+.cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  .cookie-option-info strong {
    display: block;
    margin: 0 0 0.125rem;
    font-size: 0.875rem;
  }
  
  .cookie-option-info p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.35;
  }
  
  .cookie-modal-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: right;
  }

.feature-block-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--purple), var(--pink), var(--orange));
}

.feature-block-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.feature-block-desc {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-block-img-wrap {
  flex: 0 1 360px;
  min-width: 0;
  max-height: 260px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.feature-block-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  object-position: top center;
}

.feature-block-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 1.5rem;
  text-align: center;
}

.feature-block-placeholder small {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 700px) {
  .feature-block-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .feature-block-alt .feature-block-inner {
    flex-direction: column-reverse;
  }
  .feature-block-img-wrap {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--purple);
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav {
    flex-direction: row;
      flex-wrap: wrap;
      justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem;
    }
    
    .nav-right {
      display: contents;
    }
  .nav-links {
    width: 100%;
      order: 3;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
      margin-top: 1.25rem;
    }
    .nav-cta {
      order: 2;
      padding: 0.25rem 0.75rem;
      font-size: 0.85rem;
    }
    .nav-brand {
    order: 1;
      font-size: 1.25rem;
    }

  .hero {
    padding: 3rem 1rem 4rem;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
/* Hero extension badge */
/* Help & Guide */
.help-section {
  margin-bottom: 3rem;
}

.help-section h2 {
  color: var(--purple);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.help-section h2:first-child {
  margin-top: 0;
}

.help-subhead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.help-features-list {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.help-features-list li {
  margin-bottom: 0.5rem;
}

.help-divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 2.5rem 0;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.help-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--purple);
}

.help-card h3 {
  margin-bottom: 0.75rem;
  color: #333;
}

.help-card p {
  color: #666;
  line-height: 1.6;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.step-num {
  background: var(--purple);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.hero-extension-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.hero-extension-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-extension-badge svg {
  width: 20px;
  height: 20px;
}

.hero-extension-text strong {
  font-weight: 700;
}
