/* TapTidy Documentation — Design System */

:root {
  --bg-cream: #faf8f5;
  --bg-white: #ffffff;
  --emerald: #10B981;
  --emerald-dark: #059669;
  --emerald-light: #d1fae5;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --sidebar-width: 280px;
  --header-height: 56px;
  --content-max: 780px;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  --radius: 6px;
  --radius-sm: 4px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  font-family: var(--font-stack);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
}

/* ── Header ────────────────────────────────────── */

.docs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.docs-header-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs-header-logo span {
  color: var(--text-secondary);
  font-weight: 400;
}

.docs-search-wrap {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.docs-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-stack);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-cream);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.docs-search-input::placeholder {
  color: var(--text-muted);
}

.docs-search-input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.docs-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.docs-search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 200;
}

.docs-search-results.active {
  display: block;
}

.docs-search-result {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}

.docs-search-result:last-child {
  border-bottom: none;
}

.docs-search-result:hover,
.docs-search-result.focused {
  background: var(--emerald-light);
}

.docs-search-result-title {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs-search-result-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-search-result mark {
  background: rgba(16, 185, 129, 0.2);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.docs-search-empty {
  padding: 16px 14px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.docs-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-primary);
}

.docs-hamburger svg {
  width: 22px;
  height: 22px;
}

.docs-header-spacer {
  flex: 1;
}

.docs-back-link {
  font-size: 14px;
  color: var(--emerald-dark);
  text-decoration: none;
  white-space: nowrap;
}

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

/* ── Layout ────────────────────────────────────── */

.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  padding-top: var(--header-height);
}

/* ── Sidebar ───────────────────────────────────── */

.docs-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  overflow-y: auto;
  padding: 20px 0 40px;
  border-right: 1px solid var(--border);
  background: var(--bg-white);
  -webkit-overflow-scrolling: touch;
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.sidebar-section {
  margin-bottom: 4px;
}

.section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 20px;
  background: none;
  border: none;
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}

.section-toggle:hover {
  color: var(--text-primary);
}

.section-toggle-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.sidebar-section.collapsed .section-toggle-icon {
  transform: rotate(-90deg);
}

.section-links {
  list-style: none;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.sidebar-section.collapsed .section-links {
  max-height: 0 !important;
}

.section-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 20px 5px 28px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.1s, border-color 0.1s, background 0.1s;
}

.section-links a:hover {
  color: var(--text-primary);
  background: var(--border-light);
}

.section-links a.active {
  color: var(--emerald-dark);
  border-left-color: var(--emerald);
  font-weight: 500;
}

/* ── Platform Badges ───────────────────────────── */

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.6;
  white-space: nowrap;
}

.badge-web {
  background: var(--emerald);
  color: #fff;
}

.badge-android {
  background: var(--teal-light);
  color: var(--teal);
  border: 1px solid currentColor;
}

.badge-both {
  background: var(--border-light);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ── Content ───────────────────────────────────── */

.docs-content {
  grid-column: 2;
  padding: 40px 48px 80px;
  max-width: calc(var(--content-max) + 96px);
}

.docs-section {
  margin-bottom: 56px;
}

.docs-section > h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.docs-section > h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 10px;
}

.docs-section > h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 8px;
}

.docs-section p {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.docs-section ul,
.docs-section ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

.docs-section li {
  margin-bottom: 4px;
}

.docs-section li + li {
  margin-top: 4px;
}

.docs-section strong {
  font-weight: 600;
}

.docs-section code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--border-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--emerald-dark);
}

.docs-section pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}

.docs-section pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.docs-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

.docs-section th {
  text-align: left;
  padding: 8px 12px;
  background: var(--border-light);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.docs-section td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
}

.docs-section blockquote {
  border-left: 3px solid var(--emerald);
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--emerald-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-primary);
  font-size: 14px;
}

/* Anchor links on headings */
.heading-anchor {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.15s;
  font-weight: 400;
}

.docs-section h2:hover .heading-anchor,
.docs-section h3:hover .heading-anchor {
  opacity: 1;
}

.heading-anchor:hover {
  color: var(--emerald);
}

/* ── Sidebar overlay backdrop (mobile) ─────────── */

.docs-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 49;
}

/* ── Mobile ────────────────────────────────────── */

