/* ==========================================================================
   Here — Apple Notes Canvas Landing Page
   Full macOS Notes replica. Plain. Simple. Elegant.
   ========================================================================== */

:root {
  --bg-white: #FFFFFF;
  --bg-sidebar: #F2F2F7;
  --bg-toolbar: #F8F8FA;
  --bg-hover: rgba(0, 0, 0, 0.04);

  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #8E8E93;
  --text-quaternary: #AEAEB2;

  --accent: #007AFF;
  --accent-hover: #0071E3;
  --green: #34C759;

  --border: rgba(0, 0, 0, 0.1);
  --border-light: rgba(0, 0, 0, 0.06);

  --shadow-window: 0 24px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --shadow-popup: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  --curve: cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode {
  --bg-white: #1C1C1E;
  --bg-sidebar: #252528;
  --bg-toolbar: #2D2D30;
  --bg-hover: rgba(255, 255, 255, 0.08);

  --text-primary: #F5F5F7;
  --text-secondary: #A1A1A6;
  --text-tertiary: #8E8E93;
  --text-quaternary: #636366;

  --accent: #0A84FF;
  --accent-hover: #409CFF;

  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.06);

  --shadow-window: 0 28px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #141416;
}

body.dark-mode.revealed {
  background: #000000;
}

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

html {
  font-family: var(--font);
  color: var(--text-primary);
  background: #E8E8ED;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  padding-top: 52px;
  background: var(--bg-white);
  color: var(--text-primary);
}

body.dark-mode {
  background: #000000;
}

.mobile-hero {
  display: none;
}

::selection {
  background: rgba(0, 122, 255, 0.25);
  color: var(--text-primary);
}

.user-select-text {
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

/* ==========================================================================
   THE COMPACT NOTES APP WINDOW (Interactive Demo)
   ========================================================================== */

.notes-app {
  width: 100%;
  max-width: 960px;
  height: 530px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
}

body.dark-mode .notes-app {
  background: #1c1c1e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Titlebar */
.notes-titlebar {
  height: 38px;
  min-height: 38px;
  background: var(--bg-toolbar);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
  -webkit-app-region: drag;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 60px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s var(--curve), opacity 0.15s;
}

.dot:hover {
  transform: scale(1.18);
}

.dot-close { background: #FF5F57; }
.dot-minimize { background: #FEBC2E; }
.dot-zoom { background: #28C840; }

.titlebar-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.titlebar-icon {
  flex-shrink: 0;
}

.titlebar-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.1px;
}

.titlebar-spacer {
  width: 60px;
}

/* Toolbar */
.notes-toolbar {
  height: 36px;
  min-height: 36px;
  background: var(--bg-toolbar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  user-select: none;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 2px;
}

.toolbar-btn {
  width: 30px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 5px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.1s, transform 0.15s;
}

.toolbar-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.toolbar-separator {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}

.toolbar-right {
  display: flex;
  align-items: center;
}

.toolbar-search {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-tertiary);
  min-width: 140px;
  cursor: pointer;
  transition: all 0.15s;
}

.toolbar-search:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-secondary);
}

body.dark-mode .toolbar-search:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.banter-nudge {
  animation: banterNudge 0.25s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes banterNudge {
  0% { transform: scale(1); }
  45% { transform: scale(0.88); }
  100% { transform: scale(1); }
}

/* Three-Column Body */
.notes-body {
  flex: 1;
  display: grid;
  grid-template-columns: 180px 250px 1fr;
  min-height: 0;
}

/* Column 1: Sidebar */
.notes-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0;
  overflow-y: auto;
  user-select: none;
}

.sidebar-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  padding: 0 16px;
  margin-bottom: 8px;
}

.sidebar-section {
  flex: 1;
}

.sidebar-group {
  margin-top: 2px;
}

.sidebar-group-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 16px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px 5px 32px;
  font-size: 13px;
  color: var(--text-primary);
  border-radius: 6px;
  margin: 1px 8px;
  cursor: default;
  transition: background 0.1s;
}

.sidebar-item.active {
  background: var(--accent);
  color: #FFFFFF;
}

.sidebar-item.active svg path {
  fill: #FFFFFF;
}

.sidebar-item-label {
  flex: 1;
  font-weight: 500;
}

.sidebar-item-count {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
}

.sidebar-item.dimmed {
  opacity: 0.5;
}

