/* Limelit Landing
   - Single-page, responsive, light+dark theme (default: light)
   - 4px spacing grid, consistent gradients, scroll reveals
*/

:root{
  --bg: #f5f7fa;
  --bg2: #edf0f5;
  --card:#ffffff;
  --card2:#f8f9fb;
  --text:#1a1d27;
  --muted:#6b7280;
  --muted2:#9ca3af;
  --line: rgba(0,0,0,.08);
  --accent:#2e7d0f;
  --accent2:#6c4ce6;
  --gradient: linear-gradient(135deg, #2e7d0f, #6c4ce6);
  --shadow: 0 20px 60px rgba(0,0,0,.07);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.04);
  --radius: 16px;
  --radius2: 12px;
  --max: 1120px;
  --focus: 0 0 0 3px rgba(46,125,15,.25);
  /* ── Semantic surface/overlay tokens ── */
  --surface-1: rgba(0,0,0,.02);
  --surface-2: rgba(0,0,0,.03);
  --surface-3: rgba(0,0,0,.05);
  --border-1: rgba(0,0,0,.08);
  --border-2: rgba(0,0,0,.10);
  --border-3: rgba(0,0,0,.14);
  --text-faint: rgba(0,0,0,.30);
  --text-light: rgba(0,0,0,.55);
  --backdrop: rgba(0,0,0,.45);
  --bg-blur: rgba(245,247,250,.88);
  --bg-blur-strong: rgba(245,247,250,.96);
  --accent-bg-1: rgba(46,125,15,.07);
  --accent-bg-2: rgba(46,125,15,.12);
  --accent-bg-3: rgba(46,125,15,.18);
  --accent-border: rgba(46,125,15,.28);
  --accent2-bg: rgba(108,76,230,.10);
  --card-modal: #ffffff;
  --on-accent: #fff;
  --scrollbar: rgba(0,0,0,.15);
  --input-bg: rgba(0,0,0,.04);
  --slide-overlay: rgba(0,0,0,.55);
}
[data-theme="dark"]{
  --bg: #0b0f1a;
  --bg2: #0e1424;
  --card:#121a30;
  --card2:#151e38;
  --text:#eaf0ff;
  --muted:#b0bcd6;
  --muted2:#8e9abf;
  --line: rgba(255,255,255,.08);
  --accent:#89F336;
  --accent2:#7c5cff;
  --gradient: linear-gradient(135deg, rgba(137,243,54,.92), rgba(124,92,255,.86));
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.2);
  --focus: 0 0 0 3px rgba(137,243,54,.25);
  --surface-1: rgba(255,255,255,.02);
  --surface-2: rgba(255,255,255,.04);
  --surface-3: rgba(255,255,255,.06);
  --border-1: rgba(255,255,255,.08);
  --border-2: rgba(255,255,255,.10);
  --border-3: rgba(255,255,255,.15);
  --text-faint: rgba(255,255,255,.30);
  --text-light: rgba(255,255,255,.60);
  --backdrop: rgba(0,0,0,.70);
  --bg-blur: rgba(11,15,26,.72);
  --bg-blur-strong: rgba(11,15,26,.96);
  --accent-bg-1: rgba(137,243,54,.06);
  --accent-bg-2: rgba(137,243,54,.12);
  --accent-bg-3: rgba(137,243,54,.18);
  --accent-border: rgba(137,243,54,.25);
  --accent2-bg: rgba(124,92,255,.10);
  --card-modal: #161b2e;
  --on-accent: #061019;
  --scrollbar: rgba(255,255,255,.15);
  --input-bg: rgba(0,0,0,.25);
  --slide-overlay: rgba(0,0,0,.55);
}

