/* Baile Charme IA — lambe-lambe poster on a Madureira night */
:root {
  --sky: #1b1633;        /* night under the viaduct */
  --sky-2: #251e45;
  --ink: #f5f2ff;
  --muted: #b8b2d6;
  --amber: #ffb000;      /* sodium street light */
  --pink: #ff3d8b;       /* lambe-lambe fluorescent */
  --lime: #c8f04a;       /* second poster strip */
  --concrete: #8c8a99;
  --line: rgba(245, 242, 255, 0.14);
  --display: "Anton", "Impact", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sky);
}
img, svg, video { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--amber); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.01em; }
h3 { font-size: 1.1rem; font-weight: 800; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(27, 22, 51, 0.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { font-family: var(--display); font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; margin-right: auto; }
.brand span { color: var(--pink); }
.nav { display: flex; gap: 18px; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.langs { display: flex; gap: 4px; }
.langs a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.85rem; padding: 4px 7px; border-radius: 6px; }
.langs a[aria-current="true"] { color: var(--sky); background: var(--ink); }
.top .cta { padding: 9px 16px; font-size: 0.95rem; }
@media (max-width: 760px) { .nav, .top .cta { display: none; } }

/* ---------- buttons ---------- */
.cta {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font: 800 1.05rem var(--body); color: var(--sky); background: var(--amber);
  padding: 15px 26px; border-radius: 999px; box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.5);
}
.cta:hover { background: #ffc233; }
.cta:disabled { opacity: 0.6; cursor: progress; }
.cta.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.cta.ghost:hover { border-color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.poster { margin: 0 0 20px; font-family: var(--display); font-weight: 400; line-height: 0.95; }
.strip {
  display: table; padding: 6px 18px 2px; margin-bottom: 8px;
  font-size: clamp(3rem, 13vw, 7.2rem); max-width: 100%; letter-spacing: 0.01em; text-transform: uppercase;
  color: var(--sky); box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.35);
}
.strip.s1 { background: var(--pink); transform: rotate(-2.2deg); }
.strip.s2 { background: var(--amber); transform: rotate(1.2deg) translateX(clamp(6px, 2vw, 18px)); }
.strip.s3 { background: var(--lime); transform: rotate(-1deg) translateX(6px); }
.h1-sub { display: block; margin-top: 18px; font-family: var(--body); font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.25; color: var(--ink); max-width: 26ch; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.facts li::before { content: "✓ "; color: var(--lime); }

/* phone with the illustrated scene */
.phone { justify-self: center; width: min(320px, 82vw); aspect-ratio: 9 / 16; border-radius: 34px; padding: 10px; background: #0e0b1d; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #3a335e; position: relative; }
.phone svg { display: block; width: 100%; height: 100%; border-radius: 26px; }
.phone figcaption { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.row { animation: charme 1.6s ease-in-out infinite alternate; }
.row.r2 { animation-delay: -0.4s; }
.row.r3 { animation-delay: -0.8s; }
.you { animation: charme 1.6s ease-in-out infinite alternate; }
.bulb { animation: glow 2.4s ease-in-out infinite alternate; }
.bulb:nth-child(2n) { animation-delay: -1.2s; }
@keyframes charme { from { transform: translateX(-6px); } to { transform: translateX(6px); } }
@keyframes glow { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .row, .you, .bulb { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- generic sections ---------- */
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 28px; }

/* ---------- maker ---------- */
.maker { background: var(--sky-2); }
.maker .wrap { display: grid; gap: 40px; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 900px) { .maker .wrap { grid-template-columns: minmax(0, 1fr); } }
.maker-side p { color: var(--muted); }
.beta { display: inline-block; margin-top: 8px; padding: 10px 14px; border-left: 4px solid var(--lime); background: rgba(200, 240, 74, 0.08); color: var(--ink); font-weight: 600; }
.card { background: var(--sky); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 18px; }
.templates { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .templates { grid-template-columns: 1fr; } }
.templates legend { font-weight: 800; margin-bottom: 10px; }
.tpl { position: relative; display: grid; gap: 4px; justify-items: start; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.tpl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tpl svg { width: 34px; height: 34px; color: var(--muted); }
.tpl b { font-size: 0.98rem; }
.tpl small { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.tpl:has(input:checked) { border-color: var(--pink); background: rgba(255, 61, 139, 0.08); }
.tpl:has(input:checked) svg { color: var(--pink); }
.tpl:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.drop { position: relative; display: grid; place-items: center; text-align: center; min-height: 170px; border: 2px dashed var(--concrete); border-radius: 14px; padding: 18px; cursor: pointer; }
.drop:hover { border-color: var(--amber); }
.drop:focus-within { border-color: var(--amber); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-text b { display: block; font-size: 1.05rem; }
.drop small { color: var(--muted); }
.drop img { max-height: 220px; border-radius: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--pink); }
.status { min-height: 1.5em; margin: 0; color: var(--lime); font-weight: 600; }
#result { width: 100%; max-height: 70vh; border-radius: 14px; background: #000; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding-top: 14px; border-top: 3px solid var(--amber); }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--amber); margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 6px 0 0; }

/* ---------- specs + photos ---------- */
.specs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 40px; }
.specs li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.two { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; max-width: 860px; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }
.two > div { padding: 4px 20px 10px; border-radius: 16px; background: var(--sky-2); }
.two h3 { margin-top: 16px; }
.two .ok h3 { color: var(--lime); }
.two .no h3 { color: var(--pink); }
.two ul { padding-left: 20px; margin: 0; color: var(--muted); }

/* ---------- ideas ---------- */
.ideas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 14px; }
.ideas li { font-family: var(--display); font-size: 1.5rem; padding: 6px 14px 2px; background: var(--ink); color: var(--sky); }
.ideas li:nth-child(3n+1) { background: var(--pink); transform: rotate(-1.5deg); }
.ideas li:nth-child(3n+2) { background: var(--amber); transform: rotate(1deg); }
.ideas li:nth-child(3n) { background: var(--lime); transform: rotate(-0.5deg); }
.note { color: var(--muted); font-size: 0.92rem; }

/* ---------- about + faq ---------- */
.about .wrap { max-width: 760px; }
.about p { color: var(--muted); }
.faq .wrap { max-width: 800px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--amber); font-weight: 800; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- closing ---------- */
.closing { text-align: center; padding: 72px 0; border-top: 1px solid var(--line); }
.closing p { color: var(--muted); }

/* ---------- article pages (guides) ---------- */
main.article { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }
.article h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: 0.01em; margin-top: 12px; }
.article h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-top: 40px; }
.article .lede { color: var(--ink); font-size: 1.15rem; padding: 14px 18px; border-left: 4px solid var(--amber); background: var(--sky-2); }
.article li, .article p { color: var(--muted); }
.article li b, .article p b { color: var(--ink); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 16px 40px; color: var(--muted); font-size: 0.9rem; }
.foot .wrap { padding: 0; }
.foot p { margin: 6px 0; }