.sidebar-bottom {
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

/* Column 2: Note List */
.notes-list {
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  user-select: none;
}

.note-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.1s, opacity 0.3s var(--curve);
}

.note-item:hover:not(.locked):not(.ambient) {
  background: rgba(0, 0, 0, 0.03);
}

.note-item.active {
  background: var(--accent);
}

.note-item.active .note-item-title,
.note-item.active .note-item-time,
.note-item.active .note-item-preview {
  color: #FFFFFF;
}

.note-item.locked {
  opacity: 0.35;
  cursor: default;
}

.note-item.ambient {
  opacity: 0.3;
  cursor: default;
}

.note-item.completed .note-item-title::after {
  content: " ✓";
  color: var(--green);
  font-size: 11px;
}

.note-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.1px;
}

.note-item-row2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.note-item-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.note-item-preview {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Column 3: Note Content */
.notes-content {
  background: var(--bg-white);
  overflow-y: auto;
  position: relative;
}

.note-panel {
  display: none;
  padding: 24px 40px 60px;
  animation: noteFadeIn 0.2s ease-out forwards;
}

.note-panel.active {
  display: block;
}

@keyframes noteFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.note-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
  margin-bottom: 20px;
}

.note-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.note-body {
  line-height: 1.65;
}

.note-quote {
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.5;
  display: block;
}

.note-body-sub {
  font-size: 15px;
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 16px;
}

.note-link {
  font-size: 16px;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 122, 255, 0.3);
  text-underline-offset: 3px;
  margin-bottom: 4px;
  display: block;
  word-break: break-all;
}

.note-hint {
  font-size: 13px;
  color: #8E8E93;
  font-style: italic;
  margin-top: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  display: inline-block;
  user-select: none;
  transition: color 0.15s ease;
}

.note-hint:hover {
  color: var(--accent);
}

.note-image-wrapper {
  position: relative;
  max-width: 480px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  cursor: pointer;
  border: 2.5px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.15s var(--curve);
  outline: none;
}

.note-image-wrapper:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.note-image-wrapper.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.3), 0 4px 16px rgba(0, 0, 0, 0.12);
}

.image-action-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 30, 34, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 980px;
  padding: 5px 12px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.18s var(--curve);
  z-index: 4;
}

.note-image-wrapper:hover .image-action-pill,
.note-image-wrapper.selected .image-action-pill,
.note-image-wrapper:focus .image-action-pill {
  opacity: 1;
  transform: translateY(0);
}

.image-action-pill:hover {
  background: var(--accent);
  border-color: transparent;
}

.image-copied-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(30, 30, 34, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 980px;
  opacity: 0;
  transform: translateY(-4px) scale(0.95);
  transition: all 0.2s var(--curve);
  pointer-events: none;
  z-index: 5;
}

.image-copied-badge.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.note-image {
  width: 100%;
  display: block;
}