@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 50;
    padding-top: calc(var(--header-height) + 16px);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: none;
  }

  .docs-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
  }

  .docs-sidebar-backdrop.open {
    display: block;
  }

  .docs-hamburger {
    display: block;
  }

  .docs-content {
    grid-column: 1;
    padding: 24px 20px 60px;
  }

  .docs-search-wrap {
    max-width: none;
  }

  .docs-back-link {
    display: none;
  }

  .docs-section > h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .docs-content {
    padding: 20px 16px 60px;
  }

  .docs-section pre {
    padding: 12px 14px;
    font-size: 12px;
  }
}

/* ── Utilities ─────────────────────────────────── */

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

/* Settings tables */
.settings-table {
  font-size: 13px;
}

.settings-table th:first-child,
.settings-table td:first-child {
  white-space: nowrap;
}

/* Shortcut keys */
kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 var(--border);
  line-height: 1.4;
}

/* ── Device Frames ────────────────────────────── */

.device-frame {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  background: var(--bg-white);
  max-width: 360px;
}

.device-frame.browser {
  max-width: 100%;
  border-radius: 10px;
}

.device-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--border-light);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

.device-frame-bar .dots {
  display: flex;
  gap: 5px;
}

.device-frame-bar .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.device-frame-bar .url-bar {
  flex: 1;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: var(--border-light);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.device-frame-body {
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
}

/* ── Mockup Inner Components ─────────────────── */

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.mock-header .mock-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.mock-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.mock-task:last-child {
  border-bottom: none;
}

.mock-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.mock-checkbox.checked {
  background: var(--emerald);
  border-color: var(--emerald);
  position: relative;
}

.mock-checkbox.checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mock-task-text {
  flex: 1;
  color: var(--text-primary);
}

.mock-task-text.done {
  text-decoration: line-through;
  color: var(--text-muted);
}

.mock-task-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.mock-priority {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-priority.p1 { background: #ef4444; }
.mock-priority.p2 { background: #f59e0b; }
.mock-priority.p3 { background: #3b82f6; }
.mock-priority.p4 { background: var(--text-muted); }

.mock-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--emerald-light);
  color: var(--emerald-dark);
  font-weight: 500;
}

.mock-section-label {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.mock-routine-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.mock-progress-bar {
  flex: 0 0 80px;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.mock-progress-bar-fill {
  height: 100%;
  background: var(--emerald);
  border-radius: 3px;
}

/* Kanban columns */
.mock-kanban {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.mock-kanban-col {
  flex: 0 0 160px;
  background: var(--border-light);
  border-radius: 8px;
  padding: 8px;
}

.mock-kanban-col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding: 0 4px;
}

.mock-kanban-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mock-kanban-card .mock-priority {
  margin-right: 4px;
}

/* Calendar grid */
.mock-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  padding: 12px;
  font-size: 11px;
}

.mock-cal-header {
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px;
  font-size: 10px;
  text-transform: uppercase;
}

.mock-cal-day {
  text-align: center;
  padding: 6px 2px;
  border-radius: 4px;
  color: var(--text-secondary);
  min-height: 32px;
}

.mock-cal-day.has-tasks::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--emerald);
  margin: 2px auto 0;
}

.mock-cal-day.today {
  background: var(--emerald);
  color: #fff;
  font-weight: 600;
}

/* ── Flow Diagrams ────────────────────────────── */

.flow-diagram {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 24px 0;
  overflow-x: auto;
  padding: 4px 0;
}

.flow-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
}

.flow-step-box {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  background: var(--bg-white);
  position: relative;
  z-index: 1;
}

.flow-step.active .flow-step-box {
  border-color: var(--emerald);
  background: var(--emerald-light);
}

.flow-step.warning .flow-step-box {
  border-color: #f59e0b;
  background: #fef3c7;
}

.flow-step.danger .flow-step-box {
  border-color: #ef4444;
  background: #fef2f2;
}

.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--bg-white);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.flow-step.active .flow-step-num { background: var(--emerald); }
.flow-step.warning .flow-step-num { background: #f59e0b; }
.flow-step.danger .flow-step-num { background: #ef4444; }

.flow-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.flow-step-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.flow-arrow {
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 18px;
}

@media (max-width: 480px) {
  .flow-diagram {
    flex-direction: column;
    align-items: stretch;
  }
  .flow-arrow {
    transform: rotate(90deg);
    flex: 0 0 24px;
  }
  .flow-step {
    min-width: 0;
  }
}

/* ── Step Cards ───────────────────────────────── */

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.step-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.15s;
}

.step-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-card-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ── Feature Cards ────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.feature-card {
  padding: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.feature-card.teal {
  border-left-color: var(--teal);
}

.feature-card.amber {
  border-left-color: #f59e0b;
}

.feature-card.red {
  border-left-color: #ef4444;
}

.feature-card.blue {
  border-left-color: #3b82f6;
}

/* ── Comparison Cards (Plans) ─────────────────── */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.plan-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  background: var(--bg-white);
  text-align: center;
}

.plan-card.recommended {
  border-color: var(--emerald);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}

.plan-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.plan-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  font-size: 13px;
}