.hidden{display:none!important}
*{box-sizing:border-box}
body{min-height:100%}
body{animation:pageIn .18s ease-out}
@keyframes pageIn{from{opacity:0}to{opacity:1}}
html{
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body{
  margin:0;
  padding:0;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color:var(--text);
  line-height:1.6;
  width: 100%;
}

a{color:inherit; text-decoration:none}
a:not(.btn):hover{color: var(--text)}
strong{font-weight:700}
img{max-width:100%; height:auto}

.container{
  width:100%;
  max-width: var(--max);
  margin:0 auto;
  padding: 0 24px;
}

.skip{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;height:1px;overflow:hidden;
}
.skip:focus{
  left:16px; top:12px; width:auto; height:auto;
  background:#fff; color:#000;
  padding:10px 12px; border-radius:10px;
  z-index:9999;
}

/* ============================================================
   HEADER
   ============================================================ */
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--bg-blur);
  border-bottom:1px solid var(--surface-3);
}
/* Sticky CTA bar disabled: content scrolls normally without it */
.header-cta-sticky{
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-blur-strong);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-2);
  padding: 12px 0;
  z-index: 45;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.header-cta-sticky .container{
  display: flex;
  justify-content: center;
}
.header-cta-sticky .btn{
  width: auto;
  min-width: 200px;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.logo{
  width:34px;height:34px;
  display:grid;place-items:center;
  border-radius:12px;
  color: var(--accent);
  background: var(--accent-bg-2);
  border:1px solid var(--accent-border);
}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-name{font-weight:800; letter-spacing:-0.02em}
.brand-tag{font-size:12px;color:var(--muted); margin-top:2px}

.navlinks{
  display:flex;
  align-items:center;
  gap:20px;
}
.navlinks a{color:var(--muted); font-weight:600; font-size:14px}
.navlinks a:hover{color:var(--text)}
/* Active nav link */
.navlinks a.active{color:var(--text)}
/* Gradient text for "Studio" link in nav */
.navlinks a.nav-create,
.navlinks a.nav-studio{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.navlinks a.nav-create:hover,
.navlinks a.nav-studio:hover{
  background: linear-gradient(90deg, #97ff42, #8b6fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Primary button in nav (e.g. Dashboard): dark text for readability on gradient */
.navlinks .btn-primary{
  color:var(--on-accent);
  text-shadow:none;
}
.navlinks .btn-primary:hover{
  color:var(--on-accent);
}

/* Account link in nav (was profile icon) */
.nav-profile-icon{
  font-weight: 700;
  transition: all .15s ease;
}
.nav-profile-icon:hover,
.nav-profile-icon.active{
  color: var(--accent);
}

/* Content option cards */
.content-option-card{
  text-align: left;
  cursor: pointer;
  border: 2px solid var(--border-2);
  border-radius: var(--radius2);
  padding: 14px 16px;
  background: var(--card);
  transition: border-color .2s, background .2s;
  overflow: hidden;
  min-width: 0;
}
.content-option-card:hover{
  border-color: var(--border-3);
  background: var(--card2);
}
.content-option-card.selected{
  border-color: var(--accent);
  background: var(--accent-bg-1);
}
.option-hook-row{
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.option-hook-text{
  flex: 1;
  line-height: 1.5;
}
.option-edit-btn{
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 8px;
  transition: all .15s;
}
.option-edit-btn:hover{
  border-color: var(--accent);
  color: var(--accent);
}
.option-edit-btn.hidden{ display: none; }
.option-hook-edit{
  margin-top: 10px;
  padding: 12px;
  background: rgba(0,0,0,.2);
  border-radius: 8px;
  border: 1px solid var(--border-1);
}
.option-hook-edit.hidden{ display: none; }
/* Unified content edit panel (all fields) */
.option-content-edit{
  margin-top: 10px;
  padding: 12px;
  background: rgba(0,0,0,.2);
  border-radius: 8px;
  border: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option-content-edit.hidden{ display: none; }
.option-field-group{
  display: flex;
  flex-direction: column;
}
.option-field-textarea,
.option-hook-textarea,
.option-cta-textarea{
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  resize: vertical;
  line-height: 1.5;
}
.option-field-textarea:focus,
.option-hook-textarea:focus,
.option-cta-textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}
.option-edited-badge{
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg-2);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.option-full-text summary{
  user-select: none;
}
.option-full-text[open] summary{
  margin-bottom: 4px;
}
/* ── Video type grid (landing-style format cards) ── */
.vt-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.vt-grid-hidden{
  display:grid;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .35s ease,opacity .25s ease,margin-top .25s ease;
  margin-top:0;
}
.vt-grid-hidden.show{
  max-height:2000px;
  opacity:1;
  margin-top:16px;
}
@media(max-width:768px){
  .vt-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:480px){
  .vt-grid{grid-template-columns:1fr}
}
.vt-card{
  position:relative;
  text-align:left;
  cursor:pointer;
  border:1px solid var(--border-1);
  background:var(--surface-2);
  border-radius:var(--radius,12px);
  padding:24px;
  border-top:3px solid var(--accent);
  transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.vt-card:hover{
  border-color:var(--border-3);
  background:var(--surface-3);
  box-shadow:0 4px 16px rgba(0,0,0,.15);
}
.vt-card.selected{
  border-color:var(--accent)!important;
  background:var(--accent-bg-1)!important;
  box-shadow:0 0 20px var(--accent-bg-2);
}
.vt-card:nth-child(3n+2){border-top-color:var(--accent2)}
.vt-card:nth-child(3n+3){border-top-color:#ff6b9d}
.vt-tag{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--accent);
  margin-bottom:10px;
  padding:3px 8px;
  background:var(--accent-bg-1);
  border-radius:4px;
}
.vt-card:nth-child(3n+2) .vt-tag{
  color:var(--accent2);
  background:var(--accent2-bg);
}
.vt-card:nth-child(3n+3) .vt-tag{
  color:#ff6b9d;
  background:rgba(255,107,157,.08);
}
.vt-card h4{
  margin:0 0 8px;
  font-size:16px;
  font-weight:800;
  color:var(--text);
}
.vt-card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
/* ── Video/Slideshow format tabs ── */
.vt-tabs{
  display:flex;
  gap:4px;
  margin-bottom:16px;
  border-bottom:1px solid var(--border-1);
  padding-bottom:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.vt-tabs::-webkit-scrollbar{display:none}
.vt-tab{
  position:relative;
  padding:10px 20px;
  font-size:14px;
  font-weight:700;
  color:var(--muted);
  background:none;
  border:none;
  cursor:pointer;
  transition:color .15s,background .15s;
  border-radius:8px 8px 0 0;
  white-space:nowrap;
  flex-shrink:0;
}
.vt-tab:hover{color:var(--text);background:var(--surface-2)}
.vt-tab.active{
  color:var(--text);
  background:var(--surface-3);
}
.vt-tab.active::after{
  content:'';
  position:absolute;
  bottom:-1px;left:0;right:0;
  height:2px;
  background:var(--accent);
  border-radius:2px 2px 0 0;
}
.vt-tab-badge{
  display:inline-block;
  font-size:10px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  margin-left:6px;
  padding:2px 6px;
  border-radius:4px;
  background:var(--accent-bg-2);
  color:var(--accent);
  vertical-align:middle;
}
.vt-panel{display:none}
.vt-panel.active{display:block;animation:panelFadeIn .2s ease}
@keyframes panelFadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}

/* ── Content category sections ── */
.vt-category-section{
  margin-bottom:24px;
}
.vt-category-section:last-child{margin-bottom:0}
.vt-category-header{
  padding:12px 16px;
  border-radius:10px;
  background:var(--surface-2);
  border:1px solid var(--border-1);
  transition:background .15s ease;
}
.vt-category-header:hover{background:var(--surface-3)}
.vt-category-header.collapsed .vt-category-title h3::after{
  content:'';
  display:inline-block;
  width:6px;height:6px;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(-45deg);
  margin-left:8px;
  vertical-align:middle;
  transition:transform .2s ease;
}
.vt-category-header:not(.collapsed) .vt-category-title h3::after{
  content:'';
  display:inline-block;
  width:6px;height:6px;
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  transform:rotate(45deg);
  margin-left:8px;
  vertical-align:middle;
}
.vt-category-title{
  display:flex;
  align-items:center;
  gap:8px;
}
.vt-category-title svg{
  width:20px;height:20px;
  flex-shrink:0;
  color:var(--accent);
}
.vt-category-title h3{
  margin:0;
  font-size:15px;
  font-weight:700;
  color:var(--text);
}
.vt-category-count{
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  background:var(--surface-3);
  padding:2px 7px;
  border-radius:10px;
}
.vt-category-desc{
  margin:4px 0 0 28px;
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
}
.vt-category-section > .vt-grid{
  margin-top:14px;
}
.vt-badges{
  display:flex;
  gap:6px;
  margin-top:10px;
  flex-wrap:wrap;
}
.vt-format-badge{
  display:inline-block;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  padding:3px 8px;
  border-radius:4px;
  background:var(--surface-3);
  color:var(--muted);
}
.vt-format-badge.vt-book-opt{
  background:rgba(16,185,129,.1);
  color:#10b981;
}

/* ── Slideshow preview carousel ── */
.slideshow-preview{
  display:flex;
  gap:12px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding:8px 0 12px;
  scrollbar-width:thin;
  scrollbar-color:var(--scrollbar) transparent;
}
.slideshow-preview::-webkit-scrollbar{height:6px}
.slideshow-preview::-webkit-scrollbar-track{background:transparent}
.slideshow-preview::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:3px}
.slideshow-slide-thumb{
  flex:0 0 auto;
  width:108px;
  height:192px;
  border-radius:8px;
  object-fit:cover;
  border:2px solid transparent;
  cursor:pointer;
  scroll-snap-align:start;
  transition:border-color .15s,transform .15s;
}
.slideshow-slide-thumb:hover{border-color:var(--border-3);transform:scale(1.03)}
.slideshow-slide-thumb.active{border-color:var(--accent)}

/* ── Slide carousel (content option cards) ── */
.slide-carousel{
  display:flex;gap:12px;overflow-x:auto;padding:12px 0;margin-top:8px;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;scrollbar-color:var(--scrollbar) transparent;
}
.slide-carousel::-webkit-scrollbar{height:6px}
.slide-carousel::-webkit-scrollbar-track{background:transparent}
.slide-carousel::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:3px}
.slide-carousel-item{
  flex:0 0 auto;width:140px;aspect-ratio:9/16;border-radius:8px;
  border:1px solid var(--border-2);scroll-snap-align:start;
  transition:border-color .15s,transform .15s;overflow:hidden;position:relative;
  background:var(--gradient);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:10px 10px;text-align:center;
}
.slide-carousel-item:hover{border-color:var(--border-3);transform:scale(1.02)}
.slide-bg-overlay{
  position:absolute;inset:0;background:var(--slide-overlay);
  border-radius:inherit;pointer-events:none;
}
.slide-carousel-num{
  position:absolute;top:8px;left:10px;font-size:10px;
  color:var(--text-faint);font-weight:600;z-index:1;
}
.slide-carousel-text{
  position:relative;z-index:1;color:#fff;
  font-weight:700;line-height:1.3;
  text-shadow:0 2px 6px rgba(0,0,0,.5);
  word-break:break-word;overflow:hidden;
}
.slide-carousel-text.type-hook{font-size:12px;font-weight:800}
.slide-carousel-text.type-content{font-size:11px;font-weight:600;color:rgba(255,255,255,.9)}
.slide-carousel-text.type-cta{font-size:10px;font-weight:700;color:#26f7c3}
.slide-carousel-text.type-reveal{font-size:12px;font-weight:800;color:var(--accent)}
.slide-carousel-label{font-size:11px;color:var(--muted);margin-bottom:2px;margin-top:6px}

/* Slide inline editing states */
.slide-carousel-item.slide-editing{
  border-color:var(--accent);transform:scale(1.04);
  box-shadow:0 0 0 2px var(--accent-bg-3),0 4px 16px rgba(0,0,0,.3);
  z-index:2;
}
.slide-carousel-item.slide-editing .slide-carousel-text{
  outline:none;overflow:auto;min-height:2em;cursor:text;
  background:transparent !important;
  -webkit-appearance:none;
}
.slide-carousel-item .slide-carousel-text::selection{
  background:rgba(255,255,255,.25);
}
.slide-carousel-item .slide-carousel-text[contenteditable="true"]{
  background:transparent !important;
}
.slide-carousel-item.slide-edited{border-color:var(--accent-border)}
.slide-carousel-item.slide-edited::after{
  content:'';position:absolute;top:6px;right:6px;
  width:6px;height:6px;border-radius:50%;
  background:var(--accent);z-index:2;
}
.slide-edit-tooltip{
  position:absolute;bottom:8px;left:50%;transform:translateX(-50%);
  font-size:9px;color:var(--muted);background:var(--card);
  padding:2px 8px;border-radius:4px;white-space:nowrap;
  z-index:3;pointer-events:none;
  animation:slideTooltipFade 2s ease forwards;
}
@keyframes slideTooltipFade{
  0%,70%{opacity:1}100%{opacity:0}
}
.slide-carousel-item:not(.slide-editing):not([data-read-only="true"]) .slide-carousel-text{
  position:relative;
}
.slide-carousel-item:not(.slide-editing):not([data-read-only="true"]):hover .slide-carousel-num::after{
  content:' ✎';font-size:8px;opacity:.6;
}

/* ── Scene selection step ── */

/* Scene tab bar */
/* ── Scene Picker — C2: Carousel + Reader ── */

/* Filter pills row */
.scene-filter-row{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}
.scene-filter{
  padding:5px 12px;border-radius:16px;border:1px solid var(--border-2);
  background:transparent;color:var(--muted);font-size:11px;font-weight:600;
  cursor:pointer;transition:all .15s;text-transform:uppercase;letter-spacing:.5px;
}
.scene-filter:hover{border-color:var(--border-3);color:var(--text)}
.scene-filter.active{background:var(--text);color:var(--card);border-color:var(--text)}
.scene-filter .sf-icon{margin-right:3px}

/* Category badge (small inline tag) */
.scene-cat-badge{
  display:inline-flex;align-items:center;gap:4px;
  font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;
  color:var(--muted);background:var(--surface-3);padding:2px 8px;border-radius:10px;
  width:fit-content;
}

/* Horizontal carousel of scene thumbnails */
.scene-carousel{
  display:flex;gap:10px;overflow-x:auto;padding:4px 0 10px;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;scrollbar-color:var(--scrollbar) transparent;
}
.scene-carousel::-webkit-scrollbar{height:4px}
.scene-carousel::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:2px}

.scene-thumb{
  flex:0 0 auto;width:140px;padding:10px 12px;
  border-radius:10px;border:2px solid var(--border-1);
  cursor:pointer;scroll-snap-align:start;
  transition:all .15s;background:var(--card);
  display:flex;flex-direction:column;gap:6px;
}
.scene-thumb:hover{border-color:var(--border-3);transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.scene-thumb.active{
  border-color:var(--accent);
  background:var(--accent-bg-1);
  box-shadow:0 0 0 2px var(--accent-bg-3);
}
.scene-thumb-type{
  font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;
  color:var(--muted2);
}
.scene-thumb-text{
  font-size:11px;line-height:1.4;color:var(--text);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.scene-thumb-idx{
  font-size:9px;color:var(--text-faint);font-weight:600;margin-top:auto;
}

/* Recommended badge on scene thumbnails — subtle dashed border, NOT same as active */
.scene-thumb-recommended:not(.active){
  border-color:var(--border-3);
  border-style:dashed;
}
.scene-rec-badge{
  font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;
  color:var(--accent);background:var(--accent-bg-2);
  padding:2px 6px;border-radius:6px;width:fit-content;
  line-height:1.3;
}

/* Reader panel (shows full text of selected scene) */
.scene-reader{
  margin-top:12px;padding:16px 18px;
  border-radius:10px;border:1.5px solid var(--border-2);
  background:var(--surface-1);
  min-height:80px;transition:all .2s ease;
}
.scene-reader.has-selection{
  border-color:var(--accent-border);
  background:var(--accent-bg-1);
}
.scene-reader-empty{
  font-size:13px;color:var(--muted);text-align:center;padding:20px 0;
  font-style:italic;
}
.scene-reader-badge{margin-bottom:8px}
.scene-reader-text{font-size:14px;line-height:1.65;color:var(--text)}
.scene-reader-source{font-size:11px;color:var(--muted);margin-top:10px;font-style:italic}

/* ── Voice Picker ── */
.voice-carousel{
  display:flex;gap:10px;overflow-x:auto;padding:4px 0 10px;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:thin;scrollbar-color:var(--scrollbar) transparent;
}
.voice-carousel::-webkit-scrollbar{height:4px}
.voice-carousel::-webkit-scrollbar-thumb{background:var(--scrollbar);border-radius:2px}
.voice-card{
  flex:0 0 auto;width:130px;padding:12px;
  border-radius:10px;border:2px solid var(--border-1);
  cursor:pointer;scroll-snap-align:start;
  transition:all .15s;background:var(--card);
  display:flex;flex-direction:column;align-items:center;gap:6px;
  text-align:center;position:relative;
}
.voice-card:hover{border-color:var(--border-3);transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.voice-card.selected{
  border-color:var(--accent);
  background:var(--accent-bg-1);
  box-shadow:0 0 0 2px var(--accent-bg-3);
}
.voice-card-name{font-size:13px;font-weight:700;color:var(--text)}
.voice-card-gender{
  font-size:10px;text-transform:uppercase;letter-spacing:.5px;
  color:var(--muted2);font-weight:600;
}
.voice-card-style{
  font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;
  color:var(--accent);background:var(--accent-bg-2);
  padding:2px 8px;border-radius:6px;
}
.voice-card-play{
  width:32px;height:32px;border-radius:50%;
  border:1.5px solid var(--border-2);background:var(--surface-2);
  color:var(--text);cursor:pointer;display:grid;place-items:center;
  transition:all .15s;font-size:14px;margin-top:2px;
}
.voice-card-play:hover{
  background:var(--accent-bg-2);border-color:var(--accent-border);color:var(--accent);
}
.voice-card-play.playing{
  background:var(--accent-bg-3);border-color:var(--accent);color:var(--accent);
}
.voice-card-default{
  font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;
  color:var(--accent);position:absolute;top:4px;right:6px;
}

/* ── Quick Generate button & overlay ── */
.vt-quick-btn{
  position:absolute;top:8px;right:8px;
  font-size:16px;cursor:pointer;
  background:var(--accent-bg-1);border-radius:50%;
  width:28px;height:28px;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--accent-bg-2);
  transition:background .15s,transform .15s;
  z-index:2;
}
.vt-quick-btn:hover{background:var(--accent-bg-3);transform:scale(1.1)}
.vt-card{position:relative}
.quick-gen-overlay{
  position:fixed;top:0;left:0;right:0;bottom:0;
  background:var(--backdrop);backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;z-index:1000;
}
.quick-gen-overlay.hidden{display:none}
.quick-gen-modal{
  background:var(--card);border-radius:16px;padding:32px 40px;
  min-width:340px;max-width:420px;text-align:center;
  border:1px solid var(--border-1);
  box-shadow:0 8px 40px rgba(0,0,0,.5);
}
.quick-progress-bar{
  height:6px;background:var(--border-1);border-radius:3px;overflow:hidden;
}
.quick-progress-fill{
  height:100%;background:var(--accent);border-radius:3px;
  transition:width .4s ease;
}

/* ── Slideshow background selection grid ── */
.slideshow-bg-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:12px;
  margin-top:8px;
}
.slideshow-bg-thumb{
  aspect-ratio:9/16;
  border-radius:8px;
  object-fit:cover;
  cursor:pointer;
  border:2px solid transparent;
  transition:border-color .15s,transform .15s;
  width:100%;
}
.slideshow-bg-thumb:hover{border-color:var(--border-3);transform:scale(1.02)}
.slideshow-bg-thumb.selected{border-color:var(--accent);box-shadow:0 0 12px var(--accent-border)}

/* ── Slideshow bg multi-select indicator ── */
.slideshow-bg-thumb.selected::after{
  content:'\2713';
  position:absolute;top:6px;right:6px;
  width:22px;height:22px;
  background:var(--accent);
  color:var(--on-accent);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:900;
  pointer-events:none;
}
.slideshow-bg-thumb{position:relative}

/* ── Slideshow fullscreen viewer ── */
.slideshow-viewer-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.92);
  z-index:9999;
  display:flex;align-items:center;justify-content:center;
  cursor:zoom-out;
}
.slideshow-viewer-overlay img{
  max-width:90vw;max-height:90vh;
  border-radius:12px;
  object-fit:contain;
}
.slideshow-viewer-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:48px;height:48px;border-radius:50%;
  background:var(--border-3);border:none;
  color:#fff;font-size:24px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.slideshow-viewer-nav:hover{background:var(--border-3)}
.slideshow-viewer-nav.prev{left:20px}
.slideshow-viewer-nav.next{right:20px}

/* Legacy carousel styles kept for backward compat */
.carousel-wrapper{position:relative}
.carousel-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  width:36px;height:36px;border-radius:50%;
  background:rgba(0,0,0,.6);border:1px solid var(--border-3);
  color:#fff;font-size:22px;cursor:pointer;z-index:2;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s,opacity .2s;
}
.carousel-arrow:hover{background:var(--accent-border)}
.carousel-arrow-left{left:-12px}
.carousel-arrow-right{right:-12px}

/* ── Background video grid with full preview ── */
.bg-video-thumb video{aspect-ratio:9/16;object-fit:cover}
.bg-video-thumb.selected{border-color:var(--accent) !important;box-shadow:0 0 12px var(--accent-border)}

/* Combined book card (upload + details merged) */
.book-card-combined{
  border: 1px solid var(--border-2);
  border-radius: var(--radius2);
  background: var(--card);
  overflow: hidden;
  transition: border-color .2s;
}
.book-card-combined.book-card-done{
  border-color: var(--accent-border);
  background: var(--accent-bg-1);
}
.book-card-header{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}
.book-card-chevron{
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s;
}

/* Book switcher (dashboard step 1) */
.book-switcher-row{
  display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px;
}
.book-switcher-chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 12px 6px 6px;border-radius:var(--radius);
  border:1px solid var(--border-2);background:var(--card);
  color:var(--text);font-size:13px;font-weight:600;
  cursor:pointer;transition:border-color .2s, background .2s;
  max-width:200px;
}
.book-switcher-chip:hover{border-color:var(--border-1);background:var(--surface-2);}
.book-switcher-chip.active{border-color:var(--accent-border);background:var(--accent-bg-1);}
.book-switcher-chip:disabled{opacity:.5;pointer-events:none;}
.book-switcher-cover{
  width:28px;height:36px;border-radius:4px;object-fit:cover;flex-shrink:0;
}
.book-switcher-cover--empty{
  display:flex;align-items:center;justify-content:center;
  background:var(--surface-2);color:var(--muted);
}
.book-switcher-label{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}

/* Extraction progress panel */
.extraction-panel{
  border:1px solid var(--border-2);border-radius:var(--radius2);
  background:var(--card);padding:16px 20px;margin-bottom:16px;
  transition:border-color .3s;
}
.extraction-panel-header{
  display:flex;align-items:center;gap:10px;margin-bottom:10px;
}
.extraction-bar-wrap{
  width:100%;height:6px;border-radius:3px;background:var(--surface-2);overflow:hidden;
}
.extraction-bar{
  height:100%;border-radius:3px;transition:width .4s ease;
  background:linear-gradient(90deg,var(--accent),var(--accent-2,#7c5cfc));
}
.extraction-quote{
  margin-top:12px;padding:10px 14px;border-left:3px solid var(--accent);
  background:var(--accent-bg-1);border-radius:0 8px 8px 0;
  font-size:13px;font-style:italic;line-height:1.5;color:var(--text);
  transition:opacity .25s ease;
}
.extraction-chars{
  margin-top:8px;font-size:12px;color:var(--muted);
  display:flex;flex-wrap:wrap;gap:6px;
}
.extraction-char-tag{
  padding:2px 8px;border-radius:6px;font-size:11px;font-weight:600;
  background:var(--surface-2);color:var(--text);
}
@keyframes extractQuoteFadeIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}

/* ── Snackbar notification ── */
.extraction-snackbar{
  position:fixed;bottom:32px;left:50%;transform:translateX(-50%) translateY(20px);
  background:var(--card);color:var(--text);border:1px solid var(--border-2);
  padding:12px 24px;border-radius:12px;font-size:14px;font-weight:500;
  box-shadow:0 8px 32px rgba(0,0,0,.12);z-index:9999;
  opacity:0;pointer-events:none;
  transition:opacity .3s ease,transform .3s ease;
  white-space:nowrap;
}
.extraction-snackbar.visible{
  opacity:1;pointer-events:auto;transform:translateX(-50%) translateY(0);
}

/* ── Book info wait modal ── */
.book-info-wait-overlay{
  position:fixed;inset:0;z-index:10000;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.5);backdrop-filter:blur(4px);
  opacity:0;transition:opacity .3s ease;pointer-events:none;
}
.book-info-wait-overlay.visible{opacity:1;pointer-events:auto;}
.book-info-wait-modal{
  background:var(--card);border:1px solid var(--border-2);
  border-radius:16px;padding:32px;max-width:440px;width:90%;
  text-align:center;box-shadow:0 16px 48px rgba(0,0,0,.2);
}
.book-info-wait-icon{margin-bottom:20px;}
.book-info-wait-modal h3{
  margin:0 0 12px;font-size:18px;font-weight:800;color:var(--text);
}
.book-info-wait-modal p{
  margin:0 0 8px;font-size:14px;color:var(--muted);line-height:1.6;
}
.book-info-wait-sub{
  font-size:13px!important;opacity:.7;margin-top:4px!important;
}
.book-info-wait-progress{
  margin:20px 0 16px;height:4px;border-radius:4px;
  background:var(--border-1);overflow:hidden;
}
.book-info-wait-bar{
  height:100%;border-radius:4px;background:var(--gradient);
  transition:width .4s ease;width:0%;
}

/* ── Generation entertainment (fun facts during generation) ── */
.gen-entertainment{
  margin-top:16px;text-align:center;
  transition:opacity .4s ease;
}
.gen-entertainment-icon{
  font-size:28px;margin-bottom:8px;
  animation:genEntBounce 2s ease-in-out infinite;
}
.gen-entertainment-text{
  font-size:13px;color:var(--muted);line-height:1.5;
  max-width:340px;margin:0 auto;
  transition:opacity .3s ease;
}
.gen-entertainment-label{
  font-size:11px;font-weight:600;color:var(--accent);
  text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px;
}
@keyframes genEntBounce{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}

/* Video result two-column layout: video left, TikTok publish right */
.video-result-container{
  padding: 20px;
  border-radius: 12px;
  background: var(--accent-bg-1);
  border: 1px solid var(--accent-border);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}
.video-result-left{
  flex: 0 0 auto;
  max-width: 340px;
  display: flex;
  flex-direction: column;
}
.video-result-right{
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
}
/* On narrow screens, stack vertically */
@media (max-width: 680px) {
  .video-result-container{ flex-direction: column; }
  .video-result-left{ max-width: 100%; }
  .video-result-right{ min-width: 0; }
}

.btn-sm{
  padding: 4px 14px;
  font-size: 12px;
}

.nav-toggle{
  display:none;
  width:44px;height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background: var(--surface-1);
  color:var(--text);
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease;
}
.nav-toggle:hover{
  background: var(--surface-3);
  border-color: var(--border-3);
}
.nav-toggle:focus-visible{
  outline: none;
  box-shadow: var(--focus);
}
.nav-toggle span{
  display:block;
  height:2px;
  background:var(--text);
  margin:6px 10px;
  border-radius:2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 20px;
  border-radius: var(--radius2);
  border:1px solid var(--border-2);
  background: var(--surface-1);
  color:var(--text);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover{transform: translateY(-1px); border-color: var(--border-3)}
.btn:active{transform: translateY(0)}
.btn:focus-visible{outline:none; box-shadow: var(--focus)}
.btn-primary{
  /* 90deg so left edge is solid green, right edge solid purple (no stray strips) */
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 2%, var(--accent2) 98%, var(--accent2) 100%);
  border-color: transparent;
  color: var(--on-accent);
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
  background-size: 100% 100%;
  background-origin: border-box;
}
.btn-primary:hover{
  background: linear-gradient(90deg, #97ff42 0%, #97ff42 2%, #8b6fff 98%, #8b6fff 100%);
  box-shadow: 0 6px 24px var(--accent-bg-3);
  color: var(--on-accent);
}
.btn-ghost{
  background: var(--surface-2);
  border-color: var(--border-2);
}
.btn-ghost:hover{
  background: var(--surface-3);
  border-color: var(--border-3);
}
.btn:disabled,.btn[disabled]{
  opacity:0.45;cursor:not-allowed;pointer-events:none;
  transform:none !important;box-shadow:none !important;
}
.btn-lg{padding:14px 24px; border-radius:14px; font-size:15px}
.btn-small{padding:8px 16px; border-radius:var(--radius2); font-size:13px}

.btn.loading{
  pointer-events: none;
  opacity: 0.7;
}
.btn.loading::after{
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: ll-spin .6s linear infinite;
  margin-left: 8px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  padding: 56px 0 80px;
  background: var(--bg);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy{
  width: 100%;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 16px;
  border:1px solid var(--border-2);
  background: var(--surface-2);
  border-radius:999px;
  color:var(--muted);
  font-weight:600;
  font-size:13px;
}
.pill .dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-border), 0 0 12px var(--accent-border);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

h1{
  margin: 24px 0 16px;
  font-size: clamp(36px, 4.5vw, 54px);
  line-height:1.0;
  letter-spacing:-0.03em;
}
.grad{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  font-weight:800;
}
.grad-heavy{
  font-weight:900;
}

.lead{
  font-size: 18px;
  color: var(--muted);
  max-width: 54ch;
  width: 100%;
  margin: 0;
}
.hero-cta{display:flex; gap:12px; margin: 28px 0 16px; flex-wrap:wrap}
.trust{
  list-style:none;
  padding:0;margin: 16px 0 0;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  color: var(--muted2);
  font-weight:600;
  font-size:13px;
}

/* Hero phone mockup */
.hero-preview{
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-phone{
  width: 240px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  border: 4px solid #1a1a1a;
  background: #000;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.15);
  position: relative;
}
.hero-phone-screen{
  position: absolute;
  inset: 4px;
  border-radius: 32px;
  overflow: hidden;
}
.hero-phone-slide{
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #000;
  opacity: 0;
  animation: heroFade 9s ease-in-out infinite;
}
.hero-phone-slide:nth-child(1){ animation-delay: 0s; }
.hero-phone-slide:nth-child(2){ animation-delay: 3s; }
.hero-phone-slide:nth-child(3){ animation-delay: 6s; }
@keyframes heroFade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  33% { opacity: 1; }
  42% { opacity: 0; }
  100% { opacity: 0; }
}
.hero-phone-notch{
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 4;
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section{
  padding: 80px 0;
  background: var(--bg);
}
.section-alt{
  background: var(--surface-1);
  border-top:1px solid var(--surface-3);
  border-bottom:1px solid var(--surface-3);
  /* Extend background to full width so it aligns with section edge */
  box-shadow: 0 0 0 100vmax var(--surface-1);
  clip-path: inset(0 -100vmax);
}
/* More top spacing for "Three steps" so it doesn’t sit too close to section start */
#how{
  padding-top: 120px;
}
.section-head{
  margin-bottom: 56px;
}
.section-head h2{
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing:-0.02em;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}
.center{margin-top:24px; display:flex; justify-content:center}
.muted{color: var(--muted2)}
.small{font-size:12px}

/* ============================================================
   CARDS (base)
   ============================================================ */
.card{
  border:1px solid var(--border-1);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  border-color: var(--border-3);
  background: var(--surface-2);
}

/* ============================================================
   HOW IT WORKS — Timeline
   ============================================================ */
.timeline{
  display: flex;
  gap: 20px;
  position: relative;
}
.timeline-step{
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  padding: 28px 24px;
  padding-top: 48px;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.timeline-step:hover{
  border-color: var(--border-3);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.timeline-num{
  position: absolute;
  top: -20px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  color: var(--on-accent);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 2%, var(--accent2) 98%, var(--accent2) 100%);
  text-shadow: 0 1px 3px var(--input-bg);
  box-shadow: 0 4px 16px var(--accent-border), 0 2px 4px rgba(0,0,0,.3);
  z-index: 1;
}
.timeline-content h3{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.timeline-content p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.timeline-content ul{
  margin: 0;
  padding-left: 16px;
  color: var(--muted2);
  font-size: 14px;
}
.timeline-content li{
  margin: 4px 0;
}

/* ============================================================
   EXAMPLES — Horizontal scroll carousel
   ============================================================ */
.examples-scroll{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}
.examples-scroll::-webkit-scrollbar{ display: none; }

.example-item{
  flex: 0 0 200px;
  scroll-snap-align: start;
}
.example-phone{
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  border: 2px solid var(--border-2);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 8px 30px var(--input-bg);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.example-phone:hover{
  border-color: var(--border-3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.example-phone-screen{
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.example-meta{
  padding: 12px 4px 0;
  min-height: 52px;
}
.example-title{
  font-weight: 800;
  font-size: 14px;
}
.example-desc{
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* ============================================================
   PAINS
   ============================================================ */
.pains-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pain-card{
  text-align: center;
  padding: 28px 20px;
}
.pain-emoji{
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}
.pain-card p{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
}

/* ============================================================
   FORMATS
   ============================================================ */
.formats-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.formats-hidden{
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.formats-hidden.show{
  display: grid;
}
.format{
  padding: 24px;
  border-top: 3px solid var(--accent);
}
.format:nth-child(3n+2){
  border-top-color: var(--accent2);
}
.format:nth-child(3n+3){
  border-top-color: #ff6b9d;
}
.format-tag{
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
  padding: 3px 8px;
  background: var(--accent-bg-1);
  border-radius: 4px;
}
.format:nth-child(3n+2) .format-tag{
  color: var(--accent2);
  background: var(--accent2-bg);
}
.format:nth-child(3n+3) .format-tag{
  color: #ff6b9d;
  background: rgba(255,107,157,.08);
}
.format h3{
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.format p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.format:hover{
  background: var(--surface-3);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* ── Content categories (landing) ── */
.categories-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.category-card{
  padding:28px 24px;
  text-align:center;
  border-top:3px solid var(--accent);
}
.category-card:nth-child(2){border-top-color:var(--accent2)}
.category-card:nth-child(3){border-top-color:#ff6b9d}
.category-card:nth-child(4){border-top-color:#f59e0b}
.category-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:52px;height:52px;
  border-radius:14px;
  background:var(--accent-bg-1);
  color:var(--accent);
  margin-bottom:16px;
}
.category-icon-growth{background:var(--accent2-bg);color:var(--accent2)}
.category-icon-author{background:rgba(255,107,157,.1);color:#ff6b9d}
.category-icon-tips{background:rgba(245,158,11,.1);color:#f59e0b}
.category-card h3{
  margin:0 0 8px;
  font-size:17px;
  font-weight:800;
  color:var(--text);
}
.category-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.category-card:hover{
  background:var(--surface-3);
  box-shadow:0 4px 16px rgba(0,0,0,.15);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  overflow: visible;
}
.price{
  position:relative;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}
.price h3{margin:0}
.price-for{margin:6px 0 0; color: var(--muted); font-size:13px}
.price-mid{margin: 20px 0 16px}
.amount{
  font-size: 38px;
  font-weight:900;
  letter-spacing:-0.03em;
}
.currency{font-size:16px; opacity:.9; margin-right:2px}
.per{font-size:14px; color: var(--muted); font-weight:800; margin-left:4px}
.price-list{
  margin: 16px 0 24px;
  padding-left: 18px;
  color: var(--muted2);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.price-list li{margin:8px 0}
.price .btn{
  margin-top: auto;
  width: 100%;
}
.price-pop{
  border-color: var(--accent-border);
  background: linear-gradient(180deg, var(--accent-bg-1) 0%, var(--surface-1) 100%);
  box-shadow: 0 0 40px var(--accent-bg-1), 0 20px 50px rgba(0,0,0,.30);
}
.badge{
  position:absolute;
  top: -12px; left: 18px;
  font-size: 12px;
  padding:6px 14px;
  border-radius: 999px;
  color: var(--on-accent);
  font-weight:800;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 2%, var(--accent2) 98%, var(--accent2) 100%);
  text-shadow: 0 1px 3px var(--input-bg);
  box-shadow: 0 4px 12px var(--accent-border);
}
.price-foot{
  margin-top:20px;
  text-align:center;
  font-size: 14px;
  line-height: 1.6;
}
.price-enterprise-link{
  color: var(--accent);
  font-weight: 700;
  transition: color .15s ease;
}
.price-enterprise-link:hover{
  color: var(--accent2);
}

/* ============================================================
   "NO X" ROW (reused in Pains section)
   ============================================================ */
.trust-noneed{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  margin-top: 16px;
}
.trust-noneed-item{
  font-size: 14px;
  font-weight: 700;
  color: var(--muted2);
}
.trust-noneed-sep{
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-3);
  flex-shrink: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq{display:grid; gap:12px; max-width: 860px; margin: 0 auto}
.faq-card{
  padding: 20px 24px;
}
.faq-card[open]{
  border-color: var(--accent-bg-3);
  background: var(--surface-2);
}
details summary{
  cursor:pointer;
  font-weight:800;
  list-style:none;
  transition: color .15s ease;
  padding: 4px 0;
}
details summary:hover{
  color: var(--text);
}
details summary:focus-visible{
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
  padding: 4px 8px;
  margin: -4px -8px;
}
details summary::-webkit-details-marker{display:none}
details summary::after{
  content:"+";
  float:right;
  color: var(--muted);
  font-weight:900;
  transition: transform .15s ease, color .15s ease;
}
details summary:hover::after{
  color: var(--text);
}
details[open] summary::after{
  content:"\2013";
}
.answer{
  color: var(--muted);
  margin-top:12px;
  padding-left: 4px;
  font-size: 14px;
  line-height: 1.6;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn{
  from{opacity:0; transform: translateY(-4px)}
  to{opacity:1; transform: translateY(0)}
}

/* ============================================================
   CTA (Final)
   ============================================================ */
.cta{
  padding: 96px 0;
  background: var(--bg);
  background-image: radial-gradient(900px 500px at 50% 40%, var(--accent-bg-1), transparent 55%),
                    radial-gradient(700px 400px at 55% 30%, var(--accent2-bg), transparent 55%);
  border-top:1px solid var(--surface-3);
}
.cta-center{
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta h2{
  margin:0 0 16px;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing:-0.02em;
}
.cta .lead{
  margin: 0 auto 32px;
  max-width: 52ch;
}

/* CTA Form */
.cta-form{
  max-width: 480px;
  margin: 0 auto;
}
.cta-form-row{
  display: flex;
  gap: 8px;
}
.cta-form-row input{
  flex: 1;
  min-width: 0;
}
.cta-trust{
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted2);
}
input, select{
  width:100%;
  padding:14px 16px;
  border-radius: var(--radius2);
  border:1px solid var(--border-3);
  background: var(--input-bg);
  color: var(--text);
  font-weight:600;
  font-family: inherit;
  font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="checkbox"], input[type="radio"]{
  width:auto;
  padding:0;
  border:none;
  background:none;
}
input::placeholder{color: var(--muted2)}
input:focus, select:focus{
  outline:none;
  box-shadow: var(--focus);
  border-color: var(--accent-border);
}
input:invalid:not(:placeholder-shown){
  border-color: rgba(255,130,130,.5);
}
input:valid:not(:placeholder-shown){
  border-color: var(--accent-border);
}
select{
  cursor:pointer;
}
select option{
  background: var(--card);
  color: var(--text);
}
.toast{
  margin-top: 8px;
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
  transition: color .15s ease;
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  padding: 36px 0;
  border-top:1px solid var(--surface-3);
  background: var(--surface-3);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items:center;
}
.foot-brand{
  min-width: 0;
}
.foot-brand .brand-name{
  font-weight: 800;
  margin-bottom: 4px;
}
.foot-links{
  display:flex;
  gap: 16px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.foot-links a{color: var(--muted); font-weight:700; font-size:13px}
.foot-note{grid-column: 1/-1; margin-top: 8px; font-size:12px}

/* ============================================================
   MODAL
   ============================================================ */
.modal{
  position:fixed;
  inset:0;
  background: var(--backdrop);
  backdrop-filter: blur(4px);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 16px;
  z-index: 80;
  opacity: 0;
  transition: opacity .15s ease;
}
.modal[aria-hidden="false"]{
  display:flex;
  opacity: 1;
}
.modal-card{
  width: min(760px, 100%);
  border-radius: var(--radius);
  border:1px solid var(--border-2);
  background: var(--card-modal);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overflow:hidden;
  transform: scale(0.95);
  transition: transform .15s ease;
}
.modal[aria-hidden="false"] .modal-card{
  transform: scale(1);
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 16px;
  border-bottom:1px solid var(--border-1);
}
.modal-title{font-weight:900}
.icon-btn{
  width:40px;height:40px;border-radius:12px;
  border:1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.icon-btn:hover{
  background: var(--border-1);
  border-color: var(--border-3);
}
.icon-btn:focus-visible{
  outline: none;
  box-shadow: var(--focus);
}
.modal-body{
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}
.modal-body h4{margin:0 0 6px; color: var(--text)}
.modal-body p{margin:0 0 10px}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-phone-slide{
    animation: none;
  }
  .hero-phone-slide:first-child{
    opacity: 1;
  }
  .pill .dot{
    animation: none;
  }
  .answer{
    animation: none;
  }
  .btn.loading::after{
    animation: none;
  }
  .fade-section{
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }
  .vt-panel.active{
    animation: none;
  }
  body{
    animation: none;
  }
  .vt-grid-hidden{
    transition: none;
    opacity: 1;
    max-height: none;
  }
  .votw-widget{
    transition: none;
  }
}

/* ============================================================
   FOCUS VISIBLE (global)
   ============================================================ */
:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Override for elements that handle focus themselves */
.btn:focus-visible,
.nav-toggle:focus-visible,
.icon-btn:focus-visible,
details summary:focus-visible{
  outline: none;
}

/* ============================================================
   RESPONSIVE — Tablet (980px)
   ============================================================ */
@media (max-width: 980px){
  .section{padding: 64px 0}
  .section-head{margin-bottom: 40px}
  .cta{padding: 80px 0}

  .hero-grid{grid-template-columns: 1fr; gap: 32px}
  .hero-preview{margin-top: 16px}
  .hero-phone{width: 200px}

  .timeline{
    flex-direction: column;
    gap: 24px;
  }
  .timeline-step{
    padding-left: 56px;
    padding-top: 24px;
  }
  .timeline-num{
    top: 20px;
    left: 0;
  }

  .pains-grid{grid-template-columns: repeat(2, 1fr)}

  .formats-grid{grid-template-columns: repeat(2, 1fr)}
  .formats-hidden{grid-template-columns: repeat(2, 1fr)}
  .categories-grid{grid-template-columns:repeat(2,1fr)}

  .pricing{grid-template-columns: 1fr; max-width: 440px; margin: 0 auto}

  .footer-grid{grid-template-columns: 1fr}
  .foot-links{justify-content:flex-start}
}

/* ============================================================
   RESPONSIVE — Mobile nav (860px)
   ============================================================ */
/* App pages with nav-toggle (dashboard, profile, history, calendar) */

@media (max-width: 860px){
  .nav-toggle{display:block}
  .navlinks{
    position:fixed;
    left: 16px;
    right: 16px;
    top: 68px;
    background: var(--bg);
    backdrop-filter: blur(12px);
    border:1px solid var(--border-2);
    border-radius: 16px;
    padding: 12px;
    display:none;
    flex-direction:column;
    gap: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .15s ease, transform .15s ease;
    max-width: calc(100vw - 32px);
    z-index: 100;
  }
  .navlinks.open{
    display:flex;
    opacity: 1;
    transform: translateY(0);
  }
  .navlinks.open::before{
    content:'';
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.3);
    z-index:-1;
  }
  .navlinks a{width:100%; padding: 10px 12px; border-radius: 12px; background: var(--surface-1)}
  .navlinks .btn{width:100%}

  h1{
    font-size: clamp(28px, 6vw, 42px);
  }
}

/* ============================================================
   RESPONSIVE — Small phone (540px)
   ============================================================ */
@media (max-width: 540px){
  .section{padding: 48px 0}
  #how{padding-top: 80px}
  .section-head{margin-bottom: 32px}
  .cta{padding: 64px 0}
  .container{padding: 0 16px}

  .hero{padding: 40px 0 56px}
  .hero-phone{width: 180px}

  .pains-grid{grid-template-columns: 1fr}

  .formats-grid{grid-template-columns: 1fr}
  .formats-hidden{grid-template-columns: 1fr}
  .categories-grid{grid-template-columns:1fr}

  .hero-cta{flex-direction: column}
  .hero-cta .btn{width: 100%}
  .trust{flex-direction: column; gap: 6px}

  .trust-noneed{
    flex-direction: column;
    gap: 8px;
  }
  .trust-noneed-sep{display: none}

  .cta-form-row{
    flex-direction: column;
  }
  .cta-form-row .btn{
    width: 100%;
  }

  .examples-scroll{
    gap: 12px;
  }
  .example-item{
    flex: 0 0 160px;
  }
}

/* ============================================================
   AUTH PAGES (login, register, reset-password, confirm-email)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card.card {
  padding: 24px;
}
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}
.auth-header h1 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.auth-header p {
  margin: 0;
  color: var(--muted);
}
.auth-form {
  display: grid;
  gap: 16px;
}
.auth-form-links {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 8px;
}
.auth-form-links a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.auth-footer a {
  color: var(--accent);
  font-weight: 700;
}
.auth-error, .auth-success {
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 14px;
  margin: 0;
  border: 1px solid transparent;
  transition: max-height .3s ease, opacity .25s ease, padding .3s ease, margin .3s ease;
}
.auth-error {
  background: rgba(255,80,80,.15);
  border-color: rgba(255,80,80,.3);
  color: #dc2626;
}
[data-theme="dark"] .auth-error {
  color: rgba(255,200,200,.95);
}
.auth-success {
  background: var(--accent-bg-3);
  border-color: var(--accent-border);
  color: var(--accent);
}
.auth-error.show, .auth-success.show {
  max-height: 120px;
  opacity: 1;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.toggle-password {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  touch-action: manipulation;
}
.toggle-password:hover {
  color: var(--text);
}
.toggle-password:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.field-wrapper {
  position: relative;
}
.password-hint {
  font-size: 12px;
  color: var(--muted2);
  margin-top: 4px;
}
/* Disabled button state for auth forms */
.auth-form .btn:disabled,
.auth-social-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-card.auth-card--center {
  text-align: center;
}

/* ── Google OAuth Button ──────────────────────────── */
.auth-social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius2);
  border: 1px solid var(--border-3);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  touch-action: manipulation;
  min-height: 48px;
}
.auth-social-btn:hover {
  transform: translateY(-1px);
}
.auth-social-btn:active {
  transform: translateY(0);
}
.auth-social-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.auth-social-btn--google {
  background: #fff;
  color: #3c4043;
  border-color: var(--border-3);
}
.auth-social-btn--google:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.auth-social-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
.auth-social-btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: #3c4043;
  border-radius: 50%;
  animation: ll-spin .6s linear infinite;
  margin-left: 4px;
}

/* ── Divider ("or") ───────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--muted2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-2);
}

/* ── Tab Switcher ─────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  touch-action: manipulation;
  min-height: 44px;
}
.auth-tab:hover {
  color: var(--text);
}
.auth-tab.active {
  background: var(--border-1);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.auth-tab:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* ── Form Panel Transitions ───────────────────────── */
.auth-form-panel {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.auth-form-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Magic Link Section ───────────────────────────── */
.auth-magic-link-prompt {
  text-align: center;
  margin-top: 12px;
}
.auth-magic-link-prompt button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: opacity .15s ease;
  touch-action: manipulation;
}
.auth-magic-link-prompt button:hover {
  opacity: .8;
}
.auth-magic-link-prompt button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.auth-magic-panel {
  margin-top: 0;
}
.auth-back-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  padding: 8px;
  width: 100%;
  touch-action: manipulation;
}
.auth-back-link:hover {
  color: var(--text);
}

/* ── Trust Signals Bar ────────────────────────────── */
.auth-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-3);
}
.auth-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted2);
  font-size: 12px;
  font-weight: 600;
}
.auth-trust-item svg {
  flex-shrink: 0;
  opacity: .7;
}

/* ── Social Proof Pill ────────────────────────────── */
.auth-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .01em;
}
.auth-social-proof .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

/* ── Mobile Responsive (Auth) ─────────────────────── */
@media (max-width: 480px) {
  .auth-trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .auth-card.card {
    padding: 20px;
  }
}
.auth-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ll-spin 1s linear infinite;
  margin: 20px 0;
}

/* Auth form field labels */
.field{display:grid; gap:6px; margin-bottom:12px}
.field span{color: var(--muted); font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase}

/* ============================================================
   ONBOARDING
   ============================================================ */
.onboarding-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
}

.onboarding-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.onboarding-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-2);
  transition: all .3s ease;
}
.onboarding-dot.active {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-border);
}
.onboarding-dot.completed {
  background: var(--accent);
  opacity: .5;
}

.onboarding-step {
  width: 100%;
  max-width: 480px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.onboarding-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.onboarding-step-content {
  text-align: center;
}

.onboarding-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.onboarding-step-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.onboarding-subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.onboarding-form {
  text-align: left;
  margin-bottom: 12px;
}
.onboarding-form input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: var(--surface-3);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 16px;
}
.onboarding-form input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg-3);
}

