/* Ly v2 · tokens (fonte: Identidade/03-Design/tokens.md) */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --ly-bg: #f2f1ee;
  --ly-surface: #ffffff;
  --ly-title: #1a1614;
  --ly-text: #4a4541;
  --ly-muted: #6e6862;
  --ly-border: #e4e1dc;
  --ly-accent: #2447c6;
  --ly-accent-soft: #e4e9fa;
  --ly-on-accent: #ffffff;
  --ly-success: #2d7b4b;  --ly-success-soft: #dce3db;
  --ly-warning: #865c0a;  --ly-warning-soft: #e7dfd2;
  --ly-neutral-soft: #f7f6f4;
  --ly-cta-bg: #1a1614;   --ly-cta-title: #f5f2ee;  --ly-cta-text: #cfc8c0;

  --ly-font: 'Geist', system-ui, sans-serif;
  --ly-font-mono: 'Geist Mono', ui-monospace, monospace;
  --ly-font-logo: Georgia, 'Times New Roman', serif; /* TODO: serifada itálica oficial do logo */
  --ly-fs-display: clamp(40px, 6.4vw, 64px);
  --ly-fs-h2: clamp(30px, 4vw, 40px);
  --ly-fs-h3: 22px;
  --ly-fs-body: 16px;
  --ly-lh-body: 1.7;
  --ly-fs-caption: 13px;
  --ly-fs-mono: 13px;
  --ly-radius-pill: 999px;
  --ly-radius-card: 16px;
  --ly-max: 1120px;
  color-scheme: light;
}

[data-theme="dark"] {
  --ly-bg: #0f0d0c;
  --ly-surface: #181513;
  --ly-title: #f5f2ee;
  --ly-text: #cfc8c0;
  --ly-muted: #9c948b;
  --ly-border: #2a2623;
  --ly-accent: #7d9bff;
  --ly-accent-soft: #1a2447;
  --ly-on-accent: #0f0d0c;
  --ly-success: #65c588;  --ly-success-soft: #1c261e;
  --ly-warning: #e2b560;  --ly-warning-soft: #2d2518;
  --ly-neutral-soft: #201c19;
  --ly-cta-bg: #181513;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ly-bg);
  color: var(--ly-text);
  font: 400 var(--ly-fs-body)/var(--ly-lh-body) var(--ly-font);
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}
img { max-width: 100%; display: block; }
a { color: var(--ly-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ly-title); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: var(--ly-fs-display); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: var(--ly-fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--ly-fs-h3); }
p { margin: 0; }
.mono { font-family: var(--ly-font-mono); font-size: var(--ly-fs-mono); }
.muted { color: var(--ly-muted); }
.caption { font-size: var(--ly-fs-caption); color: var(--ly-muted); }

.container { width: 100%; max-width: var(--ly-max); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head p { max-width: 560px; margin-top: 12px; }

/* Logo */
.logo { display: inline-flex; align-items: baseline; color: var(--ly-title); font: italic 400 28px/1 var(--ly-font-logo); letter-spacing: -0.02em; text-decoration: none !important; }
.logo::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ly-accent); margin-left: 2px; }

