/* ==========================================================================
   ESSENCIAL STUDIO — página de vendas
   Independente, mobile-first, sem dependências externas.
   ========================================================================== */

:root {
  --plum-900: #1e0b28;
  --plum-800: #2b0f38;
  --plum-700: #3a1650;
  --plum-600: #4a1a5c;
  --plum-500: #5f2a77;
  --gold: #c9a44c;
  --gold-2: #e3c37a;
  --gold-soft: #f2e3bd;
  --cream: #faf6f1;
  --paper: #fffdf9;
  --ink: #2a1f30;
  --muted: #6d5f74;
  --line: #e7dce9;
  --ok: #2f7a56;
  --shadow: 0 22px 50px -30px rgba(58, 22, 80, .55);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--plum-800);
  line-height: 1.18;
  margin: 0 0 .4em;
}

p { margin: 0 0 1em; }
a { color: var(--plum-600); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--plum-800);
  color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 30;
}
.skip:focus { left: 0; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(30, 11, 40, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(227, 195, 122, .25);
  color: #f7eefb;
}
.top-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { color: var(--gold-2); font-size: 16px; }
.brand-name {
  display: block; font-family: Georgia, serif; font-size: 16px;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.brand-sub {
  display: block; font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold-soft); opacity: .85;
}
.top-nav { display: none; margin-left: auto; gap: 22px; }
.top-nav a { color: rgba(247, 238, 251, .8); text-decoration: none; font-size: 14px; }
.top-nav a:hover { color: #fff; }
.top .btn-wa { margin-left: auto; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--plum-700);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { border-color: var(--plum-500); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(201, 164, 76, .55); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(140deg, var(--plum-700), var(--plum-500));
  border-color: var(--plum-700); color: #fff;
}
.btn-primary:hover { background: linear-gradient(140deg, var(--plum-600), var(--plum-500)); }
.btn-wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.btn-wa:hover { background: #187a42; border-color: #187a42; }
.btn-sm { min-height: 38px; padding: 8px 15px; font-size: 13.5px; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 16.5px; }

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 46px;
  background:
    radial-gradient(900px 480px at 8% -10%, #f3e9f6 0%, transparent 60%),
    radial-gradient(760px 420px at 100% 0%, #f8efdd 0%, transparent 55%),
    var(--cream);
}
.hero-grid { display: grid; gap: 30px; align-items: start; }
.eyebrow {
  margin: 0 0 10px; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--plum-500); font-weight: 700;
}
.hero h1 { font-size: clamp(30px, 5vw, 46px); max-width: 15ch; }
.lead { font-size: 17.5px; color: #43354b; max-width: 46ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 10px; }
.hero-actions.center { justify-content: center; }
.fine { font-size: 12.5px; color: var(--muted); }
.center { text-align: center; }

.hero-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.hero-card h2 { font-size: 19px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; font-size: 14.5px; color: #4a3b52; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #f3ead1; color: #8a6620; font-size: 11px;
  display: grid; place-items: center; font-weight: 700;
}

/* ---------- seções ---------- */
.section { padding: 54px 0; }
.section-alt { background: #f4edf3; }
.section-title { font-size: clamp(24px, 3.4vw, 34px); }
.section-sub { color: var(--muted); max-width: 60ch; margin-bottom: 26px; }

/* ---------- cartões ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: 0 14px 34px -28px rgba(58, 22, 80, .5);
  display: flex; flex-direction: column;
}
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { font-size: 14.5px; color: #4c3d55; flex: 1; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #f6efe0; color: #8a6620; font-size: 19px; margin-bottom: 14px;
}
.card-highlight { border-color: var(--gold-2); background: #fffaf0; }
.link-wa {
  display: inline-block; margin-top: 8px; font-weight: 600;
  font-size: 14px; color: var(--plum-700); text-decoration: none;
  border-bottom: 1px solid rgba(95, 42, 119, .25); padding-bottom: 2px;
}
.link-wa:hover { color: var(--plum-500); border-color: var(--plum-500); }

/* ---------- passos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--plum-700), var(--plum-500));
  color: var(--gold-2); font-family: Georgia, serif; font-size: 18px;
}
.steps h3 { font-size: 18px; margin-bottom: 2px; }
.steps p { font-size: 14.5px; color: #4c3d55; margin: 0; }

/* ---------- sobre ---------- */
.about-grid { display: grid; gap: 24px; align-items: center; }
.quote {
  margin: 0; padding: 22px 24px; border-left: 3px solid var(--gold);
  background: #fffaf0; border-radius: 0 14px 14px 0;
  font-family: Georgia, serif; font-size: 20px; color: var(--plum-700);
  font-style: italic;
}
.quote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 780px; }
.faq details {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--plum-700);
  list-style: none; position: relative; padding-right: 26px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  color: var(--plum-500); font-size: 20px; font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; font-size: 14.5px; color: #4c3d55; }

/* ---------- CTA final ---------- */
.cta {
  padding: 60px 0;
  background: linear-gradient(150deg, var(--plum-900), var(--plum-700) 65%, var(--plum-500));
  color: #f7eefb; text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.cta p { color: rgba(247, 238, 251, .82); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta .fine { color: rgba(247, 238, 251, .65); margin-top: 14px; }
.cta .btn { background: transparent; border-color: rgba(227, 195, 122, .5); color: #fff; }
.cta .btn:hover { border-color: var(--gold-2); }
.cta .btn-primary { background: var(--gold-2); border-color: var(--gold-2); color: var(--plum-900); }
.cta .btn-primary:hover { background: #f0d495; border-color: #f0d495; }

/* ---------- rodapé ---------- */
.foot { padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot p { margin: 0 0 6px; }
.tiny { font-size: 12px; }

/* ---------- botão flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 25;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1f8f4e; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(31, 143, 78, .7);
  transition: transform .15s ease, background .15s ease;
}
.wa-float:hover { transform: scale(1.06); background: #187a42; }
.wa-float:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

/* ---------- responsivo ---------- */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 42px; }
  .section { padding: 68px 0; }
  .about-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { display: block; }
  .step-num { margin-bottom: 12px; }
}

@media (min-width: 900px) {
  .top-nav { display: flex; }
  .top .btn-wa { margin-left: 24px; }
}

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

@media print {
  .top, .wa-float, .btn { display: none; }
}

/* ---------- catálogo: preço e pedido ---------- */
.preco {
  font-size: 15px;
  font-weight: 700;
  color: var(--plum-700);
  margin: 8px 0 12px;
}
.card .btn { align-self: flex-start; }

/* ---------- modal de pedido ---------- */
.pedido-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(30, 11, 40, .62);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 18px; overflow-y: auto;
}
.pedido-card {
  width: 100%; max-width: 520px;
  background: var(--paper); border-radius: 20px;
  box-shadow: 0 30px 70px -30px rgba(30, 11, 40, .8);
  padding: 24px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}
.pedido-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 16px;
}
.pedido-head h2 { font-size: 24px; margin-bottom: 4px; }
.pedido-close {
  border: 0; background: transparent; color: var(--muted);
  font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.pedido-close:hover { color: var(--plum-700); }

.field { margin-bottom: 12px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--plum-700); margin-bottom: 6px;
}
.field .opt { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 46px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: inherit;
}
textarea.input { min-height: 92px; resize: vertical; }
.input:focus {
  outline: none; border-color: var(--plum-500);
  box-shadow: 0 0 0 3px rgba(95, 42, 119, .14);
}
.input[aria-invalid="true"] { border-color: #a33b4a; }
.help { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.nota {
  font-size: 12.5px; color: var(--muted);
  background: #fbf7ee; border-left: 3px solid var(--gold);
  padding: 8px 10px; border-radius: 0 8px 8px 0;
}
.alert-error {
  background: #fdf1f2; border: 1px solid #efc9ce; color: #a33b4a;
  border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 10px 0;
}
.pedido-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 16px; flex-wrap: wrap;
}
body.pedido-aberto { overflow: hidden; }
@media (max-width: 480px) {
  .pedido-actions .btn { flex: 1; }
}

.signature {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  color: var(--plum-600);
  margin: -2px 0 14px;
  letter-spacing: .02em;
}
