/* ============================================
   房帖AI — Design Tokens & Base Styles
   OKLCH color palette, mobile-first, no frameworks
   ============================================ */

:root {
  /* OKLCH Design Tokens */
  --bg: oklch(1.000 0.000 0);
  --surface: oklch(0.975 0.003 40);
  --ink: oklch(0.15 0.005 30);
  --muted: oklch(0.50 0.004 30);
  --primary: oklch(0.50 0.16 13);
  --primary-hover: oklch(0.44 0.14 13);
  --accent: oklch(0.55 0.13 230);
  --border: oklch(0.92 0.003 40);
  --error: oklch(0.50 0.18 25);

  /* Spacing & Radii */
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);

  /* Motion */
  --transition-fast: 150ms ease-out;
  --transition-normal: 250ms ease-out;
}

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

/* ---- Base ---- */
html {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100svh;
  padding-bottom: 70px;
  font-size: 1rem;
  line-height: 1.5;
}

/* ---- Header ---- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 12px;
  position: relative;
}

.app-header h1 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ---- Clear Draft Button ---- */
.clear-draft-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.btn-clear-header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-clear-header:hover {
  color: var(--error);
  border-color: var(--error);
  background: oklch(0.50 0.18 25 / 0.04);
}

.btn-clear-header:active {
  color: var(--error);
  background: oklch(0.50 0.18 25 / 0.10);
}

/* ---- Page Containers ---- */
.page {
  display: none;
  padding-bottom: 16px;
}

.page.active {
  display: block;
}

/* ---- Tab Bar ---- */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-around;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  z-index: 100;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11px;
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
  user-select: none;
}

.tab-item .tab-icon {
  font-size: 22px;
  line-height: 1;
}

.tab-item.active {
  color: var(--primary);
}

/* ---- Card Component ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 16px;
  box-shadow: var(--shadow);
}

/* ---- Form Elements ---- */
.form-section {
  padding: 0 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px oklch(0.50 0.16 13 / 0.12);
}

.form-input::placeholder {
  color: oklch(0.65 0.003 30);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
}

.form-hint-inline {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

/* ---- Chip Multi-Select ---- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 34px;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--primary);
}

.chip.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
  min-height: 48px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  border-radius: 6px;
}

.btn-danger {
  background: var(--bg);
  color: var(--error);
  border: 1px solid var(--error);
}

.btn-danger:hover {
  background: oklch(0.50 0.18 25 / 0.08);
}

/* ---- Photo Upload ---- */
.upload-area {
  display: block;
  width: calc(100% - 32px);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  margin: 12px 16px;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--muted);
  transition: border-color var(--transition-fast), color var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.upload-area:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.upload-area.has-photos {
  border-style: solid;
  border-color: var(--primary);
  color: var(--ink);
}

/* ---- Photo Grid ---- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 16px;
}

.photo-grid:empty {
  display: none;
}

.photo-grid img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface);
}

.photo-preview-wrapper {
  position: relative;
}

.photo-preview-wrapper .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

/* ---- Result Display ---- */
.result-container {
  margin: 0 16px 16px;
}

.result-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.result-section {
  margin-bottom: 14px;
}

.result-section:last-child {
  margin-bottom: 0;
}

.result-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.result-title-line {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.5;
}

.result-title-style {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.result-body-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
}

.result-fp-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.result-fp-text {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.result-tokens {
  font-size: 0.6875rem;
  color: var(--muted);
  text-align: right;
  margin-top: 8px;
}

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ---- Tag Row ---- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  color: var(--accent);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ---- Toast Notification ---- */
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: oklch(0.50 0.18 25 / 0.1);
  border: 1px solid oklch(0.50 0.18 25 / 0.25);
  color: var(--error);
  font-size: 0.875rem;
  animation: toastIn var(--transition-normal);
}

.toast-msg {
  flex: 1;
  font-size: 0.8125rem;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.125rem;
  cursor: pointer;
  color: var(--error);
  padding: 4px;
  line-height: 1;
  opacity: 0.6;
}

.toast-close:hover {
  opacity: 1;
}

.toast-retry {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--error);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  color: var(--error);
  cursor: pointer;
}

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

/* Toast 信息提示（草稿恢复/清空） */
.toast-info {
  background: oklch(0.55 0.13 230 / 0.08);
  border: 1px solid oklch(0.55 0.13 230 / 0.2);
  color: var(--accent);
}

/* ---- Progress Panel ---- */
.progress-panel {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: oklch(0.98 0.005 40);
  border: 1px solid var(--border);
}

