/* =========================================================
   Desabrochando — design system
   ========================================================= */
:root {
  /* Palette inspired by Eliza Almeida's brand: blush, rose-wine, rose gold, sage */
  --bg: #FCF7F4;
  --bg-soft: #F7ECE8;
  --surface: #FFFFFF;
  --surface-2: #FDF8F6;
  --ink: #3A2A30;
  --ink-2: #5C4850;
  --muted: #8C767D;
  --line: #F0E1DC;
  --line-2: #E5D0CA;
  --brand: #A4506A;
  --brand-600: #873D55;
  --brand-50: #FAEBEF;
  --brand-100: #F3D4DD;
  --coral: #D88A98;
  --coral-50: #FCEFF1;
  --violet: #8E9B7A;
  --violet-50: #EFF2EA;
  --sun: #C49A6C;
  --sun-50: #F8EEE2;
  --gold: #C49A6C;
  --script: 'Great Vibes', 'Brush Script MT', cursive;
  --ok: #2F8F5B; --ok-50: #E6F4EC;
  --warn: #B7791F; --warn-50: #FBF1DE;
  --err: #C2473A; --err-50: #FBEAE7;
  --info: #2F6FB0; --info-50: #E7F0FA;
  --shadow-sm: 0 1px 2px rgba(24,33,46,.05), 0 1px 1px rgba(24,33,46,.03);
  --shadow: 0 1px 2px rgba(24,33,46,.04), 0 8px 24px -8px rgba(24,33,46,.12);
  --shadow-lg: 0 2px 4px rgba(24,33,46,.04), 0 24px 48px -16px rgba(24,33,46,.22);
  --radius-sm: 10px; --radius: 16px; --radius-lg: 24px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --max: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg:#1A1316; --bg-soft:#20171B; --surface:#261C21; --surface-2:#2B2026; --ink:#F7ECEF; --ink-2:#DCC9CF; --muted:#A8929A; --line:#3A2C32; --line-2:#48363E; --brand:#E59DB0; --brand-600:#F0B6C5; --brand-50:#35222A; --brand-100:#4A2D38; --coral:#EAA3AF; --coral-50:#3A2328; --violet:#B3C09D; --violet-50:#252A20; --sun:#DDB78B; --sun-50:#33281D; --gold:#DDB78B; --ok:#5CC08A; --ok-50:#16291F; --warn:#E2B05A; --warn-50:#2D2415; --err:#EE7D70; --err-50:#33191A; --info:#74A9E3; --info-50:#16233A; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5); --shadow-lg: 0 24px 48px -16px rgba(0,0,0,.6); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg:#1A1316; --bg-soft:#20171B; --surface:#261C21; --surface-2:#2B2026; --ink:#F7ECEF; --ink-2:#DCC9CF; --muted:#A8929A; --line:#3A2C32; --line-2:#48363E; --brand:#E59DB0; --brand-600:#F0B6C5; --brand-50:#35222A; --brand-100:#4A2D38; --coral:#EAA3AF; --coral-50:#3A2328; --violet:#B3C09D; --violet-50:#252A20; --sun:#DDB78B; --sun-50:#33281D; --gold:#DDB78B; --ok:#5CC08A; --ok-50:#16291F; --warn:#E2B05A; --warn-50:#2D2415; --err:#EE7D70; --err-50:#33191A; --info:#74A9E3; --info-50:#16233A; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -8px rgba(0,0,0,.5); --shadow-lg: 0 24px 48px -16px rgba(0,0,0,.6); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-100); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--serif); font-optical-sizing: auto; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: var(--b); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap; }
:root[data-theme="dark"] .btn:not(.btn-ghost):not(.btn-outline):not(.btn-soft) { color: #1A1316; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.btn-ghost):not(.btn-outline):not(.btn-soft) { color: #1A1316; } }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--b) 60%, transparent); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { background: var(--surface); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); box-shadow: none; }
.btn-soft { background: var(--brand-50); color: var(--brand-600); }
.btn-soft:hover { box-shadow: none; background: var(--brand-100); }
.btn-danger { --b: var(--err); }
.btn-ok { --b: var(--ok); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-soft); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font: 500 11px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { background: var(--bg-soft); color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.user-menu { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 14px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .16s ease; }
.user-menu.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--ink-2); text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg-soft); color: var(--ink); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.dropdown .who { padding: 10px 12px 8px; font-size: 13px; color: var(--muted); }
.dropdown .who strong { display: block; color: var(--ink); font-size: 14px; }

.avatar { --h: 170; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-weight: 600; font-size: 13px; color: hsl(var(--h) 45% 25%); background: linear-gradient(135deg, hsl(var(--h) 60% 86%), hsl(calc(var(--h) + 40) 60% 80%)); letter-spacing: .02em; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 56px; height: 56px; font-size: 19px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; }
.hero::before { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 40%, transparent), transparent 70%); }
.hero::after { width: 460px; height: 460px; left: -160px; bottom: -220px; background: radial-gradient(circle, color-mix(in srgb, var(--coral) 35%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.03; letter-spacing: -.025em; margin: 22px 0 20px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 560px; margin: 0 0 32px; }
.search { display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 6px 6px 6px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; height: 44px; font-size: 16px; min-width: 0; }
.search .icon { color: var(--muted); }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1; }
.hero-stats span { font-size: 14px; color: var(--muted); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; animation: float 7s ease-in-out infinite; }
.hero-card:nth-child(2) { animation-delay: -2.5s; }
.hero-card:nth-child(3) { animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Responsive header helpers ---------- */
.only-mobile { display: none; }
.dash-layout { grid-template-columns: 1.4fr 1fr; }
.admin-top h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.admin-top > div { flex: none; }
.brand > span { white-space: nowrap; }
@media (max-width: 1180px) { .mod-label { display: none; } .nav { gap: 18px; } .nav-links a { padding: 8px 11px; } }
@media (max-width: 1080px) { .dash-layout { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .only-mobile { display: flex; }
  .mobile-extra { flex-direction: column; gap: 4px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
  .mobile-extra a, .mobile-extra button { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 0; background: none; font: 500 15px var(--font); color: var(--ink-2); cursor: pointer; text-align: left; }
  .mobile-extra button:hover, .mobile-extra a:hover { background: var(--bg-soft); }
}
@media (max-width: 640px) {
  .nav { gap: 10px; height: 64px; }
  .nav-links { top: 64px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand small { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .hdr-theme, .mod-btn { display: none; }
  .nav-actions { gap: 6px; }
  .user-trigger { padding: 3px; }
  .mode-text { display: none; }
  .admin-top { gap: 8px; }
  .admin-top h1 { font-size: 16px; }
}
@media (max-width: 400px) { .hdr-join { display: none; } }

/* ---------- Moderator access ---------- */
.mod-btn { position: relative; height: 40px; padding: 0 16px; font-size: 14px; }
.mod-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.site-footer ul a .icon { width: 15px; height: 15px; vertical-align: -2px; }
@media (max-width: 640px) { .mod-label { display: none; } .mod-btn { padding: 0 12px; } }

/* ---------- Brand: script + portrait + founder ---------- */
.script { font-family: var(--script); font-weight: 400; font-style: normal; color: var(--brand); letter-spacing: 0; }
.hero h1 em { font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.22em; letter-spacing: 0; line-height: .9; display: inline-block; padding-top: .08em; }
.portrait { position: absolute; inset: 4%; border-radius: 50%; padding: 10px; background: conic-gradient(from 210deg, #E9CBA7, #D88A98, #A4506A, #E9CBA7, #F3D4DD, #E9CBA7); box-shadow: var(--shadow-lg); }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid var(--surface); transform: scale(1.0); }
.hero-art .hero-card { z-index: 2; }
.founder-section { background: linear-gradient(180deg, var(--bg) 0%, var(--brand-50) 100%); }
.founder { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: center; }
.founder-photo { position: relative; aspect-ratio: 1; }
.founder-photo::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--gold) 70%, transparent); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-lg); }
.founder-name { font-size: clamp(56px, 7vw, 84px); line-height: 1; margin: 10px 0 6px; }
.founder-role { font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.founder-role span { color: var(--coral); margin: 0 6px; }
.founder-quote { font-family: var(--serif); font-size: 24px; line-height: 1.45; color: var(--ink); margin: 22px 0 14px; }
.founder-quote .script { font-size: 1.6em; line-height: .8; }
.founder-story p { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; margin: 0 0 14px; }
.founder-story strong { color: var(--brand); font-weight: 600; }
.founder-story .founder-sign { font-size: 34px; line-height: 1; margin: 6px 0 18px; color: var(--brand); }
.founder-role { line-height: 1.8; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.pillar { text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pillar span { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: color-mix(in srgb, var(--c) 80%, var(--ink)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.pillar span .icon { width: 24px; height: 24px; stroke-width: 1.6; }
.pillar strong { display: block; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); }
.kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; position: relative; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.post-cover { --c: var(--brand); aspect-ratio: 16/8; position: relative; overflow: hidden; background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.post-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin: 4px 0 0; }
.post-body h3 a::after { content: ""; position: absolute; inset: 0; }
.post-body p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.post-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.post-foot strong { font-weight: 600; }

.pill { --c: var(--brand); display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--c) 85%, var(--ink)); background: color-mix(in srgb, var(--c) 13%, transparent); width: fit-content; position: relative; z-index: 1; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

.featured { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); position: relative; transition: box-shadow .25s; }
.featured:hover { box-shadow: var(--shadow-lg); }
.featured .post-cover { aspect-ratio: auto; min-height: 380px; }
.featured .post-body { padding: 44px; justify-content: center; gap: 16px; }
.featured h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; }
.featured .post-body p { -webkit-line-clamp: 4; font-size: 17px; }
.badge-feat { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }

.cat-card { --c: var(--brand); display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: .2s; position: relative; overflow: hidden; }
.cat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, transparent); transition: transform .35s ease; }
.cat-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card:hover::after { transform: scale(1.5); }
.cat-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.cat-card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.cat-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.cat-card .count { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: auto; }

.cta-band { border-radius: 32px; padding: 56px; background: linear-gradient(135deg, #873D55 0%, #A4506A 50%, #C97D90 100%); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -100px; bottom: -200px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.cta-band p { margin: 0; opacity: .88; font-size: 17px; }
.cta-band .btn { --b: #fff; color: #873D55 !important; }
.steps { display: grid; gap: 12px; position: relative; z-index: 1; }
.step { display: flex; gap: 14px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: 14px 16px; border-radius: 16px; font-size: 15px; }
.step b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #A4506A; font-size: 13px; flex: none; }

/* ---------- Article ---------- */
.article-hero { padding: 56px 0 32px; text-align: center; }
.article-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.025em; margin: 18px auto 18px; max-width: 900px; }
.article-hero .lead { font-size: 20px; color: var(--ink-2); max-width: 720px; margin: 0 auto 28px; line-height: 1.55; }
.byline { display: inline-flex; align-items: center; gap: 12px; text-align: left; font-size: 14px; }
.byline strong { display: block; font-size: 15px; }
.article-cover { max-width: 1040px; margin: 0 auto; border-radius: 28px; overflow: hidden; aspect-ratio: 21/8; }
.prose { font-size: 18.5px; line-height: 1.8; color: var(--ink-2); max-width: 700px; margin: 0 auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -.015em; line-height: 1.25; margin-top: 1.8em; }
.prose h2 { font-size: 30px; } .prose h3 { font-size: 24px; }
.prose p { margin: 0; } .prose p + p { margin-top: 1.1em; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--coral); font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink); line-height: 1.5; }
.prose ul, .prose ol { padding-left: 1.4em; } .prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.prose pre { background: var(--bg-soft); padding: 18px; border-radius: 14px; overflow: auto; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose img { border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; } .prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--coral)); width: 0; z-index: 60; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 15px; }
.notice .icon { margin-top: 3px; }
.notice-warn { background: var(--warn-50); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--ink); }
.notice-err { background: var(--err-50); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.notice-ok { background: var(--ok-50); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.notice-info { background: var(--info-50); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.author-box { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); max-width: 700px; margin: 56px auto 0; }
.share { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; font-size: 15.5px; }
.textarea { height: auto; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line-2)); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236A7385' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-wrap .toggle-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-errors { padding: 14px 16px; border-radius: 12px; background: var(--err-50); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); color: var(--ink); font-size: 14px; }
.form-errors ul { margin: 0; padding-left: 18px; } .form-errors li + li { margin-top: 4px; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.strength i { height: 4px; border-radius: 4px; background: var(--line); transition: background .2s; }
.strength[data-score="1"] i:nth-child(-n+1) { background: var(--err); }
.strength[data-score="2"] i:nth-child(-n+2) { background: var(--warn); }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--sun); }
.strength[data-score="4"] i { background: var(--ok); }
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pw-rules span::before { content: "○ "; }
.pw-rules span.ok { color: var(--ok); } .pw-rules span.ok::before { content: "● "; }

