/* ArteEmMinuto — páginas de vendas (início, beleza e seguros).
 * Cada público tem a sua paleta em body[data-nicho]. A estrutura é a mesma. */

:root {
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --text: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1140px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
}

body[data-nicho='beleza'] {
  --bg: #F8ECE8;        /* pó de arroz */
  --surface: #FFFBF9;   /* algodão */
  --ink: #2A1B20;       /* cacau */
  --muted: #6E5A60;
  --line: #E7CFC8;      /* nude */
  --accent: #B3164F;    /* esmalte */
  --accent-ink: #8E0F3E;
  --accent-soft: #F3D5DC;
  --deep: #3B1E2B;
}
body[data-nicho='seguros'] {
  --bg: #EEF2F6;        /* névoa */
  --surface: #FFFFFF;
  --ink: #0E1B2E;       /* marinho */
  --muted: #4F5D70;
  --line: #D5DEE8;
  --accent: #1F5FD1;    /* azul apólice */
  --accent-ink: #174BA8;
  --accent-soft: #DCE7FA;
  --deep: #0E1B2E;
  --stamp: #9A6A0C;     /* carimbo */
}
body[data-nicho='geral'] {
  --bg: #F5F3FA;
  --surface: #FFFFFF;
  --ink: #1C1A24;
  --muted: #5F5A6B;
  --line: #E2DEEB;
  --accent: #6D4AFF;
  --accent-ink: #4B2FD6;
  --accent-soft: #ECE7FF;
  --deep: #1C1A24;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img, canvas { display: block; max-width: 100%; }
a { color: var(--accent-ink); }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.7rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 750; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- topo ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.logo-accent { color: var(--accent); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); font: 700 1rem var(--text); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { border-color: var(--ink); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-buy { background: var(--accent); border-color: var(--accent); color: #fff; min-height: 58px; padding: 0 30px; font-size: 1.08rem; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-buy:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-buy:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- hero ---------- */
.hero { padding: 28px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 26px; grid-template-areas: 'text' 'stage' 'try' 'buy'; }
.hero-text { grid-area: text; }
.hero-try { grid-area: try; }
.hero-stage { grid-area: stage; min-width: 0; }
.hero-buy { grid-area: buy; }
.hero h1 { max-width: 14ch; }
.lede { margin-top: 18px; font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.lede q { quotes: '“' '”'; color: var(--ink); font-weight: 600; }

.try { padding: 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); max-width: 460px; }
.try label, .try .try-label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.try input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; font: 600 1.05rem var(--text); color: var(--ink); }
.try input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.try-row { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.try-row .try-label { margin: 0 4px 0 0; font-size: .9rem; color: var(--muted); font-weight: 600; }
.try-extra { margin-top: 12px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--swatch); box-shadow: inset 0 -4px 6px rgba(0,0,0,.18), inset 0 4px 6px rgba(255,255,255,.28); position: relative; }
.swatches button[aria-pressed='true']::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2.5px solid var(--ink); }
body[data-nicho='seguros'] .swatches button { border-radius: 9px; }
body[data-nicho='seguros'] .swatches button[aria-pressed='true']::after { border-radius: 12px; }

.hero-buy { display: grid; gap: 10px; justify-items: start; }
.assure { font-size: .92rem; color: var(--muted); }

/* profissões / ramos */
.groups { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.groups::-webkit-scrollbar { display: none; }
.groups button { flex: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .95rem var(--text); border-radius: 999px; padding: 9px 16px; cursor: pointer; min-height: 42px; }
.groups button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* faixa de posts (celular: rolagem lateral) */
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 14px; margin: 0 -20px; scrollbar-width: none; align-items: flex-end; }
.strip::-webkit-scrollbar { display: none; }
.post { margin: 0; flex: none; scroll-snap-align: center; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 18px 40px -18px rgba(42, 27, 32, .45), 0 0 0 1px rgba(0,0,0,.04); }
.post canvas { width: 100%; height: auto; }
.post.feed { width: 74vw; max-width: 300px; aspect-ratio: 1080 / 1350; }
.post.story { width: 58vw; max-width: 240px; aspect-ratio: 1080 / 1920; }
.stage-note { margin-top: 6px; font-size: .88rem; color: var(--muted); max-width: 52ch; }

/* ---------- seções ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; max-width: 58ch; }

.pain { background: var(--deep); color: #fff; }
.pain h2 { color: #fff; max-width: 22ch; }
.pain-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.pain-list li { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 1.12rem; color: rgba(255,255,255,.78); max-width: 62ch; }
.pain-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.pain-list strong { color: #fff; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: .9; color: var(--accent); letter-spacing: -0.04em; min-width: 1ch; }
.steps p { color: var(--muted); max-width: 44ch; }
.steps q { quotes: '“' '”'; color: var(--ink); font-weight: 600; }

/* oferta */
.offer { background: var(--surface); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.offer-grid { display: grid; gap: 40px; align-items: start; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; font-size: 1.06rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ''; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg); }

.ticket { position: relative; background: var(--bg); border-radius: var(--r-lg); padding: 30px 26px 26px; border: 1.5px solid var(--line); }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 118px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line); }
.ticket::before { left: -14px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -14px; clip-path: inset(0 50% 0 0); }
.ticket-name { font-weight: 700; color: var(--muted); }
.price { font-family: var(--display); font-weight: 800; font-size: 4.6rem; line-height: 1; letter-spacing: -0.05em; margin-top: 8px; display: flex; align-items: flex-start; gap: 6px; }
.price small { font-size: 1.4rem; letter-spacing: -0.02em; margin-top: 10px; }
.per-day { color: var(--muted); margin-top: 4px; }
.ticket-cut { border: 0; border-top: 2px dashed var(--line); margin: 22px 0 20px; }
.ticket .btn-buy { width: 100%; }
.ticket-note { font-size: .9rem; color: var(--muted); margin-top: 12px; text-align: center; }
.guarantee { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px; border-radius: var(--r-sm); background: var(--surface); border: 1.5px solid var(--line); font-size: .95rem; }
.guarantee svg { flex: none; color: var(--accent); margin-top: 2px; }
body[data-nicho='seguros'] .guarantee svg { color: var(--stamp); }

