/* vibeapps.pro | free-online-teleprompter | See /MASTER_PROMPT.md */
:root {
  --bg: #0f0a1a;
  --surface: rgba(255, 255, 255, 0.06);
  --text: #f4f0ff;
  --muted: #a89bc4;
  --pink: #ff6bcb;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --play: #ff5c1a;
  --radius: 20px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(168, 85, 247, 0.35), transparent 50%),
    radial-gradient(ellipse 70% 50% at 95% 20%, rgba(255, 107, 203, 0.25), transparent 45%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34, 211, 238, 0.15), transparent 50%),
    var(--bg);
}

.lang-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  justify-content: center;
}
.lang-nav__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.lang-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}
.lang-nav__links a {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.lang-nav__links a:hover { color: var(--text); border-color: rgba(168, 85, 247, 0.4); }
.lang-nav__links a.active {
  color: var(--text);
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
}

html[dir="rtl"] .toolbar-primary { flex-direction: row-reverse; }
html[dir="rtl"] .lang-nav { flex-direction: row-reverse; }
html[dir="rtl"] .script { text-align: right; }
html[dir="rtl"] .align-btn[data-align="left"],
html[dir="rtl"] .align-btn[data-align="right"] { /* labels stay universal */ }

.seo-top {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.75rem;
  text-align: center;
}

.pill-link {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, color 0.2s;
}
.pill-link:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.2); }

.seo-top h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 1.25rem 0 1rem;
}

.gradient-text {
  background: linear-gradient(120deg, var(--cyan), var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.intro kbd {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.85em;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  margin-top: 1.25rem;
}
.tag {
  font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(255, 107, 203, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.player {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  height: min(68vh, 640px);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.15),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(168, 85, 247, 0.08);
  background: #050508;
}
.player.is-fs {
  position: fixed; inset: 0; z-index: 9999;
  max-width: none; margin: 0; padding: 0;
  height: 100vh; border-radius: 0;
}

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  background: rgba(15, 10, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.toolbar-primary {
  display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
}

.btn-play-cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: linear-gradient(135deg, #ff8a4c 0%, var(--play) 50%, #e94d00 100%);
  color: #fff; border: none; border-radius: 999px;
  padding: 0.95rem 2rem; font-family: var(--font);
  font-size: 1.15rem; font-weight: 800; letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 0 #c24100, 0 12px 32px rgba(255, 92, 26, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-play-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 0 #c24100, 0 16px 40px rgba(255, 92, 26, 0.5);
}
.btn-play-cta:active { transform: translateY(1px) scale(0.99); }
.btn-play-cta.playing {
  background: linear-gradient(135deg, #64748b, #334155);
  box-shadow: 0 4px 0 #1e293b, 0 8px 20px rgba(0, 0, 0, 0.35);
}

.btn-reset {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-reset:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.btn-reset:active { transform: translateY(0); }

.toolbar-tools {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.45rem 0.65rem; flex: 1;
}
.tb-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff; width: 36px; height: 36px;
  border-radius: 10px; cursor: pointer; font-size: 0.85rem;
  transition: background 0.15s, border-color 0.15s;
}
.tb-btn:hover, .tb-btn.active {
  background: rgba(168, 85, 247, 0.35);
  border-color: rgba(168, 85, 247, 0.6);
}
.tb-pick { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.tb-pick input[type=color] { width: 34px; height: 28px; border: 2px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 0; }
.tb-pick span { font-size: 0.55rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.tb-slide { display: flex; flex-direction: column; min-width: 95px; flex: 1; max-width: 125px; }
.tb-slide input[type=range] { width: 100%; accent-color: var(--purple); height: 5px; }
.tb-slide span { font-size: 0.55rem; color: var(--muted); margin-top: 3px; font-weight: 500; }
.tb-slide output { color: var(--cyan); font-weight: 700; }

.viewport {
  flex: 1; min-height: 0;
  overflow: hidden; position: relative;
  background: #000;
}
.track {
  padding-top: 45vh; padding-bottom: 50vh;
  padding-left: var(--margin, 10%); padding-right: var(--margin, 10%);
  will-change: transform;
}
.mirror { transform-origin: center center; }
.mirror.flip-x { transform: scaleX(-1); }
.mirror.flip-y { transform: scaleY(-1); }
.mirror.flip-x.flip-y { transform: scale(-1); }

.script {
  outline: none; min-height: 80px;
  white-space: pre-wrap; word-wrap: break-word;
  font-size: var(--fs, 64px); line-height: 1.3;
  text-align: var(--align, center);
  color: var(--text-color, #fff);
  caret-color: var(--text-color, #fff);
}
.script.is-playing { user-select: none; pointer-events: none; }

.seo-mid, .seo-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  text-align: center;
}
.seo-blurb {
  max-width: 640px; margin: 0 auto 1.5rem;
  color: var(--muted); font-size: 1rem; line-height: 1.6;
}
.seo-mid h2, .seo-bottom h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: left;
}
.feature-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.35);
}
.fc-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.feature-card h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem;
}
.feature-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

.faq-list { max-width: 560px; margin: 0 auto; text-align: left; }
.faq-card {
  margin-bottom: 0.65rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-card summary {
  cursor: pointer; font-weight: 700; font-size: 0.95rem;
  list-style: none;
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: "+"; float: right; color: var(--pink); }
.faq-card[open] summary::after { content: "−"; }
.faq-card p { margin-top: 0.65rem; color: var(--muted); font-size: 0.9rem; }

footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
footer a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
footer a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .player { height: 62vh; padding: 0 0.5rem; border-radius: var(--radius); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-primary { justify-content: center; }
  .toolbar-tools { justify-content: center; }
  .btn-play-cta { flex: 1; justify-content: center; }
}
