/* =====================================================================
   HERO EM CÓDIGO (nítido em qualquer ecrã). A cena é desenhada a
   760×500 e o script escala-a (--s) para caber na coluna.
   ===================================================================== */
.hero-image-wrap { position: relative; width: 100%; max-width: 820px; margin-left: 0; transform: none; aspect-ratio: 760 / 500; }
.hs { position: absolute; left: 0; top: 0; width: 760px; height: 500px; transform: scale(var(--s, 1)); transform-origin: top left; font-family: var(--font-body); color: #15152b; line-height: 1.35; }
.hs * { box-sizing: border-box; }

/* Portátil */
.hs-lap { position: absolute; left: 150px; top: 18px; width: 560px; animation: hsFloat 9s ease-in-out infinite; }
.hs-lap-screen { height: 350px; border-radius: 18px 18px 6px 6px; background: #f7f7fb; border: 11px solid #1c1c2b; display: flex; overflow: hidden; box-shadow: 0 30px 60px rgba(40, 30, 90, .18); }
.hs-lap-base { position: relative; height: 18px; margin: 0 -34px; border-radius: 2px 2px 16px 16px; background: linear-gradient(#e2e2ea, #b4b4c2); box-shadow: 0 18px 30px rgba(40, 30, 90, .18); }
.hs-lap-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 90px; height: 7px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #a6a6b6; }
.hs-side { width: 112px; flex-shrink: 0; background: #fff; border-right: 1px solid #ececf4; padding: 12px 8px; display: flex; flex-direction: column; gap: 3px; font-size: 9.5px; color: #5c5c78; }
.hs-side-logo { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.hs-side-logo img { width: 18px; height: 18px; }
.hs-side-logo b { font-family: var(--font-head); font-size: 11.5px; color: #15152b; }
.hs-side span { padding: 6px 7px; border-radius: 7px; }
.hs-side span.on { background: #f0edff; color: #6d4cff; font-weight: 700; }
.hs-main { flex: 1; padding: 11px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hs-top { display: flex; justify-content: space-between; gap: 8px; font-size: 9px; color: #9a9ab0; }
.hs-search { flex: 1; max-width: 170px; padding: 5px 9px; border-radius: 7px; background: #fff; border: 1px solid #ececf4; }
.hs-shop { padding: 5px 9px; border-radius: 7px; background: #fff; border: 1px solid #ececf4; color: #15152b; font-weight: 600; }
.hs-title { font-family: var(--font-head); font-size: 15px; }
.hs-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hs-kpis div { background: #fff; border: 1px solid #ececf4; border-radius: 10px; padding: 8px 10px; }
.hs-kpis small { display: block; font-size: 8.5px; color: #6b6b85; }
.hs-kpis b { display: block; font-family: var(--font-head); font-size: 16px; margin: 1px 0 3px; }
.hs-kpis i { font-style: normal; font-size: 8px; font-weight: 700; color: #047857; background: #dcfce7; padding: 1px 6px; border-radius: 99px; }
.hs-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; flex: 1; min-height: 0; }
.hs-card { position: relative; background: #fff; border: 1px solid #ececf4; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; min-height: 0; }
.hs-card small { font-size: 9px; font-weight: 700; }
.hs-line svg { flex: 1; width: 100%; min-height: 0; margin-top: 6px; }
.hs-path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: hsDraw 2s ease .4s forwards; }
@keyframes hsDraw { to { stroke-dashoffset: 0; } }
.hs-tip { position: absolute; right: 16px; top: 20px; font-size: 8px; font-weight: 700; color: #fff; background: #6d4cff; padding: 2px 6px; border-radius: 5px; }
.hs-days { display: flex; justify-content: space-between; font-size: 7.5px; color: #9a9ab0; margin-top: 3px; }
.hs-ring { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; margin: 8px auto; background: conic-gradient(#6d4cff 0 68%, #f59e0b 0 86%, #f472b6 0 95%, #10b981 0);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); animation: hsSpin 1.4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hsSpin { from { transform: rotate(-120deg); opacity: 0; } }
.hs-donut ul { list-style: none; margin: 0; padding: 0; font-size: 8px; color: #5c5c78; display: grid; gap: 2px; }
.hs-donut li { display: flex; align-items: center; gap: 5px; }
.hs-donut li i { width: 6px; height: 6px; border-radius: 50%; }
.hs-donut li b { margin-left: auto; color: #15152b; }

/* Telemóvel */
.hs-phone { position: absolute; left: 18px; top: 92px; width: 200px; height: 400px; border-radius: 34px; padding: 8px; background: #1c1c2b; box-shadow: 0 34px 60px rgba(30, 20, 80, .3), inset 0 0 0 2px #3a3a50; transform: rotate(-6deg); animation: hsFloat2 7s ease-in-out infinite; z-index: 3; }
.hs-notch { position: absolute; left: 50%; top: 13px; width: 62px; height: 17px; border-radius: 10px; background: #000; transform: translateX(-50%); z-index: 2; }
.hs-ph { position: relative; height: 100%; border-radius: 27px; overflow: hidden; background: #f6f6fb; display: flex; flex-direction: column; }
.hs-ph-hero { position: relative; height: 112px; flex-shrink: 0; padding: 26px 14px 10px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(circle at 80% 20%, rgba(255, 190, 120, .55), transparent 55%), linear-gradient(160deg, #4a2c1a, #2a1a12 60%, #1c1220); }
.hs-ph-hero small { position: absolute; top: 9px; left: 16px; font-size: 8.5px; font-weight: 700; }
.hs-ph-hero b { font-family: var(--font-head); font-size: 19px; line-height: 1.1; }
.hs-ph-hero span { font-size: 9px; opacity: .9; margin-top: 3px; }
.hs-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px 10px 0; }
.hs-tiles span { background: #fff; border: 1px solid #ececf4; border-radius: 12px; padding: 7px 4px; text-align: center; font-size: 9px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hs-tiles i { font-style: normal; font-size: 16px; }
.hs-food { margin: 9px 10px 0; height: 58px; flex-shrink: 0; border-radius: 12px; background: radial-gradient(circle at 30% 40%, #ffd8a8, #e98b4b 70%); display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 26px; }
.hs-ph-btn { margin: 9px 10px 0; padding: 8px; border-radius: 10px; text-align: center; font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(115deg, #7538f3, #563df7); }
.hs-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 6px 4px 9px; background: #fff; border-top: 1px solid #ececf4; font-size: 11px; color: #9a9ab0; }
.hs-tabbar span { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.hs-tabbar small { font-size: 7px; }
.hs-tabbar .on { color: #6d4cff; }

/* Suporte NFC */
.hs-stand { position: absolute; right: 0; top: 150px; width: 168px; z-index: 4; animation: hsFloat3 8s ease-in-out infinite; }
.hs-stand-card { position: relative; height: 252px; border-radius: 14px; padding: 8px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 26px 50px rgba(50, 30, 120, .25); }
.hs-stand-face { height: 100%; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(155deg, #7c3aed, #5b3df0 55%, #4c2fd8); }
.hs-stand-card::after { content: ""; position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(115deg, rgba(255, 255, 255, .35), transparent 38%); pointer-events: none; }
.hs-stand-face p { margin: 14px 0 0; color: #fff; font-family: var(--font-head); font-size: 15px; line-height: 1.12; }
.hs-stand-face p b { font-size: 22px; }
.hs-nfc { position: relative; width: 60px; height: 60px; margin: 10px 0 6px; }
.hs-nfc svg { width: 100%; height: 100%; }
.hs-nfc span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: nfcWave 2.2s ease-out infinite; }
.hs-nfc span:nth-of-type(2) { animation-delay: 1.1s; }
.hs-stand-face small { color: #fff; font-size: 9.5px; font-weight: 600; line-height: 1.3; }
.hs-stand-logo { margin-top: auto; width: 100%; background: #fff; padding: 7px 14px; }
.hs-stand-logo img { width: 100%; display: block; }
.hs-stand-base { height: 14px; margin: -4px -10px 0; border-radius: 4px 4px 10px 10px; background: linear-gradient(rgba(255, 255, 255, .9), rgba(220, 220, 240, .75)); box-shadow: 0 14px 22px rgba(50, 30, 120, .18); }

/* Nota escrita à mão */
.hs-note { position: absolute; left: 300px; top: 418px; z-index: 5; font-family: "Caveat", cursive; font-size: 26px; font-weight: 700; line-height: 1; color: #2b2560; transform: rotate(-5deg); }
.hs-note span { color: #6d4cff; font-size: 24px; }
.hs-note svg { position: absolute; right: -76px; top: -22px; width: 70px; color: #2b2560; }
:root[data-theme="dark"] .hs-note, :root[data-theme="dark"] .hs-note svg { color: #ddd6ff; }
:root[data-theme="dark"] .hs-note span { color: #b9a8ff; }

@keyframes hsFloat { 50% { transform: translateY(-6px); } }
@keyframes hsFloat2 { 50% { transform: rotate(-6deg) translateY(-10px); } }
@keyframes hsFloat3 { 50% { transform: translateY(-8px); } }
@keyframes nfcWave { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }

/* Ícones de linha (substituem os símbolos de texto) */
.solution-icon svg { width: 22px; height: 22px; }
.solution-arrow svg { width: 16px; height: 16px; }
.advantages > div > span { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(122, 79, 255, .09); }
.advantages > div:nth-child(2) > span { background: rgba(16, 158, 208, .1); }
.advantages > div:nth-child(3) > span { background: rgba(16, 185, 129, .1); }
.advantages > div:nth-child(4) > span { background: rgba(244, 114, 182, .12); }
.advantages > div > span svg { width: 22px; height: 22px; }
.process-icon svg { width: 24px; height: 24px; }
.hero-points li span { display: inline-grid; place-items: center; }
.hero-points li span svg { width: 17px; height: 17px; }

@media (max-width: 1000px) {
  .hero-image-wrap { max-width: 640px; margin: 28px auto 0; justify-self: center; }
}
/* Itens de menu compactos (demo das Festas, com 6 opções) */
.s-item.sm { padding: 8px 10px; gap: 10px; border-radius: 12px; }
.s-item.sm > span { width: 32px; height: 32px; font-size: 16px; }
.s-item.sm b { font-size: 13px; }
.s-item.sm em.plus { width: 24px; height: 24px; }

/* No telemóvel, as imagens dos cartões não passam do tamanho real (ficam nítidas) */
@media (max-width: 700px) {
  .solution-card { min-height: 250px; }
  .solution-card img { width: 64%; max-width: 250px; height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs *, .hs { animation: none !important; }
  .hs-path { stroke-dashoffset: 0; }
}

/* Pedido ainda por pagar (demo das Festas) */
.s-ticket i.off { background: #f59e0b; }

/* Festas: esgotado e atrasos */
.s-item.out { opacity: .55; }
.s-item.out em.sold { opacity: 1; }
.s-ticket.late { border-color: #fca5a5; background: #fef2f2; }
.s-ticket i.late { background: #ef4444; }
.s-bars.sm { height: 64px; flex: none; }

/* Demo em portátil (Construtoras): a coluna da janela tem de caber os 660px */
@media (min-width: 1151px) { .demo-stage.wide { grid-template-columns: auto 1fr; max-width: 1180px; gap: 44px; } }
