/* ============================================
   iuleapp.com — folha de estilo única
   Usada pela home e pelas páginas PT-BR, PT-PT, ES e EN.
   ============================================ */

:root {
  /* superfícies */
  --ink: #0d1117;          /* seções escuras */
  --ink-2: #161b22;        /* barra de aviso, cartões no escuro */
  --ink-line: #262d38;
  --paper: #f6f5f1;        /* fundo claro principal */
  --surface: #ffffff;      /* seções brancas */
  --line: #e3e1db;

  /* texto */
  --text: #14171c;
  --muted: #5a616d;
  --on-dark: #f3f4f6;
  --on-dark-muted: #9aa3b2;

  /* destaque único */
  --accent: #2f6bff;
  --accent-hover: #1f56e0;
  --accent-soft: rgba(47,107,255,0.12);

  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --max: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.3rem, 6.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34em;
}

.i {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- seções ---------- */
.section { padding: 72px 0; }
.surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.dark { background: var(--ink); color: var(--on-dark); }
.dark .lead { color: var(--on-dark-muted); }

.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 14px; }

.split { display: grid; gap: 32px; }
.split-head h2 { margin-bottom: 14px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }

.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 16px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn .i { transition: transform .2s; }
.btn:hover .i { transform: translateX(3px); }

.link-quiet {
  color: var(--on-dark-muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink-line);
}
.link-quiet:hover { color: var(--on-dark); }

/* ---------- aviso + header ---------- */
.announce {
  background: var(--ink-2);
  color: var(--on-dark-muted);
  text-align: center;
  font-size: 0.8rem;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--ink-line);
}
.announce .dot { margin: 0 6px; opacity: .6; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--ink-line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav { display: none; gap: 28px; }
.header .btn { display: none; }   /* no celular o CTA fixo do rodapé cumpre esse papel */
.nav a {
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--on-dark); }

/* ---------- hero ---------- */
.hero { padding: 28px 0 56px; overflow: hidden; }

.hero-grid { display: grid; gap: 40px; align-items: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }

.hero h1 { margin-bottom: 20px; max-width: 13em; }
.hero .lead { margin-bottom: 32px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 32px;
}

.trust {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .i { color: var(--accent); }

/* no celular o livro vem antes do título, em tamanho menor */
.hero-media { display: flex; justify-content: center; order: -1; margin-bottom: -16px; }
.hero-media img { width: min(62%, 240px); filter: drop-shadow(0 20px 28px rgba(0,0,0,0.45)); }

/* ---------- facts ---------- */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }

.facts-grid { display: grid; grid-template-columns: 1fr 1fr; }
.facts-grid > div {
  padding: 26px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.facts-grid > div:nth-child(odd) { padding-right: 16px; }
.facts-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.facts-grid strong {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.facts-grid span { font-size: 0.9rem; color: var(--muted); }

/* ---------- problema ---------- */
.pain-list { list-style: none; margin: 0; padding: 0; }
.pain-list li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.pain-list li:last-child { border-bottom: 1px solid var(--line); }
.pain-list strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }

/* ---------- capítulos ---------- */
.chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}
.chapters li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.chapters .num {
  grid-row: span 2;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  padding-top: 1px;
}
.chapters h3 { margin-bottom: 4px; }
.chapters p { color: var(--muted); font-size: 0.95rem; }

/* ---------- público ---------- */
.audience { display: grid; gap: 20px; margin-bottom: 48px; }
.audience figure { margin: 0; }
.audience img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.audience figcaption { color: var(--muted); font-size: 0.95rem; }
.audience strong { color: var(--text); font-weight: 600; }

.fit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.fit h3 { font-size: 1.3rem; margin-bottom: 18px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .i { color: var(--accent); margin-top: 3px; }
.checklist.on-dark { color: var(--on-dark); }

/* ---------- oferta ---------- */
.offer-grid { display: grid; gap: 40px; align-items: start; }
.offer-info h2 { margin-bottom: 14px; }
.offer-info .lead { margin-bottom: 28px; }
.offer-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }

.price-card {
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 32px 24px;
}
.price-title { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 18px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 0.95rem; }
.price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
}
.price span { font-size: 1.3rem; font-weight: 600; vertical-align: 0.95em; margin-right: 4px; }
.price-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

.price-secure {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}

.price-guarantee {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.price-guarantee .i { color: var(--accent); width: 1.5em; height: 1.5em; }
.price-guarantee strong { color: var(--text); }

/* ---------- garantia ---------- */
.guarantee { display: grid; gap: 20px; align-items: start; }
.guarantee-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guarantee-icon .i { width: 30px; height: 30px; }
.guarantee h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin-bottom: 12px; }
.guarantee p { color: var(--muted); max-width: 46em; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--muted);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 40em; }

/* ---------- CTA final ---------- */
.final-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final h2 { max-width: 16em; margin-bottom: 16px; }
.final .lead { margin-bottom: 32px; }
.final-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

/* ---------- footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--ink-line); padding: 32px 0 40px; }
.footer-inner { display: grid; gap: 12px; }
.footer p { color: var(--on-dark-muted); font-size: 0.82rem; line-height: 1.7; }

/* ---------- CTA fixo (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(13,17,23,0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--ink-line);
  transform: translateY(110%);
  transition: transform .3s;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { padding: 14px 20px; }

/* ============================================
   TABLET — 640px +
   ============================================ */
