:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #6b7280;
  --line: #e4e8f1;
  --accent: #5b5bd6;
  --accent-soft: #eeeeff;
  --success: #157f5b;
  --danger: #b42318;
  --suggestion: #fff2a8;
  --cue: #eee8ff;
  --cue-border: #9b87f5;
  --bible: #c00000;
  --shadow: 0 22px 60px rgba(22, 30, 52, .12);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
code { background: #eef0f5; border-radius: 6px; padding: 2px 6px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

/* Landing */
.landing-body { min-height: 100vh; background: radial-gradient(circle at 10% 10%, #ecebff 0, transparent 35%), radial-gradient(circle at 90% 80%, #e6f5ff 0, transparent 32%), var(--bg); }
.landing-shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 70px 0; }
.hero-card, .recent-card { background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.8); border-radius: 24px; box-shadow: var(--shadow); padding: 40px; backdrop-filter: blur(12px); }
.hero-card h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -.04em; margin: 10px 0 12px; }
.hero-card > p { max-width: 710px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.drop-zone { margin-top: 30px; border: 2px dashed #c9cee0; background: #fafbff; border-radius: 18px; min-height: 210px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; transition: .2s ease; }
.drop-zone:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop-zone input { position: absolute; opacity: 0; pointer-events: none; }
.drop-zone strong { font-size: 18px; }
.drop-zone span:last-child { color: var(--muted); }
.drop-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: white; font-size: 24px; }
.upload-options { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); margin: 18px 0; }
.primary-button, .export-button.primary { background: var(--accent); color: white; border-color: var(--accent); }
.primary-button { width: 100%; border: 0; border-radius: 12px; padding: 14px 20px; font-weight: 800; }
.primary-button:disabled { opacity: .55; }
.processing-message { margin-top: 14px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.status-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.status-card { width: min(620px, 100%); padding: 42px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.status-card h1 { margin: 9px 0 10px; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.035em; }
.status-card > p { color: var(--muted); line-height: 1.55; }
.progress-track { height: 10px; margin-top: 28px; overflow: hidden; border-radius: 99px; background: #e9ebf3; }
.progress-fill { width: 5%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #8b7cf6); transition: width .45s ease; }
.status-meta { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: capitalize; }
.status-error { margin-top: 20px; padding: 13px; border: 1px solid #f5b7b1; border-radius: 10px; color: var(--danger); background: #fff5f4; overflow-wrap: anywhere; }
.status-home { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 750; text-decoration: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d5d8e6; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.recent-card { margin-top: 24px; padding: 26px 32px; }
.recent-card h2 { margin-top: 0; }
.recent-list { display: grid; gap: 8px; }
.recent-list a { display: flex; justify-content: space-between; padding: 12px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.recent-list a:hover { background: var(--accent-soft); }
.recent-list small { color: var(--muted); }

/* Editor shell */
.editor-body { overflow: hidden; }
.topbar { height: 62px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: relative; z-index: 10; }
.brand { font-weight: 850; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.topbar-actions { display: flex; gap: 8px; }
.topbar button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 13px; font-weight: 700; }
.topbar .primary { color: white; background: var(--accent); border-color: var(--accent); }
.editor-usage-link { display: inline-flex; align-items: center; padding: 8px 10px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 750; }
.workspace { height: calc(100vh - 62px); display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.review-panel { background: #fff; border-right: 1px solid var(--line); overflow-y: auto; padding: 20px 18px 40px; transition: width .2s ease, padding .2s ease; }
.review-panel.collapsed { width: 0; padding-left: 0; padding-right: 0; overflow: hidden; border: 0; }
.workspace.panel-collapsed { grid-template-columns: 0 minmax(0,1fr); }
.panel-reopen { display: none; position: fixed; left: 14px; top: 75px; z-index: 25; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(22,30,52,.14); }
.panel-reopen.visible { display: block; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.panel-header h2 { margin: 2px 0 0; }
.icon-button { border: 1px solid var(--line); width: 32px; height: 32px; border-radius: 9px; background: white; }
.panel-section { padding: 17px 0; border-top: 1px solid var(--line); }
.panel-section.compact { padding-bottom: 0; }
.review-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0 15px; }
.review-tab { min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 8px 4px; color: var(--muted); background: #fff; font-size: 11px; font-weight: 800; }
.review-tab span { display: inline-grid; min-width: 18px; height: 18px; place-items: center; margin-left: 2px; border-radius: 99px; background: #eef0f5; }
.review-tab.active { color: var(--accent); border-color: #c9c7fb; background: var(--accent-soft); }
.review-pane { display: none; }
.review-pane.active { display: block; }
.selection-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 5px; margin: 10px 0; font-size: 11px; }
.selection-row button, .selected-actions button { border: 1px solid var(--line); border-radius: 7px; padding: 6px 7px; background: #fff; font-size: 11px; font-weight: 750; }
.selected-actions { position: sticky; bottom: -1px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; padding: 9px 0 2px; background: linear-gradient(transparent, #fff 25%); }
.section-title-row { display: flex; align-items: center; justify-content: space-between; }
.section-title-row h3 { font-size: 14px; margin: 0; }
.count-badge { min-width: 24px; text-align: center; padding: 3px 7px; border-radius: 999px; background: #eef0f5; color: var(--muted); font-size: 12px; font-weight: 800; }
.panel-help { color: var(--muted); font-size: 12px; line-height: 1.45; }
.batch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; }
.batch-row button, .group-actions button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 9px; font-size: 12px; font-weight: 700; }
.batch-row button:hover, .group-actions button:hover { background: #f6f7fb; }
.group-list { display: grid; gap: 8px; max-height: calc(100vh - 300px); overflow-y: auto; padding-right: 2px; }
.group-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fbfcff; }
.group-card .group-label { font-family: Georgia, serif; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.group-card .group-meta { color: var(--muted); font-size: 11px; margin-top: 4px; }
.group-actions { display: flex; gap: 6px; margin-top: 8px; }
.review-group { border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; }
.review-group[open] { background: #fff; box-shadow: 0 6px 18px rgba(22,30,52,.06); }
.review-group summary { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 7px; align-items: start; padding: 10px; cursor: pointer; list-style: none; }
.review-group summary::-webkit-details-marker { display: none; }
.review-group summary span { min-width: 0; }
.review-group summary strong { display: block; font-family: Georgia, serif; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.review-group summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.occurrence-list { display: grid; gap: 5px; padding: 0 9px 10px; }
.occurrence-row { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 6px; align-items: start; }
.occurrence-preview { border: 0; border-radius: 7px; padding: 7px; color: #424757; background: #f5f6fa; font-family: Georgia, serif; font-size: 11px; line-height: 1.38; text-align: left; overflow-wrap: anywhere; }
.occurrence-preview:hover { color: var(--ink); background: var(--accent-soft); }
.empty-state { padding: 20px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.context-grid { display: grid; gap: 7px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.context-grid div { display: flex; justify-content: space-between; gap: 12px; }

.document-area { overflow: auto; position: relative; }
.document-toolbar { position: sticky; top: 0; z-index: 5; height: 46px; background: rgba(248,249,252,.93); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 5px; backdrop-filter: blur(8px); }
.document-toolbar button { border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 5px 9px; }
.document-toolbar button:hover { border-color: var(--line); background: white; }
.toolbar-divider { width: 1px; height: 24px; background: var(--line); margin: 0 5px; }
.save-status { position: absolute; right: 24px; color: var(--muted); font-size: 12px; }
.paper { width: min(850px, calc(100% - 48px)); min-height: 1120px; margin: 26px auto 126px; padding: 64px 70px 90px; background: white; border-radius: 4px; box-shadow: 0 10px 35px rgba(22,30,52,.13); }
.document-title { display: block; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font: 800 28px/1.25 Georgia, serif; margin: 0 0 18px; padding: 0; }
.document-title::placeholder { color: #b1b5c2; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11px; border-bottom: 1px solid #eceef4; padding-bottom: 14px; margin-bottom: 24px; }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.legend-swatch { width: 11px; height: 11px; border-radius: 3px; }
.suggestion-swatch { background: var(--suggestion); }
.cue-swatch { background: var(--cue); border: 1px solid var(--cue-border); }
.bible-swatch { background: var(--bible); }
.wysiwyg { outline: none; font: 17px/1.62 Georgia, "Times New Roman", serif; color: #202124; }
.wysiwyg p, .wysiwyg blockquote, .wysiwyg section { margin: 0 0 13px; }
.wysiwyg .section-heading { font-size: 22px; font-weight: 500; text-decoration: underline; margin: 26px 0 12px; }
.wysiwyg .teaching-point { font-weight: 700; }
.wysiwyg blockquote { border-left: 3px solid #d8dbe5; padding-left: 16px; color: #424757; }
.wysiwyg .scripture-block { color: var(--bible); font-style: italic; }
.scripture-label { margin-bottom: 5px; font-weight: 600; }
.bible-ref { color: var(--bible); }
.source-unit { display: inline; }

.suggestion, .audience-cue { position: relative; border-radius: 4px; padding: 1px 2px; }
.suggestion.pending { background: var(--suggestion); text-decoration: underline dotted #967c00; text-underline-offset: 3px; cursor: pointer; }
.suggestion.pending .suggested-text { display: inline-block; margin-left: 4px; border: 1px solid #e7cc57; border-radius: 999px; padding: 0 6px; color: #705c00; background: #fff9d8; font: 700 12px/1.55 system-ui, sans-serif; vertical-align: 1px; }
.suggestion.accepted { background: #e8f8ef; }
.suggestion.rejected { background: #f6f6f6; color: #6d7280; }
.audience-cue.kept { background: var(--cue); box-shadow: inset 0 -1px 0 var(--cue-border); }
.audience-cue.deleted { display: none; }
.inline-controls { display: none !important; }
.review-action-palette, .word-action-palette { position: fixed; display: flex; gap: 4px; padding: 5px; border-radius: 9px; background: #202538; box-shadow: 0 9px 22px rgba(0,0,0,.25); z-index: 80; }
.review-action-palette button { border: 0; width: 28px; height: 27px; border-radius: 6px; background: #fff; color: #1f2937; font-weight: 900; }
.word-action-palette button { border: 0; border-radius: 6px; padding: 7px 9px; background: #fff; color: #1f2937; font-size: 12px; font-weight: 750; }
.review-action-palette button:hover, .word-action-palette button:hover { background: #f4f5f9; }
.timed-word { border-radius: 3px; transition: background .12s ease, color .12s ease; }
.timed-word:hover { background: #e6e3ff; cursor: pointer; }
.timed-word.playing, .suggestion.playing { background: #ffbe5c; color: #3f2600; box-shadow: 0 0 0 2px rgba(255,190,92,.35); }
.bookmark-anchor { display: inline-block; width: 0; height: 1em; vertical-align: middle; border-left: 2px solid #6b5bd6; margin-left: 2px; }
.bookmark-list { display: grid; gap: 7px; }
.bookmark-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 5px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcff; }
.bookmark-row button { border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 750; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bookmark-row .bookmark-delete { color: #b42318; }
.bookmark-add-row button { width: 100%; border: 1px dashed #aaa4ef; border-radius: 8px; padding: 8px; background: #f8f7ff; color: var(--accent); font-weight: 750; }
.audio-player { position: fixed; z-index: 60; bottom: 0; left: 0; right: 0; min-height: 58px; display: grid; grid-template-columns: auto auto auto auto minmax(120px, 1fr) auto auto auto auto; gap: 8px; align-items: center; padding: 9px 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -7px 24px rgba(22,30,52,.11); backdrop-filter: blur(10px); font-size: 12px; }
.audio-player button, .audio-player select { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; background: #fff; font-weight: 750; }
.audio-player input[type="range"] { width: 100%; accent-color: var(--accent); }
.follow-toggle { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.audio-unavailable { position: fixed; z-index: 30; bottom: 12px; right: 18px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--muted); background: #fff; font-size: 11px; box-shadow: 0 5px 15px rgba(22,30,52,.1); }
.duplicate-unit { border-bottom: 2px dotted #f4a261; }
.duplicate-hidden { display: none; }
.deletion-candidate { box-shadow: inset 0 -2px 0 #fda29b; }
.doc-block.review-empty-block { display: none; }
.review-pulse { animation: review-pulse 1.45s ease; }
@keyframes review-pulse {
  0%, 100% { box-shadow: none; }
  22%, 70% { box-shadow: 0 0 0 5px rgba(91,91,214,.22); background-color: #f0efff; }
}

.toast { position: fixed; right: 22px; bottom: 22px; background: #202538; color: white; border-radius: 10px; padding: 11px 15px; box-shadow: var(--shadow); z-index: 50; }
.warning-dialog { width: min(510px, calc(100% - 28px)); border: 0; border-radius: 18px; padding: 30px; color: var(--ink); box-shadow: 0 28px 80px rgba(16,24,40,.3); }
.warning-dialog::backdrop { background: rgba(23,32,51,.48); backdrop-filter: blur(3px); }
.warning-dialog .warning-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #9a3412; background: #ffedd5; font-size: 20px; font-weight: 900; }
.warning-dialog h2 { margin: 13px 0 8px; }
.warning-dialog p, .warning-dialog li { color: var(--muted); font-size: 13px; line-height: 1.5; }
.warning-dialog ul { max-height: 150px; overflow: auto; padding-left: 20px; }
.warning-dialog button { width: 100%; margin-top: 12px; border: 0; border-radius: 10px; padding: 11px; color: #fff; background: var(--accent); font-weight: 800; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: 0 minmax(0,1fr); }
  /* The fixed review drawer is out of grid flow. Explicitly span the document
     across both columns so it cannot be auto-placed in the zero-width column. */
  .document-area { grid-column: 1 / -1; min-width: 0; }
  .review-panel { position: fixed; top: 62px; bottom: 0; left: 0; width: min(340px, 90vw); z-index: 20; box-shadow: var(--shadow); }
  .paper { width: calc(100% - 22px); padding: 42px 28px 70px; margin-top: 12px; }
  .topbar-actions .ghost-button { display: none; }
}

/* Product shell — warm, spacious direction inspired by the supplied reference */
:root {
  --warm-bg: #fff7e5;
  --warm-surface: #fffdf9;
  --warm-ink: #201a17;
  --warm-muted: #756a63;
  --warm-orange: #f47b20;
  --warm-orange-dark: #d85b0b;
  --warm-peach: #ffd8b5;
  --warm-plum: #8e5361;
  --warm-line: #eadfd5;
  --warm-shadow: 0 24px 70px rgba(91, 51, 26, .12);
}
.marketing-body, .app-body, .dashboard-body {
  min-height: 100vh;
  color: var(--warm-ink);
  background: var(--warm-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-nav, .app-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 10px auto 0;
  padding: 8px 12px 8px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px;
  background: rgba(255,253,249,.9);
  box-shadow: 0 8px 30px rgba(94,55,28,.07);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 30;
}
.product-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--warm-ink);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.025em;
}
.mark-orbit, .step-orbit, .upload-orbit {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--warm-orange);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.mark-orbit { width: 34px; height: 34px; font: 800 16px/1 Georgia, serif; }
.site-nav nav, .app-nav nav { display: flex; align-items: center; gap: 30px; }
.site-nav nav a, .app-nav nav a {
  color: var(--warm-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.site-nav nav a:hover, .app-nav nav a:hover, .app-nav nav a.active { color: var(--warm-orange-dark); }
.nav-cta, .avatar-button { justify-self: end; }
.nav-cta, .warm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--warm-orange), #e96212);
  box-shadow: 0 9px 22px rgba(226, 94, 16, .2);
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta { padding: 10px 18px; font-size: 13px; }
.warm-button:hover { transform: translateY(-2px); box-shadow: 0 13px 26px rgba(226,94,16,.25); }
.warm-button.wide { width: 100%; border-radius: 14px; padding: 15px 20px; }
.warm-button:disabled { opacity: .55; transform: none; }
.warm-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warm-orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.warm-eyebrow > span { width: 18px; height: 2px; background: currentColor; }

.marketing-hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: -34px auto 0;
  padding: 120px 64px 72px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 70px;
  border-radius: 0 0 36px 36px;
  background: var(--warm-surface);
  overflow: hidden;
}
.hero-copy h1 {
  margin: 18px 0 20px;
  font: 700 clamp(48px, 6vw, 82px)/.94 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
}
.hero-copy h1 em { color: var(--warm-orange); font-weight: 500; }
.hero-copy > p { max-width: 570px; color: var(--warm-muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.text-link { color: var(--warm-ink); text-decoration: none; font-weight: 800; font-size: 14px; }
.text-link span { color: var(--warm-orange); margin-left: 5px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; color: var(--warm-muted); font-size: 11px; font-weight: 650; }
.trust-row span::first-letter { color: var(--warm-orange); }
.product-stage { min-height: 500px; position: relative; display: grid; place-items: center; }
.sun-disc {
  position: absolute;
  width: min(440px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(155deg, #ffe8c6 5%, #ff9e39 92%);
}
.sun-disc::after {
  content: ""; position: absolute; inset: 14%; border-radius: inherit;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.4), transparent 45%);
}
.phone-preview {
  width: 250px; min-height: 450px; padding: 20px 16px;
  border: 7px solid #372a25; border-radius: 34px;
  color: #342821; background: rgba(255,249,240,.93);
  box-shadow: 0 32px 60px rgba(88,42,16,.28);
  position: relative; z-index: 3; transform: rotate(-1.5deg);
}
.phone-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #8d7c70; font-size: 10px; }
.phone-top span { width: 8px; height: 8px; border-radius: 50%; background: #8bc79d; }
.phone-top small { justify-self: end; }
.preview-title { margin: 34px 4px 18px; font: 700 21px/1.15 Georgia, serif; }
.preview-copy { margin: 10px 0; padding: 13px; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(80,48,29,.08); font: 13px/1.45 Georgia, serif; }
.preview-copy mark { background: #fff1a8; border-radius: 3px; }
.preview-copy mark b { color: #806500; }
.cue-copy { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; align-items: center; background: #f6edff; }
.cue-copy span, .cue-copy b { font: 700 9px/1 Inter, sans-serif; color: #80569e; }
.scripture-copy { color: #b42318; font-weight: 700; }
.phone-preview > button { width: 100%; margin-top: 18px; padding: 11px; border: 0; border-radius: 11px; color: #fff; background: #f47b20; font-weight: 800; }
.float-card {
  position: absolute; z-index: 5; width: 182px; padding: 17px;
  display: grid; gap: 5px; border-radius: 20px; color: #fff;
  box-shadow: 0 22px 38px rgba(80,39,16,.24); transform: rotate(8deg);
}
.float-card small { opacity: .78; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.float-card strong { font: 700 16px/1.2 Georgia, serif; }
.float-card span { font-size: 11px; }
.correction-card { right: -8px; top: 74px; background: linear-gradient(135deg, #c95e26, #ff8914); }
.format-card { right: 0; bottom: 58px; background: linear-gradient(135deg, #8e5361, #e58b5c); transform: rotate(6deg); }

.workflow-section, .pricing-section {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 90px 64px;
  border-radius: 36px;
  background: var(--warm-surface);
}
.section-intro { display: grid; grid-template-columns: 70px 1fr; gap: 22px; }
.step-orbit { width: 54px; height: 54px; font-weight: 850; }
.section-intro h2, .pricing-section h2 {
  margin: 12px 0 0; font: 650 clamp(34px, 4vw, 54px)/1.05 Georgia, serif; letter-spacing: -.035em;
}
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 50px; }
.workflow-grid article { min-height: 240px; padding: 24px; border: 1px solid var(--warm-line); border-radius: 22px; background: #fffaf2; }
.workflow-grid article:nth-child(2) { background: #fff0dc; transform: translateY(-14px); }
.workflow-grid article:nth-child(3) { background: #f8e9ea; transform: translateY(-28px); }
.workflow-grid article:nth-child(4) { color: #fff; border-color: transparent; background: linear-gradient(155deg, #f08a35, #c95714); transform: translateY(-42px); }
.workflow-grid article > span { font: 700 12px/1 Inter, sans-serif; opacity: .65; }
.workflow-grid h3 { margin: 60px 0 12px; font: 700 21px/1.1 Georgia, serif; }
.workflow-grid p { margin: 0; color: inherit; opacity: .72; font-size: 13px; line-height: 1.6; }
.pricing-section { display: grid; grid-template-columns: 1fr 420px; gap: 100px; align-items: center; margin-bottom: 18px; }
.pricing-section > div > p { max-width: 520px; color: var(--warm-muted); line-height: 1.65; }
.price-card { padding: 34px; border-radius: 28px; color: #fff; background: linear-gradient(145deg, #8b4b58, #c56342 55%, #f47b20); box-shadow: var(--warm-shadow); }
.price-card .price { font: 700 52px/1 Georgia, serif; }
.price-card > div small { margin-left: 7px; opacity: .8; }
.price-card p, .price-card li { font-size: 13px; line-height: 1.55; }
.price-card ul { padding-left: 18px; margin: 22px 0; }
.price-card .warm-button { width: 100%; color: var(--warm-orange-dark); background: #fff; box-shadow: none; }
.price-card > small { display: block; margin-top: 14px; text-align: center; opacity: .68; }
.marketing-body footer {
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 18px 38px;
  display: flex; justify-content: space-between; align-items: center; color: var(--warm-muted); font-size: 12px;
}

/* Upload and usage application */
.app-body, .dashboard-body { background: #f7f1e9; }
.app-nav { margin-top: 12px; border-radius: 18px; position: sticky; top: 10px; }
.avatar-button {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--warm-orange); text-decoration: none; font-size: 11px; font-weight: 850;
}
.upload-layout, .dashboard-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 80px 0; }
.upload-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.upload-intro { padding-top: 26px; }
.upload-intro h1, .dashboard-heading h1 {
  margin: 14px 0 18px; font: 700 clamp(44px, 6vw, 70px)/.98 Georgia, serif; letter-spacing: -.05em;
}
.upload-intro > p { color: var(--warm-muted); line-height: 1.7; max-width: 470px; }
.policy-note { margin-top: 38px; padding: 20px; border: 1px solid var(--warm-line); border-radius: 18px; background: rgba(255,255,255,.55); }
.policy-note span { display: block; color: var(--warm-orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.policy-note strong { display: block; margin-top: 8px; font: 700 16px/1.3 Georgia, serif; }
.policy-note p { margin: 7px 0 0; color: var(--warm-muted); font-size: 12px; line-height: 1.5; }
.upload-card { padding: 28px; border: 1px solid rgba(255,255,255,.9); border-radius: 30px; background: var(--warm-surface); box-shadow: var(--warm-shadow); }
.studio-drop-zone {
  min-height: 300px; padding: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px dashed #d9bfa9; border-radius: 22px; background: #fff9ef; text-align: center; transition: .2s ease;
}
.studio-drop-zone:hover { border-color: var(--warm-orange); background: #fff4e1; }
.studio-drop-zone input { position: absolute; opacity: 0; pointer-events: none; }
.studio-drop-zone .upload-orbit { width: 54px; height: 54px; margin-bottom: 10px; font-size: 24px; }
.studio-drop-zone strong { font: 700 20px/1.2 Georgia, serif; }
.studio-drop-zone > span:last-child { color: var(--warm-muted); font-size: 12px; overflow-wrap: anywhere; }
.option-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.option-cards label { padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; border: 1px solid var(--warm-line); border-radius: 14px; }
.option-cards input { accent-color: var(--warm-orange); }
.option-cards strong, .option-cards small { display: block; }
.option-cards strong { font-size: 12px; }
.option-cards small { margin-top: 3px; color: var(--warm-muted); font-size: 10px; line-height: 1.35; }
.app-body .processing-message { color: var(--warm-muted); font-size: 12px; }
.recent-work { grid-column: 1 / -1; margin-top: 48px; }
.section-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-row h2 { margin: 7px 0 0; font: 700 28px/1.1 Georgia, serif; }
.section-row > a { color: var(--warm-orange-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
.recent-work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.recent-work-grid > a {
  padding: 15px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  color: var(--warm-ink); border: 1px solid var(--warm-line); border-radius: 16px; background: rgba(255,255,255,.72); text-decoration: none;
}
.file-glyph { width: 38px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: var(--warm-orange-dark); background: #ffe5c7; font: 700 16px/1 Georgia, serif; }
.recent-work-grid strong, .recent-work-grid small { display: block; }
.recent-work-grid strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-work-grid small { margin-top: 4px; color: var(--warm-muted); font-size: 10px; }
.recent-work-grid b { color: var(--warm-orange); }

.dashboard-shell { padding-top: 62px; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.dashboard-heading h1 { font-size: clamp(42px, 5vw, 64px); margin-bottom: 8px; }
.dashboard-heading p { margin: 0; color: var(--warm-muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 38px; }
.metric-grid article { min-height: 174px; padding: 22px; border: 1px solid var(--warm-line); border-radius: 21px; background: rgba(255,255,255,.78); }
.metric-grid article > span { color: var(--warm-muted); font-size: 11px; font-weight: 750; }
.metric-grid article > strong { display: block; margin-top: 32px; font: 700 34px/1 Georgia, serif; }
.metric-grid article > strong small { font-size: 15px; color: var(--warm-muted); }
.metric-grid article > p { margin: 9px 0 0; color: var(--warm-muted); font-size: 11px; }
.metric-grid .split-cost { color: #fff; border: 0; background: linear-gradient(145deg, #8d5060, #c75c3d); }
.split-cost > span { color: rgba(255,255,255,.75) !important; }
.split-cost > div { margin-top: 25px; }
.split-cost p { display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center; margin: 10px 0; font-size: 11px; }
.orange-dot, .plum-dot { width: 8px; height: 8px; border-radius: 50%; background: #ffb66f; }
.plum-dot { background: #f2d3dc; }
.usage-table-card { margin-top: 16px; padding: 28px; border: 1px solid var(--warm-line); border-radius: 26px; background: var(--warm-surface); }
.usage-table-card .section-row > small { max-width: 340px; color: var(--warm-muted); text-align: right; font-size: 10px; line-height: 1.45; }
.usage-table-wrap { margin-top: 24px; overflow-x: auto; }
.usage-table-card table { width: 100%; border-collapse: collapse; min-width: 800px; }
.usage-table-card th { padding: 11px 12px; color: var(--warm-muted); border-bottom: 1px solid var(--warm-line); font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.usage-table-card td { padding: 15px 12px; border-bottom: 1px solid #f1e8df; font-size: 12px; }
.usage-table-card td a { color: var(--warm-ink); text-decoration: none; }
.usage-table-card td strong, .usage-table-card td small { display: block; }
.usage-table-card td small { margin-top: 4px; color: var(--warm-muted); font-size: 9px; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #8a5318; background: #fff0d3; font-size: 9px; font-weight: 850; text-transform: capitalize; }
.status-pill.completed { color: #226746; background: #def4e7; }
.status-pill.failed { color: #a33a2f; background: #fde4e1; }
.dashboard-empty { padding: 70px 20px; text-align: center; }
.dashboard-empty .upload-orbit { width: 52px; height: 52px; }
.dashboard-empty h3 { margin: 16px 0 5px; font: 700 23px/1.1 Georgia, serif; }
.dashboard-empty p { color: var(--warm-muted); font-size: 12px; }
.dashboard-empty a { color: var(--warm-orange-dark); font-weight: 800; font-size: 12px; }

@media (max-width: 900px) {
  .site-nav, .app-nav { grid-template-columns: 1fr auto; width: calc(100% - 20px); margin-top: 8px; }
  .site-nav nav, .app-nav nav { display: none; }
  .marketing-hero { grid-template-columns: 1fr; padding: 110px 28px 50px; gap: 20px; }
  .hero-copy { text-align: center; }
  .warm-eyebrow, .hero-actions, .trust-row { justify-content: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .product-stage { min-height: 520px; }
  .workflow-section, .pricing-section { padding: 55px 28px; }
  .workflow-grid { grid-template-columns: 1fr 1fr; }
  .workflow-grid article:nth-child(n) { transform: none; }
  .pricing-section { grid-template-columns: 1fr; gap: 40px; }
  .upload-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 44px; }
  .upload-intro { text-align: center; }
  .upload-intro .warm-eyebrow { justify-content: center; }
  .upload-intro > p { margin-left: auto; margin-right: auto; }
  .policy-note { text-align: left; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-heading { align-items: center; }
}
@media (max-width: 600px) {
  .product-mark > span:last-child { font-size: 13px; }
  .site-nav .nav-cta { font-size: 11px; padding: 9px 13px; }
  .marketing-hero { width: calc(100% - 14px); margin-top: -32px; padding-left: 20px; padding-right: 20px; border-radius: 0 0 26px 26px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-actions { flex-direction: column; gap: 16px; }
  .trust-row { display: grid; gap: 7px; }
  .product-stage { min-height: 470px; transform: scale(.9); margin: -20px -18px; }
  .float-card { width: 150px; }
  .correction-card { right: -15px; }
  .format-card { right: -12px; }
  .workflow-section, .pricing-section { width: calc(100% - 14px); padding: 44px 20px; border-radius: 26px; }
  .section-intro { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: 185px; }
  .workflow-grid h3 { margin-top: 35px; }
  .marketing-body footer { align-items: flex-start; gap: 20px; flex-direction: column; }
  .upload-layout, .dashboard-shell { width: calc(100% - 20px); padding-top: 36px; }
  .upload-intro h1 { font-size: 46px; }
  .upload-card { padding: 14px; border-radius: 22px; }
  .studio-drop-zone { min-height: 240px; padding: 20px; }
  .option-cards, .recent-work-grid { grid-template-columns: 1fr; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-heading .warm-button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { min-height: 140px; }
  .metric-grid article > strong { margin-top: 23px; }
  .usage-table-card { padding: 18px 14px; }
  .usage-table-card .section-row { align-items: flex-start; flex-direction: column; }
  .usage-table-card .section-row > small { text-align: left; }
  .editor-body .topbar { padding: 0 9px; gap: 7px; }
  .editor-body .brand {
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--warm-orange);
    font-size: 0;
  }
  .editor-body .brand::after { content: "S"; font: 800 15px/1 Georgia, serif; }
  .editor-body .editor-usage-link { display: none; }
  .editor-body .topbar-actions { min-width: 0; gap: 4px; }
  .editor-body .topbar button { padding: 7px 9px; font-size: 11px; }
  .review-tabs { grid-template-columns: repeat(2, 1fr); }
  .audio-player { grid-template-columns: auto auto auto minmax(80px,1fr) auto; gap: 5px; padding: 7px 9px; }
  .audio-player #audio-back, .audio-player #audio-forward, .audio-player #audio-current-word, .audio-player .follow-toggle, .audio-player #audio-speed { display: none; }
  .audio-player #audio-current, .audio-player #audio-duration { font-size: 10px; }
  .paper { margin-bottom: 92px; }
}

/* Spoken production shell */
.credit-balance { display:flex; justify-content:space-between; align-items:center; margin:0 0 14px; padding:11px 13px; border-radius:12px; background:#fff4e8; color:#7a3d10; font-size:13px; }
.credit-balance strong { color:#c75d12; }
.recent-jobs p { margin:8px 0; }
.recent-jobs a { display:flex; justify-content:space-between; gap:12px; color:var(--warm-ink, var(--ink)); text-decoration:none; padding:10px 0; border-bottom:1px solid rgba(120,75,24,.12); }
.recent-jobs small { color:var(--warm-muted, var(--muted)); text-transform:capitalize; }
.job-progress { min-height:calc(100vh - 62px); display:grid; place-items:center; padding:24px; background:#f7f1e9; }
.progress-card { width:min(590px,100%); padding:42px; border-radius:28px; background:#fffdf9; box-shadow:0 20px 50px rgba(94,53,16,.14); }
.progress-card h1 { margin:10px 0; font:700 clamp(30px,5vw,46px)/1.05 Georgia,serif; }
.progress-card p { color:#806d5e; }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:28px 0; }
.metric-grid article { padding:20px; border-radius:18px; background:#fffdf9; box-shadow:0 8px 24px rgba(94,53,16,.08); }
.metric-grid span,.metric-grid strong { display:block; }.metric-grid span { color:#806d5e; font-size:12px; }.metric-grid strong { margin-top:7px; font-size:26px; color:#3b2415; }
.admin-table { padding:25px; border-radius:22px; background:#fffdf9; box-shadow:0 8px 24px rgba(94,53,16,.08); }.admin-jobs { display:grid; gap:1px; }.admin-job { display:grid; grid-template-columns:minmax(0,2fr) 110px 80px 90px; gap:12px; align-items:center; padding:13px 0; border-bottom:1px solid rgba(120,75,24,.12); font-size:13px; }.admin-job small { display:block; overflow:hidden; text-overflow:ellipsis; color:#806d5e; }
@media (max-width:700px) { .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.admin-job { grid-template-columns:1fr auto; }.admin-job span:nth-child(3),.admin-job span:nth-child(4) { display:none; }.progress-card { padding:28px 22px; } }