.note-body-hint {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

/* First-Principles Paste Zone (Pure Apple Notes - Zero Cards) */
.note-paste-zone {
  min-height: 120px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.note-paste-zone .pasted-item {
  animation: notePastedIn 0.25s ease-out forwards;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

@keyframes notePastedIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.raw-note-text {
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

.raw-note-sub {
  font-size: 15px;
  color: var(--text-tertiary);
  font-style: italic;
  display: block;
  margin-top: 4px;
}

.raw-note-link {
  margin: 0;
}

.raw-note-link a {
  font-size: 16px;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 122, 255, 0.3);
  text-underline-offset: 3px;
  font-weight: 500;
}

.raw-note-image {
  max-width: 480px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.raw-note-image img {
  width: 100%;
  display: block;
}

/* Blinking cursor */
.note-cursor {
  font-size: 17px;
  font-weight: 300;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  display: inline-block;
  margin-top: 8px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Green check on completed notes */
.note-item.completed:not(.active) .note-item-title {
  color: var(--text-primary);
}

/* ==========================================================================
   POST-REVEAL SECTIONS (Cinematic Staggered Cascade)
   ========================================================================== */

.page-content {
  display: block;
}

.reveal-headline {
  animation: heroCascadeUp 0.8s 0.1s var(--curve) both;
}

.reveal-sub {
  animation: heroCascadeUp 0.8s 0.25s var(--curve) both;
}

.reveal-download {
  animation: heroCascadeUp 0.8s 0.4s var(--curve) both;
}

.haiku-line:nth-child(1) {
  animation: heroCascadeUp 0.7s 0.6s var(--curve) both;
}
.haiku-line:nth-child(2) {
  animation: heroCascadeUp 0.7s 0.75s var(--curve) both;
}
.haiku-line:nth-child(3) {
  animation: heroCascadeUp 0.7s 0.9s var(--curve) both;
}
.haiku-line:nth-child(4) {
  animation: heroCascadeUp 0.7s 1.05s var(--curve) both;
}

.reveal-faq {
  animation: heroCascadeUp 0.8s 1.2s var(--curve) both;
}

@keyframes heroCascadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
.reveal-hero {
  padding: 140px 24px 80px;
  text-align: center;
}

.reveal-container {
  max-width: 680px;
  margin: 0 auto;
}

.reveal-container-narrow {
  max-width: 560px;
  margin: 0 auto;
}

.reveal-headline {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.06;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.reveal-sub {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: -0.2px;
}

.reveal-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1D1D1F;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 980px;
  text-decoration: none;
  transition: all 0.2s var(--curve);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.reveal-download svg {
  stroke: currentColor;
}

.reveal-download:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

body.dark-mode .reveal-download {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.14);
}

body.dark-mode .reveal-download svg {
  stroke: #000000;
}

body.dark-mode .reveal-download:hover {
  background: #E5E5EA;
  color: #000000;
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.22);
}

/* Reveal Hero Actions & Homebrew Card */
.reveal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.reveal-divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.reveal-divider-text::before,
.reveal-divider-text::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--border);
}

.brew-command-card {
  display: inline-flex;
  align-items: center;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 6px 8px 6px 16px;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: all 0.2s var(--curve);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  max-width: 100%;
}

.brew-command-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

body.dark-mode .brew-command-card {
  background: #252528;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .brew-command-card:hover {
  border-color: var(--accent);
}

.brew-command-content {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.brew-prompt {
  color: var(--accent);
  font-weight: 700;
  user-select: none;
}

.brew-code {
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  user-select: all;
}

.brew-copy-btn {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 5px 9px;
  cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

body.dark-mode .brew-copy-btn {
  background: #1C1C1E;
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.14);
}

.brew-copy-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

.brew-copy-btn .check-icon {
  display: none;
  stroke: var(--green);
}

.brew-copy-btn.copied {
  border-color: var(--green) !important;
  background: rgba(52, 199, 89, 0.12) !important;
  color: var(--green) !important;
}

.brew-copy-btn.copied .copy-icon {
  display: none;
}

.brew-copy-btn.copied .check-icon {
  display: inline-block;
}

.brew-copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1D1D1F;
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark-mode .brew-copy-tooltip {
  background: #FFFFFF;
  color: #000000;
}

.brew-copy-btn:hover .brew-copy-tooltip {
  opacity: 1;
}

/* First Launch Guidance Card */
.launch-guide-card {
  margin: 10px auto 0;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  text-align: left;
  transition: all 0.2s var(--curve);
}

body.dark-mode .launch-guide-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.launch-guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.launch-guide-header svg {
  stroke: var(--accent);
  flex-shrink: 0;
}

.launch-guide-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

body.dark-mode .step-badge {
  background: #2D2D30;
  border-color: rgba(255, 255, 255, 0.12);
}

.launch-guide-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  letter-spacing: 0.2px;
}

/* The Haiku */
.reveal-haiku {
  padding: 80px 24px 100px;
  text-align: center;
}

.haiku-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.haiku-line {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: lowercase;
  color: var(--text-primary);
}

.haiku-line.subtle {
  font-weight: 400;
  font-size: 17px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-top: 6px;
}

.haiku-line.on-mac {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-tertiary);
  letter-spacing: 1.5px;
  margin-top: 14px;
}

/* ==========================================================================
   4. COMPACT INTERACTIVE DEMO SECTION ("TRY IT RIGHT HERE")
   ========================================================================== */

.demo-section {
  padding: 60px 24px 80px;
  text-align: center;
}

.demo-container {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* FAQ */
.reveal-faq {
  padding: 60px 24px 80px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  cursor: pointer;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-q::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-q::after {
  content: "−";
}

.faq-a {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   MINIMI-INSPIRED MINIMALIST FOOTER
   ========================================================================== */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border-light);
  padding: 56px 24px 72px;
  background: transparent;
  transition: border-color 0.2s var(--curve);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.footer-links a,
.footer-link-btn {
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease;
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--text-primary);
}

.footer-copyright {
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  margin-left: auto;
}

.footer-badge-wrapper {
  display: flex;
  align-items: center;
}

.footer-badge-wrapper a {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s var(--curve), opacity 0.2s var(--curve);
  border-radius: 12px;
}

.footer-badge-wrapper a:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.footer-badge-wrapper img {
  display: block;
  width: 170px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  transition: all 0.15s var(--curve);
  text-decoration: none;
}

.social-icon:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.2);
}