.onboarding-skip {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 12px;
  transition: color .2s;
  display: inline-block;
  margin-top: 8px;
}
.onboarding-skip:hover {
  color: var(--text);
}

/* Author type cards */
.author-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.author-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  cursor: pointer;
  transition: all .2s ease;
  color: var(--text);
}
.author-type-card:hover {
  border-color: var(--accent-border);
  background: var(--accent-bg-1);
}
.author-type-card.selected {
  border-color: var(--accent);
  background: var(--accent-bg-2);
  box-shadow: 0 0 16px var(--accent-bg-3);
}

.author-type-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-type-label {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* Genre tags */
.genre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

.genre-tag {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.genre-tag:hover {
  border-color: var(--accent-border);
  background: var(--accent-bg-1);
}
.genre-tag.selected {
  border-color: var(--accent);
  background: var(--accent-bg-3);
  color: var(--text);
}

/* Onboarding mobile */
@media (max-width: 480px) {
  .onboarding-step-content h1 {
    font-size: 22px;
  }
  .author-type-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   WELCOME WIZARD (first-time dashboard overlay — 5-step)
   ============================================================ */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-blur-strong);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  transition: opacity .3s ease;
}
.welcome-overlay.visible {
  opacity: 1;
}

.welcome-card {
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: translateY(20px) scale(.96);
  transition: transform .35s ease;
}
.welcome-overlay.visible .welcome-card {
  transform: translateY(0) scale(1);
}

.welcome-icon {
  margin-bottom: 12px;
  color: var(--accent);
}

.welcome-card h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.welcome-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ── Step dots (navigation) ── */
.welcome-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.welcome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border-2);
  cursor: pointer;
  padding: 0;
  transition: background .25s ease, transform .25s ease;
}
.welcome-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}
.welcome-dot.done {
  background: var(--accent);
  opacity: .5;
}

