/* ==========================================================================
   descomoditiza.css — Guía EUDR en 2 Pasos (/descomoditiza)
   Companion of js/descomoditiza-wizard.js. Uses global tokens from the
   Webflow export (--dark-1/2/3, --light-1/2, --accent-1 #0B63DF; Faustina
   headings via .ff2, Inter body). See docs/descomoditiza-wizard-plan.md.
   ========================================================================== */

/* the wizard relies on the hidden attribute on flex/grid elements */
[hidden] { display: none !important; }

/* ---------- L1 · LANDING ---------- */
.dsc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding: 4rem 0 5rem;
}

.dsc-hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.dsc-hero-title {
  margin: 0 0 1rem;
  font-size: 2.9rem;
  line-height: 1.12;
  color: var(--dark-1);
}

.dsc-hero-sub {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--dark-2);
}

.dsc-hero-imgwrap img {
  width: 100%;
  height: auto;
  border-radius: 1em;
}

/* resume banner */
.dsc-resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(11, 99, 223, 0.08);
  border: 1px solid rgba(11, 99, 223, 0.35);
  border-radius: 0.75em;
}

.dsc-resume p { margin: 0; color: var(--dark-1); }

.dsc-resume-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* path cards */
.dsc-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.dsc-path-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  background: var(--light-1);
  border: 1px solid var(--dark-3);
  border-radius: 1em;
}

.dsc-path-icon { font-size: 2rem; line-height: 1; }

.dsc-path-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--dark-1);
}

.dsc-path-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark-2);
}

.dsc-path-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.dsc-path-actions .dsc-btn { width: 100%; }

/* ---------- BUTTONS ---------- */
.dsc-btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  border: 1px solid transparent;
  border-radius: 100vw;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.dsc-btn:hover { transform: translateY(-1px); }

.dsc-btn.is-primary {
  background: var(--accent-1);
  color: var(--light-1);
}

.dsc-btn.is-primary:hover { background: #0a56c2; }

.dsc-btn.is-ghost {
  background: transparent;
  border-color: var(--dark-3);
  color: var(--dark-1);
}

.dsc-btn.is-ghost:hover { background: var(--light-2); border-color: var(--dark-2); }

.dsc-btn.is-small { padding: 0.45em 1em; font-size: 0.85rem; }

/* ---------- L2 · WIZARD ---------- */
.dsc-wizard {
  min-height: 100vh;
  padding-bottom: 4rem;
  background: var(--light-2);
}

.dsc-wizard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 0;
}

.dsc-wizard-top h1 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--dark-1);
}

/* progress bar (sticky) */
.dsc-progress {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.9rem 0 1rem;
  background: var(--light-1);
  border-bottom: 1px solid var(--dark-3);
  box-shadow: 0 4px 14px rgba(13, 13, 13, 0.04);
}

.dsc-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark-2);
}

.dsc-progress-meta #dsc-progress-pct {
  font-weight: 700;
  color: var(--accent-1);
}

.dsc-progress-track {
  height: 0.35rem;
  margin-top: 0.5rem;
  background: rgba(213, 220, 233, 0.6);
  border-radius: 100vw;
  overflow: hidden;
}

.dsc-progress-fill {
  width: 0;
  height: 100%;
  background: var(--accent-1);
  border-radius: 100vw;
  transition: width 0.35s ease;
}

.dsc-progress-dots {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dsc-seg { display: flex; flex-direction: column; gap: 0.45rem; }

.dsc-seg-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dark-2);
}

.dsc-seg.is-active .dsc-seg-label {
  color: var(--accent-1);
  font-weight: 700;
}

.dsc-seg-dots { display: flex; gap: 0.4rem; }

.dsc-dot {
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: 1.5px solid var(--dark-3);
  border-radius: 100vw;
  background: var(--light-1);
  cursor: default;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dsc-dot.is-visited {
  border-color: var(--accent-1);
  background: rgba(11, 99, 223, 0.25);
  cursor: pointer;
}

.dsc-dot.is-current {
  border-color: var(--accent-1);
  background: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(11, 99, 223, 0.2);
}

/* step viewport — vertical: content first, screenshot below at full detail */
.dsc-step { margin-top: 2.25rem; }

.dsc-step-inner {
  padding: 2.5rem;
  background: var(--light-1);
  border: 1px solid var(--dark-3);
  border-radius: 1em;
}

.dsc-step-fig { margin: 1.75rem auto 0; max-width: 52rem; }

.dsc-step-fig img {
  width: 100%;
  height: auto;
  background: var(--light-2);
  border: 1px solid var(--dark-3);
  border-radius: 0.5em;
}

.dsc-step-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.dsc-step-title {
  margin: 0 0 0.75rem;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--dark-1);
  outline: none;
}

.dsc-step-title:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 4px; }

.dsc-step-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-2);
}

.dsc-step-body p { margin: 0 0 0.9em; }
.dsc-step-body p:last-child { margin-bottom: 0; }

