/* ACAISAN PLAN — Página principal no clima de Natal. Só existe com html.xh (natal-home.js, na temporada). */
html.xh { --xh-red: #e5484d; --xh-gold: #f5c451; --xh-green: #a3e635; --xh-blue: #60a5fa; }

/* Faixa festiva */
html.xh .xh-ribbon { position: relative; z-index: 51; display: flex; align-items: center; justify-content: center; gap: 10px 22px; flex-wrap: wrap; padding: 9px 48px 9px 16px; overflow: hidden;
  background: linear-gradient(90deg, #3a0f12, #5b1418 30%, #3a0f12 60%, #14260a); color: #fde2e2; font: 500 13.5px/1.35 Inter, system-ui, sans-serif; border-bottom: 1px solid rgba(245, 196, 81, .3); }
html.xh .xh-ribbon::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .12) 45%, transparent 60%); background-size: 260% 100%; }
html.xh:not(.is-soft) .xh-ribbon::before { animation: xh-sweep 5s ease-in-out infinite; }
@keyframes xh-sweep { from { background-position: 130% 0; } to { background-position: -130% 0; } }
html.xh .xh-ribbon-msg { position: relative; margin: 0; }
html.xh .xh-ribbon-msg b { color: var(--xh-gold); font-weight: 700; }
html.xh .xh-ribbon-count { position: relative; display: inline-flex; align-items: center; gap: 6px; }
html.xh .xh-count-k { font: 600 10.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #fca5a5; }
html.xh .xh-u { display: inline-grid; justify-items: center; min-width: 38px; padding: 4px 6px; border-radius: 8px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(245, 196, 81, .35); }
html.xh .xh-u b { font: 800 15px/1 Manrope, Inter, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
html.xh .xh-u small { font-size: 9px; line-height: 1.3; color: #fecaca; text-transform: uppercase; letter-spacing: .06em; }
html.xh .xh-ribbon-go { position: relative; color: #0a0a0a; background: var(--xh-gold); padding: 6px 12px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; }
html.xh .xh-ribbon-go:hover { filter: brightness(1.08); }
html.xh .xh-ribbon-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .25); color: #fecaca; font-size: 17px; line-height: 1; cursor: pointer; }

/* Pisca-pisca na borda do topo */
html.xh header.top { position: sticky; }
html.xh .xh-lights { position: absolute; left: 0; right: 0; bottom: -11px; height: 20px; display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; z-index: 2; }
html.xh .xh-lights::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 10px; border-bottom: 1px solid rgba(255, 255, 255, .14); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
html.xh .xh-lights i { position: relative; top: 4px; width: 7px; height: 10px; border-radius: 50% 50% 45% 45%; background: var(--c); box-shadow: 0 0 9px var(--c); }
html.xh .xh-lights i::before { content: ""; position: absolute; left: 1px; top: -3px; width: 5px; height: 3px; border-radius: 1px; background: #3f3f46; }
html.xh .xh-lights i:nth-child(4n+1) { --c: var(--xh-red); } html.xh .xh-lights i:nth-child(4n+2) { --c: var(--xh-gold); }
html.xh .xh-lights i:nth-child(4n+3) { --c: var(--xh-green); } html.xh .xh-lights i:nth-child(4n+4) { --c: var(--xh-blue); }
html.xh .xh-lights i:nth-child(even) { top: 7px; }
html.xh:not(.is-soft) .xh-lights i { animation: xh-blink 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.29s); }
@keyframes xh-blink { 50% { opacity: .22; box-shadow: none; } }

/* Gorro na logo */
html.xh header.top .brand { position: relative; }
html.xh .xh-hat { position: absolute; left: 4px; top: -12px; width: 30px; height: 22px; transform: rotate(-16deg); pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M8 38 C14 18 30 4 50 10 C44 16 42 24 46 30 Z' fill='%23e5484d'/%3E%3Crect x='2' y='34' width='50' height='10' rx='5' fill='%23f4f4f5'/%3E%3Ccircle cx='52' cy='10' r='6' fill='%23f4f4f5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Neve */
html.xh .xh-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }

/* Brilho natalino na abertura */
html.xh section.hero { position: relative; }
html.xh section.hero::before { content: ""; position: absolute; inset: -10% -5% auto; height: 120%; pointer-events: none; z-index: 0;
  background: radial-gradient(520px 320px at 85% 10%, rgba(229, 72, 77, .14), transparent 70%), radial-gradient(460px 300px at 8% 90%, rgba(245, 196, 81, .08), transparent 70%); }
html.xh section.hero > .wrap { position: relative; z-index: 1; }

/* Bolas de Natal penduradas */
html.xh .xh-baubles { position: absolute; top: 0; right: 0; width: min(420px, 40vw); height: 0; z-index: 2; pointer-events: none; }
html.xh .xh-bauble { position: absolute; top: 0; left: var(--x); width: 1px; height: var(--len); background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .35)); transform-origin: top center; }
html.xh .xh-bauble i { position: absolute; left: 50%; top: 100%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .85) 0 3px, transparent 4px), radial-gradient(circle at 50% 50%, var(--c), color-mix(in srgb, var(--c) 45%, #000)); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 40%, transparent); }
html.xh .xh-bauble i::before { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 5px; margin-left: -4px; border-radius: 2px; background: #d4d4d8; }
html.xh:not(.is-soft) .xh-bauble { animation: xh-swing 4.6s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); }
@keyframes xh-swing { from { transform: rotate(5deg); } to { transform: rotate(-5deg); } }

/* Planos */
html.xh .xh-plans-kicker { margin: 16px auto 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: linear-gradient(90deg, rgba(229, 72, 77, .18), rgba(245, 196, 81, .1)); border: 1px solid rgba(245, 196, 81, .35); color: #fde68a; font-size: 14px; }
html.xh .xh-perday { margin: -4px 0 14px; font-size: 13px; color: #a1a1aa; }
html.xh .xh-perday b { color: #fafafa; }
html.xh #planos .plan--hi { position: relative; overflow: visible; }
html.xh #planos .plan--hi::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(229, 72, 77, .7), rgba(245, 196, 81, .7), rgba(163, 230, 53, .7), rgba(229, 72, 77, .7)); background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
html.xh:not(.is-soft) #planos .plan--hi::after { animation: xh-border 6s linear infinite; }
@keyframes xh-border { to { background-position: 300% 0; } }
html.xh .xh-bow { position: absolute; top: -18px; right: 22px; width: 54px; height: 40px; z-index: 3; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cpath d='M32 22 C20 4 4 6 6 18 C8 28 22 26 32 22Z' fill='%23e5484d'/%3E%3Cpath d='M32 22 C44 4 60 6 58 18 C56 28 42 26 32 22Z' fill='%23e5484d'/%3E%3Cpath d='M30 24 L20 44 L26 42 L30 46 L32 26Z M34 24 L44 44 L38 42 L34 46 L32 26Z' fill='%23b91c1c'/%3E%3Ccircle cx='32' cy='22' r='6' fill='%23f5c451'/%3E%3C/svg%3E") center / contain no-repeat; }
html.xh:not(.is-soft) .xh-bow { animation: xh-wiggle 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes xh-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(6deg); } 95% { transform: rotate(-3deg); } }
html.xh .xh-trust { list-style: none; margin: 26px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
html.xh .xh-trust li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid #2f2f35; font-size: 13px; color: #d4d4d8; }
html.xh .xh-trust i { font-style: normal; color: #a3e635; }

@media (max-width: 720px) {
  html.xh .xh-ribbon { justify-content: flex-start; padding: 9px 44px 9px 14px; gap: 8px 12px; font-size: 12.5px; }
  html.xh .xh-ribbon-go { display: none; }
  html.xh .xh-u { min-width: 32px; padding: 3px 5px; }
  html.xh .xh-u b { font-size: 13px; }
  html.xh .xh-lights i:nth-child(n+21) { display: none; }
  html.xh .xh-baubles { width: 30vw; }        /* encostadas à direita e curtas: não cobrem o título */
  html.xh .xh-bauble { height: calc(var(--len) * .38); left: calc(var(--x) * 1.6); }
  html.xh .xh-bauble i { width: 16px; height: 16px; margin-left: -8px; }
  html.xh .xh-bauble:nth-child(n+4) { display: none; }
  html.xh .xh-trust { justify-content: stretch; }
  html.xh .xh-trust li { width: 100%; }
}
@media print { html.xh .xh-ribbon, html.xh .xh-lights, html.xh .xh-snow, html.xh .xh-baubles, html.xh .xh-hat, html.xh .xh-bow { display: none !important; } }
