/* ============================================================
   REELS PAGE — additions on top of style.css + playbook.css
   Mode B dark brutalist. Bebas/Anton headings + JetBrains Mono.
   ============================================================ */

/* ---------- Hero CTA strip ---------- */
.reels__hero-cta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.reels__hero-cta-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vc-mint);
  opacity: 0.85;
}

/* ---------- //02 — cost matrix table ---------- */
.reels__matrix-wrap {
  margin-top: 32px;
  border: 1px solid rgba(255, 249, 203, 0.18);
  background: rgba(255, 249, 203, 0.03);
  overflow-x: auto;
}
.reels__matrix {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--vc-cream);
}
.reels__matrix thead th {
  text-align: left;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--vc-orange);
  border-bottom: 1px solid rgba(255, 249, 203, 0.18);
  background: rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}
.reels__matrix tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 249, 203, 0.08);
  vertical-align: middle;
}
.reels__matrix tbody tr:last-child td { border-bottom: 0; }

.reels__matrix .reels__no { color: #ff6b6b; }
.reels__matrix .reels__meh { color: #ffad36; }
.reels__matrix .reels__yes { color: #91dfec; }

.reels__matrix-ours td {
  background: linear-gradient(90deg, rgba(255, 173, 54, 0.15), rgba(229, 57, 108, 0.08));
  color: var(--vc-cream);
}
.reels__matrix-ours td strong { color: #fff; }

@media (max-width: 720px) {
  .reels__matrix-wrap { font-size: 13px; }
  .reels__matrix thead th { padding: 12px 12px; font-size: 16px; }
  .reels__matrix tbody td { padding: 10px 12px; font-size: 12px; }
}

/* ---------- //03 — what's inside grid ---------- */
.reels__inside-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.reels__inside-card {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 249, 203, 0.14);
  background: rgba(255, 249, 203, 0.025);
  transition: background 200ms ease, border-color 200ms ease;
}
.reels__inside-card:hover {
  background: rgba(255, 249, 203, 0.05);
  border-color: rgba(255, 173, 54, 0.4);
}
.reels__inside-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--vc-orange);
  margin-bottom: 10px;
}
.reels__inside-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  color: var(--vc-cream);
  text-transform: uppercase;
}
.reels__inside-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 249, 203, 0.78);
  margin: 0;
}
.reels__inside-card code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--vc-mint);
  background: rgba(145, 223, 236, 0.08);
  padding: 1px 5px;
}

/* ---------- //04 — module stack list ---------- */
.reels__stack-list {
  margin-top: 30px;
  border: 1px solid rgba(255, 249, 203, 0.18);
}
.reels__stack-row {
  display: grid;
  grid-template-columns: 90px minmax(220px, 1fr) 2fr;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 249, 203, 0.1);
  align-items: center;
  transition: background 180ms ease;
}
.reels__stack-row:last-child { border-bottom: 0; }
.reels__stack-row:hover { background: rgba(255, 249, 203, 0.03); }

.reels__stack-row--ours {
  background: linear-gradient(90deg, rgba(255, 173, 54, 0.18), rgba(229, 57, 108, 0.08));
}
.reels__stack-row--ours:hover { background: linear-gradient(90deg, rgba(255, 173, 54, 0.24), rgba(229, 57, 108, 0.12)); }

.reels__stack-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--vc-orange);
  font-weight: 600;
}
.reels__stack-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--vc-cream);
  text-transform: uppercase;
}
.reels__stack-name strong { color: #fff; }
.reels__stack-here {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--vc-mint);
  text-transform: uppercase;
  margin-left: 8px;
}
.reels__stack-makes {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 249, 203, 0.7);
}

@media (max-width: 720px) {
  .reels__stack-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 18px;
  }
  .reels__stack-name { font-size: 20px; }
  .reels__stack-makes { font-size: 13px; }
}

/* ---------- //05 — FAQ accordion ---------- */
.reels__faq {
  margin-top: 30px;
  border: 1px solid rgba(255, 249, 203, 0.18);
}
.reels__faq-item {
  border-bottom: 1px solid rgba(255, 249, 203, 0.1);
}
.reels__faq-item:last-child { border-bottom: 0; }

.reels__faq-q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--vc-cream);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 200ms ease, color 200ms ease;
}
.reels__faq-q::-webkit-details-marker { display: none; }
.reels__faq-q::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 300;
  color: var(--vc-orange);
  transition: transform 220ms ease, color 220ms ease;
  flex-shrink: 0;
}
.reels__faq-item[open] .reels__faq-q::after {
  content: '−';
  transform: rotate(0deg);
}
.reels__faq-item[open] .reels__faq-q { color: var(--vc-orange); }
.reels__faq-q:hover { background: rgba(255, 249, 203, 0.03); color: var(--vc-orange); }

