/* Layout constants */

:root {
  --header-h: 72px;
  --content-max: 1180px;
  --pad-inline: clamp(20px, 5vw, 64px);
  --section-pad-y: clamp(72px, 12vw, 140px);
}

/* Skip link — visible only on keyboard focus (Part VII gate) */

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  background: var(--gold);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 2px;
  font-size: 14px;
  transition: top 200ms var(--ease-entrance);
}

.skip-link:focus-visible {
  top: 12px;
}

/* Header + language toggle */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-inline);
  height: var(--header-h);
}

.site-brand {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cross-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms var(--ease-entrance);
}

.cross-link:hover {
  color: var(--ink);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.lang-toggle button {
  padding: 4px 6px;
  color: var(--muted);
}

.lang-toggle button[aria-pressed='true'] {
  color: var(--gold);
}

@media (max-width: 640px) {
  .cross-link {
    display: none;
  }
}

/* Shared section rhythm */

.truthbar,
.work,
.compare,
.process,
.pricing,
.dropzone-section,
.faq,
.final {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-pad-y) var(--pad-inline);
}

.truthbar h2,
.work h2,
.compare h2,
.process h2,
.pricing h2,
.faq h2,
.final h2 {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 20ch;
}

.section-body {
  margin-top: 20px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.82);
}

#work,
#pricing,
#dropzone {
  scroll-margin-top: var(--header-h);
}

/* Hero triptych (§5.1) */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}

.hero-triptych {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  will-change: transform, opacity;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.hero-panel-poster {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  animation: hero-poster-pulse 2.4s ease-in-out infinite;
  transition: opacity 500ms var(--ease-entrance);
}

.hero-panel.is-loaded .hero-panel-poster {
  opacity: 0;
  pointer-events: none;
}

@keyframes hero-poster-pulse {
  0%, 100% { box-shadow: inset 0 0 0 999px rgba(201, 162, 39, 0.02); }
  50% { box-shadow: inset 0 0 0 999px rgba(201, 162, 39, 0.09); }
}

.hero-panel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms var(--ease-entrance);
}

.hero-panel.is-loaded .hero-panel-video {
  opacity: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.55), rgba(10, 12, 15, 0.92));
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.hero-eyebrow {
  margin-bottom: 20px;
}

.hero-headline {
  max-width: 17ch;
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.08;
}

.hero-headline-line {
  display: block;
}

.hero-headline-line.accent {
  color: var(--gold);
}

.hero-sub {
  margin-top: 24px;
  max-width: 58ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.82);
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.02em;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 200ms var(--ease-entrance), background 200ms var(--ease-entrance), border-color 200ms var(--ease-entrance);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--gold-dim);
}

.hero-micro {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* Mobile: one panel, no parallax, poster mandatory (§5.1) */
@media (max-width: 767px) {
  .hero-triptych {
    grid-template-columns: 1fr;
  }
  .hero-panel:nth-child(n + 2) {
    display: none;
  }
}

/* Truth bar (§3.4/3.5) */

.truthbar-lead {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 300;
  max-width: 22ch;
  letter-spacing: -0.02em;
}

.truthbar-body {
  margin-top: 20px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245, 242, 236, 0.82);
}

.stat-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-figure {
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--gold);
  font-weight: 400;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 20ch;
}

/* Work — film card grid */

.work-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.film-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bg-2);
}

.film-card-poster {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  animation: hero-poster-pulse 2.4s ease-in-out infinite;
  transition: opacity 500ms var(--ease-entrance);
}

.film-card.is-loaded .film-card-poster {
  opacity: 0;
  pointer-events: none;
}

.film-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms var(--ease-entrance);
}

.film-card.is-loaded .film-card-video {
  opacity: 1;
}

.film-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 15, 0.85));
  pointer-events: none;
}

.film-card-title {
  font-size: 14px;
  color: var(--ink);
}

.film-card-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.tilt-rim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Reduced-motion fallback: explicit play control instead of autoplay (Part VII) */

.video-play-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 12, 15, 0.6);
  border: 1px solid var(--gold-dim);
  color: var(--gold-soft);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scroll-scrubbed film (§5.2) */

.scrub {
  position: relative;
  height: 300vh;
}

.scrub-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-2);
}

/* Static fallback — phones, tablets, and reduced-motion. No pin, no reserved
   scroll track: the section is exactly as tall as the film plus the beats. */
.scrub.is-static {
  height: auto;
}

.scrub.is-static .scrub-pin {
  position: static;
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: 78vh;
}

.scrub.is-static .scrub-scrim {
  background: linear-gradient(180deg, rgba(10, 12, 15, 0) 55%, rgba(10, 12, 15, 0.55));
}

.scrub.is-static .scrub-beats {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 44px var(--pad-inline) 8px;
}

.scrub.is-static .scrub-beat {
  position: static;
  opacity: 1;
  max-width: 26ch;
  text-align: left;
  font-size: clamp(21px, 5.2vw, 30px);
  line-height: 1.25;
}

