/* Defy+ · preto e branco · Inter */
@font-face { font-family: 'Inter'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); }
/* Substituta da Gotham (fonte comercial) apenas no logo. Para usar a Gotham, coloque os arquivos em public/fonts e ajuste --font-logo. */
@font-face { font-family: 'Montserrat'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/montserrat-latin-800-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-2: #ececec;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --border: #e3e3e3;
  --primary: #0a0a0a;
  --on-primary: #ffffff;
  --shadow: 0 8px 30px rgba(0, 0, 0, .12);
  --dock-bg: rgba(255, 255, 255, .82);
  --overlay: rgba(0, 0, 0, .45);
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-logo: 'Gotham', 'Montserrat', 'Inter', sans-serif;
  --green-a: #00ff6a;
  --green-b: #00d68f;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #111111;
  --surface-2: #1b1b1b;
  --text: #ffffff;
  --muted: #a3a3a3;
  --border: #262626;
  --primary: #ffffff;
  --on-primary: #000000;
  --shadow: 0 8px 30px rgba(0, 0, 0, .6);
  --dock-bg: rgba(20, 20, 20, .82);
  --overlay: rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55;
  padding-bottom: calc(110px + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
img, video, iframe { max-width: 100%; display: block; }
.icon { flex: none; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: none; margin: 0; padding: 0 clamp(20px, 3vw, 48px); }
.narrow { max-width: 720px; }
main { padding: 28px 0 40px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- logo ---------- */
.logo { font-family: var(--font-logo); font-weight: 600; font-size: 1.6rem; letter-spacing: -.03em; text-decoration: none; display: inline-flex; align-items: baseline; line-height: 1; color: var(--text); }
.logo .plus {
  font-weight: 800;
  background: linear-gradient(135deg, var(--green-a) 0%, var(--green-b) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  margin-left: .04em; font-size: 1.15em; transform: translateY(.03em);
}
.logo.big { font-size: clamp(3rem, 12vw, 6rem); }

/* ---------- header / footer ---------- */
.header { padding: 18px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: .875rem; }
.footer .container { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); text-decoration: none;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .35; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--text); opacity: 1; }
.btn.danger { background: transparent; color: var(--text); border: 1px dashed var(--text); }
.btn.sm { padding: 7px 14px; font-size: .85rem; }
.btn.block { width: 100%; }
.google-btn svg { flex: none; }
.icon-btn { background: transparent; border: 1px solid var(--border); color: var(--text); width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--text); }

/* ---------- formulários ---------- */
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px var(--surface-2); }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { font: inherit; font-size: .875rem; width: 100%; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); flex: none; margin-top: 2px; }
.field { margin-bottom: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 400; margin: 0 0 12px; cursor: pointer; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.code-input { text-align: center; font-size: 2rem; letter-spacing: .6em; font-weight: 700; padding-left: calc(14px + .6em); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card.flat { background: transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.item { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s ease, border-color .15s; }
.item:hover { transform: translateY(-3px); border-color: var(--text); }
.item .cover { aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); overflow: hidden; position: relative; }
.item .cover img { width: 100%; height: 100%; object-fit: cover; }
.item .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item h3 { margin: 0; }
.cover-fallback { font-family: var(--font-logo); font-weight: 800; font-size: 2.2rem; opacity: .35; }
.play-badge { position: absolute; right: 10px; bottom: 10px; background: var(--bg); color: var(--text); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; box-shadow: var(--shadow); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; background: var(--bg); }
.badge.solid { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }

.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); }

/* ---------- avisos ---------- */
.flash { border: 1px solid var(--border); border-left: 4px solid var(--text); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; background: var(--surface); font-size: .95rem; }
.flash.error { border-style: dashed; border-left-style: solid; font-weight: 600; }