.reels__faq-a {
  padding: 0 24px 24px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 249, 203, 0.82);
}
.reels__faq-a p { margin: 0; }
.reels__faq-a em { color: var(--vc-mint); font-style: italic; }
.reels__faq-link {
  color: var(--vc-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reels__faq-link:hover { color: var(--vc-cream); }

@media (max-width: 720px) {
  .reels__faq-q { padding: 16px 18px; font-size: 18px; }
  .reels__faq-a { padding: 0 18px 20px; font-size: 14px; }
}

/* ---------- //06 — operator note ---------- */
.reels__opnote {
  margin-top: 28px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 249, 203, 0.18);
  background: rgba(255, 249, 203, 0.025);
}
.reels__opnote p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 249, 203, 0.82);
  margin: 0 0 14px;
}
.reels__opnote p:last-of-type { margin-bottom: 0; }
.reels__opnote em { color: var(--vc-mint); font-style: italic; }
.reels__opnote a { color: var(--vc-orange); text-decoration: underline; text-underline-offset: 3px; }
.reels__opnote-sig {
  margin-top: 18px !important;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--vc-mint);
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .reels__opnote { padding: 22px 20px; }
  .reels__opnote p { font-size: 15px; }
}

/* ---------- //06 CTA extras ---------- */
.reels__cta-fineprint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 249, 203, 0.55);
  margin-top: 16px;
  text-transform: lowercase;
}
.reels__get-btn { cursor: pointer; border: 0; }

/* ============================================================
   DROP WIDGET — bottom-right slide-in chat
   ============================================================ */
.reels-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 220;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #FFAD36 0%, #FF6B6B 50%, #E5396C 100%);
  color: #111117;
  border: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(229, 57, 108, 0.35);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms ease, opacity 220ms ease;
}
.reels-toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(229, 57, 108, 0.5); }
.reels-toggle__dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #111117;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  animation: reelsPulse 1.6s ease-in-out infinite;
}
@keyframes reelsPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.reels-toggle--hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }

.reels-widget {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: min(440px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 100px));
  z-index: 230;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), opacity 280ms ease;
}
.reels-widget--hidden { opacity: 0; pointer-events: none; transform: translateY(40px); }

.reels-widget__shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0c0c12;
  border: 1px solid rgba(255, 249, 203, 0.22);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.reels-widget__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #16161e;
  border-bottom: 1px solid rgba(255, 249, 203, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 249, 203, 0.55);
  flex: 0 0 auto;
}
.reels-widget__lights { display: inline-flex; gap: 6px; }
.reels-widget__light {
  width: 12px; height: 12px; border-radius: 50%;
  cursor: pointer;
}
.reels-widget__light--red { background: #ff5f57; }
.reels-widget__light--yellow { background: #febc2e; }
.reels-widget__light--green { background: #28c840; }
.reels-widget__title { flex: 1 1 auto; }
.reels-widget__close {
  background: transparent;
  border: 0;
  color: rgba(255, 249, 203, 0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.reels-widget__close:hover { color: #fff; }

.reels-widget__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 249, 203, 0.92);
  scroll-behavior: smooth;
}

.reels-widget__line { word-wrap: break-word; white-space: pre-wrap; }
.reels-widget__line--sys {
  color: var(--vc-mint);
  font-size: 12px;
  opacity: 0.75;
}
.reels-widget__line--user {
  color: var(--vc-orange);
}
.reels-widget__line--user::before {
  content: 'you › ';
  color: var(--vc-orange);
  font-weight: 600;
}
.reels-widget__line--assistant {
  color: rgba(255, 249, 203, 0.92);
}
.reels-widget__line--assistant::before {
  content: 'drop › ';
  color: var(--vc-mint);
  font-weight: 600;
}
.reels-widget__line--input {
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(255, 249, 203, 0.12);
  padding-top: 12px;
  margin-top: auto;
}
.reels-widget__prompt {
  color: var(--vc-orange);
  font-weight: 600;
  flex: 0 0 auto;
}
.reels-widget__field {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  color: var(--vc-cream);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  caret-color: var(--vc-mint);
}
.reels-widget__field::placeholder { color: rgba(255, 249, 203, 0.4); }

.reels-widget__link {
  color: var(--vc-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.reels-widget__link:hover { color: var(--vc-cream); }

@media (max-width: 560px) {
  .reels-toggle { bottom: 14px; right: 14px; padding: 10px 14px; font-size: 16px; }
  .reels-widget {
    bottom: 0; right: 0; left: 0;
    width: 100vw;
    height: 75vh;
    max-height: calc(100vh - 60px);
  }
  .reels-widget__shell { border-left: 0; border-right: 0; border-bottom: 0; }
  .reels-widget__body { font-size: 13px; padding: 14px; }
}