.scrub-poster {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  animation: hero-poster-pulse 2.4s ease-in-out infinite;
  transition: opacity 500ms var(--ease-entrance);
}

.scrub-pin.is-loaded .scrub-poster {
  opacity: 0;
  pointer-events: none;
}

.scrub-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scrub-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 15, 0.3), rgba(10, 12, 15, 0.75));
}

.scrub-beats {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--pad-inline);
}

.scrub-beat {
  position: absolute;
  max-width: 24ch;
  text-align: center;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 300;
  letter-spacing: -0.02em;
  opacity: 0;
  transition: opacity 500ms var(--ease-entrance);
}

.scrub-beat.is-active {
  opacity: 1;
}

/* Mobile: static poster, beats as a plain stacked list, no pin (§5.2) */
@media (max-width: 1023px) {
  .scrub {
    height: auto;
  }
  .scrub-pin {
    position: static;
    height: 70vh;
    min-height: 420px;
  }
  .scrub-beats {
    position: static;
    flex-direction: column;
    gap: 20px;
    padding: 40px var(--pad-inline);
    background: var(--bg-2);
  }
  .scrub-beat {
    position: static;
    opacity: 1;
    max-width: none;
    font-size: clamp(20px, 5vw, 28px);
  }
}

/* Comparison table */

.compare-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-table tbody th {
  color: var(--ink);
  font-weight: 400;
  white-space: nowrap;
}

.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th {
  border-bottom: none;
}

.compare-table .col-us {
  color: var(--gold-soft);
  background: rgba(201, 162, 39, 0.05);
}

/* Process */

.process-steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
}

.process-step .step-n {
  display: block;
  font-size: 40px;
  color: var(--gold-dim);
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.82);
}

/* Pricing */

.pricing-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tier-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
}

.tier-card.is-featured {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 1px var(--gold-dim);
}

.tier-name {
  font-size: 20px;
  font-weight: 300;
}

.tier-price {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tier-price-figure {
  font-size: 34px;
  color: var(--gold);
}

.tier-billing {
  font-size: 13px;
  color: var(--muted);
}

.tier-who {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 242, 236, 0.8);
  min-height: 42px;
}

.tier-bullets {
  margin-top: 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tier-bullets li {
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(245, 242, 236, 0.85);
}

.tier-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.tier-cta {
  margin-top: 28px;
  width: 100%;
}

/* §6.2 — the second path is deliberately quiet. Muted, small, underlined on
   hover only. It must never read as a competing button. */
.tier-secondary {
  margin-top: 12px;
  align-self: center;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-entrance);
}

.tier-secondary:hover,
.tier-secondary:focus-visible {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-anchor {
  margin-top: 40px;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.75);
}

.pricing-trust {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* Dropzone (§6.1) */

.dropzone-panel.is-success .dropzone-form {
  display: none;
}

.dropzone-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 640px;
}

.drop-area {
  display: block;
  cursor: pointer;
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 40px 24px;
  text-align: center;
  transition: border-color 200ms var(--ease-entrance), background 200ms var(--ease-entrance);
}

.drop-area:hover,
.drop-area.is-dragging {
  border-color: var(--gold-dim);
  background: rgba(201, 162, 39, 0.04);
}

.drop-area-label {
  font-size: 14px;
  color: var(--muted);
}

.thumb-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}

.dropzone-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 3px;
  overflow: hidden;
}

.dropzone-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropzone-thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(10, 12, 15, 0.8);
  color: var(--ink);
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-count {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.dropzone-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.dropzone-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.dropzone-field input {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
}

.dropzone-field input:focus-visible {
  border-color: var(--gold-dim);
}

.dropzone-status {
  margin-top: 24px;
  font-size: 15px;
  max-width: 60ch;
}

.dropzone-status[data-state='success'] {
  color: var(--gold-soft);
}

.dropzone-status[data-state='error'],
.dropzone-status[data-state='warn'] {
  color: #c97a4a;
}

/* FAQ */

.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

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

.faq-heading {
  margin: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-size: 16px;
  color: var(--ink);
  text-align: left;
}

.faq-icon {
  font-size: 20px;
  color: var(--gold);
  transition: transform 300ms var(--ease-entrance);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 4px 22px;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(245, 242, 236, 0.82);
}

/* Final CTA */

.final {
  text-align: center;
}

.final h2 {
  margin: 0 auto;
}

.final .section-body {
  margin-inline: auto;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--pad-inline) 64px;
}

.disclosure {
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}

/* Sticky mobile buy bar (§6.3) */

.buy-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad-inline);
  background: rgba(10, 12, 15, 0.82);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.buy-bar-price {
  font-size: 15px;
  color: var(--ink);
}

.buy-bar-once {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 767px) {
  .buy-bar:not([hidden]) {
    display: flex;
  }
}

/* WhatsApp float (§6.4) */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .whatsapp-float {
    bottom: 24px;
  }
}