/* ── Slides (one visible at a time) ── */
.welcome-slides {
  position: relative;
  min-height: 160px;
  margin-bottom: 24px;
}
.welcome-slide {
  display: none;
  text-align: center;
  animation: welcomeFadeIn .3s ease;
}
.welcome-slide.active {
  display: block;
}
@keyframes welcomeFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.welcome-slide-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.welcome-slide h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.welcome-slide p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.welcome-slide p strong {
  color: var(--text);
}

/* Category badges in step 4 */
.welcome-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-bg-2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin: 2px;
}

/* ── Navigation (back / counter / next) ── */
.welcome-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.welcome-counter {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.welcome-btn-next {
  min-width: 100px;
}
.welcome-btn-back {
  min-width: 80px;
}

/* Upload area highlight after welcome */
@keyframes welcome-pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-border); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.welcome-highlight {
  animation: welcome-pulse 1.5s ease-out 3;
  border-color: var(--accent) !important;
}

@media (max-width: 480px) {
  .welcome-card {
    padding: 28px 20px;
  }
  .welcome-card h2 {
    font-size: 22px;
  }
  .welcome-slide h3 {
    font-size: 16px;
  }
  .welcome-slides {
    min-height: 180px;
  }
}

/* ============================================================
   SHIMMER / SKELETON (loading states)
   ============================================================ */