body.dark-mode .social-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #A1A1A6;
}

body.dark-mode .social-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   FOOTER MOCK POPOVER (GitHub "do you want source code??" & Product Hunt "coming soon")
   ========================================================================== */
.footer-social-wrapper {
  position: relative;
  display: inline-flex;
}

.social-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 270px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  padding: 14px 16px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.96);
  transition: all 0.18s var(--curve);
  pointer-events: none;
  text-align: left;
}

body.dark-mode .social-popover {
  background: rgba(28, 28, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.social-popover.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.social-popover::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-right: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
  transform: rotate(45deg);
}

body.dark-mode .social-popover::after {
  border-right-color: rgba(255, 255, 255, 0.15);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.social-popover-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: -0.2px;
}

.social-popover-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

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

.social-popover-btn {
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.12s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-popover-btn.primary {
  background: var(--text-primary);
  color: var(--bg-white);
}

.social-popover-btn.primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.social-popover-btn.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

body.dark-mode .social-popover-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.social-popover-btn.secondary:hover {
  background: rgba(0, 0, 0, 0.09);
}

body.dark-mode .social-popover-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.social-popover-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.social-popover-close:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   APPLE NOTES IN-PAGE SHEET MODAL (Privacy & Terms)
   ========================================================================== */
.notes-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--curve);
}

.notes-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.notes-sheet-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.22s var(--curve);
}

.notes-sheet-backdrop.active .notes-sheet-card {
  transform: translateY(0) scale(1);
}

.notes-sheet-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border-light);
  user-select: none;
}

body.dark-mode .notes-sheet-titlebar {
  background: rgba(255, 255, 255, 0.03);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sheet-title-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.notes-sheet-content {
  padding: 26px 30px 30px;
  max-height: 70vh;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-primary);
}

.notes-sheet-content h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.notes-sheet-content p {
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.notes-sheet-content ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}

.notes-sheet-content li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.notes-sheet-content li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
}


/* ==========================================================================
   OVERLAYS
   ========================================================================== */

/* Cutie Modal */
.cutie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--curve);
}

.cutie-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.cutie-dialog {
  width: 92%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border: 0.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  padding: 22px 22px 18px;
  text-align: center;
  transform: scale(0.94);
  transition: transform 0.2s var(--curve);
}

.cutie-backdrop.visible .cutie-dialog {
  transform: scale(1);
}

.cutie-dialog.shake {
  animation: dialogShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes dialogShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.cutie-app-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cutie-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

.dialog-content-block {
  margin: 14px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: rgba(0, 0, 0, 0.03);
  padding: 10px 14px;
  border-radius: 8px;
}

.dialog-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  font-family: var(--font);
  white-space: nowrap;
}

.dialog-tag {
  font-weight: 600;
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: lowercase;
  flex-shrink: 0;
  width: 44px;
}

.dialog-tag.accent {
  color: var(--accent);
}