/* Navbar pílula flutuante */
.nav-wrap { position: sticky; top: 16px; z-index: 50; padding: 0 16px; }
.nav {
  max-width: var(--ly-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ly-surface); border: 1px solid var(--ly-border);
  border-radius: var(--ly-radius-pill); padding: 10px 10px 10px 24px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { color: var(--ly-text); font-size: 14px; padding: 8px 12px; border-radius: var(--ly-radius-pill); }
.nav-links a:not(.btn):hover { color: var(--ly-title); background: var(--ly-neutral-soft); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ly-title); font-weight: 500; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 0; background: transparent; color: var(--ly-text); border-radius: 50%; cursor: pointer;
}
.icon-btn:hover { background: var(--ly-neutral-soft); color: var(--ly-title); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px/1 var(--ly-font); padding: 12px 20px; border-radius: var(--ly-radius-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .15s, background .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ly-accent); color: var(--ly-on-accent); }
.btn-primary:hover { opacity: .9; }
.btn-secondary { background: var(--ly-surface); color: var(--ly-title); border-color: var(--ly-title); }
.btn-secondary:hover { background: var(--ly-neutral-soft); }
.btn-light { background: #fff; color: #1a1614; }
.btn-ghost-light { background: transparent; color: var(--ly-cta-title); border-color: #4a4541; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 24px; font-size: 15px; }

/* Badge / eyebrow */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ly-accent-soft); color: var(--ly-accent);
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: var(--ly-radius-pill);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.success { background: var(--ly-success-soft); color: var(--ly-success); }
.badge.warning { background: var(--ly-warning-soft); color: var(--ly-warning); }
.badge.neutral { background: var(--ly-neutral-soft); color: var(--ly-title); border: 1px solid var(--ly-border); }

/* Cards */
.card {
  position: relative; background: var(--ly-surface); border: 1px solid var(--ly-border);
  border-radius: var(--ly-radius-card); padding: 28px;
}
a.card { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; display: block; }
a.card:hover { border-color: var(--ly-muted); transform: translateY(-2px); }
.card .arrow { position: absolute; top: 24px; right: 24px; color: var(--ly-muted); width: 20px; height: 20px; }
a.card:hover .arrow { color: var(--ly-accent); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--ly-font-mono); font-size: 12px; color: var(--ly-text); border: 1px solid var(--ly-border); border-radius: var(--ly-radius-pill); padding: 4px 10px; }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-center h1 { max-width: 820px; margin: 24px 0 20px; }
.hero-center p.lead { max-width: 600px; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-center .hero-actions { justify-content: center; }
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-split h1 { margin: 20px 0 20px; }
.hero-split .lead { font-size: 18px; max-width: 520px; }
.hero-note { margin-top: 16px; }

/* Mock de navegador */
.browser { background: var(--ly-surface); border: 1px solid var(--ly-border); border-radius: var(--ly-radius-card); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--ly-border); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ly-border); }
.browser-bar .url { margin: 0 auto; font-family: var(--ly-font-mono); font-size: 11px; color: var(--ly-muted); background: var(--ly-neutral-soft); padding: 4px 14px; border-radius: var(--ly-radius-pill); }
.browser-body { padding: 22px; }
.mock-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--ly-title); }
.mock-pill { background: var(--ly-success); color: #fff; font-size: 10px; font-weight: 500; padding: 5px 10px; border-radius: var(--ly-radius-pill); }
.mock-title { font-size: 24px; font-weight: 600; color: var(--ly-title); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.mock-photo { height: 132px; border-radius: 10px; background: var(--ly-warning-soft); display: grid; place-items: center; color: var(--ly-warning); font-family: var(--ly-font-mono); font-size: 11px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mock-row span { height: 44px; border-radius: 8px; border: 1px solid var(--ly-border); }

/* Benefícios */
.benefits { padding: 0 0 24px; }
.benefits .card { padding: 36px; }
.benefit-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--ly-accent-soft); color: var(--ly-accent); display: grid; place-items: center; margin-bottom: 18px; }
.benefit-icon svg { width: 18px; height: 18px; }
.benefit h3 { font-size: 17px; margin-bottom: 6px; }
.benefit p { font-size: 15px; }

/* Serviços (home) */
.service { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.service .price-line { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ly-border); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.service .price-line strong { color: var(--ly-title); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.service ul { margin: 0; }

/* Planos */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; }
.plan.featured { border: 2px solid var(--ly-accent); }
.plan .ribbon { position: absolute; top: -13px; left: 28px; background: var(--ly-accent); color: var(--ly-on-accent); font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: var(--ly-radius-pill); }
.plan h3 { margin-bottom: 8px; }
.plan .desc { font-size: 15px; min-height: 78px; }
.plan .from { font-size: 13px; color: var(--ly-muted); margin-top: 24px; }
.plan .price { font-size: 44px; font-weight: 600; color: var(--ly-title); letter-spacing: -0.035em; line-height: 1.1; }
.plan .price small { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin-right: 4px; }
.plan .terms { font-size: 13px; color: var(--ly-muted); margin: 6px 0 24px; }
.plan .btn { margin-bottom: 28px; }
.plan .ideal { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--ly-border); font-size: 14px; color: var(--ly-muted); }

.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; }
.checks li::before {
  content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--ly-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232447c6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat;
}
[data-theme="dark"] .checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d9bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

