/* Vitrine pública Mago Aluguel — CSS puro, sem dependências */
:root {
    --bg: #0a0a0c;
    --surface: #141418;
    --surface-2: #1c1c22;
    --border: #27272a;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --blue: #3b82f6;
    --blue-hover: #60a5fa;
    --green: #22c55e;
    --whats: #16a34a;
    --whats-hover: #22c55e;
    --pink: #f472b6;
    --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.skip-link {
    position: absolute; left: 8px; top: -60px; z-index: 100;
    background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--blue-hover); outline-offset: 2px; border-radius: 6px; }

/* Botões */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: background-color .15s ease, transform .1s ease, border-color .15s ease;
    min-height: 44px;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 8px 14px; font-size: 14px; min-height: 40px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-whats { background: var(--whats); color: #fff; }
.btn-whats:hover { background: var(--whats-hover); }
.btn-block { width: 100%; }

/* Cabeçalho */
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(10, 10, 12, 0.88);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
/* ---------- Logo animado ---------- */
@property --brand-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; position: relative; padding: 22px 4px 8px 10px; border-radius: 14px; }
.brand-mark { position: relative; width: 42px; height: 42px; flex-shrink: 0; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }

/* moldura com as cores girando */
.brand-ring {
    position: absolute; inset: 0; border-radius: 13px;
    background: conic-gradient(from var(--brand-angle), #3b82f6, #8b5cf6, #f472b6, #fbbf24, #3b82f6);
    animation: brandSpin 6s linear infinite;
    box-shadow: 0 0 18px -4px rgba(139, 92, 246, .7);
}
.brand-core {
    position: absolute; inset: 2px; border-radius: 11px; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 20%, #3b82f6, #1e3a8a 70%); color: #fff;
    overflow: hidden;
}
/* reflexo passando pelo quadrado */
.brand-core::after {
    content: ""; position: absolute; inset: -40%;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%);
    transform: translateX(-70%); animation: brandGlint 7s ease-in-out infinite;
}
.brand-pad { position: relative; z-index: 1; transition: transform .35s ease; }

/* chapéu de mago */
.brand-hat {
    position: absolute; top: -18px; left: -10px; width: 34px; height: 34px; z-index: 2;
    transform: rotate(-22deg); transform-origin: 60% 90%;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}