/* perguntas */
.faq { display: grid; gap: 0; }
.faq details { border-top: 1.5px solid var(--line); }
.faq details:last-child { border-bottom: 1.5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 27px; width: 10px; height: 10px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* fechamento */
.final { padding: 80px 0 96px; text-align: left; }
.final h2 { max-width: 18ch; }
.final p { color: var(--muted); margin: 14px 0 26px; max-width: 50ch; }

/* rodapé */
.footer { padding: 36px 0 110px; border-top: 1.5px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer .wrap { display: grid; gap: 10px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* barra fixa no celular */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1.5px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .sticky-price { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.1; }
.sticky-cta .sticky-price small { display: block; font-family: var(--text); font-weight: 600; font-size: .78rem; color: var(--muted); letter-spacing: 0; }
.sticky-cta .btn-buy { min-height: 50px; padding: 0 20px; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---------- página inicial ---------- */
.doors { display: grid; gap: 20px; margin-top: 36px; }
.door { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; border-radius: var(--r-lg); text-decoration: none; color: inherit; border: 1.5px solid var(--line); background: var(--surface); }
.door.beleza { --accent: #B3164F; --accent-ink: #8E0F3E; background: #FBF1EE; border-color: #EBD3CC; }
.door.seguros { --accent: #1F5FD1; --accent-ink: #174BA8; background: #F1F5FA; border-color: #D5DEE8; }
.door h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
.door p { color: var(--muted); margin-top: 8px; max-width: 40ch; }
.door .btn { margin-top: 18px; background: var(--accent); border-color: var(--accent); color: #fff; }
.door .post.feed { width: 100%; max-width: 280px; }
.door:hover .btn { background: var(--accent-ink); }
.door-art { display: flex; justify-content: center; }

/* ---------- telas maiores ---------- */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .wrap { padding: 0 32px; }
  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: 'text stage' 'try stage' 'buy stage'; grid-template-rows: auto auto 1fr; column-gap: 56px; row-gap: 26px; align-items: start; }
  .hero-buy { align-self: start; }
  .section { padding: 104px 0; }

  /* leque de posts */
  .strip { position: relative; display: block; height: 560px; margin: 8px 0 0; padding: 0; overflow: visible; }
  .strip .post { position: absolute; bottom: 30px; }
  .strip .post.feed { width: 330px; max-width: none; }
  .strip .post.story { width: 248px; max-width: none; }
  .strip .post:nth-child(1) { left: 0; bottom: 26px; transform: rotate(-3deg); z-index: 2; box-shadow: 0 30px 60px -24px rgba(42, 27, 32, .55), 0 0 0 1px rgba(0,0,0,.05); }
  .strip .post:nth-child(2) { right: 0; bottom: 64px; transform: rotate(5deg); z-index: 1; }
  .strip .post:nth-child(3), .strip .post:nth-child(4) { display: none; }
  .js .strip .post { animation: deal .7s cubic-bezier(.2, .8, .2, 1) both; }
  .js .strip .post:nth-child(2) { animation-delay: .1s; }
  .stage-note { margin: 0 auto; text-align: center; }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .offer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; }
  .doors { grid-template-columns: 1fr 1fr; }
  .door { grid-template-columns: minmax(0, 1fr) 220px; align-items: center; padding: 30px; }
  .door .post.feed { max-width: 220px; }
  .sticky-cta { display: none; }
  .footer { padding-bottom: 48px; }
}
@keyframes deal {
  from { opacity: 0; translate: 0 40px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .strip .post { animation: none; }
}

/* ---------- páginas de texto (obrigado, termos, privacidade) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 44px 20px 96px; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); margin-bottom: 14px; }
.doc h2 { font-size: 1.4rem; margin: 34px 0 10px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 1.3em; display: grid; gap: 8px; }
.doc .small { font-size: .92rem; color: var(--muted); }
.doc .btn { background: var(--accent); border-color: var(--accent); color: #fff; }
body[data-nicho='geral'] .hero h1 { max-width: 19ch; }
body[data-nicho='geral'] .try { margin-top: 26px; }
