/* ThumbLab Editorial Studio Design System (Vanilla CSS) */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-subtle: #f3f1ec;
  --ink: #141416;
  --ink-secondary: #52525b;
  --ink-muted: #71717a;
  --border: #e6e3dc;
  --border-strong: #d4d0c7;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-soft: #fff1f2;
  --success: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --yt-dark: #0f0f0f;
  --yt-dark-text: #f1f1f1;
  --yt-dark-sub: #aaaaaa;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 22, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 20, 22, 0.06), 0 1px 3px rgba(20, 20, 22, 0.04);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container-narrow {
  max-width: 780px;
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  font-size: 0.86rem;
  padding: 8px 15px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.22);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.28);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
  border-color: #bcb7ac;
}

.btn-full {
  width: 100%;
}

/* ==================== HERO ==================== */
.hero {
  padding: 72px 0 48px;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--ink-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.62;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-meta {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ==================== INTERACTIVE STUDIO DEMO ==================== */
.demo-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.demo-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.demo-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.window-dots {
  display: inline-flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.demo-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.seg-control {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.seg-btn.is-active {
  background: var(--ink);
  color: #ffffff;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
}

/* Left: Simulated YouTube Feed */
.demo-feed {
  padding: 24px;
  transition: background 0.2s ease, color 0.2s ease;
}

.demo-feed.is-dark {
  background: var(--yt-dark);
  color: var(--yt-dark-text);
}

.demo-feed.is-light {
  background: #ffffff;
  color: #0f0f0f;
}

.feed-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.8rem;
  opacity: 0.72;
}

.yt-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.yt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yt-thumb-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #232326;
}

.yt-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.14s ease;
}

.yt-duration {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.yt-variant-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.yt-safe-box {
  position: absolute;
  inset: 8% 6% 18% 6%;
  border: 2px dashed #10b981;
  border-radius: 6px;
  pointer-events: none;
  display: none;
}

.yt-safe-box.is-visible {
  display: block;
}

.yt-safe-label {
  position: absolute;
  bottom: 4px;
  left: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(0, 0, 0, 0.78);
  padding: 1px 6px;
  border-radius: 4px;
}

.yt-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  display: none;
}

.yt-progress-bar.is-visible {
  display: block;
}

.yt-progress-bar span {
  display: block;
  width: 44%;
  height: 100%;
  background: #ff0000;
}

.yt-meta-row {
  display: flex;
  gap: 10px;
}

.yt-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  background: #2e2e34;
  flex-shrink: 0;
}

.yt-avatar.is-yours {
  background: var(--accent);
}

.yt-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-card-sub {
  font-size: 0.78rem;
  opacity: 0.68;
  margin-top: 3px;
}

/* Right: Interactive Inspector Panel */
.demo-inspector {
  padding: 24px;
  border-left: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inspector-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.inspector-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.mono-stat {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.demo-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s ease;
}

.demo-input:focus {
  border-color: var(--ink);
  background: var(--surface);
}

.meter-track {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.meter-bar {
  height: 100%;
  width: 60%;
  background: var(--success);
  transition: width 0.15s ease, background 0.15s ease;
}

.meter-status {
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.check-chip input {
  accent-color: var(--accent);
}

.range-slider {
  width: 100%;
  accent-color: var(--accent);
}

.demo-note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 80px 0;
}

.section-bordered {
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-header.is-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--ink-secondary);
  font-size: 1.02rem;
}

/* 3-Step Workflow Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.62;
}

/* Feature Detail List (Clean 2-Column Editorial) */
.feature-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 36px;
}

.feature-item {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.93rem;
  color: var(--ink-secondary);
}

/* ==================== PRICING ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.price-card.is-featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}

.price-tier {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.price-card.is-featured .price-tier {
  color: var(--accent);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 12px 0 4px;
  line-height: 1;
}

.price-cadence {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  flex: 1;
}

.price-list li {
  font-size: 0.93rem;
  color: var(--ink-secondary);
  padding-left: 22px;
  position: relative;
}

.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.price-list li strong {
  color: var(--ink);
}

.price-footnote {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ==================== FAQ ==================== */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--ink-muted);
  transition: transform 0.16s ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-item p {
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* ==================== LEGAL PAGES ==================== */
.legal-page {
  padding: 64px 0 96px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 36px;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  margin: 30px 0 10px;
}

.legal-body p,
.legal-body li {
  color: var(--ink-secondary);
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.legal-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 920px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .demo-inspector {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .feature-rows {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 48px 0 36px;
  }
  .yt-cards {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 56px 0;
  }
}
