/* ──────────────────────────────────────────────────────────────
   After Flow — Landing
   Paleta: Intersomos (leaf/sand/ink/accent) + mood editorial PublishFlow
   Dark mode controlado por [data-theme="dark"] no <html> (toggle manual)
   ────────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Crimson+Text:ital,wght@1,400;1,600&display=swap");

:root {
  /* ── Intersomos palette ── */
  --leaf-50:  #F0F9F6;
  --leaf-100: #E0F2ED;
  --leaf-300: #68C39A;
  --leaf-400: #3FAF7D;
  --leaf-500: #2E8F6A;
  --leaf-600: #1A7F5A;
  --leaf-700: #146A4A;
  --leaf-900: #0A402B;

  --sand-50:  #FAF6ED;
  --sand-100: #F5F0E0;
  --sand-200: #EDE6D6;
  --sand-300: #E0D4C0;

  --ink-50:  #F7F8FA;
  --ink-100: #EEF0F5;
  --ink-200: #DDE1EB;
  --ink-700: #2A2E35;
  --ink-800: #1E2127;
  --ink-900: #0F1115;

  --accent: #F1C21B;

  /* ── Light mode (default) ── */
  --bg:        var(--sand-100);
  --bg-soft:   var(--sand-50);
  --bg-card:   #FFFFFF;
  --bg-elev:   var(--sand-200);
  --ink:       var(--ink-900);
  --ink-soft:  var(--ink-700);
  --ink-muted: #6b7280;
  --border:    var(--sand-300);
  --brand:     var(--leaf-600);
  --brand-soft: var(--leaf-100);
  --highlight: var(--leaf-500);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --max: 1100px;
  --max-prose: 720px;

  --shadow-soft: 0 2px 14px -4px rgba(15, 17, 21, 0.06), 0 8px 20px -10px rgba(15, 17, 21, 0.04);
  --shadow-med:  0 8px 32px -8px rgba(15, 17, 21, 0.12);
}

[data-theme="dark"] {
  --bg:        var(--ink-900);
  --bg-soft:   #14171c;
  --bg-card:   var(--ink-800);
  --bg-elev:   var(--ink-700);
  --ink:       var(--sand-100);
  --ink-soft:  var(--ink-200);
  --ink-muted: #8a8e96;
  --border:    #2c313a;
  --brand:     var(--leaf-400);
  --brand-soft: rgba(63, 175, 125, 0.15);
  --highlight: var(--leaf-300);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:        var(--ink-900);
    --bg-soft:   #14171c;
    --bg-card:   var(--ink-800);
    --bg-elev:   var(--ink-700);
    --ink:       var(--sand-100);
    --ink-soft:  var(--ink-200);
    --ink-muted: #8a8e96;
    --border:    #2c313a;
    --brand:     var(--leaf-400);
    --brand-soft: rgba(63, 175, 125, 0.15);
    --highlight: var(--leaf-300);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: var(--max-prose); margin: 0 auto; }

/* ──────────── HEADER ──────────── */
body.has-intersomos-ecosystem-topbar .site-header {
  top: var(--intersomos-topbar-h, 34px);
}

.site-header {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand__logo {
  width: 22px;
  height: 22px;
  color: var(--brand);
}
.brand__by {
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-left: 0.6rem;
  border-left: 1px solid var(--border);
  padding-left: 0.7rem;
}

.site-nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--brand); }

.header-tools { display: flex; align-items: center; gap: 0.5rem; }

.lang-select, .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-select:hover, .theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.theme-toggle { padding: 0.45rem; width: 36px; height: 36px; justify-content: center; }
.theme-toggle svg { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .brand__by { display: none; }
}

/* ──────────── HERO ──────────── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.hero h1 em {
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
  position: relative;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 38em;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}

.cta-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-med);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--brand {
  background: var(--brand);
  color: #fff;
}
[data-theme="dark"] .btn--brand { color: var(--ink-900); }
.btn--brand:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ──────────── SECTIONS ──────────── */
section { padding: 4rem 0; }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--ink);
}
.section-title em {
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}

.section-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0 0 2.5rem;
}

/* ── Story / pull quote ── */
.story {
  background: var(--bg-card);
  border-left: 3px solid var(--brand);
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  margin: 2.5rem 0;
  font-family: "Crimson Text", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.story__source {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ── Steps ── */
.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
  transition: border-color 0.15s, transform 0.15s;
}
.steps li:hover {
  border-color: var(--brand);
  transform: translateX(2px);
}
.steps li::before {
  content: counter(step);
  width: 2.4rem;
  height: 2.4rem;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.steps li strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}
.steps li span { color: var(--ink-soft); font-size: 0.95rem; }

/* ── Feature grid ── */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feature {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.18s;
}
.feature:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-med);
}
.feature__icon {
  width: 40px;
  height: 40px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}
.feature h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.feature p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ── Pricing ── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-med); }
.plan--featured {
  border-color: var(--brand);
  border-width: 2px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg-card) 40%);
  position: relative;
}
.plan--featured::before {
  content: attr(data-badge);
  position: absolute;
  top: -12px;
  right: 1.25rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
[data-theme="dark"] .plan--featured::before { color: var(--ink-900); }
.plan__name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.plan__price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.plan__price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.plan__desc { color: var(--ink-soft); font-size: 0.93rem; margin: 0 0 1.25rem; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}
.plan li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.6rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: var(--brand);
  font-weight: 700;
}

/* ── FAQ ── */
.faq {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  transition: border-color 0.15s;
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ──────────── FOOTER ──────────── */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 640px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__brand { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer__brand strong { color: var(--ink); font-size: 1rem; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer a:hover { color: var(--brand); }

/* ──────────── DOC PAGES ──────────── */
.doc { padding: 3rem 0 4rem; }
.doc h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.doc__updated {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.doc h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
}
.doc h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}
.doc p, .doc li { color: var(--ink-soft); }
.doc a { color: var(--brand); }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.93rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.doc th, .doc td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.doc th {
  background: var(--bg-elev);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.callout {
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.callout p { margin: 0; color: var(--ink); }
.callout strong { color: var(--ink); }

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}
.support-card a { color: var(--brand); font-weight: 600; text-decoration: none; }
.support-card a:hover { text-decoration: underline; }
.support-card small { color: var(--ink-muted); }

/* Animação de entrada */
@media (prefers-reduced-motion: no-preference) {
  .hero, section { animation: fadeUp 0.5s ease-out backwards; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