/* ---------- filtros ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 16px 0 24px; }
.pill { display: inline-flex; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: .875rem; font-weight: 600; text-decoration: none; }
.pill:hover { border-color: var(--text); }
.pill.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.filters input[type=search] { max-width: 220px; border-radius: 999px; padding: 8px 16px; }

/* ---------- auth ---------- */
.auth { max-width: 440px; margin: 24px auto 0; }
.auth h1 { font-size: 1.9rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------- hero ---------- */
.hero { padding: 40px 0 24px; text-align: center; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 24px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 36px 0 14px; }

/* ---------- player ---------- */
.player { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; }
.player iframe, .player video { width: 100%; height: 100%; border: 0; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.detail-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: .9rem; }
.lesson-list a:hover { background: var(--surface-2); }
.lesson-list a.on { background: var(--primary); color: var(--on-primary); }
.tick { width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; flex: none; opacity: .7; }
.tick.done { background: currentColor; }
.tick.done svg { color: var(--bg); }
.module + .module { margin-top: 18px; }
.lesson-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }

/* ---------- fórum ---------- */
.post { padding: 22px; margin-bottom: 20px; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: .75rem; }
.post-body { white-space: pre-wrap; word-wrap: break-word; }
.media-grid { display: grid; gap: 10px; margin: 14px 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.media-grid img, .media-grid video { width: 100%; border-radius: 12px; background: #000; max-height: 520px; object-fit: contain; }
.media-grid .player { border-radius: 12px; }
.comments { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.comment { display: flex; gap: 10px; margin-bottom: 14px; }
.comment .bubble { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; flex: 1; min-width: 0; }
.comment .who { font-weight: 700; font-size: .875rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.comment .text { white-space: pre-wrap; word-wrap: break-word; font-size: .95rem; }
.comment.reply { margin-left: 40px; }
.comment.hidden .bubble { opacity: .5; border-style: dashed; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea { min-height: 46px; height: 46px; border-radius: 22px; padding: 11px 16px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer; text-decoration: underline; }
.linkbtn:hover { color: var(--text); }
details.reply summary { cursor: pointer; font-size: .8rem; color: var(--muted); list-style: none; display: inline; }
details.reply summary:hover { color: var(--text); }
details.reply[open] summary { margin-bottom: 8px; display: inline-block; }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface); }
tr:last-child td { border-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat b { display: block; font-size: 2rem; letter-spacing: -.03em; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ---------- modal ---------- */
dialog { border: 1px solid var(--border); border-radius: 18px; padding: 0; background: var(--bg); color: var(--text); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: var(--overlay); backdrop-filter: blur(3px); }
dialog form { padding: 24px; }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
dialog .dlg-head h2 { margin: 0; }

/* ---------- dock (balão flutuante) ---------- */
.dock-wrap { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 20px); }
.dock {
  display: flex; align-items: center; gap: 4px; padding: 8px; border-radius: 999px; background: var(--dock-bg); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--shadow);
}
.dock a, .dock button.dock-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; color: var(--text); text-decoration: none;
  font: inherit; font-size: .85rem; font-weight: 600; background: transparent; border: 0; cursor: pointer; white-space: nowrap;
}
.dock a:hover, .dock button.dock-item:hover { background: var(--surface-2); }
.dock a.on { background: var(--primary); color: var(--on-primary); }
.dock .avatar { width: 24px; height: 24px; font-size: .7rem; }
.dock-menu {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: 270px; background: var(--bg); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); padding: 14px; display: none;
}
.dock-menu.open { display: block; }
.dock-menu .who { padding: 4px 6px 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.dock-menu .who b { display: block; }
.dock-menu a, .dock-menu button.menu-link { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 8px; border-radius: 10px; text-decoration: none; background: none; border: 0; font: inherit; font-size: .9rem; color: var(--text); cursor: pointer; }
.dock-menu a:hover, .dock-menu button.menu-link:hover { background: var(--surface-2); }
.theme-switch { display: flex; gap: 4px; background: var(--surface); border-radius: 999px; padding: 4px; margin: 6px 0; }
.theme-switch button { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .78rem; font-weight: 600; padding: 7px 4px; border-radius: 999px; cursor: pointer; display: flex; gap: 5px; align-items: center; justify-content: center; }
.theme-switch button[aria-pressed='true'] { background: var(--primary); color: var(--on-primary); }

/* ---------- misc ---------- */
.danger-zone { border: 1px dashed var(--text); border-radius: var(--radius); padding: 20px; }
.profile-section { padding: 24px 0; border-top: 1px solid var(--border); }
.profile-section:first-of-type { border-top: 0; }
.legal h1 { font-size: 2rem; } .legal h2 { margin-top: 1.8em; } .legal table { margin-bottom: 1em; } .legal td, .legal th { white-space: normal; }
.legal blockquote { margin: 0 0 1.5em; padding: 12px 16px; border-left: 3px solid var(--text); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--muted); }
.legal li { margin-bottom: .4em; }
.error-page { text-align: center; padding: 60px 0; }
.error-page .code { font-family: var(--font-logo); font-size: 6rem; font-weight: 800; line-height: 1; }

@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .lesson-layout, .detail-layout { grid-template-columns: 1fr; }
  .dock a span, .dock button.dock-item span.label { display: none; }
  .dock a, .dock button.dock-item { padding: 12px 14px; }
  .dock a.on span { display: inline; }
  .comment.reply { margin-left: 20px; }
  .header .container { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- landing (hero) ---------- */
.landing-hero { position: relative; min-height: calc(100vh - 220px); min-height: calc(100svh - 220px); display: grid; place-items: center; text-align: center; overflow: hidden; border-radius: 28px; padding: 48px 16px; isolation: isolate; }
.landing-glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at 50% 100%, rgba(0, 255, 106, .28) 0%, rgba(0, 214, 143, .10) 45%, transparent 75%); }
.landing-inner { max-width: 720px; }
.landing-inner h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); margin: .5em 0 .3em; }
.landing-inner .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 580px; margin: 0 auto 28px; }

