/* ==========================================================================
   Página EUDR — efeitos e componentes exclusivos
   ========================================================================== */
.ed-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--verde-escuro), var(--verde-claro));
  z-index: 1001; pointer-events: none;
}

/* ---------- HERO ---------- */
.ed-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 7rem 2rem 4rem;
  background: #06130a; color: #fff;
}
.ed-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(115deg, rgba(4, 16, 8, 0.94) 0%, rgba(4, 16, 8, 0.78) 45%, rgba(4, 16, 8, 0.55) 100%), var(--foto-floresta-a);
  background-size: cover; background-position: center;
  transform: scale(1.06);
  animation: bc-kenburns 24s ease-in-out infinite alternate;
}
@keyframes bc-kenburns { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.ed-radar { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ed-hero-grid {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center;
}
.ed-hero-grid > *, .ed-quiz-grid > * { min-width: 0; }
.ed-feed-row span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ed-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #bfe86a; padding: 0.45rem 0.95rem; border-radius: 50px;
  border: 1px solid rgba(191, 232, 106, 0.35); background: rgba(191, 232, 106, 0.08);
  margin-bottom: 1.4rem;
}
.ed-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4fd06f; display: inline-block;
  box-shadow: 0 0 0 0 rgba(79, 208, 111, 0.7); animation: bc-pulse 1.8s infinite;
}
@keyframes bc-pulse { 70% { box-shadow: 0 0 0 10px rgba(79, 208, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 208, 111, 0); } }
.ed-title {
  font-size: 3.4rem; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  color: #fff; margin-bottom: 1.3rem; text-wrap: initial;
}
.ed-w { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(2deg); filter: blur(6px); }
.ed-title.ed-in .ed-w { animation: bc-word 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes bc-word { to { opacity: 1; transform: none; filter: blur(0); } }
.ed-shine {
  background: linear-gradient(100deg, #9cbf00 20%, #eaffb0 45%, #4fd06f 60%, #9cbf00 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ed-title.ed-in .ed-shine { animation: bc-word 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, bc-shine 4s linear 1.5s infinite; }
@keyframes bc-shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.ed-lead { font-size: 1.12rem; color: rgba(255, 255, 255, 0.78); max-width: 560px; margin-bottom: 2rem; }
.ed-hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.ed-btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.ed-btn-ghost:hover { border-color: #4fd06f; color: #4fd06f; transform: translateY(-2px); }
.ed-hero .scroll-cue { z-index: 2; }

/* painel de contagem */
.ed-panel {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 24px; padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.ed-panel::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(156, 191, 0, 0.9) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.ed-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 1.1rem; }
.ed-panel-head i { color: #bfe86a; margin-right: 0.4rem; }
.ed-live { display: inline-flex; align-items: center; gap: 0.45rem; color: #4fd06f; }
.ed-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.ed-cell {
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; padding: 0.9rem 0.3rem 0.7rem; text-align: center; overflow: hidden;
}
.ed-cell b {
  display: block; font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: #fff;
}
.ed-cell b.ed-tick { animation: bc-tick 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes bc-tick { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
.ed-cell small { display: block; margin-top: 0.4rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.ed-panel-note { font-size: 0.84rem; color: rgba(255, 255, 255, 0.7); margin: 1rem 0 1.1rem; line-height: 1.5; }
.ed-panel-note strong { color: #bfe86a; }
.ed-feed {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.76rem; line-height: 1.75; color: rgba(255, 255, 255, 0.72);
  border-top: 1px dashed rgba(255, 255, 255, 0.18); padding-top: 0.8rem; min-height: 6.4em;
}
.ed-feed-row { display: flex; justify-content: space-between; gap: 0.6rem; white-space: nowrap; overflow: hidden; animation: bc-feed 0.4s ease; }
@keyframes bc-feed { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.ed-ok { color: #4fd06f; }
.ed-bad { color: #ff7a6b; }
.ed-sim { display: block; margin-top: 0.5rem; font-size: 0.68rem; color: rgba(255, 255, 255, 0.4); }

/* ---------- MAPA BRASIL → EUROPA ---------- */
.ed-map-sec { background: #f6f9f4; }
.ed-map-grid { display: grid; grid-template-columns: 1.45fr 0.55fr; gap: 2rem; align-items: center; }
.ed-map-grid > * { min-width: 0; }
.ed-map-box {
  position: relative; border-radius: 26px; overflow: hidden; padding: 0.6rem 0.6rem 1rem;
  background: radial-gradient(ellipse at 40% 50%, #ffffff 0%, #eaf2ec 100%);
  border: 1px solid #e0e9dd; box-shadow: var(--shadow-md);
}
.ed-world { display: block; width: 100%; height: auto; }
.ed-land { fill: #dde6da; stroke: #fff; stroke-width: 0.6; }
.ed-eu { fill: #b9d7c7; stroke: #fff; stroke-width: 0.6; }
.ed-br { fill: #8fcf8a; stroke: #fff; stroke-width: 0.8; }
.ed-big { font: 800 15px Inter, system-ui, sans-serif; letter-spacing: 0.22em; fill: rgba(13, 90, 34, 0.55); text-anchor: middle; }
.ed-big-eu { fill: rgba(26, 77, 122, 0.55); font-size: 12px; }
.ed-rt-base { fill: none; stroke: rgba(18, 158, 56, 0.18); stroke-width: 3; stroke-linecap: round; transition: stroke 0.4s, opacity 0.4s; }
.ed-rt-flow { fill: none; stroke: var(--verde-escuro); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 10; animation: bc-ed-flow 1.4s linear infinite; transition: opacity 0.4s, stroke 0.4s; }
@keyframes bc-ed-flow { to { stroke-dashoffset: -24; } }
.ed-rt-dot { fill: #fff; stroke: var(--verde-escuro); stroke-width: 2.5; filter: drop-shadow(0 0 4px rgba(156, 191, 0, 0.9)); transition: opacity 0.4s; }
.ed-rt-dot2 { fill: var(--verde-claro); stroke: #fff; stroke-width: 1.5; }
.ed-org-dot { fill: var(--verde-escuro); stroke: #fff; stroke-width: 2; }
.ed-org-pulse { fill: rgba(18, 158, 56, 0.35); transform-box: fill-box; transform-origin: center; animation: bc-ed-pulse 2.2s ease-out infinite; }
@keyframes bc-ed-pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.4); opacity: 0; } }
.ed-org text, .ed-port text { font: 700 12px Inter, system-ui, sans-serif; fill: #1b2a1f; paint-order: stroke; stroke: rgba(255, 255, 255, 0.9); stroke-width: 3px; }
.ed-port rect { fill: #1a4d7a; stroke: #fff; stroke-width: 1.5; }
.ed-port text { fill: #1a4d7a; font-size: 11px; }
.ed-org, .ed-rt { transition: opacity 0.4s; cursor: pointer; }
.ed-world.ed-focus .ed-rt, .ed-world.ed-focus .ed-org { opacity: 0.18; }
.ed-world.ed-focus .ed-rt.ed-hl, .ed-world.ed-focus .ed-org.ed-hl { opacity: 1; }
.ed-rt.ed-hl .ed-rt-base { stroke: rgba(156, 191, 0, 0.45); stroke-width: 6; }
.ed-rt.ed-hl .ed-rt-flow { stroke-width: 3; }
.ed-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; padding: 0.4rem 0.6rem 0; }
.ed-chip {
  font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; padding: 0.45rem 0.95rem; border-radius: 50px;
  border: 1.5px solid #d6e2d2; background: #fff; color: var(--preto); transition: all 0.3s ease;
}
.ed-chip:hover, .ed-chip.ed-hl { background: var(--verde-escuro); border-color: var(--verde-escuro); color: #fff; }
.ed-rules { display: grid; gap: 1rem; }
.ed-rule {
  display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.2rem 1.2rem; border-radius: 18px;
  background: #fff; border: 1px solid #e3ebe0; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.ed-rule:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.ed-rule-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(18, 158, 56, 0.1); color: var(--verde-escuro); font-size: 1.1rem; }
.ed-rule b { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.ed-rule p { font-size: 0.9rem; color: var(--cinza-texto); line-height: 1.5; }
.ed-rule-red .ed-rule-ic { background: rgba(214, 69, 58, 0.1); color: #d6453a; }
.ed-rule-red b { color: #b8372d; }

/* ---------- FLIP CARDS ---------- */
.ed-flip-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.ed-flip {
  flex: 0 1 calc(25% - 1.2rem); min-width: 200px; height: 190px;
  perspective: 1000px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: center;
}
.ed-flip-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ed-flip:hover .ed-flip-in, .ed-flip:focus-visible .ed-flip-in, .ed-flip.ed-flipped .ed-flip-in { transform: rotateY(180deg); }
.ed-face {
  position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; padding: 1.2rem;
  background: #fff; border: 1px solid rgba(18, 158, 56, 0.15); box-shadow: var(--shadow-sm);
}
.ed-face i {
  width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--verde-escuro);
  background: linear-gradient(135deg, rgba(18, 158, 56, 0.1), rgba(156, 191, 0, 0.18));
}
.ed-face b { font-size: 1.12rem; font-weight: 800; }
.ed-back {
  transform: rotateY(180deg); color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; line-height: 1.45;
  background: linear-gradient(145deg, var(--verde-escuro), #0a5a22); border-color: transparent;
}
.ed-back b { color: #dfff8f; }
.ed-fine { text-align: center; margin: 2.2rem auto 0; max-width: 760px; font-size: 0.9rem; color: var(--cinza-texto); }

/* ---------- NÚMEROS ---------- */
.ed-stats {
  position: relative; isolation: isolate; padding: 5rem 2rem; color: #fff;
  background-color: var(--floresta); background-image: var(--foto-floresta-b);
  background-size: cover; background-position: center; background-attachment: fixed;
}
.ed-stats::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(6, 19, 10, 0.92), rgba(13, 70, 30, 0.82)); }
.ed-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.ed-stat { text-align: center; padding: 0 0.5rem; }
.ed-stat b {
  display: block; font-size: 3.8rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.7rem;
  background: linear-gradient(135deg, #fff 30%, #bfe86a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ed-stat > span { display: block; color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

/* ---------- EXIGÊNCIAS ---------- */
.ed-req { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.ed-req-line {
  position: absolute; top: 58px; left: 12%; right: 12%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--verde-escuro), var(--verde-claro));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}
.ed-req.ed-in .ed-req-line { transform: scaleX(1); }
.ed-req-card {
  position: relative; z-index: 1; background: #fff; border-radius: 22px; padding: 2rem 1.8rem;
  border: 1px solid var(--cinza); box-shadow: var(--shadow-sm); text-align: center; transition: var(--transition);
}
.ed-req-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(18, 158, 56, 0.3); }
.ed-req-n { position: absolute; top: 1rem; right: 1.3rem; font-size: 2.6rem; font-weight: 800; color: rgba(18, 158, 56, 0.1); line-height: 1; }
.ed-req-card i {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1.1rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #fff; background: var(--verde-escuro); box-shadow: 0 0 0 8px rgba(18, 158, 56, 0.12);
}
.ed-req-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.ed-req-card p { color: var(--cinza-texto); font-size: 0.95rem; }

/* ---------- BENTO com luz ---------- */
.ed-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ed-tile {
  position: relative; overflow: hidden; border-radius: 22px; padding: 1.8rem;
  background: #fff; border: 1px solid var(--cinza); box-shadow: var(--shadow-sm); transition: border-color 0.3s, box-shadow 0.3s;
}
.ed-tile::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(156, 191, 0, 0.18), transparent 60%);
}
.ed-bento:hover .ed-tile::before { opacity: 1; }
.ed-tile:hover { border-color: rgba(18, 158, 56, 0.35); box-shadow: var(--shadow-md); }
.ed-tile-wide { grid-column: span 2; }
.ed-tile-full { grid-column: 1 / -1; }
.ed-tile i { font-size: 1.5rem; color: var(--verde-escuro); margin-bottom: 1rem; display: block; }
.ed-tile h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.45rem; }
.ed-tile p { color: var(--cinza-texto); font-size: 0.95rem; position: relative; }

/* ---------- QUIZ ---------- */
.ed-quiz-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: center; }
.ed-quiz-intro h2 { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 1rem; }
.ed-quiz-intro > p { color: #3f3f3f; margin-bottom: 1.4rem; }
.ed-quiz-intro .section-tag { margin-bottom: 1rem; }
.ed-quiz {
  background: #fff; border-radius: 26px; border: 1px solid var(--cinza);
  box-shadow: 0 30px 70px rgba(10, 26, 13, 0.14); overflow: hidden; position: relative;
}
.ed-quiz-bar { height: 6px; background: #eef2ec; }
.ed-quiz-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--verde-escuro), var(--verde-claro)); transition: width 0.5s ease; }
.ed-quiz-stage { position: relative; padding: 2rem 2rem 2.2rem; min-height: 400px; }
.ed-q { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.ed-q.ed-q-on { display: block; animation: bc-qin 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes bc-qin { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.ed-q legend { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 1.3rem; padding: 0; }
.ed-q legend small { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--verde-escuro); margin-bottom: 0.5rem; font-weight: 700; }
.ed-opt {
  display: flex; align-items: center; gap: 0.8rem; width: 100%; text-align: left;
  font: inherit; font-weight: 600; font-size: 0.98rem; color: var(--preto);
  padding: 0.95rem 1.1rem; margin-bottom: 0.7rem; border-radius: 14px;
  border: 1.5px solid var(--cinza); background: #fbfcfb; cursor: pointer; transition: var(--transition);
}
.ed-opt::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 2px solid #c9d3c6; transition: var(--transition); }
.ed-opt:hover { border-color: var(--verde-escuro); background: rgba(18, 158, 56, 0.05); transform: translateX(4px); }
.ed-opt.ed-picked { border-color: var(--verde-escuro); background: rgba(18, 158, 56, 0.1); }
.ed-opt.ed-picked::before { border-color: var(--verde-escuro); background: var(--verde-escuro); box-shadow: inset 0 0 0 3px #fff; }
.ed-result { text-align: center; }
.ed-gauge { position: relative; width: 240px; margin: 0 auto 0.8rem; }
.ed-gauge svg { width: 100%; display: block; }
.ed-g-track, .ed-g-val { fill: none; stroke-width: 16; stroke-linecap: round; }
.ed-g-track { stroke: #eef2ec; }
.ed-g-val { stroke: var(--g, #129e38); stroke-dasharray: 252; stroke-dashoffset: 252; transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), stroke 0.4s; }
.ed-g-num { position: absolute; left: 0; right: 0; bottom: 0; }
.ed-g-num b { display: block; font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.ed-g-num small { font-size: 0.8rem; color: var(--cinza-texto); }
.ed-result h3 { font-size: 1.35rem; font-weight: 800; margin: 0.6rem 0 0.5rem; }
.ed-result p { color: #3f3f3f; font-size: 0.97rem; max-width: 460px; margin: 0 auto 1.4rem; }
.ed-result-cta { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.ed-redo { background: none; border: 0; font: inherit; color: var(--cinza-texto); cursor: pointer; font-size: 0.9rem; padding: 0.4rem; }
.ed-redo:hover { color: var(--verde-escuro); }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1024px) {
  .ed-hero-grid, .ed-quiz-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ed-title { font-size: 2.8rem; }
  .ed-map-grid { grid-template-columns: 1fr; }
  .ed-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .ed-bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ed-hero { padding: 6.5rem 1.2rem 3.5rem; }
  .ed-title { font-size: 2.15rem; }
  .ed-lead { font-size: 1rem; }
  .ed-hero-cta .btn { width: 100%; justify-content: center; }
  .ed-cell b { font-size: 1.8rem; }
  .ed-org text, .ed-port text { font-size: 15px; }
  .ed-big { font-size: 18px; }
  .ed-req { grid-template-columns: 1fr; }
  .ed-req-line { display: none; }
  .ed-flip { flex-basis: calc(50% - 0.6rem); min-width: 0; height: 170px; }
  .ed-stats { background-attachment: scroll; padding: 4rem 1.2rem; }
  .ed-stat b { font-size: 3rem; }
  .ed-quiz-stage { padding: 1.5rem 1.2rem 1.8rem; }
  .ed-q legend { font-size: 1.12rem; }
}
@media (max-width: 560px) {
  .ed-bento { grid-template-columns: 1fr; }
  .ed-tile-wide, .ed-tile-full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ed-w { opacity: 1; transform: none; filter: none; }
  .ed-hero-bg, .ed-dot { animation: none; }
  .ed-rt-flow, .ed-org-pulse { animation: none; }
}