.progress-phase {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.progress-time {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---- Spinner ---- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

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

/* ---- Guide Prime Tip ---- */
.guide-prime-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: oklch(0.50 0.16 13 / 0.08);
  border: 1.5px solid oklch(0.50 0.16 13 / 0.18);
}

.guide-prime-tip-body strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.guide-prime-tip-body span {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- Collapsible Guide Cards ---- */
.guide-section {
  padding: 8px 16px 16px;
}

.guide-card {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition-fast);
}

.guide-card-header:hover {
  background: oklch(0.98 0.002 40);
}

.guide-card-header h3 {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}

.guide-card-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.guide-chevron {
  font-size: 0.875rem;
  color: var(--muted);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.guide-card.open .guide-chevron {
  transform: rotate(180deg);
}

.guide-card-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms ease-out;
}

.guide-card.open .guide-card-body {
  grid-template-rows: 1fr;
}

.guide-body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 16px 14px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink);
}

.guide-body-inner p {
  margin-bottom: 6px;
}

.guide-body-inner ul {
  padding-left: 18px;
  margin-bottom: 6px;
}

.guide-body-inner li {
  margin-bottom: 4px;
}

/* ---- History List ---- */
.history-section {
  padding: 0 16px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.history-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.history-item-info {
  flex: 1;
  min-width: 0;
}

.history-item-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.history-chevron {
  font-size: 0.8125rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.history-item.open .history-chevron {
  transform: rotate(180deg);
}

.history-item-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms ease-out;
  border-top: 1px solid var(--border);
}

.history-item.open .history-item-body {
  grid-template-rows: 1fr;
}

.history-item-body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 14px;
}

.history-item.open .history-item-body-inner {
  padding: 12px 14px;
  overflow-y: auto;
}

.history-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  margin-top: 10px;
}

.history-section-label:first-child {
  margin-top: 0;
}

.history-title-line {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}