.plan-card li {
  padding: 4px 0;
  color: var(--text-secondary);
}

.plan-card li::before {
  content: '\2713';
  color: var(--emerald);
  font-weight: 700;
  margin-right: 8px;
}

.plan-card li.na::before {
  content: '\2014';
  color: var(--text-muted);
}

.plan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--emerald);
  color: #fff;
  margin-bottom: 8px;
}

/* ── NLP Visual Examples ──────────────────────── */

.nlp-example {
  margin: 16px 0;
  padding: 14px 18px;
  background: #1f2937;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: #e5e7eb;
}

.nlp-example .nlp-date {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  padding: 1px 4px;
  border-radius: 3px;
}

.nlp-example .nlp-tag {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  padding: 1px 4px;
  border-radius: 3px;
}

.nlp-example .nlp-priority {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
  padding: 1px 4px;
  border-radius: 3px;
}

.nlp-example .nlp-recurrence {
  background: rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
  padding: 1px 4px;
  border-radius: 3px;
}

.nlp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.nlp-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nlp-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.nlp-legend .swatch.date { background: rgba(59, 130, 246, 0.5); }
.nlp-legend .swatch.tag { background: rgba(16, 185, 129, 0.5); }
.nlp-legend .swatch.priority { background: rgba(245, 158, 11, 0.5); }
.nlp-legend .swatch.recurrence { background: rgba(168, 85, 247, 0.5); }

/* ── Callout boxes ────────────────────────────── */

.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}

.callout-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.4;
}

.callout.tip {
  background: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.callout.note {
  background: #eff6ff;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.callout.pro {
  background: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.callout.beta {
  background: #faf5ff;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ── Notification mockup ─────────────────────── */

.mock-notif {
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  max-width: 360px;
}

.mock-notif-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.mock-notif-body {
  flex: 1;
}

.mock-notif-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.mock-notif-text {
  color: var(--text-secondary);
  font-size: 12px;
}

.mock-notif-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.mock-notif-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mock-notif-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--border-light);
  color: var(--text-secondary);
}

.mock-notif-btn.primary {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

/* ── Widget mockup ────────────────────────────── */

.mock-widget {
  margin: 20px 0;
  max-width: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.mock-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--emerald);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ── Heatmap ──────────────────────────────────── */

.mock-heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 12px 16px;
  max-width: 220px;
}

.mock-heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--border-light);
}

.mock-heatmap-cell.l1 { background: #d1fae5; }
.mock-heatmap-cell.l2 { background: #6ee7b7; }
.mock-heatmap-cell.l3 { background: #10b981; }
.mock-heatmap-cell.l4 { background: #047857; }

/* ── Timer mockup ─────────────────────────────── */

.mock-timer {
  text-align: center;
  padding: 24px;
  margin: 20px 0;
  max-width: 280px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mock-timer-time {
  font-size: 48px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.mock-timer-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin-bottom: 4px;
}

.mock-timer-task {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.mock-timer-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.mock-timer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.mock-timer-dot.active { background: var(--emerald); }
.mock-timer-dot.done { background: var(--emerald-light); }

/* ── Focus mockup ─────────────────────────────── */

.mock-focus {
  margin: 20px 0;
  padding: 32px 24px;
  background: #111827;
  border-radius: 12px;
  text-align: center;
  color: #f9fafb;
  max-width: 480px;
}

.mock-focus-task {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.mock-focus-timer {
  font-size: 40px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--emerald);
  margin: 16px 0;
}

.mock-focus-hint {
  font-size: 12px;
  color: #6b7280;
}

/* ── Inline pair (text + mockup side by side) ──── */

.docs-pair {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 20px 0;
}

.docs-pair-text {
  flex: 1;
  min-width: 0;
}

.docs-pair-visual {
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .docs-pair {
    flex-direction: column;
  }
  .docs-pair-visual {
    align-self: center;
  }
  .device-frame {
    max-width: 100%;
  }
  .mock-widget {
    max-width: 100%;
  }
}