/* Faixa de destaque (manutenção) */
.highlight { background: var(--ly-accent-soft); border-radius: var(--ly-radius-card); padding: 40px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: center; margin-top: 24px; }
.highlight .eyebrow { font-size: 13px; color: var(--ly-accent); font-weight: 500; margin-bottom: 6px; }
.highlight h3 { font-size: 24px; }
.highlight .maint { background: var(--ly-surface); border-radius: 12px; padding: 22px; height: 100%; }
.highlight .maint .name { font-size: 14px; font-weight: 500; color: var(--ly-accent); }
.highlight .maint .val { font-size: 28px; font-weight: 600; color: var(--ly-title); letter-spacing: -0.03em; margin: 2px 0 8px; }
.highlight .maint .val span { font-size: 15px; font-weight: 500; color: var(--ly-muted); letter-spacing: 0; }
.highlight .maint p { font-size: 14px; line-height: 1.55; }

/* Etapas */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.step { border-top: 2px solid var(--ly-border); padding-top: 20px; }
.step:first-child { border-top-color: var(--ly-accent); }
.step .label { font-size: 13px; font-weight: 500; color: var(--ly-accent); }
.step h3 { font-size: 20px; margin: 6px 0 8px; }
.step p { font-size: 15px; }

/* Avulsos */
.addon { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.addon h3 { font-size: 18px; margin-bottom: 6px; }
.addon p { font-size: 15px; }
.addon .val { text-align: right; white-space: nowrap; color: var(--ly-title); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.addon .val small { display: block; font-size: 12px; font-weight: 400; color: var(--ly-muted); letter-spacing: 0; }

/* Portfólio placeholder */
.shot { aspect-ratio: 16/10; border-radius: 10px; background: var(--ly-neutral-soft); border: 1px dashed var(--ly-border); display: grid; place-items: center; font-family: var(--ly-font-mono); font-size: 12px; color: var(--ly-muted); margin-bottom: 18px; }

/* Tabela comparativa */
.table-wrap { overflow-x: auto; background: var(--ly-surface); border: 1px solid var(--ly-border); border-radius: var(--ly-radius-card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { padding: 16px 20px; border-bottom: 1px solid var(--ly-border); text-align: center; }
th:first-child, td:first-child { text-align: left; }
thead th { font-size: 13px; color: var(--ly-muted); font-weight: 500; }
thead th.feat { color: var(--ly-accent); }
tbody tr:last-child td { border-bottom: 0; }
td .yes { color: var(--ly-accent); font-weight: 600; }
td .no { color: var(--ly-muted); }
td strong { color: var(--ly-title); font-weight: 600; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--ly-border); }
.faq details:first-child { border-top: 1px solid var(--ly-border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; color: var(--ly-title); font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--ly-muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--ly-accent); }
.faq details p { padding: 0 40px 22px 0; }

/* Stack */
.stack-block { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.stack-block .tags { gap: 10px; }
.stack-block .tag { font-size: 13px; padding: 8px 14px; background: var(--ly-surface); }

/* Desk (SaaS) */
.saas { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 40px; }
.saas ul { margin-top: 20px; }
.chat { background: var(--ly-bg); border: 1px solid var(--ly-border); border-radius: 12px; padding: 18px; display: grid; gap: 10px; font-size: 14px; }
.chat-row { display: flex; align-items: center; gap: 12px; background: var(--ly-surface); border: 1px solid var(--ly-border); border-radius: 10px; padding: 12px; }
.chat-row .av { width: 34px; height: 34px; border-radius: 50%; background: var(--ly-accent-soft); color: var(--ly-accent); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.chat-row .who { flex: 1; min-width: 0; }
.chat-row .who b { display: block; color: var(--ly-title); font-weight: 500; }
.chat-row .who span { color: var(--ly-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.hot { font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: var(--ly-radius-pill); background: var(--ly-warning-soft); color: var(--ly-warning); white-space: nowrap; }
.ai-tip { border: 1px dashed var(--ly-accent); background: var(--ly-accent-soft); color: var(--ly-accent); border-radius: 10px; padding: 12px; font-size: 13px; line-height: 1.5; }

/* CTA final */
.cta { background: var(--ly-cta-bg); border-radius: 24px; padding: 72px 40px; text-align: center; border: 1px solid var(--ly-border); }
.cta h2 { color: var(--ly-cta-title); max-width: 620px; margin: 0 auto; }
.cta p { color: var(--ly-cta-text); margin-top: 14px; }
.cta .hero-actions { justify-content: center; }
.cta-split { display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; flex-wrap: wrap; padding: 56px; }
.cta-split h2 { margin: 0; }

/* Footer */
footer { padding: 40px 0 48px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--ly-border); padding-top: 32px; }
.sign { display: flex; align-items: center; gap: 12px; }
.sign .name { color: var(--ly-title); font-weight: 500; font-size: 15px; line-height: 1.3; }
.sign .role { font-size: 13px; color: var(--ly-muted); line-height: 1.3; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { color: var(--ly-text); }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--ly-accent); color: var(--ly-on-accent); display: grid; place-items: center; border: 0; box-shadow: 0 6px 20px rgba(26,22,20,.18); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { opacity: .92; text-decoration: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsivo */
@media (max-width: 960px) {
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-split, .stack-block, .saas, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .highlight { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan .desc { min-height: 0; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .hero { padding: 64px 0 48px; }
  .grid-2, .grid-3, .grid-4, .steps, .steps.three { grid-template-columns: 1fr; }
  .nav { padding: 8px 8px 8px 20px; }
  .menu-toggle { display: inline-grid; }
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; align-items: stretch; background: var(--ly-surface); border: 1px solid var(--ly-border); border-radius: var(--ly-radius-card); padding: 12px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px; font-size: 15px; }
  .nav-links .btn { margin-top: 6px; }
  .nav-right .btn { display: none; }
  .highlight, .saas, .cta-split { padding: 28px; }
  .cta { padding: 48px 24px; }
  .card, .plan { padding: 24px; }
  .hero-actions .btn { flex: 1; }
}

/* Evita que filhos de grid estourem a largura no celular */
.grid > *, .chat > *, .saas > *, .hero-split > *, .stack-block > *, .faq-layout > *, .highlight > * { min-width: 0; }
@media (max-width: 760px) { .btn { white-space: normal; text-align: center; line-height: 1.3; } }

/* ---- Conta Ly: avatar, formulários, hub (o launcher fica em assets/ly-hub.js) ---- */
.app-icon { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ly-accent-soft); color: var(--ly-accent); }
.app-icon > svg:first-child { width: 22px; height: 22px; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--ly-accent); color: var(--ly-on-accent); font-size: 13px; font-weight: 600; text-decoration: none !important;
}
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.nav-login { padding: 10px 16px; }

/* Formulários */
.auth-wrap { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 6px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--ly-neutral-soft); border: 1px solid var(--ly-border); border-radius: var(--ly-radius-pill); padding: 4px; margin-bottom: 28px; }
.tabs button { border: 0; background: transparent; padding: 10px; border-radius: var(--ly-radius-pill); font: 500 14px var(--ly-font); color: var(--ly-text); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ly-surface); color: var(--ly-title); box-shadow: 0 1px 2px rgba(26,22,20,.08); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ly-title); }
.field input {
  font: 400 15px var(--ly-font); color: var(--ly-title); background: var(--ly-surface);
  border: 1px solid var(--ly-border); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field input:focus { outline: 2px solid var(--ly-accent-soft); border-color: var(--ly-accent); }
.field .help { font-size: 13px; color: var(--ly-muted); }
.field.error input { border-color: var(--ly-danger); }
.field.error .help { color: var(--ly-danger); }
.form-error { background: var(--ly-danger-soft); color: var(--ly-danger); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.auth-perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--ly-muted); }

/* Hub (Minha conta) */
.hub-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hub-head h1 { font-size: clamp(30px, 4vw, 40px); }
.hub-head .actions { margin-left: auto; display: flex; gap: 8px; }
.svc-card { display: flex; flex-direction: column; gap: 12px; }
.svc-card .app-icon { width: 48px; height: 48px; }
.svc-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc-card p { font-size: 15px; }
.svc-card .btn { margin-top: auto; align-self: flex-start; }
.svc-card.locked { background: transparent; border-style: dashed; }
.hub-section-title { font-size: 20px; margin: 48px 0 16px; }
.empty { border: 1px dashed var(--ly-border); border-radius: var(--ly-radius-card); padding: 28px; text-align: center; color: var(--ly-muted); }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; font-size: 15px; }
.info-list dt { color: var(--ly-muted); }
.info-list dd { margin: 0; color: var(--ly-title); }

/* Admin */
.admin-table td, .admin-table th { text-align: left; }
.admin-table td.c, .admin-table th.c { text-align: center; }
.switch { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--ly-border); position: relative; cursor: pointer; transition: background .15s; vertical-align: middle; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch:checked { background: var(--ly-accent); }
.switch:checked::after { transform: translateX(16px); }

:root { --ly-danger: #b5232e; --ly-danger-soft: #ebdbdb; }
[data-theme="dark"] { --ly-danger: #f38b96; --ly-danger-soft: #2f1f1f; }
@media (max-width: 760px) {
  .hub-head .actions { margin-left: 0; width: 100%; }
  .nav-login { display: inline-flex !important; padding: 9px 14px; }
}
[hidden] { display: none !important; }

/* Minha conta: configurações */
.settings { display: grid; gap: 20px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.setting-row:not(:first-child) { border-top: 1px solid var(--ly-border); padding-top: 20px; margin-top: 20px; }
.setting-row h3 { font-size: 17px; margin-bottom: 4px; }
.setting-row p { font-size: 14px; color: var(--ly-muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.saved { font-size: 13px; color: var(--ly-success); }
.btn-danger { background: var(--ly-danger); color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn-danger-outline { background: transparent; color: var(--ly-danger); border-color: var(--ly-danger); }
.btn-danger-outline:hover { background: var(--ly-danger-soft); }
.card.danger-zone { border-color: var(--ly-danger-soft); }
.collapse { margin-top: 20px; }
dialog.modal {
  border: 1px solid var(--ly-border); border-radius: var(--ly-radius-card); background: var(--ly-surface); color: var(--ly-text);
  padding: 28px; width: min(440px, calc(100vw - 32px));
}
dialog.modal::backdrop { background: rgba(15,13,12,.55); }
dialog.modal h2 { font-size: 22px; margin-bottom: 8px; }
dialog.modal ul { margin: 12px 0 20px; padding-left: 20px; font-size: 14px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--ly-title); color: var(--ly-bg); padding: 14px 20px; border-radius: 12px; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(26,22,20,.2); }