.dialog-phrase {
  color: var(--text-primary);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.dialog-phrase.highlight {
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  white-space: nowrap;
}

.dialog-question {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: lowercase;
  margin: 8px 0 14px;
  letter-spacing: -0.1px;
}

.cutie-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cutie-btn {
  width: 105px;
  padding: 6px 14px;
  height: 30px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  text-transform: lowercase;
  cursor: pointer;
  transition: all 0.1s;
}

.cutie-no {
  background: rgba(0, 0, 0, 0.05);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.cutie-no:hover {
  background: rgba(0, 0, 0, 0.09);
}

.cutie-yes {
  background: var(--accent);
  border: none;
  color: #FFFFFF;
}

.cutie-yes:hover {
  background: var(--accent-hover);
}

/* Dark mode dialog overrides */
body.dark-mode .cutie-dialog {
  background: rgba(38, 38, 42, 0.88);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

body.dark-mode .dialog-content-block {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .dialog-phrase {
  color: #F5F5F7;
}

body.dark-mode .dialog-question {
  color: #A1A1A6;
}

body.dark-mode .cutie-no {
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  color: #F5F5F7;
}

body.dark-mode .cutie-no:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Side Theme Toggle Button */
.side-theme-toggle {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 980px;
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.2s var(--curve);
  user-select: none;
}

.side-theme-toggle:hover {
  transform: scale(1.03);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.2);
}

.side-theme-label {
  text-transform: lowercase;
  letter-spacing: -0.1px;
}

body.dark-mode .side-theme-toggle {
  background: rgba(40, 40, 44, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  color: #A1A1A6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .side-theme-toggle:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.sun-icon { display: none; }
.moon-icon { display: block; }

body.dark-mode .sun-icon { display: block; }
body.dark-mode .moon-icon { display: none; }

/* Virtual Here Popup */
.here-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  background: rgba(30, 30, 34, 0.94);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: var(--shadow-popup);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
  transform-origin: top left;
  transition: opacity 0.12s var(--curve), transform 0.12s var(--curve);
  overflow: hidden;
}

.here-popup.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

.popup-label {
  font-size: 11px;
  font-weight: 600;
  color: #8E8E93;
}

.popup-filters {
  display: flex;
  gap: 2px;
}

.popup-filter {
  font-size: 10px;
  font-weight: 500;
  color: #8E8E93;
  padding: 2px 7px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.1s;
}

.popup-filter.active {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.popup-items {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.popup-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.08s;
}

.popup-row:hover {
  background: rgba(0, 122, 255, 0.4);
}

.popup-row-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
}

.popup-row-icon.type-text { background: rgba(142, 142, 147, 0.15); color: #8E8E93; }
.popup-row-icon.type-link { background: rgba(0, 122, 255, 0.2); color: #0A84FF; }
.popup-row-icon.type-image { background: rgba(191, 90, 242, 0.2); color: #BF5AF2; }

.popup-row-thumb {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Virtual Hover Preview Card (Quick Look at Cursor) */
.hover-preview-card {
  position: fixed;
  width: 240px;
  background: rgba(26, 26, 30, 0.96);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  z-index: 100000;
  padding: 12px 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px) scale(0.97);
  transition: opacity 0.14s var(--curve), transform 0.14s var(--curve);
  color: #EDEDEF;
  font-family: var(--font-body);
}

.hover-preview-card.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.hover-preview-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.hover-preview-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}

.hover-preview-badge.type-text { background: rgba(142, 142, 147, 0.25); color: #B0B0B5; }
.hover-preview-badge.type-link { background: rgba(10, 132, 255, 0.25); color: #5AC8FA; }
.hover-preview-badge.type-image { background: rgba(191, 90, 242, 0.25); color: #DA8FFF; }

.hover-preview-app {
  font-size: 10px;
  font-weight: 500;
  color: #8E8E93;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.hover-preview-time {
  font-size: 10px;
  color: #636366;
  margin-left: auto;
}

.hover-preview-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

.hover-preview-body {
  font-size: 12px;
  line-height: 1.5;
  color: #F2F2F7;
  max-height: 140px;
  overflow: hidden;
  word-break: break-word;
}

.hover-preview-body.is-image img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.hover-preview-body.is-link {
  color: #2997FF;
  text-decoration: underline;
  font-size: 11.5px;
}

.hover-preview-meta {
  font-size: 10px;
  color: #8E8E93;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-row-text {
  flex: 1;
  font-size: 11px;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.popup-row-domain {
  font-size: 10px;
  font-weight: 600;
  color: #0A84FF;
}

.popup-row-time {
  font-size: 9px;
  color: #636366;
  flex-shrink: 0;
}

/* Toast */
.toast {
  position: fixed;
  z-index: 999999;
  background: rgba(29, 29, 31, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 980px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  top: -9999px;
  left: -9999px;
  transform: translateY(6px);
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.toast.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

body.dark-mode .toast {
  background: rgba(40, 40, 44, 0.94);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  color: #F5F5F7;
}

/* ==========================================================================
   FAQ HOVER PREVIEW GRAPHIC
   ========================================================================== */
.faq-preview-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
  max-width: 520px;
}

body.dark-mode .faq-preview-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.faq-mock-popup {
  width: 180px;
  background: rgba(30, 30, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #EDEDEF;
  flex-shrink: 0;
}

.faq-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  font-size: 9.5px;
  color: #8E8E93;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-mock-pills {
  display: flex;
  gap: 2px;
}

.faq-mock-pills span {
  font-size: 8.5px;
  padding: 1px 4px;
  border-radius: 6px;
}

.faq-mock-pills span.active {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
}

.faq-mock-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 10px;
  color: #E5E5EA;
  border-radius: 4px;
  margin: 2px 4px;
}

.faq-mock-row.active {
  background: rgba(0, 122, 255, 0.45);
  color: #FFF;
}

.faq-mock-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  flex-shrink: 0;
}

.faq-mock-icon.link {
  color: #5AC8FA;
  background: rgba(10, 132, 255, 0.2);
}

.faq-mock-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faq-mock-time {
  font-size: 8.5px;
  color: #8E8E93;
}

.faq-mock-sidecard {
  flex: 1;
  background: rgba(26, 26, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color: #EDEDEF;
}

.faq-side-header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  margin-bottom: 6px;
}

.faq-side-badge {
  background: rgba(142, 142, 147, 0.25);
  color: #B0B0B5;
  padding: 1px 5px;
  border-radius: 8px;
  font-weight: 700;
}

.faq-side-app {
  background: rgba(255, 255, 255, 0.08);
  color: #8E8E93;
  padding: 1px 4px;
  border-radius: 3px;
}

.faq-side-time {
  color: #636366;
  margin-left: auto;
}

.faq-side-body {
  font-size: 11px;
  line-height: 1.4;
  color: #F2F2F7;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-side-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: #8E8E93;
  margin-top: 6px;
}


/* ==========================================================================
   PERSISTENT FROSTED GLASS NAV BAR
   ========================================================================== */

.here-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  z-index: 99999;
  background: rgba(248, 248, 250, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  transition: background 0.3s var(--curve), border-color 0.3s var(--curve);
}

body.dark-mode .here-nav {
  background: rgba(20, 20, 24, 0.82);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.here-nav-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.here-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  user-select: none;
}

.here-nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: block;
}

.here-nav-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.here-nav-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

body.dark-mode .here-nav-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #A1A1A6;
}

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

.nav-theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--curve);
}

.nav-theme-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  transform: scale(1.05);
}

body.dark-mode .nav-theme-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  color: #A1A1A6;
}

body.dark-mode .nav-theme-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.here-nav-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
  padding: 6px 14px;
  border-radius: 980px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.3);
  transition: all 0.15s var(--curve);
  user-select: none;
}

.here-nav-download:hover {
  opacity: 0.92;
  transform: translateY(-0.5px);
  box-shadow: 0 4px 12px rgba(10, 132, 255, 0.4);
}

.here-nav-download:active {
  transform: scale(0.98);
}

/* Hide legacy floating side toggle */
.side-theme-toggle {
  display: none !important;
}

/* ==========================================================================
   MOBILE HERO & CONVERSION CARD
   ========================================================================== */

.mobile-hero {
  display: none;
}

.mobile-hero-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.mobile-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  padding: 5px 12px;
  border-radius: 980px;
  margin-bottom: 20px;
}