/* ---------- Auth ---------- */
.auth { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: linear-gradient(160deg, #873D55, #A4506A 55%, #D592A2); color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; right: -260px; top: -200px; border: 80px solid rgba(255,255,255,.06); }
.auth-side h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 16px; position: relative; }
.auth-side p { opacity: .88; font-size: 17px; max-width: 440px; margin: 0; }
.auth-quote { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 22px; font-family: var(--serif); font-size: 19px; line-height: 1.5; font-style: italic; max-width: 460px; position: relative; }
.auth-quote small { display: block; font: 500 13px var(--font); font-style: normal; opacity: .8; margin-top: 12px; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-family: var(--serif); font-weight: 500; font-size: 36px; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.1; }
.auth-box .sub { color: var(--muted); margin: 0 0 28px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 24px; }
.auth-alt a, .link { color: var(--brand); font-weight: 600; }
.link:hover { text-decoration: underline; }
.center-card { max-width: 520px; margin: 72px auto; text-align: center; padding: 48px 40px; }
.big-icon { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 22px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.big-icon .icon { width: 34px; height: 34px; stroke-width: 1.7; }
.center-card h1 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 0 0 12px; letter-spacing: -.02em; }

/* ---------- Dashboard (member) ---------- */
.page-head { padding: 40px 0 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.02em; margin: 6px 0 0; line-height: 1.1; }
.stat { padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat .value { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.stat .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.stat .ico .icon { width: 16px; height: 16px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 999px; width: fit-content; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.tabs a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs .n { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 18px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.list-item:hover { background: var(--surface-2); }
.list-item h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-draft { background: var(--bg-soft); color: var(--muted); }
.status-pending { background: var(--warn-50); color: var(--warn); }
.status-approved { background: var(--ok-50); color: var(--ok); }
.status-rejected { background: var(--err-50); color: var(--err); }
.reject-box { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--err-50); font-size: 14px; color: var(--ink-2); border-left: 3px solid var(--err); }
.reject-box strong { color: var(--err); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 2px; }
.empty { text-align: center; padding: 64px 24px; }
.empty .big-icon { background: var(--bg-soft); color: var(--muted); }
.empty h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 8px; }

/* ---------- Editor ---------- */
.editor-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; padding-bottom: 80px; }
.title-input { width: 100%; border: 0; outline: 0; background: transparent; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 42px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; padding: 0; resize: none; overflow: hidden; }
.title-input::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.toolbar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; background: var(--surface-2); border-radius: 16px 16px 0 0; }
.toolbar button { width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.toolbar button:hover { background: var(--bg-soft); color: var(--ink); }
.toolbar .divider { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.toolbar .mode { margin-left: auto; display: flex; gap: 2px; background: var(--bg-soft); border-radius: 10px; padding: 3px; }
.toolbar .mode button { width: auto; padding: 0 12px; height: 30px; font-size: 13px; font-weight: 600; color: var(--muted); }
.toolbar .mode button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.editor-area { border: 0; outline: 0; width: 100%; min-height: 460px; padding: 22px 24px; resize: vertical; background: transparent; font: 400 16.5px/1.75 var(--font); }
.editor-preview { padding: 22px 28px; min-height: 460px; }
.editor-preview .prose { margin: 0; max-width: none; font-size: 17px; }
.editor-foot { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.side-sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.tips { font-size: 14px; color: var(--ink-2); }
.tips li + li { margin-top: 8px; }
.tips ul { padding-left: 18px; margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 56px; background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; color: var(--muted); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.site-footer ul a { color: var(--ink-2); } .site-footer ul a:hover { color: var(--brand); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 14.5px; animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2); }
.toast .icon { margin-top: 2px; }
.toast-success .icon { color: #6FD3A0; } .toast-error .icon { color: #FF9B8E; } .toast-info .icon { color: #8EC5FF; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 0 0 0 8px; font-size: 18px; line-height: 1; }
.toast.hide { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; }
.pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { --c: var(--brand); height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: .15s; }
.chip:hover { border-color: var(--line-2); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ---------- Modal ---------- */
dialog { border: 0; padding: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(15,20,27,.45); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .25s cubic-bezier(.2,.9,.3,1.15); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }
.modal-head { padding: 24px 28px 0; } .modal-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.modal-body { padding: 18px 28px; } .modal-foot { padding: 0 28px 24px; display: flex; justify-content: flex-end; gap: 10px; }

/* =========================================================
   Admin
   ========================================================= */
.admin { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.admin-side { background: #2A1D23; color: #E6D3D9; padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.admin-side .brand { color: #fff; padding: 4px 10px 22px; font-size: 20px; }
.admin-side .brand small { color: #B89AA4; }
.admin-side .group { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #A68792; padding: 16px 12px 6px; font-weight: 600; }
.admin-side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; font-size: 14.5px; font-weight: 500; color: #D9C3CA; transition: .15s; }
.admin-side a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-side a.active { background: rgba(229,157,176,.16); color: #fff; }
.admin-side a.active .icon { color: #F0B6C5; }
.admin-side .count { margin-left: auto; background: var(--coral); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.admin-side .side-foot { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid rgba(255,255,255,.07); display: flex; gap: 10px; align-items: center; font-size: 13px; }
.admin-side .side-foot strong { color: #fff; display: block; font-size: 14px; }
.admin-main { min-width: 0; background: var(--bg); }
.admin-top { height: 68px; display: flex; align-items: center; gap: 14px; padding: 0 32px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.admin-top h1 { font-size: 18px; font-weight: 600; margin: 0; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.admin-content { padding: 28px 32px 64px; max-width: 1360px; }
.mode-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.mode-badge.simulado { background: var(--warn-50); color: var(--warn); }
.mode-badge.real { background: var(--ok-50); color: var(--ok); }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .title-cell { font-weight: 600; max-width: 420px; }
.table .title-cell a:hover { color: var(--brand); }
.card-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.queue-item { display: flex; gap: 14px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line); transition: background .15s; }
.queue-item:first-of-type { border-top: 0; }
.queue-item:hover { background: var(--surface-2); }
.queue-item h3 { margin: 0 0 3px; font-size: 15px; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 8px 22px 18px; }
.timeline li { position: relative; padding: 12px 0 12px 26px; font-size: 14px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.timeline li.approved::before { border-color: var(--ok); background: var(--ok); }
.timeline li.rejected::before { border-color: var(--err); background: var(--err); }
.timeline li.submitted::before, .timeline li.resubmitted::before { border-color: var(--warn); }
.timeline .when { font-size: 12.5px; color: var(--muted); }
.review-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.review-paper { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 48px 56px; box-shadow: var(--shadow-sm); }
.review-paper h1 { font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 12px; }
.review-paper .lead { font-size: 18px; color: var(--ink-2); margin: 0 0 24px; }
.review-paper .prose { margin: 0; max-width: none; }
.decision { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reason-chips button { font-size: 12.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--ink-2); }
.reason-chips button:hover { border-color: var(--err); color: var(--err); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; padding: 18px 22px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-weight: 500; }
.email-frame { width: 100%; height: 720px; border: 0; border-radius: 0 0 16px 16px; background: #F5F1EA; }
.admin-mobile-toggle { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .review-layout, .editor-layout { grid-template-columns: 1fr; }
  .side-sticky { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .featured, .cta-band, .auth { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; justify-self: center; order: -1; }
  .hero-art .hero-card { display: none; }
  .founder { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .founder-photo { max-width: 300px; margin: 0 auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .featured .post-cover { min-height: 220px; }
  .featured .post-body { padding: 28px; }
  .auth-side { display: none; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--surface); padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-grid; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; z-index: 70; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s; }
  .admin-side.open { transform: none; box-shadow: var(--shadow-lg); }
  .admin-mobile-toggle { display: inline-grid; }
  .admin-top, .admin-content { padding-left: 16px; padding-right: 16px; }
  .review-paper { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .grid-4:has(> .stat) { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 16px; } .stat .value { font-size: 28px; }
  .hero { padding: 40px 0 56px; }
  .hero-stats { gap: 24px; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .cta-band { padding: 32px 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .user-trigger .name { display: none; }
  .nav-actions .btn-ghost.hide-sm { display: none; }
  .list-item { flex-wrap: wrap; padding: 16px; }
  .center-card { margin: 32px auto; padding: 32px 20px; }
  .prose { font-size: 17px; }
}

/* ---------- Cadastro em etapas / celular ---------- */
.signup-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 24px; counter-reset: s; }
.signup-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 10px; border-bottom: 3px solid var(--line); min-width: 0; white-space: nowrap; }
.signup-steps .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg-soft); font-size: 12px; }
.signup-steps .n svg { width: 14px; height: 14px; }
.signup-steps li.current { color: var(--brand); border-color: var(--brand); }
.signup-steps li.current .n { background: var(--brand); color: #fff; }
.signup-steps li.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.signup-steps li.done .n { background: var(--ok-50); color: var(--ok); }
.center-card .signup-steps { text-align: left; }
.phone-input { display: flex; align-items: stretch; }
.phone-input .ddi { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: 12px 0 0 12px; background: var(--bg-soft); font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.phone-input .input { border-radius: 0 12px 12px 0; min-width: 0; flex: 1; }
fieldset.channel-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.channel-pick legend { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 7px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); background: var(--surface); transition: .15s; }
.seg span svg { width: 18px; height: 18px; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.otp-input { text-align: center; font-size: 30px; letter-spacing: .5em; padding-left: .5em; height: 64px; font-weight: 600; font-variant-numeric: tabular-nums; }
.otp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 14px; }
.dev-code { margin-top: 18px; } .dev-code code { font-size: 16px; font-weight: 700; letter-spacing: .15em; background: var(--surface); padding: 2px 8px; border-radius: 6px; }
.welcome-list { list-style: none; padding: 0; margin: 26px 0 0; text-align: left; display: grid; gap: 12px; }
.welcome-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); font-size: 14.5px; color: var(--ink-2); }
.welcome-list li > span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.welcome-list strong { display: block; color: var(--ink); }

/* ---------- Mídia nas publicações ---------- */
.toolbar button.tb-label { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; }
.editor-area.dropping { background: var(--brand-50); outline: 2px dashed var(--brand); outline-offset: -10px; }
.upload-status { padding: 12px 24px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.upload-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--ink-2); } .upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; } .upload-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.prose figure.media { margin: 1.8em 0; }
.prose figure.media img, .prose figure.media video { display: block; width: 100%; max-height: 640px; object-fit: contain; border-radius: 16px; background: var(--bg-soft); }
.prose figure.media figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); text-align: center; }
.prose .media-embed { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }
.prose .media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; }
.media-summary span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: var(--bg-soft); font-size: 13px; font-weight: 600; color: var(--ink-2); } .media-summary svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .toolbar button.tb-label span { display: none; } .toolbar button.tb-label { width: 36px; padding: 0; justify-content: center; }
  .signup-steps li { font-size: 0; gap: 0; justify-content: center; } .signup-steps .n { font-size: 12px; }
  .otp-input { font-size: 24px; letter-spacing: .35em; }
}

/* Evita que links/palavras muito longas ou mídias estiquem a página */
.prose { overflow-wrap: anywhere; }
.review-layout > *, .editor-layout > *, .dash-layout > * { min-width: 0; }
.prose figure.media video { max-width: 100%; }
@media (max-width: 480px) { .welcome-card .row > .btn { flex: 1 1 100%; justify-content: center; white-space: normal; text-align: center; } }
body { overflow-wrap: break-word; }
h1, h2, h3, .lead, .post-card, .queue-item, .title-cell { overflow-wrap: anywhere; }

/* ---------- Página do app Android ---------- */
.app-hero { padding-top: 56px; }
.app-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.app-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.025em; margin: 14px 0 16px; }
.app-hero h1 .script { font-size: 1.12em; }
.app-hero .lead { font-size: 18px; line-height: 1.65; color: var(--ink-2); margin: 0; max-width: 560px; }
.app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.app-download { gap: 14px; padding: 14px 26px 14px 20px; height: auto; text-align: left; }
.app-download svg { width: 26px; height: 26px; flex: none; }
.app-download span { display: flex; flex-direction: column; line-height: 1.25; }
.app-download small { font-weight: 500; opacity: .85; font-size: 13px; }
.app-req { font-size: 13.5px; }
.app-perks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.app-perks li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; color: var(--ink-2); }
.app-perks li span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.app-perks svg { width: 18px; height: 18px; }
.app-visual { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.phone { width: 260px; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 11px; background: linear-gradient(160deg, #3A2A30, #1E1519); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset; position: relative; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; border-radius: 99px; background: #120C0F; transform: translateX(-50%); z-index: 2; }
.phone-screen { height: 100%; border-radius: 30px; overflow: hidden; background: var(--bg); padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.phone-bar { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.phone-logo svg { width: 24px; height: 24px; display: block; }
.phone-card { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 12px; display: grid; gap: 7px; }
.phone-card::before { content: ""; height: 56px; border-radius: 9px; background: linear-gradient(135deg, #E9C9B0, #D88A98 60%, #A4506A); opacity: .55; }
.phone-card.alt::before { background: linear-gradient(135deg, #C9D1BC, #8E9B7A); }
.phone-card i { display: block; height: 7px; border-radius: 99px; background: var(--line-2); width: var(--w); }
.phone-fab { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 8px 18px -6px rgba(164,80,106,.7); }
.phone-fab svg { width: 20px; height: 20px; }
.app-qr { display: flex; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; max-width: 360px; }
.app-qr .qr { width: 96px; height: 96px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; padding: 4px; }
.app-qr .qr svg { width: 100%; height: 100%; display: block; }
.app-qr strong { display: block; color: var(--ink); } .app-qr span { font-size: 14px; }
.install-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.install-steps li { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.install-steps b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 15px; }
.install-steps strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.install-steps code { font-size: 12.5px; overflow-wrap: anywhere; }
.app-tech { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.app-tech summary { cursor: pointer; padding: 14px 20px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.app-tech .hash { font-family: ui-monospace, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.app-badge-btn svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .app-hero-grid { grid-template-columns: 1fr; gap: 40px; } .install-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .app-hero { padding-top: 32px; } .install-steps { grid-template-columns: 1fr; } .app-download { width: 100%; justify-content: center; } .phone { width: 220px; } .app-qr { display: none; } .app-tech .kv { grid-template-columns: 1fr; } .app-tech .kv dd { text-align: left; } }
.nav-links a.nav-app { display: inline-flex; align-items: center; gap: 6px; }
.nav-links a.nav-app svg { width: 16px; height: 16px; }
.cta-band .btn.btn-ghost-light { --b: transparent; background: rgba(255,255,255,.12); color: #fff !important; border: 1.5px solid rgba(255,255,255,.55); }
.cta-band .btn.btn-ghost-light:hover { background: rgba(255,255,255,.22); }
.cta-band .btn.btn-ghost-light svg { width: 18px; height: 18px; }
.site-footer a svg { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- Perguntas e respostas ---------- */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.qa-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; min-width: 0; }
.qa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.qa-card-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qa-card h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; margin: 0; color: var(--ink); }
.qa-card-answer { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qa-card-answer strong { color: var(--brand); }
.qa-card .meta { margin-top: auto; }
.qa-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--brand-50); color: var(--brand); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.qa-badge svg { width: 14px; height: 14px; }
.qa-thread { margin-top: 24px; }
.qa-question { padding: 28px 0 24px; }
.qa-question h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 14px; }
.qa-body { white-space: pre-line; font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }
.qa-answer { position: relative; padding: 26px 28px; border-radius: 22px; background: linear-gradient(180deg, var(--brand-50), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
.qa-answer-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.qa-answer-head .meta { display: block; }
.qa-answer .prose { margin: 0; max-width: none; font-size: 17px; }
.qa-answer-compact { margin-top: 16px; padding: 18px 20px; }
.qa-answer-compact .prose { font-size: 15.5px; }
.qa-mine h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0 0 8px; }
.qa-privacy { display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.qa-alert { margin-bottom: 20px; text-decoration: none; color: inherit; }
.cta-mini { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 40px; padding: 22px 24px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); }
.cta-mini > div { display: grid; gap: 2px; }
@media (max-width: 640px) { .qa-answer { padding: 20px 18px; } .qa-card { padding: 18px; } .cta-mini .btn { width: 100%; justify-content: center; } }

/* Cabeçalho em telas médias (notebooks pequenos/tablets deitados): mais itens no menu cabem sem estourar */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav { gap: 14px; }
  .brand small { display: none; }
  .nav-links a { padding: 8px 9px; font-size: 14.5px; }
  .user-trigger .name { display: none; }
}

/* Seção da fundadora em telas médias: foto menor e pilares em 2 colunas para não estourar */
.founder > * { min-width: 0; }
@media (min-width: 901px) and (max-width: 1180px) {
  .founder { grid-template-columns: 320px 1fr; gap: 44px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

/* Ajustes finos de responsividade */
@media (max-width: 1320px) { .mod-label { display: none; } }
.stat { min-width: 0; }
.stat .label { flex-wrap: wrap; }
@media (max-width: 340px) {
  .grid-4:has(> .stat) { grid-template-columns: 1fr; }
  .card-pad.row.between > form, .card-pad.row.between > form .btn { width: 100%; justify-content: center; white-space: normal; }
}

/* ---------- Convites para participar (visitantes) ---------- */
.btn-glow { box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--brand) 75%, transparent), 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); animation: glowPulse 2.8s ease-in-out infinite; }
.btn-glow:hover { animation-play-state: paused; }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--brand) 75%, transparent), 0 0 0 0 color-mix(in srgb, var(--brand) 40%, transparent); } 50% { box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--brand) 75%, transparent), 0 0 0 8px color-mix(in srgb, var(--brand) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .btn-glow { animation: none; } }
.hero-join { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 14px; }
.hero-join .btn-lg { height: 56px; padding: 0 26px; font-size: 16.5px; }
.hero-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 26px; font-size: 14px; color: var(--ink-2); }
.hero-perks li { display: inline-flex; align-items: center; gap: 6px; }
.hero-perks svg { width: 16px; height: 16px; color: var(--ok); }
.search.search-secondary { max-width: 520px; transform: scale(.96); transform-origin: left center; opacity: .95; }
.join-section { margin-top: 56px; }
.join-band { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 44px; border-radius: 32px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand) 16%, var(--surface)) 0%, var(--surface) 55%), var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.join-band > * { min-width: 0; }
.join-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.join-kicker svg { width: 16px; height: 16px; }
.join-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.02em; margin: 12px 0 14px; }
.join-band p { margin: 0 0 24px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.join-cta { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }
.join-cta .btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.join-proof { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .avatar svg { width: 14px; height: 14px; }
.join-perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.join-perks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.join-perks strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.join-perks .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand); }
.join-perks .ico svg { width: 18px; height: 18px; }
.join-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 22px 24px; border-radius: 22px; background: linear-gradient(135deg, var(--brand-50), var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); }
.join-inline-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.join-inline-text { flex: 1 1 260px; display: grid; gap: 4px; min-width: 0; }
.join-inline-text strong { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--ink); }
.join-inline-text span { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.join-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.join-sticky { position: fixed; left: 50%; bottom: 18px; z-index: 80; display: flex; align-items: center; gap: 14px; width: min(680px, calc(100vw - 24px)); padding: 12px 12px 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line)); box-shadow: var(--shadow-lg); transform: translate(-50%, 140%); opacity: 0; transition: transform .45s cubic-bezier(.2,.9,.3,1.1), opacity .3s; }
.join-sticky.show { transform: translate(-50%, 0); opacity: 1; }
.join-sticky-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand); }
.join-sticky-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.join-sticky-text strong { font-size: 15px; color: var(--ink); }
.join-sticky-text span { font-size: 13.5px; color: var(--muted); }
.join-sticky .btn { flex: none; }
.join-sticky-close { width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; }
.join-sticky-close:hover { background: var(--bg-soft); color: var(--ink); }
.join-sticky-close svg { width: 16px; height: 16px; }
body.has-join-bar { padding-bottom: 92px; }
body.has-join-bar .toasts { bottom: 104px; }
@media (max-width: 900px) {
  .join-band { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .join-section { margin-top: 40px; }
}
@media (max-width: 640px) {
  .hero-join .btn { flex: 1 1 100%; justify-content: center; }
  .search.search-secondary { transform: none; }
  .join-perks { grid-template-columns: 1fr; }
  .join-cta .btn { width: 100%; justify-content: center; }
  .join-inline { padding: 20px; }
  .join-inline-actions, .join-inline-actions .btn-glow { width: 100%; justify-content: center; }
  .join-sticky { bottom: 10px; gap: 10px; padding: 10px; }
  .join-sticky-ico { display: none; }
  .join-sticky-text span { display: none; }
  .join-sticky-text strong { font-size: 14px; }
}
@media (max-width: 1180px) and (min-width: 901px) { .join-band { grid-template-columns: 1fr; gap: 28px; } }
.hero-grid > * { min-width: 0; }