.shimmer-container {
  position: relative;
  overflow: hidden;
}
.shimmer-skeleton {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shimmer-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 55%;
  max-width: 180px;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    var(--accent-bg-2) 50%,
    transparent 62%,
    transparent 100%
  );
  animation: shimmer-sweep 2s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes shimmer-sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.shimmer-bone {
  background: var(--surface-3);
  border-radius: 6px;
  pointer-events: none;
}
.shimmer-bone--icon { width: 48px; height: 48px; margin-bottom: 12px; }
.shimmer-bone--title { width: 200px; height: 24px; margin-bottom: 8px; }
.shimmer-bone--line { width: 160px; height: 16px; margin-top: 4px; }
.shimmer-bone--caption { width: 180px; height: 14px; margin-top: 8px; }
.shimmer-bone--card { width: 100%; height: 80px; margin-bottom: 12px; border-radius: 12px; }
.shimmer-bone--row  { width: 100%; height: 48px; margin-bottom: 8px; }
.shimmer-bone--text-sm { width: 120px; height: 14px; display: inline-block; vertical-align: middle; }
.shimmer { position: absolute; inset: 0; width: 55%; max-width: 180px; background: linear-gradient(105deg, transparent 0%, transparent 38%, var(--surface-3) 50%, transparent 62%, transparent 100%); animation: shimmer-sweep 2s ease-in-out infinite; z-index: 1; pointer-events: none; }
.shimmer-text { background: var(--surface-3); border-radius: 6px; color: transparent !important; user-select: none; pointer-events: none; }
.shimmer-hidden { display: none; }

