/* ==========================================================================
   Ranking Black Friday Yampi : estilos da LP
   Design espelhado do artifact aprovado (palco de 1300px, como os frames
   do Figma). Paleta Yampi: preto #221D25, off white #E2DDCF,
   verde lima #D5E91E, verde #2FBE55, roxo #A85DEE.
   ========================================================================== */
  @font-face {
    font-family: 'YampiDisplay';
    src: url('/shared/fonts/YampiDisplay-Black.woff') format('woff'),
         url('/shared/fonts/YampiDisplay-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
  }

  :root {
    color-scheme: dark;
    --black: #221D25;
    --beige: #E2DDCF;
    --lime: #D5E91E;
    --green: #2FBE55;
    --purple: #A85DEE;
    --display: 'YampiDisplay', 'Arial Black', sans-serif;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--black);
    color: var(--beige);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  img { display: block; max-width: 100%; }
  p, h1, h2, h3, ul { margin: 0; }
  a { color: inherit; }
  u { text-decoration-thickness: from-font; text-underline-position: from-font; text-decoration-skip-ink: none; }

  /* Cada dobra: palco de 1300px centralizado, como os frames do Figma */
  .sec { position: relative; overflow: hidden; }
  .stage { position: relative; width: min(1300px, 100%); margin: 0 auto; }
  .deco { position: absolute; pointer-events: none; z-index: 0; }
  .stage > *:not(.deco) { position: relative; z-index: 1; }

  .display {
    font-family: var(--display);
    font-weight: 900;
    font-size: 64px;
    text-transform: uppercase;
  }
  .hl { color: var(--lime); }
  .br-mobile { display: none; }

  .tag {
    display: flex; width: fit-content; align-items: center; justify-content: center;
    background: var(--lime); color: var(--black);
    font-weight: 700; font-size: 14px; line-height: 1.25;
    padding: 2.36px 5.96px; white-space: nowrap;
  }

  .btn {
    display: flex; width: fit-content; align-items: center; justify-content: center;
    height: 52px; padding: 0 18px; border-radius: 8px;
    background: var(--lime); color: var(--black);
    font-weight: 600; font-size: 20px; line-height: 1.25;
    text-decoration: none; white-space: nowrap;
    transition: transform .2s ease, filter .2s ease;
  }
  .btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
  .btn:focus-visible { outline: 3px solid var(--beige); outline-offset: 3px; }
  .btn-purple { background: var(--purple); }

  /* ---------- Dobra 1: Hero ---------- */
  .hero { background: var(--black); }
  .hero .stage { min-height: 874px; padding-bottom: 96px; text-align: center; }
  .header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 86px; height: 79px;
  }
  .brand { display: flex; align-items: center; gap: 20px; text-decoration: none; }
  .brand svg { width: 100px; height: 20px; }
  .brand span { font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--beige); }
  .header .btn { height: 48px; width: 194px; font-size: 16px; }
  /* Hierarquia do hero: nome da campanha, promessa, detalhe */
  .hero h1 {
    width: min(1100px, 100%); margin: 92px auto 0;
    font-size: 104px; line-height: .96;
  }
  .hero .hero-sub {
    width: min(960px, 100%); margin: 22px auto 0;
    font-size: 56px; line-height: 1; color: var(--lime);
  }
  .hero .hero-detail {
    width: min(620px, 100%); margin: 24px auto 0;
    font-weight: 500; font-size: 24px; line-height: 1.55;
  }
  .hero .hero-detail b { font-weight: 700; }
  .hero .stage > .btn { margin: 48px auto 0; width: 245px; }

  /* ---------- Dobra 3: Como funciona ---------- */
  .how { background: var(--green); }
  .how .stage { min-height: 731px; padding: 66px 0 56px; text-align: center; }
  .how .tag { margin: 0 auto; }
  .how h2 { margin-top: 11px; color: var(--black); line-height: 1; } /* topo 100 */
  .steps {
    display: flex; justify-content: center; gap: 30px;
    margin-top: 59px; /* topo 223 */
    text-align: left;
  }
  .step {
    width: 259px; min-height: 378px; flex: none;
    background: var(--black); border-radius: 20px;
    padding: 40px 32px 56px 48px;
    display: flex; flex-direction: column; gap: 21px;
  }
  .step:nth-child(2) { width: 260px; padding-right: 35px; }
  .step:nth-child(3) { padding-left: 45px; padding-right: 43px; }
  .step img { width: 40px; height: 40px; }
  .step h3 { font-weight: 700; font-size: 24px; line-height: 1.16; }
  .step p { margin-top: 28.8px; font-size: 16px; line-height: 1.6; }
  .step p b { font-weight: 700; }
  .how .how-note { margin-top: 36px; color: var(--black); font-size: 20px; line-height: 1.6; }
  .how .how-note b { font-weight: 700; }

  /* ---------- Dobra 2: Prêmio ---------- */
  .prize { background: var(--black); border-top: 1px solid rgba(226,221,207,.14); }
  .prize .stage { height: auto; padding: 122px 0 112px 182px; }
  /* O valor e a maior coisa da pagina: pegada de varejo */
  .prize .figure {
    display: flex; align-items: flex-start; gap: .05em;
    font-family: var(--display); font-weight: 900;
    font-size: 168px; line-height: .86; letter-spacing: -.01em;
    margin-top: 16px; color: var(--beige);
  }
  .prize .figure .cur { font-size: .34em; margin-top: .22em; color: var(--purple); }
  .prize .figure .unit { font-size: .42em; margin-top: .42em; text-transform: uppercase; }
  .prize .shout {
    font-family: var(--display); font-weight: 900;
    font-size: 40px; line-height: 1; text-transform: uppercase;
    color: var(--lime); margin-top: 12px;
  }
  .prize h2 { width: 696px; margin-top: 34px; font-size: 52px; line-height: 1.11; }
  .prize .body { width: 593px; margin-top: 15px; font-size: 16px; line-height: 1.6; } /* topo 383 */
  .prize .body p + p { margin-top: 25.6px; }
  .prize .safe { left: 787px; top: 102px; width: 416px; height: 525px; }
  .prize .safe img { width: 100%; height: auto; }
  .prize .safe .sticker { position: absolute; left: 285px; top: 0; width: 138px; transform-origin: 50% 50%; animation: floaty 4s ease-in-out infinite; }
  /* Flutuação leve: sobe, desce e inclina um pouquinho, sem parar */
  @keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-10px) rotate(2deg); }
  }

  /* ---------- Dobra 4: Dicas ---------- */
  .tips { background: var(--lime); color: var(--black); }
  .tips .stage { min-height: 1224px; padding: 101px 0 56px 182px; }
  .tips .tag {
    background: var(--purple); margin-left: 3px;
    width: 406.78px; font-size: 23.245px; padding: 3.9px 9.9px;
  }
  .tips h2 { width: 905px; margin-top: 16px; line-height: 1; } /* topo 154 */
  .tips .lead { width: 826px; margin-top: 21px; font-size: 20px; line-height: 1.6; }
  .feat {
    display: grid; grid-template-columns: 460px 460px; grid-auto-rows: 1fr;
    column-gap: 25px; row-gap: 15px;
    margin-top: 27px; /* topo 496 */
  }
  /* Os cards viram ao passar o mouse; o verso repete a mesma informacao */
  .feat article { perspective: 1200px; }
  .flip-inner {
    display: grid; height: 100%; transform-style: preserve-3d;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
  }
  .feat article:hover .flip-inner { transform: rotateY(180deg); }
  .face {
    grid-area: 1 / 1;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    min-height: 273px; background: var(--black); color: var(--beige);
    border-radius: 20px; padding: 51px 48px 48px 71px;
  }
  .face.back { transform: rotateY(180deg); }
  .feat h3 { font-weight: 600; font-size: 36px; line-height: 1; }
  .feat p { margin-top: 37px; font-weight: 400; font-size: 20px; line-height: 1.6; }
  .tips .seal { left: 858px; top: 297px; width: 442px; height: 441px; z-index: 2; }
  .tips .cta { display: flex; justify-content: center; margin: 44px 0 0 -182px; } /* topo 1101 */
  .tips .cta .btn { width: 245px; }

  /* ---------- Dobra 5: Regulamento ---------- */
  .rules { background: var(--black); }
  .rules .stage { height: 731px; padding: 73px 0 0 182px; }
  .rules h2 { width: 902px; margin-top: 34px; line-height: 1.11; letter-spacing: -1.92px; } /* topo 130 */
  .rules ul {
    margin-top: 33px; /* topo 234 */
    padding-left: 25px; list-style: disc;
    font-size: 20px; line-height: .98;
  }
  .rules li { padding-left: 5px; }
  .rules li + li { margin-top: 39.2px; }
  .rules .btn { margin: 63px 0 0 6px; width: 315px; } /* topo 552 */

  /* ---------- Dobra 6: FAQ ---------- */
  .faq { background: var(--purple); }
  .faq .stage { min-height: 792px; padding: 112px 16px; display: flex; flex-direction: column; align-items: center; gap: 40px; }
  .faq h2 { color: var(--black); line-height: 1; letter-spacing: -1.92px; text-align: center; font-feature-settings: "salt" 1; }
  .acc { width: min(837px, 100%); display: flex; flex-direction: column; gap: 11.5px; }
  .acc details { background: var(--beige); color: var(--black); border-radius: 20px; }
  .acc summary {
    list-style: none; cursor: pointer;
    display: flex; gap: 12px; align-items: flex-start;
    padding: 40px; font-weight: 600; font-size: 20px; line-height: 1.6;
  }
  .acc summary::-webkit-details-marker { display: none; }
  .acc summary svg { width: 32px; height: 32px; flex: none; transition: transform .25s ease; }
  .acc details[open] summary svg { transform: rotate(45deg); }
  .acc summary:focus-visible { outline: 3px solid var(--black); outline-offset: -6px; border-radius: 20px; }
  .acc .answer { padding: 0 40px 40px 84px; margin-top: -20px; font-size: 18px; line-height: 1.6; font-weight: 500; }

  /* ---------- Dobra 7: Fim ---------- */
  .end { background: var(--black); }
  .end .stage { height: 1068px; padding: 147px 0 0 199px; }
  .end .tag { height: 42px; font-size: 21.082px; padding: 3.55px 8.98px; }
  .end h2 { width: 902px; margin-top: 24px; line-height: 1.11; letter-spacing: -1.92px; } /* topo 213 */
  .end .body { width: 781px; margin-top: 30px; font-size: 20px; line-height: 1.6; }
  .end .body p + p { margin-top: 28px; }
  .end .btn { margin-top: 45px; width: 399px; } /* topo 869 */

  /* ---------- Rodapé ---------- */
  .footer { background: var(--black); border-top: 1px solid rgba(226,221,207,.08); padding: 64px 16px 72px; }
  .footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .footer-logo { width: 80px; height: auto; }
  .footer-social { display: flex; gap: 8px; }
  .footer-social a { color: rgba(226,221,207,.55); display: inline-flex; padding: 12px; transition: color .2s ease; }
  .footer-social a:hover { color: var(--beige); }
  .footer-legal { font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
  .footer-legal a { color: rgba(226,221,207,.75); text-decoration: none; border-bottom: 1px solid rgba(226,221,207,.2); }
  .footer-legal a:hover { color: var(--beige); }
  .footer-sep, .footer-copy, .footer-cnpj { color: rgba(226,221,207,.55); }
  .footer-copy, .footer-cnpj { font-size: 13px; font-weight: 400; }

  /* Moedas decorativas */
  .coin { aspect-ratio: 1; height: auto; }

  /* Ao clicar em "Ver o super prêmio": as moedas do hero dão um pulinho e caem para fora da dobra */
  @keyframes coinFall {
    0%   { transform: translateY(0) rotate(0); animation-timing-function: cubic-bezier(0,.55,.45,1); }
    18%  { transform: translateY(-28px) rotate(-8deg); animation-timing-function: cubic-bezier(.55,0,1,.45); }
    100% { transform: translateY(1100px) rotate(70deg); }
  }
  .hero.falling .coin { animation: coinFall .6s both; }
  .hero.falling .coin-c { animation-delay: .05s; }
  .hero.falling .coin-b { animation-delay: .1s; }
  .hero.fallen .coin { visibility: hidden; }

  /* ---------- Telas menores ---------- */
  @media (max-width: 1299px) {
    .hero .stage, .how .stage, .prize .stage, .tips .stage, .rules .stage, .end .stage { height: auto; padding-bottom: 112px; }
    .prize .stage, .tips .stage, .rules .stage, .end .stage { padding-left: 24px; padding-right: 24px; }
    .prize h2, .prize .body, .tips h2, .tips .lead, .rules h2, .end h2, .end .body { width: auto; max-width: 902px; }
    .prize .safe { position: relative; left: auto; top: auto; margin: 48px auto 0; width: min(416px, 80%); height: auto; }
    .tips .seal { display: none; }
    .prize .stage { display: flex; flex-direction: column; align-items: flex-start; }
    .prize .safe { order: 3; }
    .prize .safe .sticker { left: 68.5%; width: 33.2%; }
    .tips .cta { margin-left: 0; }
    .feat { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .face { min-height: 240px; padding: 40px; }
    .steps { flex-wrap: wrap; padding: 0 16px; }
    .header { padding: 16px 24px; }
    .hero .stage { min-height: 0; padding-bottom: 160px; }
  }
  @media (max-width: 760px) {
    .display { font-size: 40px; }
    .br-mobile { display: inline; }
    .hero h1 { font-size: 44px; margin-top: 64px; padding: 0 16px; }
    .hero .hero-sub { font-size: 30px; padding: 0 16px; }
    .hero .hero-detail { font-size: 18px; padding: 0 16px; }
    .end .body { font-size: 17px; padding: 0; }
    .tips .lead { font-size: 17px; padding: 0; }
    .brand span { display: none; }
    .header .btn { width: auto; padding: 0 18px; }
    .step { width: 100% !important; min-height: 0; padding: 32px !important; }
    .step p { margin-top: 12px; }
    .how .how-note { font-size: 17px; margin-top: 24px; padding: 0 16px; }
    .feat h3 { font-size: 28px; }
    .feat p { font-size: 17px; margin-top: 20px; }
    .rules ul { font-size: 17px; line-height: 1.4; }
    .rules li + li { margin-top: 20px; }
    .btn { width: fit-content !important; max-width: 100%; white-space: normal; text-align: center; font-size: 17px; padding: 0 24px; }
    .acc summary { padding: 24px; font-size: 17px; }
    .acc .answer { padding: 0 24px 24px 68px; margin-top: -8px; font-size: 16px; }
    .prize .figure { font-size: 88px; }
    .prize .shout { font-size: 24px; }
    .prize h2 { font-size: 34px; margin-top: 24px; }
    .coin { width: 140px !important; }
    .tips .tag { width: fit-content; font-size: 16px; margin-left: 0; }
    .hero .coin-a { left: 60% !important; top: -70px !important; }
    .hero .coin-b { left: -40px !important; top: auto !important; bottom: -40px; }
    .hero .coin-c { left: auto !important; right: -40px; top: auto !important; bottom: 40px; }
    .end .coin-b, .end .coin-c { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .acc summary svg { transition: none; }
    .prize .safe .sticker { animation: none; }
    .flip-inner { transition: none; }
    .feat article:hover .flip-inner { transform: none; }
  }