body.dark-mode .mobile-badge-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.mobile-badge-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.mobile-badge-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--text-primary);
}

.mobile-headline {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.mobile-sub {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
  margin-bottom: 24px;
}

.mobile-email-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: left;
  margin-bottom: 26px;
}

body.dark-mode .mobile-email-card {
  background: #19191D;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.mobile-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body.dark-mode .mobile-card-icon {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.mobile-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.mobile-card-caption {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.mobile-email-form {
  width: 100%;
}

.mobile-form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-email-input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
  padding: 0 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.15s var(--curve);
}

.mobile-email-input:focus {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.16);
}

body.dark-mode .mobile-email-input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

body.dark-mode .mobile-email-input:focus {
  background: #141416;
}

.mobile-email-submit {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s var(--curve);
}

.mobile-email-submit:hover {
  opacity: 0.94;
}

.mobile-email-submit:active {
  transform: scale(0.98);
}

.mobile-email-submit.loading .btn-text {
  opacity: 0.6;
}

.mobile-email-submit.loading .btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 0.8s linear infinite;
}

.btn-spinner {
  display: none;
}

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

.mobile-form-feedback {
  font-size: 13px;
  line-height: 1.45;
  margin-top: 10px;
  display: none;
}

.mobile-form-feedback:not(:empty) {
  display: block;
}

