/* TimeBlock Text Lite — Base styles (customize as needed) */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f9fafb;
  color: #1f2937;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero */
.hero {
  background: #fff;
  padding: 6rem 1.5rem;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 3rem 4rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; font-weight: 700; }
.hero-tagline { font-size: 1.3rem; opacity: 0.75; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; align-items: center; }
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary-link { width: auto; }

/* Hero showcase — absolutely positioned behind heading */
.hero-showcase {
  position: absolute;
  top: 37%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 30rem;
  align-items: center;
  justify-content: center;
  width: 1500px;
  max-width: 100%;
  z-index: 1;
  opacity: 0.90;
  pointer-events: none;
}
.showcase-stack {
  position: relative;
  width: 45%;
  min-height: 300px;
}
.showcase-stack .showcase-img {
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  width: 90%;
}
.showcase-stack .showcase-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-4deg);
  z-index: 1;
}
.showcase-stack .showcase-front {
  position: relative;
  top: 30px;
  left: 10%;
  transform: rotate(2deg);
  z-index: 2;
}
.showcase-solo {
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-solo .showcase-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  margin-top: 400px;
  margin-left: -150px;


}
.showcase-solo .showcase-rotated {
  transform: rotate(-20deg);
}

/* Video play button overlay */
.video-wrapper {
  position: relative;
  width: 100%;
}
.video-wrapper video {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.video-overlay {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  z-index: 3;
  cursor: pointer;
  overflow: hidden;
  background: #000;
}
.video-overlay-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.video-overlay-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.video-overlay:hover .video-overlay-play {
  background: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}
/* Once playing, hide overlay permanently */
.video-wrapper.playing .video-overlay {
  display: none;
}

/* How It Works */
.how-it-works { padding: 4rem 1.5rem; max-width: 1200px; width: 100%; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.section-header p { font-size: 1.1rem; color: #6b7280; }
.how-it-works-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.steps-column { display: flex; flex-direction: column; gap: 1.5rem; }
.demo-column { position: sticky; top: 2rem; }
.demo-column video { width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); border: 1px solid #e5e7eb; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.step { text-align: center; padding: 2rem; background: #fff; border-radius: 8px; border: 1px solid #e5e7eb; }
.step-number { width: 60px; height: 60px; background: #f3f4f6; border-radius: 50%; font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; border: 1px solid #d1d5db; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: #6b7280; font-size: 0.95rem; line-height: 1.6; }
.step-preview { margin-top: 1.5rem; background: #f9fafb; border-radius: 6px; border: 1px solid #e5e7eb; }
.step-preview pre { background: #f8f9fa; padding: 1rem; font-size: 0.8rem; line-height: 1.6; color: #333; font-family: Monaco, 'Courier New', monospace; white-space: pre-wrap; }

/* Header */
header { background: #fff; padding: 2.5rem 1.5rem; text-align: center; border-bottom: 1px solid #e5e7eb; }
header h1 { font-size: 2rem; margin-bottom: 0.4rem; }
header p { opacity: 0.75; font-size: 1rem; }

/* Main */
main { max-width: 750px; width: 100%; margin: 1.5rem auto; padding: 0 1rem; flex: 1; }

/* Cards */
.card { background: #fff; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid #e5e7eb; }
.card h2 { color: #1f2937; margin-bottom: 1rem; font-size: 1.25rem; }
#upgrade-content h2 { margin-bottom: 1.25rem; }
#upgrade-content p { margin-bottom: 1.5rem; }
#upgrade-content .btn-primary { margin-top: 0.5rem; }

/* Labels / Selects / Inputs */
.tz-label { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; font-weight: 500; font-size: 0.9rem; }
select { padding: 0.4rem 0.6rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.9rem; }
input[type="text"] { padding: 0.6rem 0.75rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.95rem; }
input[type="date"] { padding: 0.6rem 0.75rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.95rem; }
input:focus, select:focus { outline: none; border-color: #1f2937; }

/* Two-column form layout */
.form-grid { padding-bottom: 50px;display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; }
.form-labels { display: flex; flex-direction: column; gap: 3.25rem; font-weight: 500; font-size: 0.9rem; color: #374151; }
.form-labels label { margin: 0; display: flex; align-items: center; height: 40px; }
.form-inputs { display: flex; flex-direction: column; gap: 3.25rem; }
.form-inputs input,
.form-inputs select { height: 40px; width: 100%; padding: 0.6rem 0.75rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.95rem; }

@media (max-width: 600px) {
  .form-grid { display: grid; grid-template-columns: auto 1fr; gap: 0; align-items: start; }
  .form-labels label,
  .form-inputs input,
  .form-inputs select { height: 35px; margin-bottom: 1.25rem; }
  .form-labels { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
}

/* Buttons */
a.btn-primary, .btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: #1f2937;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  width: 100%;
}
.btn-primary:hover { background: #374151; }
.btn-secondary { padding: 0.6rem 1rem; background: #fff; color: #1f2937; border: 1px solid #d1d5db; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }
.btn-secondary:hover { background: #1f2937; color: #fff; }

/* Error */
.error { background: #fef2f2; color: #991b1b; padding: 0.75rem 1rem; border-radius: 4px; border-left: 4px solid #dc2626; margin-bottom: 1rem; font-size: 0.9rem; }

/* Loading */
.loading { text-align: center; padding: 1.5rem; color: #1f2937; font-weight: 500; }

/* Results */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.results-hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
  margin-bottom: 0;
}
.copy-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  color: #6b7280;
  transition: color 0.15s;
  flex-shrink: 0;
}
.copy-icon-btn:hover { color: #1f2937; }
.results pre { background: #f9fafb; padding: 1.25rem; border-radius: 4px; border: 1px solid #e5e7eb; font-family: Monaco, 'Courier New', monospace; font-size: 0.85rem; line-height: 1.6; white-space: pre-wrap; max-height: 500px; overflow-y: auto; margin-bottom: 1rem; }
#result-iframe { padding-bottom: 2rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.actions button { flex: 1; min-width: 120px; }

/* Auth bar */
.auth-bar {
  background: #fff;
  padding: 0.5rem 2.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: #6b7280;
}
#auth-signed-in,
#auth-signed-out {
  display: flex;
  gap: 0.75rem;
  padding: 0 1rem;
}
#auth-signed-in[hidden],
#auth-signed-out[hidden] {
  display: none;
}

.auth-bar .btn-link {
  background: none;
  border: none;
  color: #1f2937;
  text-decoration: underline;
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: 5px;
  margin-right: 2px; 
}

/* Plan badge */
.plan-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.plan-free { background: #f3f4f6; color: #6b7280; }
.plan-premium { background: #d1fae5; color: #065f46; }

/* Generation counter */
.generation-counter {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.generation-counter .upgrade-link {
  color: #002fff;
  text-decoration: none;
  font-weight: 500;
}
.generation-counter .upgrade-link:hover {
  text-decoration: underline;
}

/* Secondary link button */
a.btn-secondary-link {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: #fff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
a.btn-secondary-link:hover { background: #f3f4f6; }

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover { color: #1f2937; }
main > .back-link {
  max-width: 700px;
  margin: 0 auto 1rem;
  display: block;
}

/* Pricing */
.pricing-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: #1f2937;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
}
.pricing-card.featured::before {
  content: "POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.pricing-name { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.pricing-period { color: #9ca3af; font-size: 0.9rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e5e7eb; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.pricing-features li { padding: 0.5rem 0; color: #6b7280; font-size: 0.95rem; }
.pricing-features li::before { content: "\2713  "; color: #1f2937; font-weight: 700; }
.pricing-features li.disabled { color: #d1d5db; }
.pricing-features li.disabled::before { content: "\2717  "; color: #d1d5db; }
.pricing-cta {
  width: 100%;
  padding: 0.75rem;
  background: #1f2937;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
.pricing-cta:hover { background: #374151; }
.pricing-cta.secondary { background: #fff; color: #1f2937; border: 1px solid #d1d5db; }
.pricing-cta.secondary:hover { background: #1f2937; color: #fff; }

/* Instructions panel */
.instructions-panel { padding: 0; }
.instructions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 1rem;
}
.instructions-api-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
  color: #6b7280;
}
.instructions-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  text-align: left;
}
.instructions-toggle:hover { background: #f9fafb; border-radius: 8px; }
.instructions-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #f3f4f6;
  font-size: 1.1rem;
  font-weight: 700;
  color: #6b7280;
  flex-shrink: 0;
}
.instructions-body {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.instructions-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.instructions-steps li {
  counter-increment: step;
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}
.instructions-steps li:last-child { border-bottom: none; }
.instructions-steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #1f2937;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.6rem;
  vertical-align: middle;
}
.instructions-steps code {
  background: #f3f4f6;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
}
.instructions-img-placeholder {
  margin-top: 0.75rem;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

/* Output Formats */
.output-formats { padding: 4rem 1.5rem; max-width: 1200px; width: 100%; margin: 0 auto; }
.format-featured {
  position: relative;
  background: #fff;
  border: 2px solid #1f2937;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.format-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #fff;
  padding: 0.3rem 1.2rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.format-featured h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.format-featured p { color: #6b7280; font-size: 1rem; margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.format-featured img {
  width: 100%;
  max-width: 650px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.format-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.format-card h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.format-card p { color: #6b7280; font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.5; }
.format-card img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

@media (max-width: 600px) {
  .format-grid { grid-template-columns: 1fr; }
  .format-featured { padding: 2rem 1rem; }
}

/* CTA Section */
.cta-section {
  background: #1f2937;
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta-section p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 2rem; }
.cta-section .btn-primary {
  background: #fff;
  color: #1f2937;
  width: auto;
  display: inline-block;
}
.cta-section .btn-primary:hover { background: #f3f4f6; }

/* Footer */
footer { background: #fff; color: #9ca3af; text-align: center; padding: 1.25rem; font-size: 0.85rem; border-top: 1px solid #e5e7eb; }
footer a { color: #1f2937; }

/* Mobile */
@media (max-width: 600px) {
  .hero-content h1 { font-size: 2rem; }
  .hero { padding: 3rem 1rem; min-height: auto; }
  .hero-showcase { width: 120%; }
  .showcase-stack { min-height: 150px; }
  header h1 { font-size: 1.5rem; }
  .actions { flex-direction: column; }
  .actions button { width: 100%; }
  .tz-label { flex-direction: column; align-items: flex-start; }
  .pricing-container { grid-template-columns: 1fr; }
  .how-it-works-columns { grid-template-columns: 1fr; }
  .demo-column { position: static; }
}
