/* ═══ HERO ═══ */
.hero {
  padding: 120px 20px 40px;
  text-align: center;
  max-width: 720px; margin: 0 auto;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px 6px 8px; border-radius: 100px;
  background: var(--green-light); border: 1px solid rgba(43,140,78,0.1);
  font-size: 13px; font-weight: 700; color: var(--green);
  margin-bottom: 20px;
}
.hero-pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 54px; font-weight: 900;
  line-height: 1.06; letter-spacing: -2px;
  margin-bottom: 16px;
  color: var(--text);
}
.hero h1 .subtle { color: var(--text-soft); }
.hero h1 .pop { color: var(--accent); }

.hero-sub {
  font-size: 19px; color: var(--text-soft);
  line-height: 1.6; max-width: 480px; margin: 0 auto 36px;
}

/* ═══ THE INPUT ═══ */
.mega-input-area {
  max-width: 560px; margin: 0 auto;
  position: relative;
}
.mega-input-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: var(--shadow);
  position: relative;
}
.mega-input-row {
  display: flex; align-items: center;
  padding: 6px 6px 6px 20px;
  position: relative;
}
.mega-input-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light), var(--shadow-lg);
}
.mega-input-card.has-content {
  border-color: var(--accent);
}

.mega-input-row {
  display: flex; align-items: center;
  padding: 6px 6px 6px 20px;
}
.mega-input {
  flex: 1; border: none; outline: none; background: none;
  font-family: 'Nunito Sans'; font-size: 17px;
  padding: 14px 0; color: var(--text);
}
.mega-input::placeholder { color: var(--text-faint); }
.mega-submit {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent); color: white; border: none;
  font-size: 22px; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.mega-submit:hover { 
  background: var(--accent-dark); 
  z-index: 10;
}
.mega-submit:active { transform: scale(0.92); }

.mega-modes {
  display: flex; border-top: 1px solid var(--border-light);
}
.mega-mode {
  flex: 1; padding: 11px 8px;
  font-size: 13px; font-weight: 700;
  color: var(--text-faint); background: none;
  border: none; border-right: 1px solid var(--border-light);
  cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-family: 'Nunito Sans';
}
.mega-mode:last-child { border-right: none; }
.mega-mode:hover { color: var(--text-mid); background: rgba(0,0,0,0.01); }
.mega-mode.active { color: var(--accent); background: var(--accent-light); }

.mega-hint {
  margin-top: 12px;
  font-size: 13px; color: var(--text-faint);
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.mega-hint kbd {
  font-family: 'IBM Plex Mono'; font-size: 11px;
  background: var(--bg-warm); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 4px;
  font-weight: 500; color: var(--text-soft);
}

/* ═══ ONBOARDING LIST ═══ */
.onboarding-list {
  max-width: 560px; margin: 20px auto 0;
  display: none;
  animation: listAppear 0.4s ease-out;
}
.onboarding-list.visible { display: block; }
@keyframes listAppear {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.list-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px; margin-bottom: 10px;
}
.list-title-row { display: flex; align-items: center; gap: 8px; }
.list-title-input {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700;
  border: none; outline: none; background: none;
  color: var(--text); padding: 4px 0;
  border-bottom: 2px dashed var(--border);
  transition: border-color 0.2s;
}
.list-title-input:focus { border-color: var(--accent); }
.list-url-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 100px;
  background: var(--bg-warm); border: 1px solid var(--border);
  font-family: 'IBM Plex Mono'; font-size: 12px; color: var(--text-soft);
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.list-url-pill:hover { border-color: var(--accent); color: var(--accent); }
.list-url-pill .copy-icon { font-size: 14px; }

.live-list {
  background: var(--bg-card);
  border-radius: var(--r);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.live-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  animation: itemSlide 0.3s ease-out;
  transition: background 0.15s;
}
.live-item:last-child { border-bottom: none; }
@keyframes itemSlide {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

.live-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.live-check:hover { border-color: var(--green); }
.live-check.done { border-color: var(--green); background: var(--green); animation: pop 0.3s ease; }
.live-check.done::after { content: ''; width: 5px; height: 9px; border: 2px solid white; border-top: none; border-left: none; transform: rotate(45deg) translateY(-1px); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.2); } 100% { transform: scale(1); } }

.live-name { font-size: 15px; font-weight: 600; flex: 1; transition: all 0.2s; }
.live-name.struck { text-decoration: line-through; color: var(--text-faint); }
.live-qty {
  font-family: 'IBM Plex Mono'; font-size: 12px; font-weight: 500;
  color: var(--text-soft); background: var(--bg-warm);
  padding: 3px 8px; border-radius: 5px;
}
.live-source {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(123,94,167,0.06); color: var(--purple);
}

.list-empty {
  padding: 40px 20px; text-align: center;
}
.list-empty-icon { font-size: 40px; margin-bottom: 8px; opacity: 0.5; }
.list-empty-text { font-size: 14px; color: var(--text-faint); }

.processing-bar {
  display: none; padding: 16px 20px;
  background: var(--accent-light);
  border-bottom: 1px solid rgba(217,80,48,0.08);
  align-items: center; gap: 12px;
}
.processing-bar.visible { display: flex; }
.processing-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--accent-light);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-text { font-size: 14px; font-weight: 600; color: var(--accent); }