@media (min-width: 640px) {
  .audience { grid-template-columns: 1fr 1fr; }
  .chapters { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* ============================================
   DESKTOP — 900px +
   ============================================ */
@media (min-width: 900px) {
  :root { --gutter: 32px; }

  .section { padding: 112px 0; }

  .nav { display: flex; }
  .header .btn { display: inline-flex; }

  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero h1 { font-size: clamp(2.6rem, 4.6vw, 3.9rem); }
  .hero-media { order: 0; margin-bottom: 0; }
  .hero-media img { width: 100%; max-width: 460px; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45)); }

  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .facts-grid > div { padding: 32px 0 32px 28px; border-left: 1px solid var(--line); }
  .facts-grid > div:first-child { padding-left: 0; border-left: 0; }
  .facts-grid > div:nth-child(odd) { padding-right: 0; }
  .facts-grid > div:nth-child(-n+2) { border-bottom: 0; }

  .split { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
  .split-head { position: sticky; top: 104px; }

  .section-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: end; margin-bottom: 56px; }
  .section-head h2 { margin-bottom: 0; }

  .chapters { grid-template-columns: repeat(3, 1fr); }

  .audience { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 64px; }

  .fit { padding: 40px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
  .fit h3 { font-size: 1.6rem; margin-bottom: 0; }

  .offer-grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; }
  .price-card { position: sticky; top: 104px; padding: 40px 36px; }

  .guarantee { grid-template-columns: 64px 1fr; gap: 32px; }

  .sticky-cta { display: none; }
}


/* ============================================
   Home
   ============================================ */
.versions { display: grid; gap: 16px; }
.version {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px; text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.version:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-2px); }
.version-code {
  align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: .08em;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
}
.version h3 { font-size: 1.25rem; }
.version p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.version-price { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.02em; margin-top: auto; padding-top: 14px; }
.version-go { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-top: 6px; }
.version-go .i { transition: transform .2s; }
.version:hover .version-go .i { transform: translateX(3px); }

.links { display: grid; gap: 16px; }
.link-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 14px;
  padding: 26px 24px; text-decoration: none; color: var(--on-dark);
  transition: border-color .2s, transform .2s;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-card .ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: #8fb0ff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.link-card .ic .i { width: 24px; height: 24px; }
.link-card h3 { font-size: 1.2rem; }
.link-card p { color: var(--on-dark-muted); font-size: 0.95rem; flex: 1; margin: 0; }
.link-card .go { display: inline-flex; align-items: center; gap: 8px; color: #8fb0ff; font-weight: 600; font-size: 0.95rem; margin-top: 6px; }
.link-card .go .i { transition: transform .2s; }
.link-card:hover .go .i { transform: translateX(3px); }

.footer a { color: inherit; }

@media (min-width: 640px) {
  .versions { grid-template-columns: 1fr 1fr; }
  .links { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .versions { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .versions { grid-template-columns: repeat(5, 1fr); }
}


/* ============================================
   Home — abertura IuleApp + equipe
   ============================================ */
.brand-hero {
  --art-h: clamp(380px, 112vw, 600px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}
.brand-art { position: absolute; top: 0; left: 0; right: 0; height: var(--art-h); z-index: -1; }
.brand-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.brand-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0.15) 0%, rgba(13,17,23,0) 35%, rgba(13,17,23,0.75) 82%, var(--ink) 100%);
}
.brand-inner { padding: calc(var(--art-h) - 48px) var(--gutter) 56px; }
.brand-hero h1 { margin-bottom: 20px; max-width: 12em; }
.brand-hero .lead { margin-bottom: 32px; }

.kicker {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

.about-grid { display: grid; gap: 36px; align-items: center; }
.about-photo { position: relative; margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
.about-photo figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(13,17,23,0.82); backdrop-filter: blur(6px); color: var(--on-dark);
  font-size: 0.85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px;
}
.about-photo figcaption::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: 1px;
}
.about-copy h2 { margin-bottom: 18px; max-width: 16em; }
.about-copy > p:not(.kicker) { color: var(--muted); margin-bottom: 14px; max-width: 36em; }
.about-copy .checklist { margin-top: 26px; }

.ebook-block { padding: 64px 0; }
.ebook-block h2 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); margin-bottom: 20px; max-width: 13em; }

@media (min-width: 900px) {
  .brand-hero { min-height: 660px; display: flex; align-items: center; }
  .brand-art { left: auto; width: 60%; height: 100%; }
  .brand-art img { object-position: 50% 66%; }
  .brand-art::after {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(13,17,23,0.55) 14%, rgba(13,17,23,0) 36%),
      linear-gradient(0deg, rgba(13,17,23,0.5) 0%, rgba(13,17,23,0) 22%);
  }
  .brand-inner { padding: 104px var(--gutter) 112px; }
  .brand-inner > * { max-width: 460px; }
  .brand-hero h1 { font-size: clamp(2.6rem, 4.4vw, 3.7rem); }
  .brand-hero .trust { max-width: 480px; }

  .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
  .about-photo figcaption { left: 20px; bottom: 20px; }

  .ebook-block { padding: 104px 0; }
  .ebook-block h2 { font-size: clamp(2.6rem, 4.6vw, 3.9rem); }
}
@media (min-width: 1400px) {
  .brand-art { width: 56%; }
}