/* ============================================================
   FADE-IN SECTIONS  (async content polish)
   Instead of toggling .hidden (display:none → block, instant pop),
   elements start as .fade-section (opacity:0) and get .visible added.
   Uses only opacity + transform (GPU-composited, no layout thrash).
   ============================================================ */
.fade-section {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Stat card shimmer placeholder (replaces "—" text) */
.shimmer-stat-value {
  display: inline-block;
  width: 80px;
  height: 28px;
  background: var(--surface-3);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.shimmer-stat-value::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, transparent 38%, var(--surface-2) 50%, transparent 62%, transparent 100%);
  animation: shimmer-sweep 2s ease-in-out infinite;
}

/* ============================================================
   STANDARD SPINNER  (sizes: default 32px, --sm 16px, --lg 48px)
   ============================================================ */
.ll-spinner {
  display: inline-block;
  width: 32px; height: 32px;
  border: 3px solid var(--border-1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ll-spin .8s linear infinite;
}
.ll-spinner--sm { width: 16px; height: 16px; border-width: 2px; }
.ll-spinner--lg { width: 48px; height: 48px; }
@keyframes ll-spin { to { transform: rotate(360deg); } }

/* ─── Notification bell ─── */
.nav-notification-bell{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-1);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  font-size: 0;
  line-height: 1;
}
.nav-notification-bell:hover{
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-bg-1);
}
.notif-badge{
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

/* ─── Notification dropdown ─── */
.notif-dropdown{
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 400px;
  max-height: 520px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
  z-index: 1000;
  overflow: hidden;
  font-size: 14px;
}
.notif-dropdown.open{ display: flex; flex-direction: column; }

.notif-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}
.notif-header-title{
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}
.notif-mark-all{
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
}
.notif-mark-all:hover{ text-decoration: underline; }