.share-nudge {
  display: none; margin-top: 14px; padding: 14px 18px;
  background: var(--bg-card); border: 1.5px dashed var(--border);
  border-radius: var(--r-sm);
  text-align: center; animation: listAppear 0.4s ease-out;
}
.share-nudge.visible { display: block; }
.share-nudge-text { font-size: 14px; color: var(--text-soft); margin-bottom: 10px; }
.share-nudge-text strong { color: var(--text); }
.share-nudge-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.share-nudge-btn {
  padding: 8px 18px; border-radius: 100px;
  font-family: 'Nunito Sans'; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--border); background: white;
  cursor: pointer; transition: all 0.15s; color: var(--text);
  display: flex; align-items: center; gap: 5px;
}
.share-nudge-btn:hover { border-color: var(--text); }
.share-nudge-btn-primary { background: var(--accent); border-color: var(--accent); color: white; }
.share-nudge-btn-primary:hover { background: var(--accent-dark); }

/* ═══ OR DIVIDER ═══ */
.or-divider {
  display: flex; align-items: center; gap: 16px;
  max-width: 560px; margin: 40px auto;
  padding: 0 20px;
}
.or-line { flex: 1; height: 1px; background: var(--border); }
.or-text { font-size: 13px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 2px; }

/* ═══ TEMPLATES SECTION ═══ */
.templates-section {
  max-width: 720px; margin: 0 auto;
  padding: 0 20px;
}
.templates-header {
  text-align: center; margin-bottom: 24px;
}
.templates-title {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.templates-sub {
  font-size: 15px; color: var(--text-soft);
}

.templates-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: 20px;
  cursor: pointer; transition: all 0.2s;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  display: block;
}
.template-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.template-card:active { transform: translateY(0) scale(0.98); }

.template-bg {
  position: absolute; top: -20px; right: -20px;
  font-size: 64px; opacity: 0.06;
  transform: rotate(12deg);
  pointer-events: none;
}

.template-emoji { font-size: 32px; margin-bottom: 10px; }
.template-name {
  font-family: 'Fraunces', serif;
  font-size: 17px; font-weight: 700;
  margin-bottom: 4px;
}
.template-desc {
  font-size: 13px; color: var(--text-soft);
  line-height: 1.45; margin-bottom: 12px;
}
.template-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-faint); font-weight: 600;
}
.template-meta-item { display: flex; align-items: center; gap: 4px; }

.template-card-featured {
  grid-column: span 2;
  display: flex; gap: 20px; align-items: center;
  background: linear-gradient(135deg, #1C1510, #2E1E14);
  border-color: transparent; color: white;
}
.template-card-featured .template-desc { color: rgba(255,255,255,0.45); }
.template-card-featured .template-meta { color: rgba(255,255,255,0.3); }
.template-card-featured .template-bg { opacity: 0.08; font-size: 100px; }
.template-card-featured:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }

.template-featured-left { flex: 1; }
.template-featured-badge {
  display: inline-flex; padding: 4px 10px; border-radius: 100px;
  background: rgba(217,80,48,0.15); font-size: 11px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px;
}
.template-featured-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 100px;
  background: var(--accent); color: white;
  font-size: 13px; font-weight: 700;
  margin-top: 12px; transition: all 0.15s;
}
.template-featured-cta:hover { background: var(--accent-dark); }

/* ═══ HOW IT WORKS ═══ */
.how-section {
  max-width: 720px; margin: 64px auto 0;
  padding: 0 20px;
}
.how-header { text-align: center; margin-bottom: 32px; }
.how-title {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.how-sub { font-size: 15px; color: var(--text-soft); }

.how-steps { display: flex; flex-direction: column; gap: 0; }
.how-step {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}
.how-step:last-child { border-bottom: none; }
.how-step-num {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-warm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 800;
  color: var(--text-mid);
}
.how-step-content { flex: 1; }
.how-step-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.how-step-desc { font-size: 14px; color: var(--text-soft); line-height: 1.6; }
.how-step-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.how-tag {
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; border: 1px solid var(--border);
  color: var(--text-soft);
}

/* ═══ SOCIAL PROOF BAR ═══ */
.proof-bar {
  max-width: 720px; margin: 48px auto 0;
  padding: 32px 24px;
  background: var(--bg-warm);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: space-around;
  text-align: center;
  gap: 16px;
}
.proof-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 32px; font-weight: 800; color: var(--text);
  letter-spacing: -1px;
}
.proof-stat-label {
  font-size: 12px; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 1px;
}
.proof-divider {
  width: 1px; height: 40px; background: var(--border);
}

/* ═══ FINAL CTA ═══ */
.final-cta {
  max-width: 720px; margin: 64px auto 0;
  padding: 48px 32px;
  background: linear-gradient(135deg, #1C1510, #2E1E14);
  border-radius: 24px;
  text-align: center;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(217,80,48,0.12), transparent);
  border-radius: 50%;
}
.final-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: 32px; font-weight: 900; color: white;
  letter-spacing: -1px; margin-bottom: 8px;
  position: relative;
}
.final-cta p {
  font-size: 16px; color: rgba(255,255,255,0.45);
  margin-bottom: 24px; position: relative;
}
.final-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  background: var(--accent); color: white;
  font-family: 'Nunito Sans'; font-size: 16px; font-weight: 700;
  border: none; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(217,80,48,0.3);
  position: relative;
}
.final-cta-btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.final-cta-small {
  display: block; margin-top: 12px;
  font-size: 13px; color: rgba(255,255,255,0.3);
  position: relative;
}

/* ═══ FOOTER ═══ */
footer {
  max-width: 720px; margin: 48px auto 0;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-faint);
}
footer a { color: var(--text-soft); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 600px) {
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
  .templates-grid { grid-template-columns: 1fr; }
  .template-card-featured { flex-direction: column; grid-column: span 1; }
  .proof-bar { flex-direction: column; gap: 20px; }
  .proof-divider { width: 60px; height: 1px; }
  .final-cta { margin-left: 16px; margin-right: 16px; }
  .mega-hint { display: none; }
}