/* ---------- login dividido ---------- */
.split-body { padding-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr minmax(460px, 38%); min-height: 100vh; min-height: 100svh; }
.split-form { display: flex; flex-direction: column; padding: 32px 56px; background: var(--bg); min-width: 0; }
.split-top { display: flex; justify-content: space-between; align-items: center; }
.split-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.split-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.auth-split h1 { font-size: 1.9rem; }
.split-art { order: -1; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 56px; color: #fff;
  background:
    radial-gradient(70% 60% at 85% 100%, rgba(0, 255, 106, .85) 0%, rgba(0, 214, 143, .35) 40%, transparent 70%),
    linear-gradient(135deg, #000000 0%, #02140a 40%, #036b34 78%, #00ff6a 100%); }
.split-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 40% at 20% 15%, rgba(255, 255, 255, .06), transparent 70%); pointer-events: none; }
.split-art-text { position: relative; z-index: 1; }
.split-art-text p { font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0; max-width: 520px; }
.art-plus { display: block; font-family: var(--font-logo); font-weight: 800; font-size: clamp(5rem, 14vw, 11rem); line-height: .8; margin-bottom: 18px; color: #fff; opacity: .95; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-art { display: none; }
  .split-form { padding: 20px 20px; }
}

/* ---------- sidebar (desktop) ---------- */
.sidebar { display: none; }
.sb-logo { height: 44px; padding: 0 12px; font-size: 1.5rem; flex: none; align-items: baseline; margin-bottom: 6px; }
.sb-rest { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .22s ease, opacity .15s; vertical-align: bottom; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; scrollbar-width: none; }
.sb-nav::-webkit-scrollbar { display: none; }
.sb-title { height: 30px; padding: 14px 12px 0; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; flex: none; }
.sb-link {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px; flex: none; width: 100%;
  text-decoration: none; font: inherit; font-size: .9rem; font-weight: 500; color: var(--text); white-space: nowrap; background: transparent; border: 0; cursor: pointer; text-align: left;
}
.sb-link:hover { background: var(--surface-2); }
.sb-link.on { background: var(--bg); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.sb-link .icon { flex: none; }
.sb-link .avatar { width: 22px; height: 22px; font-size: .6rem; }
.sb-label { opacity: 0; transition: opacity .15s ease; overflow: hidden; text-overflow: ellipsis; }
.sb-user { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sb-user small { font-weight: 400; color: var(--muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; }
.sb-bottom { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 8px; flex: none; }
.sb-theme .i-sun { display: none; }
:root[data-theme='dark'] .sb-theme .i-moon { display: none; }
:root[data-theme='dark'] .sb-theme .i-sun { display: inline-flex; }

@media (min-width: 901px) {
  .has-sidebar { padding-left: 96px; padding-bottom: 0; }
  .has-sidebar .header, .has-sidebar .dock-wrap { display: none; }
  .sidebar {
    display: flex; flex-direction: column; position: fixed; z-index: 60; top: 12px; left: 12px; bottom: 12px; width: 68px; padding: 12px 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
    transition: width .22s ease, box-shadow .22s ease;
  }
  .sidebar:hover, .sidebar:focus-within { width: 248px; box-shadow: var(--shadow); }
  .sidebar:hover .sb-label, .sidebar:focus-within .sb-label { opacity: 1; }
  .sidebar:hover .sb-rest, .sidebar:focus-within .sb-rest { max-width: 3ch; opacity: 1; }
  .has-sidebar main { padding-top: 48px; }
}

/* ---------- painel inicial ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.home-head { margin-top: 8px; }
.home-head h1 { margin-bottom: .15em; }
.home-cards { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.quote-card { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.quote-card .eyebrow { color: inherit; opacity: .65; }
.quote-card blockquote { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2.1rem); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.resume-card { padding: 24px; display: flex; flex-direction: column; gap: 4px; min-height: 240px; }
.resume-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.resume-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); text-decoration: none; }
.resume-item:hover { border-color: var(--text); }
.resume-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-item .small { display: block; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-empty { margin: auto 0; }
@media (max-width: 900px) { .home-cards { grid-template-columns: 1fr; } .quote-card, .resume-card { min-height: 0; } }

/* ---------- modal de sucesso ---------- */
.flash-modal { width: min(400px, calc(100vw - 32px)); text-align: center; }
.flash-modal-body { padding: 32px 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flash-modal-body p { margin: 8px 0 20px; font-size: 1.05rem; font-weight: 500; }
.flash-modal-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.flash-modal[open] { animation: flash-pop .18s ease-out; }
@keyframes flash-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- login: verde em todo o painel, malha fluida + ruído ---------- */
.split-art { background: #02a851; isolation: isolate; }
.split-art::before, .split-art::after { display: none; }
.art-layer { position: absolute; inset: -35%; z-index: 0; pointer-events: none; will-change: transform; }
.art-layer.l1 { background: radial-gradient(45% 45% at 28% 30%, #00ff6a 0%, rgba(0, 255, 106, 0) 100%); animation: mesh-a 12s ease-in-out infinite alternate; }
.art-layer.l2 { background: radial-gradient(50% 50% at 72% 68%, #035a2c 0%, rgba(3, 90, 44, 0) 100%); animation: mesh-b 15s ease-in-out infinite alternate; }
.art-layer.l3 { background: radial-gradient(40% 40% at 65% 25%, #6bffb3 0%, rgba(107, 255, 179, 0) 100%); animation: mesh-c 10s ease-in-out infinite alternate; opacity: .8; }
@keyframes mesh-a { 0% { transform: translate(-8%, -6%) rotate(0deg) scale(1); } 100% { transform: translate(14%, 12%) rotate(40deg) scale(1.25); } }
@keyframes mesh-b { 0% { transform: translate(10%, 8%) rotate(0deg) scale(1.1); } 100% { transform: translate(-14%, -10%) rotate(-50deg) scale(.9); } }
@keyframes mesh-c { 0% { transform: translate(6%, -10%) scale(.9); } 100% { transform: translate(-12%, 14%) rotate(30deg) scale(1.2); } }
.art-noise {
  position: absolute; inset: -50%; z-index: 0; pointer-events: none; opacity: .55; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px; animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 17% { transform: translate(-4%, 3%); } 33% { transform: translate(3%, -5%); } 50% { transform: translate(-5%, -2%); } 67% { transform: translate(4%, 4%); } 83% { transform: translate(-2%, 5%); } 100% { transform: translate(0, 0); } }
@media (prefers-reduced-motion: reduce) { .art-layer, .art-noise { animation: none; } }
