/* task4fun — landing styles
   Paleta e tipografia alinhadas com o manual de normas gráficas v1. */

:root {
  --turquesa: #2EC4B6;
  --azul:     #4A90E2;
  --coral:    #FF8C42;
  --verde:    #7ED957;
  --tinta:    #0F1D2E;
  --tinta-2:  #1B3558;
  --cinza:    #6B7280;
  --linha:    #E5E7EB;
  --papel:    #F4F5F7;
  --branco:   #FFFFFF;

  --grad-brand: linear-gradient(135deg, #0F1D2E 0%, #1B3558 40%, #4A90E2 75%, #2EC4B6 100%);
  --grad-turq:  linear-gradient(135deg, #2EC4B6 0%, #4A90E2 100%);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --shadow-s: 0 2px 6px rgba(15, 29, 46, .06);
  --shadow-m: 0 10px 30px rgba(15, 29, 46, .10);
  --shadow-l: 0 30px 60px rgba(15, 29, 46, .18);

  --container: 1160px;
  --gap: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body[data-lang="ar"] {
  font-family: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Typography ============ */
h1, h2, h3, .display {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 16px;
}
body[data-lang="ar"] h1,
body[data-lang="ar"] h2,
body[data-lang="ar"] h3,
body[data-lang="ar"] .display {
  font-family: "Noto Sans Arabic", "Poppins", sans-serif;
}

h1 { font-size: clamp(44px, 8vw, 88px); font-weight: 900; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); }

p { margin: 0 0 16px; color: var(--tinta); }
.lede { font-size: 18px; color: var(--cinza); max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquesa);
  background: rgba(46, 196, 182, .12);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow--dark {
  color: var(--branco);
  background: rgba(255, 255, 255, .14);
}

/* ============ Wordmark ============ */
.wordmark {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark .four {
  font-style: italic;
  color: var(--coral);
  font-weight: 900;
}
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-lockup .shield { width: 36px; height: 36px; border-radius: 8px; }
.logo-lockup .wordmark { font-size: 22px; }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--linha);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.nav__links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tinta);
}
.nav__links a:hover { color: var(--azul); }

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cinza);
}
.lang-switcher select {
  font: inherit;
  color: var(--tinta);
  background: var(--papel);
  border: 1px solid var(--linha);
  border-radius: 999px;
  padding: 6px 30px 6px 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5 L6 8 L9 4.5' stroke='%230F1D2E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
body[dir="rtl"] .lang-switcher select {
  padding: 6px 12px 6px 30px;
  background-position: left 10px center;
}
.lang-switcher select:focus { outline: 2px solid var(--azul); outline-offset: 2px; }

/* Mobile nav */
@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  line-height: 1;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--coral);
  color: var(--branco);
  box-shadow: 0 8px 20px rgba(255, 140, 66, .35);
}
.btn--primary:hover { background: #ff7a25; }

.btn--ghost {
  background: transparent;
  color: var(--branco);
  border-color: rgba(255, 255, 255, .3);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }

.btn--dark {
  background: var(--tinta);
  color: var(--branco);
}
.btn--dark:hover { background: #16283f; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-brand);
  color: var(--branco);
  padding: 96px 0 120px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 500px at 80% 0%, rgba(46, 196, 182, .35), transparent 60%),
              radial-gradient(700px 400px at 10% 100%, rgba(74, 144, 226, .35), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: var(--branco); }
.hero h1 .title2 { color: var(--coral); display: inline; }
.hero .lede { color: rgba(255, 255, 255, .82); max-width: 56ch; font-size: 18px; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__note {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .66);
  letter-spacing: 0.02em;
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__badge {
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 48px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), transparent 55%),
    var(--grad-turq);
  box-shadow: var(--shadow-l);
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
}
.hero__badge .shield { width: 58%; height: 58%; }
.hero__sparkle {
  position: absolute;
  border-radius: 12px;
  background: var(--coral);
  color: var(--branco);
  font-weight: 700;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-m);
  transform: rotate(4deg);
}
.hero__sparkle--top    { top: 6%;   left: 4%;  }
.hero__sparkle--bottom { bottom: 8%; right: 4%; background: var(--verde); color: var(--tinta); }