.mobile-form-feedback.success {
  color: #28C840;
}

.mobile-form-feedback.error {
  color: #FF453A;
}

.mobile-card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.dark-mode .mobile-card-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.mobile-action-pill {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.1px;
  padding: 6px 12px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.04);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s var(--curve);
}

.mobile-action-pill:hover {
  background: rgba(0, 0, 0, 0.08);
}

body.dark-mode .mobile-action-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #D1D1D6;
}

body.dark-mode .mobile-action-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.mobile-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 0 6px;
}

.mobile-highlight-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mobile-highlight-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ==========================================================================
   SECTION EYEBROWS & PRODUCT VIDEO
   ========================================================================== */

.section-eyebrow-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.8px;
  color: var(--highlight, #0071E3);
  background: rgba(0, 113, 227, 0.08);
  padding: 5px 14px;
  border-radius: 980px;
  border: 1px solid rgba(0, 113, 227, 0.15);
}

html.dark-mode .section-eyebrow,
body.dark-mode .section-eyebrow {
  color: #2997FF;
  background: rgba(41, 151, 255, 0.12);
  border-color: rgba(41, 151, 255, 0.25);
}

/* Product Video Section */
.product-video-section {
  padding: 40px 20px 70px;
  max-width: 820px;
  margin: 0 auto;
  box-sizing: border-box;
}

.video-window-frame {
  background: #1C1C1E;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s var(--curve);
}

html.dark-mode .video-window-frame,
body.dark-mode .video-window-frame {
  background: #141416;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.video-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-titlebar-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: -0.2px;
}

.video-responsive-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #000000;
}

.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hero Badge */
.hero-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card-bg, rgba(0, 0, 0, 0.03));
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: 980px;
  padding: 5px 13px;
  margin-bottom: 24px;
}

.hero-badge-icon {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  object-fit: cover;
}

.hero-badge-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.1px;
}

/* Compact Send to Mac Email Card */
.mobile-send-section {
  padding: 10px 20px 60px;
  display: flex;
  justify-content: center;
}

.compact-email-card {
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-white, #FFFFFF);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  text-align: center;
  box-sizing: border-box;
}

html.dark-mode .compact-email-card,
body.dark-mode .compact-email-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.compact-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.compact-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}

.compact-card-footer {
  margin-top: 10px;
}

.compact-card-bullet {
  display: block;
  font-size: 11px;
  color: var(--text-dim, #8E8E93);
  margin-bottom: 12px;
}

.compact-card-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-dim, #8E8E93);
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  padding-top: 10px;
}

.compact-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.compact-link-btn:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE LAYOUT (Mobile vs Desktop)
   ========================================================================== */

@media (min-width: 769px) {
  .mobile-send-section {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body,
  body.mobile-mode {
    overflow-y: auto !important;
    display: block !important;
    padding-top: 52px !important;
    min-height: 100vh;
    background: var(--bg-white) !important;
  }

  body.dark-mode,
  body.mobile-mode.dark-mode {
    background: #000000 !important;
  }

  /* Desktop-only sections (Interactive Demo & Guide) are strictly hidden on mobile */
  .desktop-only,
  .desktop-only-section,
  .demo-section {
    display: none !important;
  }

  /* Reveal Hero on mobile matches desktop flow */
  .reveal-hero {
    display: block !important;
    padding: 50px 18px 24px !important;
    text-align: center;
  }

  .reveal-headline {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
  }

  .reveal-sub {
    font-size: 15px !important;
    margin-bottom: 24px !important;
    line-height: 1.45 !important;
  }

  /* Product video on mobile */
  .product-video-section {
    padding: 20px 16px 36px !important;
  }

  .video-window-frame {
    border-radius: 12px !important;
  }

  /* Mobile send section */
  .mobile-send-section {
    display: flex !important;
    padding: 10px 16px 48px !important;
  }

  .reveal-haiku,
  .reveal-faq,
  .site-footer {
    display: block !important;
    opacity: 1 !important;
  }

  .footer-right {
    align-items: flex-start !important;
    margin-top: 16px;
    margin-left: 0 !important;
  }

  .haiku-line {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .haiku-line.subtle {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .reveal-headline {
    font-size: 29px !important;
  }
  .compact-email-card {
    max-width: 320px;
    padding: 18px 14px 14px;
  }
}