/* ─── Filter tabs ─── */
.notif-tabs{
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--surface-3);
  padding: 0 16px;
  flex-shrink: 0;
}
.notif-tab{
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.notif-tab:hover{ color: var(--text); }
.notif-tab.active{ color: var(--accent); border-bottom-color: var(--accent); }

/* ─── Scrollable list ─── */
.notif-list{
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}

/* ─── Time group headers ─── */
.notif-time-header{
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--surface-1);
  position: sticky;
  top: 0;
  z-index: 1;
}

/* ─── Type icons ─── */
.notif-icon{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-icon svg{ width: 16px; height: 16px; }
.notif-icon--success{ background: rgba(34,197,94,.12); color: #22c55e; }
.notif-icon--error{ background: rgba(239,68,68,.12); color: #ef4444; }
.notif-icon--info{ background: rgba(59,130,246,.12); color: #3b82f6; }

/* ─── Notification item (icon + content + optional thumb) ─── */
.notif-item{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-2);
  cursor: pointer;
  transition: background .12s;
  border-left: 3px solid transparent;
}
.notif-item:last-child{ border-bottom: none; }
.notif-item:hover{ background: var(--surface-2); }
.notif-item.unread{ border-left-color: var(--accent); background: rgba(34,197,94,.03); }
.notif-item-content{ flex: 1; min-width: 0; }
.notif-item-title{
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 2px;
  line-height: 1.3;
}
.notif-item.failed .notif-item-title{ color: #ef4444; }
.notif-item-body{
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.3;
}
.notif-item-time{
  color: var(--text-faint);
  font-size: 11px;
  margin-top: 3px;
}

/* ─── Thumbnail for renders ─── */
.notif-thumb{
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-3);
}

/* ─── Open project icon button (right-aligned) ─── */
.notif-open-btn{
  flex-shrink: 0;
  align-self: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
  margin-left: 4px;
}
.notif-open-btn:hover{ background: var(--accent-bg-1); color: var(--accent); }

/* ─── Legacy action buttons (kept for compatibility) ─── */
.notif-actions{ display: flex; gap: 6px; margin-top: 6px; }
.notif-action-btn{
  font-size: 11px; padding: 3px 10px; border-radius: 6px;
  background: var(--surface-3); color: var(--text); border: none;
  cursor: pointer; font-weight: 500; transition: background .12s, color .12s;
}
.notif-action-btn:hover{ background: var(--accent-bg-1); color: var(--accent); }

/* ─── Project group (collapsed multi-notifications) ─── */
.notif-group-summary{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--surface-2);
  transition: background .12s;
}
.notif-group-summary:hover{ background: var(--surface-2); }
.notif-group-summary .notif-item-title{ margin-bottom: 0; }
.notif-group-count{
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  flex-shrink: 0;
}
.notif-group-chevron{
  color: var(--muted);
  transition: transform .15s ease;
  flex-shrink: 0;
}
.notif-group-chevron.expanded{ transform: rotate(180deg); }
.notif-group-children{
  border-left: 2px solid var(--accent-border);
  margin-left: 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.notif-group-children.expanded{
  max-height: 600px;
  overflow: visible;
}
.notif-group-children .notif-item{ padding-left: 12px; }

/* ─── Improved empty state ─── */
.notif-empty{
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.notif-empty-icon{
  font-size: 32px;
  margin-bottom: 8px;
  opacity: .5;
}
.notif-empty-text{
  font-size: 13px;
  line-height: 1.5;
}

/* Mobile: full-width dropdown */
@media(max-width:600px){
  .notif-dropdown{
    position: fixed;
    top: 60px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100vh - 80px);
    border-radius: 12px;
  }
  .notif-tabs{ overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ─── History highlight pulse ─── */
@keyframes highlight-pulse{
  0%{ box-shadow: 0 0 0 0 var(--accent-border); }
  70%{ box-shadow: 0 0 0 10px transparent; }
  100%{ box-shadow: 0 0 0 0 transparent; }
}
.history-card-highlight{
  animation: highlight-pulse 1s ease-out 3;
  border-color: var(--accent) !important;
}
