/* Ideia·App: páginas de solução (ex.: /festas-sem-filas/).
   Usa os tokens e componentes de app.min.css; aqui só o que é próprio destas páginas. */

.sol-page { background: var(--bg); }
.sol-page .icon-svg { width: 1em; height: 1em; flex: none; }

/* Topo */
.sol-hero { position: relative; overflow: hidden; padding: 132px 0 84px; }
.sol-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 85% 35%, rgba(93, 99, 245, .16), transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(6, 219, 242, .12), transparent 70%);
}
.sol-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.sol-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.sol-crumbs a { color: var(--muted); text-decoration: none; }
.sol-crumbs a:hover { color: var(--primary); }
.sol-crumbs [aria-current] { color: var(--text); font-weight: 600; }
.sol-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; margin-bottom: 22px;
  border-radius: 999px; background: #7549ec13; border: 1px solid rgba(123, 94, 251, .12);
  color: #3d3594; font-size: 11px; font-weight: 800; letter-spacing: .055em;
}
.sol-pill i { display: inline-flex; font-size: 15px; color: var(--primary); }
.sol-hero h1 { font-size: clamp(2.7rem, 4.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.06em; margin: 0 0 22px; }
.sol-lead { font-size: 1.06rem; line-height: 1.7; color: var(--muted); max-width: 580px; margin: 0 0 28px; }
.sol-lead strong { color: var(--text); }
.sol-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.sol-facts { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 0; }
.sol-facts li {
  display: flex; flex-direction: column; gap: 2px; min-width: 132px; padding: 14px 18px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(45, 40, 104, .06);
}
.sol-facts b { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sol-facts span { font-size: 12.5px; color: var(--muted); }

.sol-hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; align-items: center; }
.sol-hero-visual:before {
  content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 99, 245, .22), rgba(6, 219, 242, .08) 55%, transparent 70%);
}
.sol-hero-phone { transform: rotate(-3deg); z-index: 1; }
.sol-hero-visual .sol-float { z-index: 20; }
.sol-float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(26, 40, 80, .14); animation: solFloat 6s ease-in-out infinite;
}
.sol-float > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-size: 18px; background: #ecf0ff; color: #4331d8; }
.sol-float b { display: block; font-size: 14px; color: var(--text); }
.sol-float small { font-size: 12px; color: var(--muted); }
.sol-float-a { left: 0; top: 42%; }
.sol-float-a > i { background: #e7f8f1; color: #0f9b6c; }
.sol-float-b { right: -6px; top: 20%; animation-delay: -2s; }
.sol-float-b > i { background: #fff1e6; color: #e46c12; }
.sol-float-c { right: 2%; bottom: 14%; animation-delay: -4s; }
@keyframes solFloat { 50% { transform: translateY(-8px); } }

/* Secções */
.sol-section .section-head { text-align: center; margin-inline: auto; }
.sol-grid { display: grid; gap: 18px; }
.sol-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sol-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sol-grid-5 { grid-template-columns: repeat(5, 1fr); }
.sol-card, .sol-role {
  padding: 26px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(45, 40, 104, .06); transition: transform .3s var(--pro-ease, ease), box-shadow .3s;
}
.sol-card:hover, .sol-role:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(45, 40, 104, .11); }
.sol-card h3, .sol-role h3 { font-size: 1.08rem; margin: 16px 0 8px; }
.sol-card p, .sol-role p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.sol-role small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.sol-role h3 { margin-bottom: 4px; }
.sol-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 21px;
  background: linear-gradient(135deg, #ecf0ff, #e6f8fc); color: #4331d8;
}

/* Como funciona */
.sol-flow { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; max-width: 1060px; margin: 0 auto; }
.sol-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sol-step {
  width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: 18px; border: 1px solid transparent; background: transparent;
  color: var(--text); font: inherit; transition: background .25s, border-color .25s, box-shadow .25s;
}
.sol-step:hover { background: var(--surface); border-color: var(--border); }
.sol-step.is-current { background: var(--surface); border-color: rgba(93, 99, 245, .35); box-shadow: 0 14px 40px rgba(45, 40, 104, .1); }
.sol-step-no {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--muted);
  background: var(--surface-2); transition: background .25s, color .25s;
}
.sol-step.is-current .sol-step-no { background: linear-gradient(115deg, #8529da, #4331d8); color: #fff; }
.sol-step-copy { display: flex; flex-direction: column; gap: 3px; }
.sol-step-copy small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.sol-step-copy strong { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: -.02em; }
.sol-step-copy > span { font-size: 14px; line-height: 1.55; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .3s; }
.sol-step.is-current .sol-step-copy > span { max-height: 120px; opacity: 1; }
.sol-flow-visual { position: sticky; top: 100px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sol-flow-phone { cursor: pointer; }
.sol-flow-nav { display: flex; align-items: center; gap: 16px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--muted); }
.sol-round {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 18px;
}
.sol-round:hover { border-color: var(--primary); color: var(--primary); }

/* Ecrãs extra do telemóvel */
.sol-page .s-item > span .icon-svg { width: 19px; height: 19px; }
.sol-page .s-cart .icon-svg { width: 17px; height: 17px; margin-right: 4px; vertical-align: -3px; }
.s-ticket.sol-late { border-color: #fecaca; background: #fef2f2; }
.s-ticket.sol-late i { background: #dc2626; }
.s-ticket.sol-warn { border-color: #fed7aa; background: #fff7ed; }
.s-ticket.sol-warn i { background: #ea580c; }
.sol-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sol-kpis div { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e6ebf5; }
.sol-kpis small { display: block; font-size: 11px; color: #5f6886; }
.sol-kpis b { font-family: var(--font-head); font-size: 18px; color: #08133c; }
.sol-kpis b.bad { color: #dc2626; }

/* Regra de ouro */
.sol-band { padding: 90px 0; background: linear-gradient(135deg, #12192e, #142450 55%, #0d2a45); color: #fff; }
.sol-band-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.sol-band .eyebrow { color: #a99bff; }
.sol-band h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.1; margin: 0 0 16px; }
.sol-band p { color: #c9c6e8; margin: 0; max-width: 440px; }
.sol-band-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sol-band-list li { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.sol-band-list li > i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 19px; background: rgba(93, 99, 245, .25); color: #d1daff; }
.sol-band-list b { display: block; font-size: 15px; margin-bottom: 4px; }
.sol-band-list span { font-size: 13.5px; line-height: 1.55; color: #c9c6e8; }

/* O que inclui */
.sol-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1080px; margin: 0 auto; }
.sol-list-card { padding: 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 14px 40px rgba(45, 40, 104, .06); }
.sol-list-card.is-soft { background: linear-gradient(160deg, #f3f5ff, #f0fafd); }
.sol-list-card h3 { font-size: 1.2rem; margin: 0 0 18px; }
.sol-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sol-checks li { position: relative; padding-left: 32px; font-size: 14.5px; line-height: 1.55; }
.sol-checks li:before {
  content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 7px;
  background: #e7f8f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9b6c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.sol-checks.is-plus li:before {
  background: #e8edff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234331d8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.sol-gear { margin-top: 26px; padding-top: 22px; border-top: 1px dashed rgba(67, 49, 216, .25); }
.sol-gear h4 { font-size: 1rem; margin: 0 0 8px; }
.sol-gear p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Para quem */
.sol-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.sol-tags span {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14.5px;
}
.sol-tags i { display: inline-flex; font-size: 17px; color: var(--primary); }
.sol-tip { text-align: center; max-width: 620px; margin: 30px auto 0; color: var(--muted); font-size: 14.5px; }

.sol-narrow { max-width: 860px; }

/* Entrada suave */
.sol-anim .sol-card, .sol-anim .sol-role, .sol-anim .sol-list-card, .sol-anim .sol-band-list li, .sol-anim .sol-tags span {
  opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s var(--pro-ease, ease);
}
.sol-anim .is-in { opacity: 1 !important; transform: none !important; }

/* Tema escuro */
:root[data-theme=dark] .sol-pill { background: rgba(93, 99, 245, .16); color: #ccd6ff; }
:root[data-theme=dark] .sol-ico, :root[data-theme=dark] .sol-float > i { background: rgba(93, 99, 245, .2); color: #c7bbff; }
:root[data-theme=dark] .sol-list-card.is-soft { background: linear-gradient(160deg, #1f2945, #1b2a3d); }
:root[data-theme=dark] .sol-facts li, :root[data-theme=dark] .sol-card, :root[data-theme=dark] .sol-role, :root[data-theme=dark] .sol-list-card { box-shadow: none; }

/* Tablet */
@media (max-width: 1100px) {
  .sol-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .sol-grid-4, .sol-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:999px) {
  .sol-hero-grid, .sol-band-inner, .sol-two { grid-template-columns: 1fr; }
  .sol-hero-visual { min-height: 560px; }
  .sol-flow { grid-template-columns: 1fr; gap: 30px; }
  .sol-flow-visual { position: static; order: -1; }
}

/* Telemóvel */
@media (max-width:999px) {
  .sol-hero { padding: 104px 0 50px; }
  .sol-hero h1 { font-size: clamp(2.4rem, 11vw, 3.3rem); }
  .sol-lead { font-size: 15px; }
  .sol-actions .btn { flex: 1 1 auto; justify-content: center; }
  .sol-facts { gap: 8px; }
  .sol-facts li { min-width: 0; flex: 1 1 0; padding: 10px 12px; }
  .sol-facts b { font-size: 1.2rem; }
  .sol-facts span { font-size: 11px; line-height: 1.35; }
  .sol-hero-visual { min-height: 0; padding: 10px 0 0; }
  .sol-hero-visual:before { width: 300px; height: 300px; }
  .sol-hero-phone { zoom: .78; }
  .sol-float { padding: 9px 12px; gap: 9px; }
  .sol-float > i { width: 30px; height: 30px; font-size: 15px; }
  .sol-float b { font-size: 12.5px; }
  .sol-float small { font-size: 11px; }
  .sol-float-a { left: 0; top: 8%; }
  .sol-float-b { right: 0; top: 52%; }
  .sol-float-c { display: none; }

  /* Cartões em carrossel em vez de uma coluna comprida */
  .sol-grid-4, .sol-grid-5, .sol-grid-3 {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: -16px; padding: 4px 16px 14px; scrollbar-width: none;
  }
  .sol-grid-4::-webkit-scrollbar, .sol-grid-5::-webkit-scrollbar, .sol-grid-3::-webkit-scrollbar { display: none; }
  .sol-grid-4 > *, .sol-grid-5 > *, .sol-grid-3 > * { flex: 0 0 76%; scroll-snap-align: start; }
  .sol-card, .sol-role { padding: 20px; }

  .sol-flow-phone { zoom: .7; }
  .sol-step { padding: 12px 14px; }
  .sol-step:not(.is-current) .sol-step-copy strong { font-size: .95rem; }

  .sol-band { padding: 60px 0; }
  .sol-band-inner { gap: 28px; }
  .sol-band-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sol-band-list li { flex-direction: column; gap: 10px; padding: 14px; }
  .sol-band-list span { font-size: 12.5px; }

  .sol-list-card { padding: 22px; }
  .sol-tags { gap: 8px; }
  .sol-tags span { padding: 9px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .sol-float { animation: none; }
}

/* Perguntas: o "+" já vem no .faq-mark */
.sol-page .faq summary:after { display: none; }
/* Rodapé sem a galeria da página inicial */
.sol-page .sol-footer .footer-premium-inner { grid-template-columns: 1fr; }
/* No telemóvel o telemóvel do topo repetia o de "Como funciona": fica só um. */
@media (max-width:999px) {
  .sol-hero-visual { display: none; }
  .sol-hero { padding-bottom: 36px; }
}
@media (max-width:999px) {
  /* Como funciona: telemóvel, setas e só o passo atual */
  .sol-flow { gap: 14px; }
  .sol-steps li:not(.is-on) { display: none; }
  .sol-step, .sol-step:hover { cursor: default; }
  .sol-step.is-current { min-height: 150px; }
  /* O que inclui: as duas listas lado a lado, a deslizar */
  .sol-two {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: -16px; padding: 4px 16px 14px; scrollbar-width: none;
  }
  .sol-two::-webkit-scrollbar { display: none; }
  .sol-two > * { flex: 0 0 86%; scroll-snap-align: start; }
  .sol-checks { gap: 9px; }
  .sol-checks li { font-size: 13.5px; }
}

/* Páginas com ecrã de computador (ex.: plataformas web) */
.sol-hero-browser { zoom: .9; transform: none; z-index: 1; }
.sol-flow.is-browser { grid-template-columns: 380px 1fr; max-width: 1240px; gap: 48px; }
.sol-page .demo-phone.is-browser .icon-svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
@media (max-width: 1180px) { .sol-flow.is-browser { grid-template-columns: 1fr; } .sol-flow.is-browser .sol-flow-visual { position: static; order: -1; } }
@media (max-width:999px) {
  .sol-flow.is-browser .sol-flow-phone { zoom: .5; }
}
.sol-hero-visual.is-browser .sol-float-a { left: -8px; top: auto; bottom: 17%; }
.sol-hero-visual.is-browser .sol-float-b { right: -14px; top: 15%; }
.sol-hero-visual.is-browser .sol-float-c { right: 6%; bottom: 9%; left: auto; }
.sol-page .demo-phone.is-browser .s-screen { gap: 10px; }