/* estrelinhas */
.brand-spark { position: absolute; fill: #fde047; opacity: 0; transform: scale(0); pointer-events: none; filter: drop-shadow(0 0 4px rgba(253, 224, 71, .9)); }
.brand-spark.s1 { top: -6px; right: -7px; animation: brandTwinkle 5s ease-in-out infinite 1.2s; }
.brand-spark.s2 { bottom: -3px; right: -9px; fill: #f9a8d4; }
.brand-spark.s3 { bottom: 4px; left: -8px; fill: #93c5fd; }

/* nome */
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand-accent {
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 30%, #f472b6 50%, #a78bfa 70%, #60a5fa 100%);
    background-size: 220% 100%; background-position: 0% 50%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: brandShimmer 8s ease-in-out infinite;
}
.brand-tag { margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; transition: color .3s ease; }

/* interação: passar o mouse / focar */
.brand:hover .brand-mark, .brand:focus-visible .brand-mark { transform: rotate(-6deg) scale(1.08); }
.brand:hover .brand-hat, .brand:focus-visible .brand-hat { transform: translate(-1px, -5px) rotate(-34deg); }
.brand:hover .brand-pad, .brand:focus-visible .brand-pad { transform: scale(1.12); }
.brand:hover .brand-ring, .brand:focus-visible .brand-ring { animation-duration: 1.6s; box-shadow: 0 0 26px -2px rgba(244, 114, 182, .8); }
.brand:hover .brand-accent, .brand:focus-visible .brand-accent { animation: brandShimmerFast 1.4s linear infinite; }
.brand:hover .brand-tag, .brand:focus-visible .brand-tag { color: #fde047; }
.brand:hover .brand-spark, .brand:focus-visible .brand-spark { animation: brandPop .9s ease-in-out infinite alternate; }
.brand:hover .brand-spark.s2, .brand:focus-visible .brand-spark.s2 { animation-delay: .25s; }
.brand:hover .brand-spark.s3, .brand:focus-visible .brand-spark.s3 { animation-delay: .5s; }
.brand:active .brand-mark { transform: rotate(-6deg) scale(.94); }

/* faíscas do clique (criadas pelo vitrine.js) */
.brand-burst {
    position: absolute; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; z-index: 5;
    background: var(--c, #fde047); box-shadow: 0 0 8px var(--c, #fde047);
    animation: brandBurst .7s cubic-bezier(.2, .8, .3, 1) forwards;
}

@keyframes brandSpin { to { --brand-angle: 360deg; } }
@keyframes brandGlint { 0%, 70% { transform: translateX(-70%); } 85%, 100% { transform: translateX(70%); } }
@keyframes brandTwinkle { 0%, 72%, 100% { opacity: 0; transform: scale(0) rotate(0deg); } 80% { opacity: 1; transform: scale(1.1) rotate(45deg); } 90% { opacity: .8; transform: scale(.8) rotate(90deg); } }
@keyframes brandPop { from { opacity: .3; transform: scale(.5) rotate(0deg); } to { opacity: 1; transform: scale(1.15) rotate(90deg); } }
@keyframes brandShimmer { 0%, 75% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes brandShimmerFast { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes brandBurst {
    from { opacity: 1; transform: translate(0, 0) scale(1); }
    to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); }
}

@media (max-width: 380px) {
    .brand-tag { display: none; }
    .brand-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-ring, .brand-core::after, .brand-spark, .brand-accent { animation: none !important; }
    .brand-mark, .brand-hat, .brand-pad { transition: none; }
}
.main-nav { display: none; gap: 24px; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.main-nav a:hover { color: var(--text); }
@media (min-width: 820px) { .main-nav { display: flex; } }

/* Hero */
.hero {
    display: grid; gap: 32px; align-items: center;
    padding-top: 48px; padding-bottom: 32px;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 72px; padding-bottom: 48px; } }
.pill {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
    background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px;
}
.pill strong { color: var(--text); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
.hero h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 800; margin-top: 18px; }
.grad { background: linear-gradient(90deg, var(--blue), #7dd3fc 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.hero-facts li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }
.hero-facts strong { color: var(--text); }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.kit-card {
    background: radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.25), transparent 55%), var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.kit-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); font-weight: 700; }
.kit-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.kit-card li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.kit-card li::before {
    content: ""; width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
    background: rgba(34, 197, 94, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.kit-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* Seções */
.section { padding-top: 48px; padding-bottom: 16px; }
@media (min-width: 900px) { .section { padding-top: 72px; } }
.section-head { margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* Planos */
.plans-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .plans-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.plan {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px 22px;
}
.plan.highlight { border-color: var(--blue); box-shadow: 0 18px 50px -20px rgba(59, 130, 246, 0.55); }
.plan-badges { position: absolute; top: -12px; right: 18px; display: flex; gap: 6px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--blue); color: #fff; }
.badge.off { background: #f59e0b; color: #18181b; }
.plan-period { align-self: flex-start; font-size: 12px; font-weight: 600; color: #93c5fd; background: rgba(30, 58, 138, 0.45); border: 1px solid rgba(59, 130, 246, 0.35); padding: 2px 8px; border-radius: 6px; }
.plan h3 { font-size: 19px; margin-top: 10px; }
.plan-old { color: #71717a; text-decoration: line-through; font-size: 14px; margin-top: 10px; }
.plan-price { font-size: 36px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.plan-day { color: var(--green); font-weight: 600; font-size: 14px; }
.plan ul { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: 14px; color: #d4d4d8; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 800; }
.plan .btn { margin-top: 22px; }

/* Passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(59, 130, 246, 0.15); color: var(--blue); font-weight: 800; }
.steps h3 { font-size: 17px; margin-top: 12px; }
.steps p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Regras */
.rules-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .rules-grid { grid-template-columns: repeat(2, 1fr); } }
.rule { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.rule-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.rule h3 { font-size: 16px; }
.rule p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Fotos */
.photos-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .photos-grid { grid-template-columns: repeat(4, 1fr); } }

/* Seletor de data */
.date-pick {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 14px 16px; margin-bottom: 28px;
}
.date-pick label { font-weight: 600; }
.date-pick label span { color: var(--muted); font-weight: 400; }
.date-pick input[type="date"] {
    background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 12px; font: inherit; min-height: 44px; color-scheme: dark;
}
.date-pick input[type="date"]:focus { border-color: var(--blue); outline: none; }
.date-pick .link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; padding: 8px 4px; }
.date-pick .hint { color: var(--muted); font-size: 14px; flex-basis: 100%; }
.plan-dates { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); font-size: 13px; color: #bfdbfe; }

/* Disponibilidade ao vivo */
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-busy .dot { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15); }
.photos-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }

/* Depoimentos */
.testimonials-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 0; }
.testimonial blockquote { margin: 0; color: #e4e4e7; }
.testimonial figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq summary {
    cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); font-size: 15px; }

/* CTA final */
.final-cta {
    display: flex; flex-direction: column; gap: 18px; align-items: flex-start; justify-content: space-between;
    background: linear-gradient(120deg, #10182b, var(--surface) 60%);
    border: 1px solid var(--border); border-radius: 20px; padding: 28px;
}
@media (min-width: 760px) { .final-cta { flex-direction: row; align-items: center; padding: 36px 40px; } }
.final-cta h2 { font-size: 28px; font-weight: 800; }
.final-cta p { color: var(--muted); margin-top: 4px; }

/* Rodapé */
.site-footer { margin-top: 64px; border-top: 1px solid var(--border); padding: 32px 0 96px; color: var(--muted); font-size: 14px; }
@media (min-width: 760px) { .site-footer { padding-bottom: 32px; } }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-inner p + p { margin-top: 4px; }
.footer-brand { color: var(--text); font-weight: 700; }
.social-links { display: flex; gap: 12px; }
.social-links a { text-decoration: none; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); }
.social-links a:hover { background: var(--surface); }
.credits { margin-top: 24px; font-size: 11px; color: #52525b; }

/* Barra fixa no celular */
.mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 12, 0.94); border-top: 1px solid var(--border);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mobile-bar .btn { width: 100%; }
@media (min-width: 760px) { .mobile-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
