/* ===== EPChat — folha de estilo compartilhada ===== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #0E1A16;
  --ink-2: #16261F;
  --ink-soft: #33473f;
  --muted: #5f746b;
  --bg: #f2f7f4;
  --bg-card: #ffffff;
  --line: #e1ebe5;
  --emerald: #0FAE63;
  --emerald-deep: #079B57;
  --emerald-bright: #2BD27C;
  --emerald-wash: #e6f6ee;
  --amber: #e0a93f;
  --grad: linear-gradient(135deg, #2BD27C, #079B57);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14,26,22,.05), 0 16px 44px -20px rgba(14,26,22,.22);
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

/* atmospheric background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 88% -8%, rgba(43,210,124,.16), transparent 70%),
    radial-gradient(45% 38% at -8% 70%, rgba(7,155,87,.10), transparent 70%),
    radial-gradient(40% 30% at 60% 110%, rgba(43,210,124,.08), transparent 70%);
  pointer-events: none;
}

h1, h2, h3, h4 { font-family: 'Bricolage Grotesque', sans-serif; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }

a { color: var(--emerald-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== top bar ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(246,244,238,.82);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
@media (max-width:480px){ .brand-logo { height: 28px; } }
.nav-links { display: flex; gap: 28px; align-items: center; font-weight: 500; font-size: 15px; }
.nav-links a { color: var(--ink-soft); }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
}
.nav-cta:hover { text-decoration: none; background: var(--emerald-deep); }
@media (max-width: 760px){ .nav-links a:not(.nav-cta){ display:none; } }

/* ===== hero ===== */
.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-mark {
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  width: 300px; height: auto; opacity: .9;
  filter: drop-shadow(0 30px 60px rgba(7,155,87,.28));
  animation: floaty 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floaty { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 16px)); } }
@media (max-width: 920px){ .hero-mark { display: none; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--emerald-deep); background: var(--emerald-wash);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; max-width: 14ch; }
.hero h1 .accent { color: var(--emerald); }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-soft); max-width: 56ch; margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 0; cursor: pointer;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(7,155,87,.7); }
.btn-primary:hover { filter: brightness(1.05); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); text-decoration: none; }

.channel-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; align-items: center; }
.channel-row span.label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; background: var(--bg-card);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-soft);
}

/* ===== sections ===== */
section.block { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px){ .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; box-shadow: 0 10px 22px -10px rgba(7,155,87,.65); }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* data table for transparency */
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.data-table th, .data-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.data-table th { background: var(--ink); color: #fff; font-family: 'Bricolage Grotesque'; font-weight: 600; letter-spacing: -.01em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ===== dark brand band (mirrors the app icon) ===== */
.block.dark { background: var(--ink); border-radius: 32px; margin: 16px 0; padding: 64px 0; position: relative; overflow: hidden; }
.block.dark::after { content:""; position:absolute; inset:0; background: radial-gradient(40% 60% at 92% 0%, rgba(43,210,124,.18), transparent 70%); pointer-events:none; }
.block.dark .wrap { position: relative; z-index: 1; }
.block.dark .section-head h2 { color: #fff; }
.block.dark .section-head p { color: #9fb3a9; }
.block.dark .data-table { background: var(--ink-2); border-color: rgba(255,255,255,.09); }
.block.dark .data-table th { background: var(--grad); color: #06231a; font-weight: 700; }
.block.dark .data-table td { color: #c4d3cc; border-color: rgba(255,255,255,.07); }
.block.dark .data-table td:first-child { color: #fff; }
.block.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.block.dark .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ===== gradient CTA card ===== */
.cta-card { background: var(--grad); border: 0; color: #fff; position: relative; overflow: hidden; }
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255,255,255,.9) !important; }
.cta-card .btn { background: #fff; color: var(--emerald-deep); box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); }
.cta-card .btn:hover { background: #f2fff8; text-decoration: none; }
.cta-mark { position: absolute; right: -30px; bottom: -40px; width: 200px; opacity: .16; pointer-events: none; }

/* ===== official API trust band ===== */
.trust { padding: 28px 0 12px; }
.trust-card {
  display: flex; gap: 26px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line); border-left: 5px solid var(--emerald);
  border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.trust-card::after { content:""; position:absolute; right:-40px; top:-40px; width:220px; height:220px; border-radius:50%; background: radial-gradient(circle, rgba(43,210,124,.12), transparent 65%); pointer-events:none; }
.trust-shield {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; background: var(--grad);
  display: grid; place-items: center; font-size: 32px; box-shadow: 0 12px 26px -10px rgba(7,155,87,.7);
}
.trust-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.trust-badge { font-family:'Hanken Grotesk'; font-size: 12px; font-weight: 700; letter-spacing:.04em; text-transform:uppercase; color: var(--emerald-deep); background: var(--emerald-wash); padding: 4px 10px; border-radius: 999px; }
.trust-card p { color: var(--ink-soft); font-size: 16px; margin: 0; max-width: 70ch; }
@media (max-width: 680px){ .trust-card { flex-direction: column; align-items: flex-start; text-align: left; padding: 26px; } }

/* ===== legal pages ===== */
.legal { padding: 56px 0 80px; }
.legal-hero { padding: 56px 0 8px; }
.legal-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.legal-hero .updated { color: var(--muted); font-size: 15px; margin-top: 14px; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 24px; font-weight: 700; margin: 40px 0 12px; padding-top: 8px; }
.legal-body h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; color: var(--ink-soft); }
.legal-body p { margin-bottom: 14px; color: var(--ink-soft); }
.legal-body ul, .legal-body ol { margin: 0 0 16px 22px; color: var(--ink-soft); }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--ink); }
.toc { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0 8px; box-shadow: var(--shadow); }
.toc h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin-left: 18px; columns: 2; gap: 24px; }
@media (max-width:620px){ .toc ol { columns: 1; } }
.toc a { font-weight: 500; }

.callout {
  background: var(--emerald-wash); border: 1px solid #c7e6d8; border-left: 4px solid var(--emerald);
  border-radius: 12px; padding: 18px 22px; margin: 22px 0;
}
.callout p { color: var(--ink-soft); margin: 0; }
.callout strong { color: var(--emerald-deep); }

.note-fill {
  background: #fff8e8; border: 1px dashed var(--amber); border-radius: 10px;
  padding: 10px 14px; font-size: 14px; color: #8a6516; margin: 6px 0 18px;
}

/* deletion steps */
.steps { counter-reset: step; list-style: none; margin: 28px 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 24px; min-height: 40px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 11px; background: var(--emerald); color: #fff;
  display: grid; place-items: center; font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 18px;
}
.steps li strong { display: block; color: var(--ink); margin-bottom: 2px; font-size: 17px; }

/* ===== footer ===== */
footer { background: var(--ink); color: #c8d6cf; padding: 56px 0 32px; margin-top: 64px; }footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px){ footer .wrap { grid-template-columns: 1fr; gap: 28px; } }
footer .brand { margin-bottom: 14px; }
.footer-logo { height: 38px; width: auto; display: block; }
footer p { font-size: 14px; color: #93a89f; max-width: 38ch; }
footer h5 { font-family: 'Bricolage Grotesque'; color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: #c8d6cf; font-size: 15px; }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #7d918a; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.back-home { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