@media (max-width: 860px) {
  .hero { padding: 64px 0 80px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .hero__badge { width: min(280px, 70%); }
}

/* ============ Section scaffolding ============ */
section { padding: 96px 0; }
.section__head {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}
.section--papel { background: var(--papel); }
.section--tinta { background: var(--tinta); color: var(--branco); }
.section--tinta p { color: rgba(255,255,255,.78); }
.section--tinta h2 { color: var(--branco); }

/* ============ Features ============ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .features__grid { grid-template-columns: 1fr; } }

.feature {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-s);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}
.feature__media {
  background: var(--papel);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__img { width: 100%; height: 100%; object-fit: cover; }
.feature__body-wrap { padding: 28px 28px 32px; }
.feature__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azul);
  background: rgba(74, 144, 226, .12);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.feature__title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2vw, 26px);
  margin: 0 0 10px;
  line-height: 1.15;
}
.feature__body { margin: 0; color: var(--cinza); font-size: 15px; }

/* ============ How ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--branco);
  border-radius: var(--radius-l);
  padding: 32px;
  border: 1px solid var(--linha);
}
.step__n {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  background: var(--grad-turq);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  display: block;
}
.step__title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 8px;
}
.step__body { margin: 0; color: var(--cinza); font-size: 15px; }

/* ============ Philosophy ============ */
.philosophy__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.philosophy h2 { font-size: clamp(30px, 4vw, 48px); }
.philosophy p  { font-size: 18px; color: rgba(255,255,255,.82); }

/* ============ CTA ============ */
.final-cta {
  background: var(--grad-brand);
  color: var(--branco);
  border-radius: 32px;
  padding: 64px 48px;
  margin: 96px auto;
  max-width: var(--container);
  text-align: center;
  box-shadow: var(--shadow-l);
}
.final-cta h2 { color: var(--branco); max-width: 20ch; margin-left: auto; margin-right: auto; }
.final-cta p  { color: rgba(255,255,255,.82); max-width: 52ch; margin-left: auto; margin-right: auto; }
.final-cta__form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 24px auto 12px;
}
.final-cta__form input[type="email"] {
  flex: 1;
  font: inherit;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--branco);
}
.final-cta__form input::placeholder { color: rgba(255,255,255,.55); }
.final-cta__form input:focus { outline: 2px solid var(--turquesa); outline-offset: 2px; }
.final-cta__contact { font-size: 14px; color: rgba(255,255,255,.72); margin-top: 18px; }
.final-cta__contact a { color: var(--turquesa); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .final-cta { padding: 48px 24px; border-radius: 24px; margin: 48px 16px; }
  .final-cta__form { flex-direction: column; }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--tinta);
  color: rgba(255,255,255,.72);
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.footer__brand .logo-lockup .wordmark { color: var(--branco); }
.footer__tagline { font-size: 14px; }
.footer__links { display: flex; gap: 24px; font-size: 14px; }
.footer__links a:hover { color: var(--turquesa); }
.footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: rgba(255,255,255,.48);
  text-align: center;
}

/* ============ RTL refinements ============ */
body[dir="rtl"] .hero__badge { transform: rotate(6deg); }
body[dir="rtl"] .hero__sparkle { transform: rotate(-4deg); }
body[dir="rtl"] .hero__sparkle--top { left: auto; right: 4%; }
body[dir="rtl"] .hero__sparkle--bottom { right: auto; left: 4%; }

/* ============ Privacy page ============ */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.prose h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.prose .prose__updated {
  color: var(--cinza);
  font-size: 14px;
  margin-bottom: 40px;
}
.prose h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}
.prose h3 { font-size: 18px; margin-top: 24px; }
.prose p, .prose li { font-size: 16px; color: #263449; }
.prose ul { padding-left: 20px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.prose th, .prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--linha);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--papel);
  font-weight: 600;
}
.prose a { color: var(--azul); text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: var(--papel); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }
.prose hr { border: 0; border-top: 1px solid var(--linha); margin: 32px 0; }

.prose__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--azul);
  font-size: 14px;
}
