/* Landing — E-book Jurisprudência ECA */
:root {
  --green: #1c3a30;
  --green-hover: #2a4f42;
  --green-pressed: #132a22;
  --green-ink: #152d25;
  --gold: #c9a96e;
  --gold-light: #d9bf8a;
  --gold-dark: #b8955a;
  --cream: #f6f2ea;
  --sand: #ece5d6;
  --text: #1f2a26;
  --text-2: #36443e;
  --text-3: #4a5a53;
  --text-4: #5a6862;
  --line: #dfd5c2;
  --error: #a3321f;
  --font-heading: 'Jost', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2 { margin: 0; font-family: var(--font-heading); font-weight: 400; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #2d5545; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold) !important; outline-offset: 3px !important; }
::selection { background: #e8d7b0; color: var(--green); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); }
main { flex: 1; }
.container { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font: inherit; font-weight: 600; letter-spacing: 0.06em;
  text-decoration: none; text-align: center; cursor: pointer; transition: background 0.15s;
}
.btn-gold { margin-top: 8px; min-height: 56px; padding: 0 32px; background: var(--gold); color: var(--green-ink); font-size: 15px; border: none; }
.btn-gold:hover { background: var(--gold-light); color: var(--green-ink); }
.btn-gold:active { background: var(--gold-dark); }
.btn-green { display: flex; min-height: 58px; padding: 0 24px; border: none; background: var(--green); color: #fff; font-size: 15px; }
.btn-green:hover { background: var(--green-hover); color: #fff; }
.btn-green:active { background: var(--green-pressed); }
.btn-green:disabled { opacity: 0.7; cursor: progress; }
.btn-outline { display: flex; flex: 1 1 220px; min-height: 52px; padding: 0 20px; border: 1.5px solid var(--gold-dark); color: var(--green); font-size: 14px; }
.btn-outline:hover { background: #f4ecdc; color: var(--green); }
.btn-outline:active { background: #ead9b6; }

/* Header */
.site-header { background: var(--green); border-bottom: 1px solid rgba(201, 169, 110, 0.25); }
.header-inner { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; }
.header-logo { height: clamp(56px, 6vw, 68px); width: auto; }

/* Hero */
.hero { background: var(--green); color: var(--cream); }
.hero-inner {
  padding-top: clamp(28px, 5vw, 80px); padding-bottom: clamp(48px, 7vw, 96px);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 88px);
}
.hero-text { flex: 1 1 420px; min-width: 0; max-width: 580px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.badge { padding: 7px 16px; border: 1px solid rgba(217, 191, 138, 0.55); border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; color: var(--gold-light); }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -0.01em; color: #fff; text-wrap: balance; }
.hero-desc { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: #e4e9e5; text-wrap: pretty; }
.hero-updated { font-size: 15px; color: var(--gold-light); }
.hero-cover { flex: 0 1 380px; min-width: 240px; max-width: 400px; margin: 0 auto; }
.hero-cover img { width: 100%; height: auto; border-radius: 6px; outline: 1px solid rgba(217, 191, 138, 0.4); outline-offset: 0; box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35); }

/* About */
.about { background: var(--cream); }
.about-inner {
  padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 6vw, 80px);
}
.about-photo { flex: 0 1 320px; min-width: 220px; max-width: 340px; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 20px; }
.about-text { flex: 1 1 400px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 20px; }
.about h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; color: var(--green); text-wrap: balance; }
.about-lead { font-size: 18px; line-height: 1.65; color: var(--text-2); text-wrap: pretty; }
.about-sign { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.about-name { font-size: 17px; font-weight: 600; color: var(--green); }
.about-role { font-size: 15px; line-height: 1.55; color: var(--text-3); }

/* Signup */
.signup { background: var(--sand); scroll-margin-top: 16px; }
.signup-inner { max-width: 600px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) 20px; }
.card { background: #fff; border-radius: 20px; padding: clamp(28px, 5vw, 48px); border: 1px solid #e0d6c3; }
.form, .success { display: flex; flex-direction: column; }
.form { gap: 22px; }
.success { gap: 20px; }
.form[hidden], .success[hidden] { display: none; }
.form-head { display: flex; flex-direction: column; gap: 8px; }
.card h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; color: var(--green); }
.form-head p { font-size: 17px; color: var(--text-3); }
.success p { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; color: var(--text); }
.field input {
  height: 52px; padding: 0 18px; border-radius: 12px; border: 1.5px solid #d8cdb8;
  background: #fbf9f5; font: inherit; font-size: 16px; color: var(--text); outline: none;
}
.field input:focus { border-color: var(--green); background: #fff; }
.field input[aria-invalid="true"] { border-color: #b0412c; }
.field-error { font-size: 14px; color: var(--error); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.consent input { margin: 2px 0 0; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--green); cursor: pointer; }
.submit-error { padding: 14px 16px; border-radius: 12px; background: #f8e9e4; font-size: 15px; line-height: 1.5; color: #7e2617; }
.privacy { font-size: 13.5px; line-height: 1.55; color: var(--text-4); }
.privacy a { text-decoration: underline; }
[hidden] { display: none !important; }

/* Social */
.social { background: var(--cream); }
.social-inner {
  max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) 24px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.social h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; color: var(--green); }
.social-text { font-size: 17px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.social-buttons { width: 100%; max-width: 520px; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.social-handle { font-size: 14px; color: var(--text-4); }

/* Footer */
.site-footer { background: var(--green); }
.footer-inner { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-logo { height: 48px; width: auto; }
.site-footer p { font-size: 14px; color: #d6ddd9; }
.footer-link { color: #d6ddd9; text-decoration: underline; }
.footer-link:hover { color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Aviso de cookies */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 720px; margin: 0 auto; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(21, 45, 37, 0.18);
}
.cookie-bar p { flex: 1 1 320px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.btn-cookie-yes, .btn-cookie-no { min-height: 44px; padding: 0 20px; font-size: 13.5px; }
.btn-cookie-yes { background: var(--green); color: #fff; border: none; }
.btn-cookie-yes:hover { background: var(--green-hover); color: #fff; }
.btn-cookie-no { background: #fff; color: var(--green); border: 1.5px solid var(--line); }
.btn-cookie-no:hover { background: var(--cream); }