.dsc-tip,
.dsc-checkpoint {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 0.5em;
  font-size: 0.92rem;
  line-height: 1.55;
}

.dsc-tip {
  background: rgba(11, 99, 223, 0.06);
  border-left: 3px solid var(--accent-1);
  color: var(--dark-2);
}

.dsc-checkpoint {
  background: #fff4dd;
  border-left: 3px solid #ffc550;
  color: var(--dark-1);
}

.dsc-form-slot { margin-top: 1.5rem; max-width: 40rem; }

/* YouTube facade (thumbnail trigger) — opens the video modal */
.dsc-video {
  position: relative;
  width: 100%;
  max-width: 40rem;
  aspect-ratio: 16 / 9;
  margin: 1rem auto 0;
  background: var(--dark-1);
  border: 1px solid var(--dark-3);
  border-radius: 0.5em;
  overflow: hidden;
}

.dsc-video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

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

.dsc-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 2.8rem;
  border-radius: 0.6em;
  background: rgba(11, 99, 223, 0.92);
  color: var(--light-1);
  font-size: 1.2rem;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.dsc-video-facade:hover .dsc-video-play {
  background: var(--accent-1);
  transform: scale(1.06);
}

/* video lightbox */
.dsc-vmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.dsc-vmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.8);
}

.dsc-vmodal-dialog {
  position: relative;
  width: 100%;
  max-width: 56rem;
  padding: 0.6rem;
  background: var(--dark-1);
  border: 1px solid var(--dark-2);
  border-radius: 0.75em;
  box-shadow: 0 24px 64px rgba(13, 13, 13, 0.5);
}

.dsc-vmodal-bar {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
}

.dsc-vmodal-close {
  padding: 0.35em 0.9em;
  border: 1px solid var(--dark-2);
  border-radius: 100vw;
  background: transparent;
  color: var(--light-1);
  font-family: Inter, sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dsc-vmodal-close:hover { background: var(--dark-2); }

.dsc-vmodal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0.4em;
  overflow: hidden;
}

.dsc-vmodal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.dsc-vmodal-title {
  margin: 0.6rem 0.25rem 0.1rem;
  font-size: 0.9rem;
  color: var(--light-2);
  opacity: 0.85;
}

@media screen and (max-width: 479px) {
  .dsc-vmodal { padding: 0.75rem; }
}

/* step navigation */
.dsc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dsc-skip {
  border: none;
  background: none;
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  color: var(--dark-2);
  text-decoration: underline;
  text-underline-position: under;
  cursor: pointer;
}

.dsc-skip:hover { color: var(--accent-1); }

/* done view */
.dsc-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--light-2);
  border-radius: 0.5em;
}

.dsc-contact p { margin: 0; }

/* ---------- L3 · FORM ANCHOR ---------- */
.dsc-form-section { padding: 4.5rem 0 5.5rem; }

.dsc-form-heading { max-width: 44rem; margin-bottom: 2.5rem; }

.dsc-form-heading h2 {
  margin: 0 0 0.75rem;
  font-size: 2.2rem;
  line-height: 1.15;
  color: var(--dark-1);
}

.dsc-form-heading p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--dark-2);
}

.dsc-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dark-3);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--dark-2);
}

.dsc-form-foot-label { margin: 0; }

.dsc-form-foot-links { display: flex; flex-wrap: wrap; align-items: center; }

.dsc-form-foot-links a {
  color: var(--dark-2);
  text-decoration: none;
  transition: color 0.15s ease;
}

.dsc-form-foot-links a:hover {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-position: under;
}

.dsc-form-foot-links a + a::before {
  content: "·";
  margin: 0 0.6em;
  color: var(--dark-3);
}

@media screen and (max-width: 767px) {
  .dsc-form-foot { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  .dsc-form-foot-links { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  .dsc-form-foot-links a + a::before { content: none; }
}

/* the movable Zoho embed keeps .soho-form-large (850px) from the export CSS */

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 991px) {
  .dsc-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0 3.5rem;
  }

  .dsc-paths { grid-template-columns: 1fr; }

  .dsc-step-inner { padding: 1.75rem; }

  .dsc-progress-dots { gap: 1rem; }

  .dsc-wizard-top h1 { font-size: 1.35rem; }
}

@media screen and (max-width: 767px) {
  .dsc-hero-title { font-size: 2.2rem; }

  .dsc-nav { flex-direction: column-reverse; align-items: stretch; }

  .dsc-nav .dsc-btn { width: 100%; }

  .dsc-skip { text-align: center; }
}

@media screen and (max-width: 479px) {
  .dsc-hero { padding: 2.25rem 0 2.75rem; }

  .dsc-hero-title { font-size: 1.9rem; }

  .dsc-path-card { padding: 1.5rem; }

  .dsc-step-inner { padding: 1.25rem; }

  .dsc-step-title { font-size: 1.5rem; }

  .dsc-progress-dots { gap: 0.75rem; }

  .dsc-seg-label { font-size: 0.62rem; }

  .dsc-dot { width: 0.8rem; height: 0.8rem; }
}