.history-title-style {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.history-body-text {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

.history-fp-text {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

.history-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.history-cover-card {
  margin-top: 6px;
  margin-bottom: 8px;
}

.history-cover-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
}

.history-cover-reason {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.history-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.history-photo-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ---- Result Actions ---- */
.result-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---- Empty State ---- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40svh;
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-state p {
  font-size: 0.9375rem;
  margin-bottom: 16px;
}


/* ---- Form Details (Collapsible) ---- */
/* ---- Detail Fields (Collapsible) ---- */
.form-details {
  margin: 12px 16px;
  border: 1.5px solid oklch(0.50 0.16 13 / 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: oklch(0.50 0.16 13 / 0.03);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.form-details[open] {
  border-color: oklch(0.50 0.16 13 / 0.3);
  background: oklch(0.50 0.16 13 / 0.05);
}
.form-details-summary {
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: oklch(0.50 0.16 13 / 0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast);
}
.form-details-summary::marker { font-size: 0.75rem; }
.form-details-summary:hover { color: var(--primary); }
.form-details-summary::after {
  content: "（展开填写可生成更真实精准的帖子）";
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}
.form-details[open] .form-details-summary::after {
  content: "（只使用你填写的事实，不编造）";
}
.form-details-content { padding: 4px 16px 16px; }
.form-row { display: flex; gap: 12px; }
.form-half { flex: 1; min-width: 0; }

/* ---- Lightbox ---- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 200ms ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img { max-width: 95vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 201;
  background: rgba(255,255,255,0.15); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 20px; cursor: pointer;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 201;
  background: rgba(255,255,255,0.15); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 28px; cursor: pointer;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-dl {
  position: absolute; bottom: 16px; right: 16px; z-index: 201;
  background: rgba(255,255,255,0.15); color: #fff; border: none;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 18px; cursor: pointer;
}
.lightbox-counter {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 0.875rem;
}
.result-photo-actions { margin-bottom: 8px; }
.result-photo-actions .btn { width: auto; padding: 6px 14px; font-size: 0.8125rem; }
.photo-actions-hint { font-size: 0.75rem; color: var(--muted); }
.fp-cover-hint { font-size: 0.875rem; color: var(--muted); text-align: center; margin-top: 6px; }
.photo-dl-btn {
  position: absolute; bottom: 4px; right: 4px;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.5); color: #fff;
  font-size: 14px; cursor: pointer; z-index: 2;
}
.cover-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}
.cover-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: 36px;
}
.cover-star { font-size: 16px; line-height: 1; }
.cover-badge-text { font-size: 9px; color: var(--primary); font-weight: 600; white-space: nowrap; }
.cover-thumb {
  width: 64px; height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.cover-reason {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.cover-reason strong { color: var(--primary); font-weight: 600; }
.rejected-details { margin-top: 12px; }
.rejected-summary { font-size: 0.8125rem; color: var(--muted); cursor: pointer; }
.rejected-list { margin-top: 8px; padding-left: 20px; font-size: 0.8125rem; color: var(--muted); line-height: 1.6; }

/* ---- Floor Plan Placeholder ---- */
.fp-placeholder-container { padding: 0 16px 24px; max-width: 600px; margin: 0 auto; }
.fp-placeholder-hero { text-align: center; padding: 24px 0 16px; }
.fp-placeholder-icon { font-size: 2.5rem; margin-bottom: 8px; }
.fp-placeholder-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.fp-placeholder-subtitle { font-size: 0.875rem; color: var(--muted); }
.fp-placeholder-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.fp-placeholder-card {
  background: var(--surface); border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; opacity: 0.5;
}
.fp-placeholder-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.fp-placeholder-card-title { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.fp-placeholder-card-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
.fp-placeholder-preview {
  background: var(--surface); border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 16px; text-align: center;
}
.fp-placeholder-preview-label { font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.fp-placeholder-preview-box {
  background: oklch(0.975 0.02 13); border: 2px dashed oklch(0.50 0.16 13 / 0.2);
  border-radius: 8px; padding: 20px 16px;
}
.fp-placeholder-preview-icon { font-size: 2rem; display: block; margin-bottom: 6px; }
.fp-placeholder-preview-box p { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
.fp-coming-soon-overlay {
  background: linear-gradient(135deg, oklch(0.50 0.16 13 / 0.08), oklch(0.55 0.13 230 / 0.06));
  border: 1px solid oklch(0.50 0.16 13 / 0.15); border-radius: var(--radius);
  padding: 20px 16px; text-align: center;
}
.fp-coming-soon-badge {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 0.8125rem; font-weight: 600; padding: 6px 16px; border-radius: 20px; margin-bottom: 10px;
}
.fp-coming-soon-text { font-size: 0.8125rem; color: var(--muted); line-height: 1.6; }

/* ---- About Page ---- */
.about-container {
  padding: 0 16px 24px;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero */
.about-hero {
  text-align: center;
  padding: 24px 0 20px;
}
.about-hero-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
.about-hero-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.about-hero-subtitle {
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 500;
}

/* Section */
.about-section {
  margin-bottom: 20px;
}
.about-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.about-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 8px;
}
.about-text-sm {
  font-size: 0.8125rem;
  color: var(--muted);
}
/* Feature Cards */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.about-feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
}
.about-feature-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.about-feature-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.about-feature-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Post Type Tags */
.about-post-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-tag {
  font-size: 0.8125rem;
  padding: 4px 10px;
  border-radius: 16px;
  background: oklch(0.975 0.02 13);
  color: var(--primary);
  font-weight: 500;
}


/* Stats List */
.about-stats {
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.8;
}
.about-stats li {
  padding: 4px 0;
}

/* Roadmap */
.about-roadmap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-roadmap-item {
  font-size: 0.875rem;
  color: var(--ink);
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
}

/* Tech Grid */
.about-tech-grid { display: flex; flex-direction: column; gap: 10px; }
.about-tech-item {
  display: flex; gap: 12px; background: var(--surface);
  border-radius: var(--radius); padding: 14px;
}
.about-tech-num {
  font-size: 1.125rem; font-weight: 800; color: var(--primary);
  opacity: 0.5; flex-shrink: 0; min-width: 28px;
}
.about-tech-body { font-size: 0.8125rem; color: var(--ink); line-height: 1.65; }
.about-tech-body strong { color: var(--primary); font-weight: 600; }

/* Highlight Box */
.about-highlight-box {
  background: linear-gradient(135deg, oklch(0.50 0.16 13 / 0.06), oklch(0.55 0.13 230 / 0.04));
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
}
.about-highlight-box p { font-size: 0.875rem; color: var(--ink); line-height: 1.6; margin: 0; }

/* Process Steps */
.about-process {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-process-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.about-process-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-process-text {
  font-size: 0.8125rem;
  color: var(--ink);
  line-height: 1.5;
  flex: 1;
}
.about-process-arrow {
  text-align: center;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
}

/* Formula Steps */
.about-formula {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 12px;
}
.about-formula-step {
  font-size: 0.8125rem; font-weight: 600; color: var(--primary);
  background: oklch(0.975 0.02 13);
  padding: 4px 10px; border-radius: 6px;
}

/* CTA */
.about-cta {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 0.875rem;
  color: var(--muted);
}
.about-cta .btn {
  margin-top: 10px;
}

/* ---- Motion: Reduced ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
