/* Burncaps: the print room. Projection black, screen-light ivory, one burn-amber
   accent. Archivo Black title cards (the same face the product burns into video).
   Direction contract lives at the top of index.html. */

:root {
  --black: #0D0B09;
  --panel: #171310;
  --panel-2: #1E1915;
  --line: rgba(242, 237, 228, 0.10);
  --ivory: #F2EDE4;
  --muted: #B0A694;
  --amber: #FFB03A;
  --amber-deep: #E08A1E;
  --good: #8FBF6F;
  --danger: #E88E7D;
  --radius: 10px;
  --display: 'Archivo Black', 'Arial Narrow', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* sprocket rails: the film-strip edges of the page */
  background-image:
    repeating-linear-gradient(to bottom, transparent 0 14px, rgba(242,237,228,0.10) 14px 26px),
    repeating-linear-gradient(to bottom, transparent 0 14px, rgba(242,237,228,0.10) 14px 26px);
  background-size: 10px 40px, 10px 40px;
  background-position: 14px 0, calc(100% - 24px) 0;
  background-repeat: repeat-y, repeat-y;
}
@media (max-width: 900px) {
  body { background-size: 5px 40px, 5px 40px; background-position: 4px 0, calc(100% - 9px) 0; }
}
img, video, canvas { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
::selection { background: var(--amber); color: var(--black); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/archivo-black-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

h1, h2, h3, .logo, .price {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(13, 11, 9, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; text-decoration: none; letter-spacing: 0.06em; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav nav a:hover { color: var(--ivory); }
.pro-badge-slot { color: var(--good); font-size: 0.85rem; font-weight: 700; }
@media (max-width: 560px) { .nav nav a:not(:last-of-type) { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.005em; text-wrap: balance; }
.sub { margin: 22px 0 30px; color: var(--muted); font-size: 1.06rem; max-width: 46ch; }
.hero.compact { padding: 26px 0; }
.hero.compact .hero-stage, .hero.compact .sub, .hero.compact .trust, .hero.compact br { display: none; }
.hero.compact h1 { font-size: 1.4rem; }
.hero.compact .hero-grid { grid-template-columns: 1fr; gap: 14px; }
.hero.compact .dropzone { padding: 12px 18px; margin: 12px 0 0; flex-direction: row; }
.hero.compact .dz-ic { width: 18px; height: 18px; }

.dropzone {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 24px; max-width: 480px;
  background: var(--panel);
  border: 1px dashed rgba(255, 176, 58, 0.45);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--amber); background: var(--panel-2); transform: translateY(-1px); }
.dz-ic { width: 26px; height: 26px; color: var(--amber); flex-shrink: 0; }
.dz-main { font-weight: 700; font-size: 1.05rem; }
.dz-sub { color: var(--muted); font-size: 0.9rem; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin-top: 26px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 17px; height: 17px; color: var(--amber); }
.warn { margin-top: 18px; max-width: 480px; background: rgba(255, 176, 58, 0.10); border: 1px solid rgba(255, 176, 58, 0.35); padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; }

/* the live demo: a letterboxed vertical frame on the projection wall */
.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.film-frame {
  position: relative;
  width: min(300px, 72vw);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
}
.film-frame .letterbox { height: 26px; background: #000; }
.film-frame canvas { display: block; width: 100%; aspect-ratio: 9 / 16; }
.frame-label {
  position: absolute; top: 34px; left: 12px;
  background: rgba(13, 11, 9, 0.72); color: var(--ivory);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
}
.frame-label span { color: var(--amber); }
.stage-note { color: var(--muted); font-size: 0.8rem; max-width: 300px; text-align: center; }

/* ---------- app (operate mode: quiet, precise) ---------- */
.app { padding: 26px 0 48px; }
.app-grid { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel-title { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); margin: 20px 0 10px; }
.panel-title:first-child { margin-top: 0; }
.hint { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 400; }

.video-wrap { position: relative; background: #000; border-radius: 8px; overflow: hidden; }
.video-wrap video { display: block; width: 100%; max-height: 66vh; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.status { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.status.error { color: var(--danger); }
.status.pulse #status-text { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
/* Progress reads like a film leader: frame ticks over the track, amber burn sweeping through */
.bar-track {
  position: relative; margin-top: 8px; height: 10px; border-radius: 4px; overflow: hidden;
  background: rgba(242, 237, 228, 0.07);
}
.bar-track::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to right, transparent 0 10px, var(--black) 10px 13px);
}
.bar { height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--amber); transition: transform 0.2s; }

.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.style-card { background: var(--black); border: 2px solid transparent; border-radius: 8px; padding: 6px; cursor: pointer; color: var(--ivory); font-family: inherit; }
.style-card canvas { width: 100%; border-radius: 4px; display: block; }
.style-card span { display: block; font-size: 0.82rem; font-weight: 700; margin-top: 6px; text-align: center; }
.style-card span em { font-style: normal; font-size: 0.68rem; color: var(--amber); vertical-align: 1px; }
.style-card.active { border-color: var(--amber); }
.style-card:hover { border-color: rgba(255, 176, 58, 0.5); }

.control-row { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 12px 0; align-items: end; }
.control-row label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
input[type="range"] { accent-color: var(--amber); width: 140px; }
select { background: var(--black); color: var(--ivory); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-family: inherit; font-size: 0.9rem; }

.word-list { background: var(--black); border: 1px solid var(--line); border-radius: 8px; padding: 12px; max-height: 200px; overflow-y: auto; font-size: 0.95rem; line-height: 2; }
.word-chip { padding: 2px 4px; border-radius: 4px; cursor: text; outline: none; }
.word-chip:hover { background: rgba(242, 237, 228, 0.08); }
.word-chip:focus { background: rgba(255, 176, 58, 0.25); }

.btn {
  display: inline-block; border: 1px solid var(--line); background: var(--panel-2); color: var(--ivory);
  border-radius: 8px; padding: 10px 16px; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  text-decoration: none; font-family: inherit; text-align: center;
  transition: transform 0.12s, filter 0.12s, background 0.12s;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--black); }
.btn.primary:hover:not(:disabled) { background: #FFBD59; }
.btn.big { width: 100%; padding: 14px; font-size: 1rem; }
.btn.ghost { background: transparent; }
.export-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--panel); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.15; margin-bottom: 34px; max-width: 24ch; text-wrap: balance; }
.sub2 { color: var(--muted); margin: -22px 0 30px; max-width: 62ch; }

/* how it works: three frames on a strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 820px) { .strip { grid-template-columns: 1fr; } }
.strip-frame { padding: 28px 26px 30px; background: var(--panel); }
.strip-frame + .strip-frame { border-left: 1px solid var(--line); }
@media (max-width: 820px) { .strip-frame + .strip-frame { border-left: 0; border-top: 1px solid var(--line); } }
.strip-frame h3 { font-size: 0.98rem; margin-bottom: 12px; color: var(--amber); }
.strip-frame p { color: var(--muted); font-size: 0.95rem; }

.honest { margin-top: 36px; max-width: 720px; }
.honest h3 { font-size: 0.98rem; margin-bottom: 10px; }
.honest p { color: var(--muted); }

/* styles showcase: live-rendered chips */
.style-showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.show-card { background: var(--black); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.section.alt .show-card { background: var(--black); }
.show-card canvas { display: block; width: 100%; }
.show-card figcaption { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 0.88rem; font-weight: 700; }
.show-card .pro-tag { color: var(--amber); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; }

/* pricing tickets */
.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 20px; max-width: 820px; }
.ticket { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.ticket.featured { border-color: rgba(255, 176, 58, 0.6); }
.ticket-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 18px; margin-bottom: 16px; }
.ticket h3 { font-size: 1.1rem; }
.price { font-size: 2rem; color: var(--amber); }
.ticket:not(.featured) .price { color: var(--ivory); }
.price span { display: block; font-family: var(--body); font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; text-align: right; }
.ticket ul { list-style: none; }
.ticket li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: 0.95rem; }
.ticket li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 12px; height: 7px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.ticket .btn { margin-top: 20px; }

/* comparison */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--black); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
td:nth-child(2) { color: var(--ivory); font-weight: 700; }
td:nth-child(3) { color: var(--muted); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 760px; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.02rem; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 8px; width: 8px; height: 8px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 12px; }
.faq p { color: var(--muted); margin-top: 12px; max-width: 68ch; }

.footer { padding: 44px 0 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer a { color: var(--muted); }
.tiny { font-size: 0.78rem; opacity: 0.75; margin-top: 10px; }

/* modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; background: rgba(6, 5, 4, 0.78); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; max-width: 440px; width: 100%; padding: 30px; position: relative; }
.modal-box h3 { font-size: 1.15rem; margin-bottom: 12px; }
.modal-box p { color: var(--muted); font-size: 0.95rem; }
.modal-box ul { list-style: none; margin: 16px 0; }
.modal-box li { padding: 6px 0 6px 24px; position: relative; color: var(--muted); font-size: 0.92rem; }
.modal-box li::before { content: ''; position: absolute; left: 0; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.report-textarea { width: 100%; margin: 14px 0; background: var(--black); color: var(--ivory); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-family: inherit; font-size: 0.95rem; resize: vertical; }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; line-height: 0; }
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { color: var(--ivory); }

/* simple pages */
.page { max-width: 720px; margin: 0 auto; padding: 60px 24px; }
.page h1 { margin-bottom: 20px; font-size: 1.8rem; }
.page h2 { margin: 26px 0 8px; font-size: 1.05rem; }
.page p, .page li { color: var(--muted); margin-bottom: 10px; }
.license-box { background: var(--panel); border: 1px dashed var(--amber); border-radius: 14px; padding: 18px; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.04em; text-align: center; margin: 20px 0; user-select: all; color: var(--ivory); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
