/* Fontes servidas pelo próprio site (/fonts), só o subconjunto latino (cobre o português). */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
/* Títulos em EB Garamond: a Cormorant Garamond desenha o "ê" com o acento deslocado. */
@font-face { font-family: 'EB Garamond'; font-weight: 500; font-display: swap; src: url(/fonts/eb-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 600; font-display: swap; src: url(/fonts/eb-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 700; font-display: swap; src: url(/fonts/eb-garamond-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 600; font-style: italic; font-display: swap; src: url(/fonts/eb-garamond-latin-600-italic.woff2) format('woff2'); }

:root {
  /* Cores da marca Régia (tiradas dos arquivos do logo) */
  --wine: #5E1A24;
  --wine-2: #6B1F2A;
  --gold: #C9A24F;
  --gold-soft: #F3E9D2;
  --cream: #EFE6D8;
  --bg: #F7F2EA;
  --surface: #ffffff;
  --text: #2E1A1E;
  --muted: #7E6E6A;
  --line: #E8DDCD;
  --green: #2f8a57;
  --red: #b3393f;
  --blue: #3a6ea5;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(94, 26, 36, .06), 0 4px 16px rgba(94, 26, 36, .07);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--wine-2); }
h1, h2, h3 { font-family: 'EB Garamond', Georgia, serif; color: var(--wine); margin: 0; }
/* A Cormorant usa números "antigos" (o1, o3 descendo da linha); números alinhados ficam mais limpos. */
body * { font-variant-numeric: lining-nums; }
h1 { font-size: 28px; }
h3 { font-size: 21px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; }
.brand { display: flex; flex-direction: column; align-items: center; }
.brand img { width: 100%; max-width: 200px; display: block; }
.brand span { font-size: 11px; letter-spacing: 4px; color: var(--gold); margin-top: -10px; }
.login-logo { width: 100%; max-width: 260px; margin: -8px auto 0; display: block; }

/* Botões e campos */
.btn { border: 1px solid transparent; border-radius: 9px; padding: 9px 16px; font: 500 14px Inter, sans-serif; cursor: pointer; background: var(--surface); color: var(--text); border-color: var(--line); white-space: nowrap; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn.lg { padding: 13px 24px; font-size: 15px; border-radius: 11px; }
.btn.gold:hover { background: #b8913f; border-color: #b8913f; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn:hover { border-color: var(--gold); }
a.btn { display: inline-block; text-decoration: none; }
.btn.primary { background: var(--wine); color: #fff; border-color: var(--wine); }
.btn.primary:hover { background: var(--wine-2); }
.btn.gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn.danger { color: var(--red); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.icon-btn { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--wine); padding: 4px 8px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
.field.wide { grid-column: 1 / -1; }
.field.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
input, select, textarea { font: 15px Inter, sans-serif; color: var(--text); padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; width: 100%; }
.field.check input { width: auto; }
textarea { min-height: 90px; resize: vertical; }
.error { color: var(--red); min-height: 1.2em; font-size: 14px; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--wine); }
.login-card { background: var(--cream); padding: 36px 32px; border-radius: 18px; box-shadow: var(--shadow); width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.login-card .field { text-align: left; }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex-shrink: 0; background: var(--wine); color: #fff; display: flex; flex-direction: column; padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 0 6px 18px; margin-top: -14px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.sidebar nav a { color: #E6D9C8; text-decoration: none; padding: 10px 12px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .07); }
.sidebar nav a.active { background: rgba(201, 162, 74, .18); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-foot .btn { color: #fff; border-color: rgba(255, 255, 255, .25); }
.user { font-size: 14px; color: #E6D9C8; overflow: hidden; text-overflow: ellipsis; }
.badge { background: var(--gold); color: #fff; border-radius: 99px; font-size: 12px; padding: 1px 8px; font-weight: 600; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 20px 28px 8px; flex-wrap: wrap; }
.topbar h1 { flex: 1; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-btn { display: none; }
.content > main { padding: 12px 28px 40px; }

/* Cartões */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-family: 'EB Garamond', Georgia, serif; font-size: 34px; font-weight: 700; color: var(--wine); line-height: 1.2; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: 18px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.list li:last-child { border-bottom: 0; }
.list .when { color: var(--gold); font-weight: 600; min-width: 52px; font-size: 14px; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; flex: 1; min-width: 160px; }
.clickable { cursor: pointer; }

/* Tabela */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.clickable:hover { background: #fcf9f4; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }

.stage { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 600; background: var(--gold-soft); color: #7a5d1d; white-space: nowrap; }
.stage.s-Fechado { background: #dff1e6; color: var(--green); }
.stage.s-Perdido { background: #f6e0e1; color: var(--red); }
.stage.s-Lead { background: #e6eef7; color: var(--blue); }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #f1ece6; color: var(--muted); white-space: nowrap; }
.pill.ok { background: #dff1e6; color: var(--green); }
.pill.bad { background: #f6e0e1; color: var(--red); }

/* Cliente */
.client-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-bottom: 18px; }
.client-head .info { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; margin-top: 12px; }
.client-head .info div span { display: block; font-size: 12px; color: var(--muted); }
.client-head .btns { display: flex; flex-direction: column; gap: 8px; }
.notes { white-space: pre-wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.timeline li { align-items: flex-start; }
.timeline .ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); flex-shrink: 0; font-size: 14px; }
.timeline .meta { font-size: 12px; color: var(--muted); }

/* Funil */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.column { background: #f3ede5; border-radius: var(--radius); padding: 10px; min-height: 300px; display: flex; flex-direction: column; gap: 8px; }
.column.over { outline: 2px dashed var(--gold); }
.column header { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 6px; font-weight: 600; font-size: 14px; }
.column header small { color: var(--muted); font-weight: 500; }
.deal { background: var(--surface); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); cursor: grab; }
.deal .name { font-weight: 600; }
.deal .val { color: var(--gold); font-weight: 600; font-size: 14px; }

/* Agenda */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-head h3 { margin: 0; flex: 1; }
.cal-head h3::first-letter { text-transform: uppercase; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.calendar .dow { background: #f3ede5; padding: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.calendar .day { background: var(--surface); min-height: 104px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.calendar .day:hover { background: #fcf9f4; }
.calendar .day.other { background: #faf8f5; color: #bbb; }
.calendar .day.today .num { background: var(--wine); color: #fff; border-radius: 50%; }
.calendar .num { font-size: 13px; width: 24px; height: 24px; display: grid; place-items: center; }
.chip { font-size: 12px; background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 4px; padding: 1px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { background: #ecdcb5; }

/* Tarefas */
.task { display: flex; align-items: center; gap: 12px; }
.task input { width: 20px; height: 20px; accent-color: var(--wine); flex-shrink: 0; }
.task.done .t { text-decoration: line-through; color: var(--muted); }
.task .late { color: var(--red); }
/* Lembretes e metas */
.inline-add { display: flex; gap: 8px; margin-bottom: 6px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-head a { color: var(--wine); }
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.goal-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.goal .progress { margin: 10px 0 6px; }
.goals .card:hover { box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.tabs { display: flex; gap: 4px; background: #f1ece6; padding: 4px; border-radius: 10px; width: fit-content; }
.tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 7px; cursor: pointer; font: 500 14px Inter, sans-serif; color: var(--muted); }
.tabs button.active { background: var(--surface); color: var(--wine); box-shadow: var(--shadow); }

/* WhatsApp */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 130px); min-height: 460px; grid-template-rows: minmax(0, 1fr); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.conv-list { border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.conv-list .head { padding: 12px; border-bottom: 1px solid var(--line); }
.conv { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; gap: 10px; text-decoration: none; color: inherit; }
.conv:hover, .conv.active { background: #fcf6ea; }
.conv .body { flex: 1; min-width: 0; }
.conv .last { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: var(--gold); display: grid; place-items: center; font-weight: 600; flex-shrink: 0; }
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat .head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: #f6f1ea; }
.bubble { max-width: 75%; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); white-space: pre-wrap; word-wrap: break-word; align-self: flex-start; }
.bubble.out { align-self: flex-end; background: #f0e2c2; }
.bubble .meta { font-size: 11px; color: var(--muted); text-align: right; margin-top: 2px; }
.bubble.failed { border: 1px solid var(--red); }
.composer { flex: none; border-top: 1px solid var(--line); padding: 10px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 140px; }
.notice { background: #fdf3dc; color: #7a5d1d; padding: 10px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 12px; }
.chat .notice { margin: 10px 10px 0; }
.back-btn { display: none; }

/* Configurações */
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.kv { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.kv code { background: #f3ede5; padding: 6px 10px; border-radius: 6px; font-size: 13px; word-break: break-all; }

/* Modal e avisos */
dialog.modal { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
dialog.modal::backdrop { background: rgba(42, 20, 37, .45); }
dialog.modal header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 20px; max-height: 65vh; overflow-y: auto; }
dialog.modal footer { display: flex; gap: 8px; padding: 12px 20px 18px; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast { background: var(--wine); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow); max-width: 360px; }
.toast.error { background: var(--red); }

/* Aplicações (admin) */
.level { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.level.Quente { background: #f6e0e1; color: var(--red); }
.level.Morno { background: var(--gold-soft); color: #7a5d1d; }
.level.Frio { background: #e6eef7; color: var(--blue); }
.answers { display: grid; gap: 12px; }
.answers dt { font-size: 12px; color: var(--muted); }
.answers dd { margin: 2px 0 0; white-space: pre-wrap; }
.clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Formulário público de aplicação */
.apply-page { background: var(--bg); }
.apply-hero { background: radial-gradient(900px 400px at 80% -10%, #7a2633, transparent 60%), linear-gradient(160deg, #5E1A24, #3f1018); color: var(--cream); text-align: center; padding: 36px 16px 96px; }
.apply-hero img { width: 100%; max-width: 220px; display: block; margin: -10px auto 0; }
.apply-hero h1 { color: #fff; font-size: 40px; margin-top: 6px; }
.apply-hero p { max-width: 560px; margin: 12px auto 0; color: #E6D9C8; }
.apply-card { background: var(--surface); max-width: 680px; margin: -64px auto 48px; border-radius: 18px; box-shadow: var(--shadow); padding: 32px; }
.apply-card form { display: flex; flex-direction: column; gap: 16px; }
.apply-section { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.apply-section h2 { font-size: 26px; border-left: 3px solid var(--gold); padding-left: 10px; }
.apply-card .field { font-size: 14px; color: var(--text); }
.apply-card .field.check { align-items: flex-start; }
.apply-card .field.check input { margin-top: 3px; accent-color: var(--wine); }
.req { color: var(--gold); }
.choices { border: 0; padding: 0; margin: 0; gap: 8px; }
.choices legend { padding: 0; margin-bottom: 8px; font-weight: 500; }
.choices label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; cursor: pointer; color: var(--text); font-weight: 400; }
.choices label:hover { border-color: var(--gold); }
.choices label:has(input:checked) { border-color: var(--wine); background: #fcf6ea; }
.choices input { width: auto; accent-color: var(--wine); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.center { text-align: center; }
.apply-done { text-align: center; padding: 16px 0; }
.apply-done h2 { font-size: 32px; margin-bottom: 10px; }

/* ---------- Site público e área do cliente ---------- */
.kicker { color: var(--gold); letter-spacing: 2.5px; text-transform: uppercase; font-size: 12px; font-weight: 600; margin: 0 0 6px; }
.pre { white-space: pre-wrap; }
.video { position: relative; aspect-ratio: 16 / 9; background: #1d0b0f; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(46, 26, 30, .25); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon { display: grid; place-items: center; text-align: center; color: #E6D9C8; padding: 24px; background: radial-gradient(circle at 50% 40%, #7a2633, #2a0d13); }
.video-soon span { display: block; font-size: 44px; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.progress { height: 8px; background: var(--gold-soft); border-radius: 99px; overflow: hidden; margin: 14px 0 6px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e0bf74); border-radius: 99px; }

/* Vitrine (/) e catálogo (/cursos) */
.site { background: var(--bg); }
.site-nav { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 18px; padding: 18px 28px; z-index: 2; }
.site-nav img { height: 44px; width: auto; border-radius: 8px; }
.site-nav a { color: #E6D9C8; text-decoration: none; font-size: 14px; }
.site-nav a:hover { color: #fff; }
.site-nav .btn { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.v-hero { position: relative; background: radial-gradient(1200px 500px at 80% -10%, #7a2633 0%, transparent 60%), linear-gradient(160deg, #5E1A24 0%, #3f1018 100%); color: var(--cream); padding: 110px 24px 80px; overflow: hidden; }
.v-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.v-hero-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.v-hero h1 { color: #fff; font-size: 54px; line-height: 1.05; margin: 6px 0 0; }
.v-lead { margin: 18px 0 0; color: #E6D9C8; font-size: 17px; max-width: 520px; }
.v-note { font-size: 13px; color: #C9B9A5; margin-top: 14px; }
.v-link { color: var(--gold); }
.v-main { max-width: 1080px; margin: 0 auto; padding: 8px 24px 64px; }
.v-section { margin-top: 72px; }
.v-section > h2 { font-size: 40px; text-align: center; margin-bottom: 8px; }
.v-section > .v-sub { text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 560px; }
.v-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.v-grid .card, .c-grid .card { border: 1px solid var(--line); box-shadow: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.v-grid .card:hover, .c-grid a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #e2cfa6; }
.v-grid p, .v-about p { margin: 0; color: var(--muted); }
.v-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--wine); color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.v-steps { list-style: none; max-width: 820px; margin: 0 auto; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.v-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.v-steps li::before { content: counter(s, decimal-leading-zero); font-family: 'EB Garamond', Georgia, serif; font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.v-about { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.v-about h2 { font-size: 36px; margin-bottom: 12px; }
details.card { margin-bottom: 10px; padding: 16px 20px; border: 1px solid var(--line); box-shadow: none; }
details summary { cursor: pointer; font-weight: 600; color: var(--wine); }
details p { margin: 10px 0 0; color: var(--muted); }
.v-faq { max-width: 760px; margin: 0 auto; }
.v-final { margin-top: 80px; text-align: center; background: linear-gradient(160deg, #5E1A24, #3f1018); color: var(--cream); border-radius: 22px; padding: 56px 24px; }
.v-final h2 { color: #fff; font-size: 40px; }
.v-final p { color: #E6D9C8; margin: 10px auto 22px; max-width: 520px; }
.site-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 16px 40px; }
.site-foot a { color: var(--muted); }
.course { display: flex; flex-direction: column; gap: 10px; }
.course h3 { margin: 0; }
.course p { margin: 0; color: var(--muted); white-space: pre-wrap; flex: 1; }
.course-price strong { font-family: 'EB Garamond', Georgia, serif; font-size: 32px; color: var(--wine); }

/* ---------- Página inicial (/) ---------- */
.home { --deep: #2a0d13; --ink: #3f1018; --gold-2: #e3c27a; background: #F7F2EA; color: var(--text); }
.home em { font-style: italic; color: var(--gold); font-weight: 600; }
.h-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.h-label { display: flex; align-items: center; gap: 12px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-size: 12px; font-weight: 600; margin: 0 0 18px; }
.h-label::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.h-label.dark { color: #a6823a; }
.h-btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; border-radius: 999px; font: 600 14px Inter, sans-serif; letter-spacing: .4px; text-decoration: none; border: 1px solid transparent; transition: transform .2s, background .2s, box-shadow .2s, color .2s; }
.h-btn:hover { transform: translateY(-1px); }
.h-btn.gold { background: linear-gradient(135deg, #d8b465, #b98f3f); color: #2a0d13; box-shadow: 0 10px 30px rgba(201, 162, 79, .28); }
.h-btn.gold:hover { box-shadow: 0 14px 36px rgba(201, 162, 79, .4); }
.h-btn.wine { background: var(--wine); color: #fff; margin-top: 10px; }
.h-btn.ghost { padding: 10px 20px; color: var(--gold-2); border-color: rgba(227, 194, 122, .5); }
.h-btn.ghost:hover { background: rgba(227, 194, 122, .12); }
.h-textlink { color: #f3e6cf; text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(243, 230, 207, .4); padding-bottom: 2px; }
.h-textlink:hover { color: #fff; border-color: var(--gold); }

/* Topo: só a lótus dourada, como um selo no canto */
.h-nav { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 36px; }
.h-seal img { display: block; width: 112px; height: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .25)); transition: transform .3s; }
.h-seal:hover img { transform: scale(1.04); }
.h-links { display: flex; align-items: center; gap: 28px; padding-top: 22px; }
.h-links > a:not(.h-btn) { color: #e9dcc7; text-decoration: none; font-size: 14px; letter-spacing: .3px; }
.h-links > a:not(.h-btn):hover { color: #fff; }

/* Abertura */
.h-hero { position: relative; overflow: hidden; color: #f3e6cf; padding: 170px 0 110px;
  background: radial-gradient(900px 600px at 85% 20%, rgba(201, 162, 79, .16), transparent 60%), radial-gradient(800px 600px at 0% 100%, #6e1f2b, transparent 60%), linear-gradient(165deg, #5E1A24 0%, #3f1018 55%, #2a0d13 100%); }
.h-hero-sm { padding-bottom: 80px; }
.home .v-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.home .course { padding: 28px; border-radius: 6px; }
.h-hero-sm h1 em { display: inline; }
.h-hero-sm .h-lead { max-width: 640px; }
.h-watermark { position: absolute; width: 760px; height: auto; right: -160px; bottom: -150px; opacity: .06; pointer-events: none; }
.h-hero-inner { position: relative; max-width: 1160px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.h-hero h1 { font-size: 56px; line-height: 1.02; font-weight: 600; color: #fff; letter-spacing: -.5px; margin: 0; }
.h-hero h1 em { display: block; color: var(--gold-2); }
.h-lead { font-size: 18px; line-height: 1.65; color: #e3d4bd; margin: 26px 0 0; max-width: 500px; }
.h-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.h-video { margin: 0; position: relative; }
.h-video::before { content: ''; position: absolute; inset: -16px 16px 16px -16px; border: 1px solid rgba(227, 194, 122, .45); border-radius: 6px; pointer-events: none; }
.h-video .video { border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.h-video figcaption { margin-top: 18px; font-size: 13px; color: #c9b59a; letter-spacing: .4px; }
.h-video figcaption::before { content: '▶  '; color: var(--gold); }

/* Faixa dourada */
.h-band { background: var(--deep); color: #d9c6a3; display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; padding: 20px 24px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; border-top: 1px solid rgba(201, 162, 79, .25); }
.h-band i { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

/* Seções */
.h-section { padding: 120px 0; }
.h-light { background: #fffdf9; }
.h-dark { background: linear-gradient(165deg, #4a141d, #2a0d13); color: #e3d4bd; }
.h-section h2 { font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -.3px; }
.h-dark h2 { color: #fff; }
.h-dark em { color: var(--gold-2); }
.h-head { max-width: 720px; margin-bottom: 64px; }
.h-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.h-head.center .h-label { justify-content: center; }
.h-head.center .h-label::after { content: ''; width: 36px; height: 1px; background: currentColor; }
.h-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.h-cols article { border-top: 1px solid #dcc9a6; padding-top: 28px; }
.h-roman { display: block; font-family: 'EB Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 38px; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.h-cols h3, .h-pillars h3, .h-steps h3 { font-size: 23px; font-weight: 600; margin-bottom: 10px; }
.h-cols p, .h-pillars p { color: var(--muted); line-height: 1.7; margin: 0; }
.h-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
.h-sticky { position: sticky; top: 40px; }
.h-sticky h2 { margin-bottom: 18px; }
.h-sticky p { line-height: 1.7; max-width: 400px; }
.h-pillars { list-style: none; margin: 0; padding: 0; }
.h-pillars li { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 32px 0; border-bottom: 1px solid #ecdfc8; }
.h-pillars li:first-child { padding-top: 0; }
.h-pillars span { font-family: 'EB Garamond', Georgia, serif; font-size: 38px; line-height: .9; color: var(--gold); font-weight: 600; }
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.h-steps::before { content: ''; position: absolute; top: 28px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 194, 122, .6), transparent); }
.h-steps li { text-align: center; position: relative; }
.h-steps h3 { color: #fff; margin-top: 26px; }
.h-steps p { color: #cdb99c; line-height: 1.7; max-width: 300px; margin: 0 auto; }
.h-dot { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--deep); border: 1px solid var(--gold); color: var(--gold-2); font-family: 'EB Garamond', Georgia, serif; font-size: 26px; font-weight: 700; box-shadow: 0 0 0 8px rgba(201, 162, 79, .08); }
.h-about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.h-about p { font-size: 17px; line-height: 1.75; color: #4b3a3d; }
.h-portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; background: radial-gradient(circle at 50% 40%, #6e1f2b, #2a0d13); display: grid; place-items: center; box-shadow: 24px 24px 0 #efe3cc; }
.h-portrait img { width: 46%; opacity: .55; }
.h-portrait span { position: absolute; bottom: 20px; color: #c9b59a; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.h-sign { font-family: 'EB Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: 40px !important; color: var(--gold) !important; margin: 10px 0 0; }
.h-faq details { border-bottom: 1px solid #ecdfc8; padding: 22px 0; }
.h-faq details:first-child { padding-top: 0; }
.h-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; font-family: 'EB Garamond', Georgia, serif; font-size: 21px; font-weight: 600; color: var(--wine); }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: '+'; font-family: Inter, sans-serif; font-weight: 300; font-size: 26px; color: var(--gold); line-height: 1; transition: transform .2s; }
.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq p { color: var(--muted); line-height: 1.7; margin: 12px 0 0; max-width: 560px; }
.h-quote { margin: 0; font-family: 'EB Garamond', Georgia, serif; font-size: 24px; font-style: italic; color: var(--wine); border-top: 1px solid #dcc9a6; padding-top: 24px; }
.h-quote cite { display: block; margin-top: 14px; font: 500 13px Inter, sans-serif; font-style: normal; color: var(--muted); }
.h-final { position: relative; overflow: hidden; text-align: center; padding: 130px 24px; color: #e3d4bd; background: radial-gradient(700px 400px at 50% 0%, rgba(201, 162, 79, .14), transparent 70%), linear-gradient(165deg, #5E1A24, #2a0d13); }
.h-final img { position: absolute; width: 520px; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .07; pointer-events: none; }
.h-final h2 { position: relative; color: #fff; font-size: 50px; font-weight: 600; }
.h-final em { color: var(--gold-2); }
.h-final p { position: relative; max-width: 480px; margin: 18px auto 38px; font-size: 17px; line-height: 1.6; }
.h-final .h-btn { position: relative; }
.h-foot { background: var(--deep); color: #a8957a; display: flex; align-items: center; gap: 28px; padding: 28px 36px; font-size: 13px; border-top: 1px solid rgba(201, 162, 79, .2); }
.h-foot img { width: 48px; height: auto; }
.h-foot nav { display: flex; gap: 22px; flex: 1; }
.h-foot a { color: #d9c6a3; text-decoration: none; }
.h-foot a:hover { color: #fff; }
.h-foot p { margin: 0; }

/* Aparecer ao rolar (só com JS e sem "reduzir movimento") */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.motion .reveal.in { opacity: 1; transform: none; }
.h-cols .reveal:nth-child(2), .h-steps .reveal:nth-child(2) { transition-delay: .1s; }
.h-cols .reveal:nth-child(3), .h-steps .reveal:nth-child(3) { transition-delay: .2s; }

/* Entrar / criar conta */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(900px 500px at 20% 0%, #7a2633, transparent 60%), linear-gradient(160deg, #5E1A24, #3f1018); color: var(--cream); padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-side img { width: 220px; height: auto; border-radius: 12px; }
.auth-side h1 { color: #fff; font-size: 44px; line-height: 1.1; margin-top: 28px; max-width: 460px; }
.auth-side p { color: #E6D9C8; max-width: 420px; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.auth-card h2 { font-size: 34px; }
.auth-card p { margin: 0; }
.auth-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.auth-fields .field { font-size: 13px; }
.auth-fields input { padding: 12px 13px; border-radius: 10px; }
.auth-fields .field.check { align-items: flex-start; font-weight: 400; }
.auth-fields .field.check input { margin-top: 3px; accent-color: var(--wine); }
.auth-tabs { display: flex; gap: 4px; background: #efe7da; padding: 4px; border-radius: 12px; margin-bottom: 10px; }
.auth-tabs a { flex: 1; text-align: center; padding: 9px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 500; }
.auth-tabs a.active { background: var(--surface); color: var(--wine); box-shadow: var(--shadow); }

/* Área do cliente (/area) */
.c-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px; padding: 10px 28px; background: rgba(94, 26, 36, .97); backdrop-filter: blur(8px); }
.c-brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: 'EB Garamond', Georgia, serif; font-size: 24px; font-weight: 700; }
.c-brand img { border-radius: 8px; }
.c-nav { display: flex; gap: 4px; flex: 1; }
.c-nav a { color: #E6D9C8; text-decoration: none; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.c-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.c-nav a.active { background: rgba(201, 162, 79, .2); color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.c-out { color: #fff !important; border-color: rgba(255, 255, 255, .25) !important; }
.c-main { max-width: 1040px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 18px; }
.c-hello h1 { font-size: 42px; }
.c-title { font-size: 38px; }
.c-sub { font-size: 24px; margin-top: 10px; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.c-grid a.card { text-decoration: none; color: inherit; }
.prog h2 { font-size: 28px; }
.prog .btn { margin-top: 8px; }
.intro h2 { font-size: 26px; margin-bottom: 12px; }
.lock { display: flex; gap: 20px; align-items: flex-start; border: 1px solid #e2cfa6; background: linear-gradient(180deg, #fffdf8, #fbf4e6); }
.lock h2 { font-size: 30px; }
.lock p { color: var(--text); max-width: 620px; }
.lock-ico { font-size: 30px; width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--wine); }
.next-live { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-decoration: none; color: inherit; border: 1px solid #e2cfa6; }
.c-product h2 { font-size: 28px; margin-bottom: 6px; }
.c-module { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.c-module summary { cursor: pointer; font-weight: 600; color: var(--wine); display: flex; justify-content: space-between; gap: 10px; list-style: none; }
.c-module summary::before { content: '▸'; color: var(--gold); margin-right: 8px; transition: transform .15s; }
.c-module[open] summary::before { transform: rotate(90deg); }
.c-module summary span { margin-left: auto; }
.c-lessons { list-style: none; margin: 8px 0 0; padding: 0; }
.c-lesson { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 9px; color: var(--text); text-decoration: none; }
.c-lesson:hover { background: #fbf6ec; color: var(--wine); }
.c-lesson .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.c-lesson.done .check { background: var(--green); border-color: var(--green); color: #fff; }
.live-card { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; border: 1px solid var(--line); box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.live-card:hover { border-color: #e2cfa6; box-shadow: var(--shadow); }
.live-date { width: 56px; text-align: center; border-radius: 12px; background: var(--wine); color: var(--cream); padding: 6px 0; flex-shrink: 0; }
.live-date strong { display: block; font-family: 'EB Garamond', Georgia, serif; font-size: 26px; line-height: 1; color: #fff; }
.live-date span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--wine); }
.lesson-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.files li:last-child { border-bottom: 0; }
.files a { text-decoration: none; }

/* Celular */
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .menu-btn { display: block; }
  .topbar { padding: 14px 16px 6px; }
  .content > main { padding: 10px 16px 32px; }
  h1 { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .client-head { grid-template-columns: 1fr; }
  .client-head .btns { flex-direction: row; flex-wrap: wrap; }
  .chat-layout { grid-template-columns: 1fr; height: calc(100vh - 110px); }
  .chat-layout.has-chat .conv-list, .chat-layout:not(.has-chat) .chat { display: none; }
  .back-btn { display: block; }
  .calendar .day { min-height: 64px; }
  .calendar .chip { font-size: 0; height: 6px; padding: 0; border-left: 0; background: var(--gold); }
  .hide-sm { display: none; }
  .toasts { left: 16px; right: 16px; }
  .apply-hero h1 { font-size: 32px; }
  .apply-card { margin: -64px 16px 32px; padding: 22px 18px; }
  .v-hero { padding: 92px 16px 56px; }
  .v-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .v-hero h1 { font-size: 38px; }
  .site-nav { padding: 14px 16px; gap: 12px; }
  .site-nav .hide-sm { display: none; }
  .v-main { padding: 8px 16px 48px; }
  .v-section { margin-top: 56px; }
  .v-section > h2, .v-final h2 { font-size: 32px; }
  .h-wrap, .h-hero-inner { padding: 0 20px; }
  .h-nav { padding: 14px 16px; }
  .h-seal img { width: 72px; }
  .h-links { gap: 16px; padding-top: 14px; }
  .h-hero { padding: 120px 0 80px; }
  .h-hero-inner, .h-split, .h-about { grid-template-columns: 1fr; gap: 48px; }
  .h-hero h1 { font-size: 36px; }
  .h-lead { font-size: 16px; }
  .h-video::before { inset: -10px 10px 10px -10px; }
  .h-watermark { width: 460px; right: -140px; bottom: -80px; }
  .h-section { padding: 80px 0; }
  .h-section h2 { font-size: 32px; }
  .h-head { margin-bottom: 40px; }
  .h-cols, .h-steps { grid-template-columns: 1fr; gap: 36px; }
  .h-steps::before { display: none; }
  .h-sticky { position: static; }
  .h-pillars li { grid-template-columns: 56px 1fr; padding: 24px 0; }
  .h-pillars span { font-size: 36px; }
  .h-portrait { box-shadow: 14px 14px 0 #efe3cc; max-width: 420px; }
  .h-final { padding: 90px 20px; }
  .h-final h2 { font-size: 34px; }
  .h-band { gap: 12px; letter-spacing: 2px; font-size: 11px; }
  .h-foot { flex-direction: column; text-align: center; gap: 16px; }
  .h-foot nav { flex-wrap: wrap; justify-content: center; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 20px; }
  .auth-side img { width: 150px; }
  .auth-side h1 { font-size: 30px; margin-top: 16px; }
  .auth-side p { display: none; }
  .c-top { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px 0; }
  .c-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .c-nav a { white-space: nowrap; }
  .c-out { margin-left: auto; }
  .c-main { padding: 22px 16px 48px; }
  .c-hello h1 { font-size: 34px; }
  .c-title { font-size: 30px; }
  .lock { flex-direction: column; }
}

/* Link de agendamento (/agendar) */
.agenda-dias { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.agenda-dia { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; cursor: pointer; color: var(--text); }
.agenda-dia span { font-size: 12px; text-transform: capitalize; color: var(--muted); }
.agenda-dia[aria-pressed="true"] { border-color: var(--wine); background: var(--wine); color: #fff; }
.agenda-dia[aria-pressed="true"] span { color: #F3E3E5; }
.agenda-horarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.agenda-hora { padding: 10px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
.agenda-hora:hover, .agenda-dia:hover { border-color: var(--wine); }
.agenda-hora[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
